/**
 * 通维咨询官网 - 全新设计系统 v2.0
 * 设计理念：现代、专业、高端、简洁
 * 主色调：#2ECC71（浅绿色）
 */

/* ========================================
   设计变量
   ======================================== */

:root {
  /* 主色调 */
  --primary: #2ECC71;
  --primary-dark: #27AE60;
  --primary-light: #E8F8F0;
  --primary-gradient: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
  
  /* 中性色 */
  --white: #FFFFFF;
  --off-white: #FAFBFC;
  --light-gray: #F3F4F6;
  --medium-gray: #E5E7EB;
  --dark-gray: #6B7280;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #9CA3AF;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  
  /* 字体 */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  
  /* 动画 */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ========================================
   基础样式
   ======================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* ========================================
   容器
   ======================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ========================================
   导航栏
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--medium-gray);
  transition: var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo {
  height: 36px;
  width: auto;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  margin-left: var(--space-4);
  padding: var(--space-2) var(--space-6);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* ========================================
   Hero Banner
   ======================================== */

.hero {
  margin-top: 72px;
  padding: var(--space-20) 0;
  background: 
    radial-gradient(ellipse at top left, rgba(46, 204, 113, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(46, 204, 113, 0.05) 0%, transparent 50%),
    var(--off-white);
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-10);
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   按钮
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-primary {
  color: var(--white);
  background: var(--primary-gradient);
  box-shadow: 0 4px 14px rgba(46, 204, 113, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--white);
  border: 2px solid var(--medium-gray);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: 18px;
}

.btn-outline {
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ========================================
   数据指标
   ======================================== */

.metrics {
  padding: var(--space-16) 0;
  background: var(--white);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.metric-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--off-white);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.metric-value {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.metric-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.metric-source {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   卡片
   ======================================== */

.card {
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  font-size: 28px;
  margin-bottom: var(--space-5);
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.card-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
  color: var(--text-secondary);
}

.card-list-item::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

/* ========================================
   网格
   ======================================== */

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ========================================
   标签
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  color: var(--primary-dark);
  background: var(--primary-light);
}

/* ========================================
   章节
   ======================================== */

.section {
  padding: var(--space-20) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================================
   FAQ
   ======================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-question {
  display: flex;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  gap: var(--space-3);
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  transition: var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--white);
}

.faq-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-answer {
  padding: 0 var(--space-6);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  max-height: 500px;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ========================================
   页脚
   ======================================== */

.footer {
  background: var(--text-primary);
  color: var(--white);
  padding: var(--space-20) 0 var(--space-12);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: 22px;
}

.footer-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-6);
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.beian {
  display: flex;
  gap: var(--space-3);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.beian a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.beian a:hover {
  color: var(--primary);
}

/* ========================================
   响应式
   ======================================== */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--medium-gray);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-cta {
    display: none;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: var(--space-16) 0;
  }
  
  .hero {
    padding: var(--space-16) 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   动画
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   工具类
   ======================================== */

.text-center { text-align: center; }
.mt-5 { margin-top: var(--space-10); }
.mb-2 { margin-bottom: var(--space-3); }
.mb-5 { margin-bottom: var(--space-10); }