/* ============================================
   生命舆图 VitaMap — 主样式表
   设计定位: 学术专业 + 现代科技感
   配色: 冷色系为主 + 低饱和暖色点缀
   ============================================ */

/* ---- CSS 变量 ---- */
:root {
  --color-navy:       #1B3A5C;
  --color-navy-light: #2A5078;
  --color-teal:       #2E7D6F;
  --color-teal-light: #3A9D8C;
  --color-terracotta: #B5654B;
  --color-cyan:       #3A7C8C;
  --color-cyan-light: #4A9DB0;

  --color-bg:         #FAFBFC;
  --color-bg-alt:     #F0F4F8;
  --color-text:       #2C3E50;
  --color-text-light: #5A6F80;
  --color-border:     #DCE4EC;
  --color-white:      #FFFFFF;

  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", monospace;

  --shadow-sm: 0 1px 3px rgba(27, 58, 92, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 58, 92, 0.08);
  --shadow-lg: 0 8px 32px rgba(27, 58, 92, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --max-width: 1120px;
}

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

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

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

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--color-navy);
}

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

/* ---- 容器 ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- 导航栏 ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-navy), var(--color-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 8px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-navy);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-navy);
  border-radius: 1px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--color-navy);
  color: white !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--color-navy-light);
}

/* ---- 英雄区域 ---- */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 200%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(58, 124, 140, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(46, 125, 111, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(27, 58, 92, 0.04) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(58, 124, 140, 0.1);
  color: var(--color-cyan);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-navy);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--color-cyan);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-sans);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-navy);
  color: white;
}
.btn-primary:hover {
  background: var(--color-navy-light);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--color-white);
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}
.btn-outline:hover {
  background: var(--color-navy);
  color: white;
}

.btn-accent {
  background: var(--color-terracotta);
  color: white;
}
.btn-accent:hover {
  background: #C97A5F;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ---- 章节通用 ---- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- 三列卡片 ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 28px 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.card-icon.blue  { background: rgba(27, 58, 92, 0.08);  color: var(--color-navy); }
.card-icon.teal  { background: rgba(46, 125, 111, 0.08); color: var(--color-teal); }
.card-icon.cyan  { background: rgba(58, 124, 140, 0.08); color: var(--color-cyan); }
.card-icon.terra { background: rgba(181, 101, 75, 0.08);  color: var(--color-terracotta); }

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---- 流程步骤 ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-navy);
  color: white;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.step p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ---- 价值亮点（两列网格） ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.feature-check {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ---- CTA 横幅 ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-navy), #15304D);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(58, 124, 140, 0.2), transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.cta-banner p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 28px;
  position: relative;
}

/* ---- 页脚 ---- */
.footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  max-width: 340px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ============================================
   服务/订阅页 专用样式
   ============================================ */

/* 订阅套餐卡片 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

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

.pricing-card.featured {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 12px;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-light);
}

.pricing-period {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--color-teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* 服务流程图 */
.service-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.flow-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.flow-step::after {
  content: '→';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--color-cyan);
  font-weight: 700;
}

.flow-step:last-child::after {
  content: none;
}

.flow-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
}

.flow-step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.flow-step p {
  font-size: 12px;
  color: var(--color-text-light);
}

/* ---- 关于页 ---- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-visual {
  background: linear-gradient(135deg, var(--color-bg-alt), rgba(58,124,140,0.08));
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-visual .logo-large {
  font-size: 64px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.about-visual .logo-sub {
  font-size: 14px;
  color: var(--color-cyan);
  font-weight: 600;
  letter-spacing: 4px;
}

.about-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.about-text p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* 联系卡片 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ---- 数据统计条 ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
}

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

.stat-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .hero h1 { font-size: 32px; }
  .card-grid,
  .pricing-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .steps,
  .service-flow {
    grid-template-columns: 1fr 1fr;
  }
  .flow-step::after { content: none; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 26px; }
  .hero-subtitle { font-size: 15px; }
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 24px; }
  .steps,
  .service-flow { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 24px; }
  .cta-banner h2 { font-size: 22px; }
  .pricing-price { font-size: 28px; }
  .about-visual { padding: 36px; min-height: 240px; }
}
