/* ============================================================
   设计令牌（Flat CRM Design System）
   ============================================================ */
:root {
  /* 品牌绿：分角色使用以保证对比度 */
  --brand: #00b42a;        /* 装饰、描边强调（不作文字色） */
  --brand-strong: #00822a; /* 实心按钮底色，配白字 4.99:1 */
  --brand-ink: #00701a;    /* 白底绿字 6.3:1 */
  --brand-deep: #00651a;   /* 深色区块底色，配白字 7.3:1 */
  --brand-tint: #eaf6ec;

  /* 文本与表面 */
  --ink: #14201a;
  --muted: #5a5a5a;
  --bg: #ffffff;
  --bg-alt: #f4f8f5;
  --bg-hover: #fbfdfb;
  --card: #ffffff;
  --line: #e2e8e4;
  --line-strong: #d3dcd6;
  --line-brand: #cfe8d4;

  /* 形状 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* 间距节奏 8 / 12 / 16 / 24 / 40 / 64 */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;

  --focus: #00822a;
  --t: .18s ease; /* 统一过渡：150–200ms */
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================================================
   顶部导航（扁平吸顶）
   ============================================================ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 12px var(--space-4);
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-logo { font-size: 19px; font-weight: 700; color: var(--brand-ink); letter-spacing: -.01em; }
.brand-tag { font-size: 12px; color: var(--muted); }

.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a {
  position: relative;
  padding: 6px 2px;
  color: var(--muted);
  transition: color var(--t);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav a:hover { color: var(--brand-ink); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { padding: 8px 16px; font-size: 14px; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--brand-strong); color: #fff; border: 1px solid var(--brand-strong); }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-outline { background: transparent; color: var(--brand-ink); border: 1px solid var(--line-brand); }
.btn-outline:hover { background: var(--brand-tint); border-color: var(--brand); }

/* ============================================================
   首屏 Hero（左文案 / 右产品截图）
   ============================================================ */
.hero {
  padding: 72px var(--space-4) var(--space-6);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: var(--space-6);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.hero h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.24;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: var(--space-5);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 148px;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
}
.stat strong { font-size: 26px; line-height: 1.2; color: var(--brand-ink); letter-spacing: -.01em; }
.stat span { font-size: 13px; color: var(--muted); }
.hero-cta { display: flex; align-items: center; gap: var(--space-4); }
.hero-cta .qr-code { width: 120px; height: 120px; padding: 6px; margin: 0; }
.btn-note { font-size: 14px; color: var(--muted); line-height: 1.6; }
.hero-visual { display: flex; justify-content: center; }

/* ============================================================
   通用区块
   ============================================================ */
.section { padding: var(--space-6) var(--space-4); max-width: 1080px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); max-width: 100%; }
.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section-eyebrow {
  text-align: center;
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: var(--space-1);
}
.section h2 {
  text-align: center;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: var(--space-2);
}
.section-lead { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto var(--space-5); }

/* ============================================================
   界面预览（截图）
   ============================================================ */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: start;
}
.shot { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.shot-frame {
  width: 100%;
  max-width: 258px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  transition: border-color var(--t);
}
.shot-frame img { width: 100%; border-radius: 16px; }
.hero-visual .shot-frame img { aspect-ratio: 3 / 5; object-fit: cover; object-position: top center; }
.shot:hover .shot-frame { border-color: var(--brand); }
.shot figcaption { text-align: center; max-width: 300px; }
.shot figcaption strong { display: block; font-size: 16px; margin-bottom: 4px; }
.shot figcaption span { display: block; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   功能拆解
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: border-color var(--t), background var(--t);
}
.feature:hover { border-color: var(--line-brand); background: var(--bg-hover); }
.feature h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--brand-ink);
  font-size: 17px;
  margin-bottom: var(--space-1);
}
.feature h3::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--brand);
}
.feature p { color: var(--muted); font-size: 15px; }

/* ============================================================
   对比表（传统方式 vs 约课通）
   ============================================================ */
.compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.compare th,
.compare td { padding: 14px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg-alt); font-weight: 600; font-size: 14px; }
.compare thead th:last-child { color: var(--brand-ink); }
.compare td:first-child { font-weight: 600; }
.compare td:last-child { background: var(--bg-hover); }
.compare tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   适合谁
   ============================================================ */
.audience-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.audience-list span {
  background: var(--brand-tint);
  color: var(--brand-ink);
  border: 1px solid var(--line-brand);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}

/* ============================================================
   价格卡片
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: border-color var(--t);
}
.price-card:hover { border-color: var(--line-strong); }
.price-card.featured { border-color: var(--brand); }
.price-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-1); }
.price-card h3 { font-size: 17px; }
.price-tag {
  background: var(--brand-tint);
  color: var(--brand-ink);
  border: 1px solid var(--line-brand);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-cap { font-size: 13px; color: var(--muted); margin-top: 2px; }
.amount {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-ink);
  letter-spacing: -.02em;
  margin: var(--space-3) 0 var(--space-2);
}
.amount span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-list { list-style: none; border-top: 1px solid var(--line); margin-bottom: var(--space-4); }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-1);
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--muted);
}
.price-list li b { color: var(--ink); font-weight: 600; }
.price-btn { margin-top: auto; font-size: 14px; padding: 9px 14px; }
.pricing-notes { list-style: none; max-width: 720px; margin: 0 auto; }
.pricing-notes li { padding: 6px 0; color: var(--muted); font-size: 15px; }
.pricing-notes li::before { content: "• "; color: var(--brand-strong); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  overflow: hidden;
  transition: border-color var(--t), background var(--t);
}
.faq-item[open] { border-color: var(--line-brand); background: var(--bg-hover); }
.faq-item summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 16px 18px;
  font-weight: 600;
  list-style: none;
  transition: color var(--t);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--brand-ink);
  font-size: 20px;
  line-height: 1;
  transition: transform var(--t);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--brand-ink); }
.faq-item p { padding: 0 18px 16px; color: var(--muted); }

/* ============================================================
   行动引导 CTA（扁平实色）
   ============================================================ */
.cta {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--brand-deep);
  color: #fff;
}
.cta h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: var(--space-2); }
.cta p { max-width: 640px; margin: 0 auto 28px; color: #eaf7ee; }
.cta .btn-primary { background: #fff; color: var(--brand-ink); border-color: #fff; }
.cta .btn-primary:hover { background: var(--brand-tint); border-color: var(--brand-tint); }
.qr-code {
  display: block;
  margin: 0 auto 14px;
  width: 200px;
  height: 200px;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius-md);
}
.qr-note { font-size: 13px; color: #eaf7ee !important; margin-bottom: 22px; }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer a { color: var(--brand-ink); font-weight: 600; }
.footer a:hover { text-decoration: underline; }
.footer p + p { margin-top: 6px; }
.footer-beian a { color: var(--muted); font-weight: 400; }
.footer-beian a:hover { color: var(--brand-ink); }
.footer-copy { font-size: 13px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-visual .shot-frame { max-width: 220px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-stats, .hero-cta { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-grid { gap: var(--space-4); }
}

@media (max-width: 900px) {
  .nav { display: none; }
}

@media (max-width: 720px) {
  .hero { padding: 40px 20px 48px; }
  .section { padding: 56px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr; gap: 32px; }
  .shot-frame { max-width: 280px; }
  .hero-stats { gap: var(--space-2); }
  .stat { min-width: calc(50% - 6px); padding: 12px 16px; }
  .hero-cta { flex-direction: column; text-align: center; }
  .compare th, .compare td { padding: 12px 14px; font-size: 14px; }
}

/* 尊重「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
