/* ============================================================
 * 门户首页专属样式
 * ============================================================ */

.portal-page {
  min-height: 100vh;
  background: var(--color-light-bg);
}

/* 顶部导航 */
.portal-nav {
  height: var(--header-height);
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-2xl);
  position: sticky;
  top: 0;
  z-index: 100;
}

.portal-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.portal-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-nav .nav-logo .logo-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: var(--glow-primary);
}

.portal-nav .nav-logo .logo-text {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.portal-nav .nav-links {
  display: flex;
  gap: var(--spacing-xl);
}

.portal-nav .nav-links a {
  color: var(--color-text-tertiary);
  font-size: 14px;
  transition: color 0.2s;
}

.portal-nav .nav-links a:hover { color: var(--color-primary-light); }

/* Hero 区域 */
.hero-section {
  min-height: 420px;
  background: var(--gradient-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--spacing-2xl);
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
  top: -200px; right: -100px;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,149,0,0.1) 0%, transparent 70%);
  bottom: -150px; left: -50px;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero-content .brand-icon {
  width: 88px; height: 88px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--spacing-lg);
  font-size: 44px;
  box-shadow: var(--glow-primary);
}

.hero-content h1 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 2px;
}

.hero-content .hero-subtitle {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: var(--spacing-xl);
  letter-spacing: 4px;
}

.hero-stats {
  display: flex;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-xl);
}

.hero-stats .stat-item {
  text-align: center;
}

.hero-stats .stat-item .stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  text-shadow: 0 0 20px rgba(255,107,0,0.5);
}

.hero-stats .stat-item .stat-label {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 4px;
}

/* 流程导览 */
.workflow-section {
  max-width: 1400px;
  margin: -50px auto var(--spacing-lg);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-xl) var(--spacing-2xl);
  position: relative;
  z-index: 10;
}

.workflow-section .section-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-dark);
}

.workflow-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.workflow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.workflow-node:hover { transform: scale(1.1); }

.workflow-node .node-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
}

.workflow-node .node-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.workflow-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,107,0,0.6) 0%, rgba(255,107,0,0.2) 100%);
  margin: 0 var(--spacing-sm);
  margin-bottom: 28px;
  position: relative;
}

.workflow-connector::after {
  content: '▶';
  position: absolute;
  right: -6px;
  top: -10px;
  color: var(--color-primary);
  font-size: 12px;
}

/* 系统卡片区域 */
.systems-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-2xl) var(--spacing-2xl);
}

.category-tabs {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 24px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: all 0.2s;
}

.category-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(255,107,0,0.3);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.system-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.system-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.system-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,107,0,0.3);
}

.system-card:hover::before { opacity: 1; }

.system-card .card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: var(--spacing-md);
  transition: all 0.3s;
}

.system-card:hover .card-icon {
  background: var(--gradient-primary);
  transform: scale(1.05);
}

.system-card .card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.system-card .card-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  flex: 1;
}

.system-card .card-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  align-self: flex-start;
}

.system-card .card-enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
}

.system-card .card-enter .arrow {
  transition: transform 0.3s;
}

.system-card:hover .card-enter .arrow {
  transform: translateX(4px);
}

/* 底部 */
.portal-footer {
  background: var(--color-dark-bg);
  color: var(--color-text-tertiary);
  padding: var(--spacing-xl) var(--spacing-2xl);
  text-align: center;
  font-size: 13px;
}

.portal-footer .footer-links {
  margin-bottom: var(--spacing-sm);
}

.portal-footer .footer-links a {
  color: var(--color-text-tertiary);
  margin: 0 var(--spacing-md);
  transition: color 0.2s;
}

.portal-footer .footer-links a:hover { color: var(--color-primary-light); }

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,107,0,0.4);
  z-index: 99;
  font-size: 18px;
  transition: transform 0.2s;
}

.back-to-top:hover { transform: translateY(-4px); }

/* 响应式 */
@media (max-width: 1200px) {
  .systems-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-connector { display: none; }
  .workflow-nodes { flex-wrap: wrap; justify-content: center; gap: var(--spacing-md); }
}

@media (max-width: 768px) {
  .systems-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 26px; }
  .hero-stats { flex-wrap: wrap; gap: var(--spacing-md); }
  .portal-nav .nav-links { display: none; }
}
