/* 课兜课时 · 官网样式
   主色沿用小程序：墨绿 #0f6e56 / 浅绿 #e1f5ee / 页面底 #f3f6f4 */

:root {
  --green: #0f6e56;
  --green-dark: #0a5744;
  --green-soft: #e1f5ee;
  --bg: #f3f6f4;
  --white: #ffffff;
  --ink: #203831;
  --muted: #52645d;
  --muted-2: #7d9188;
  --line: #dfe9e4;
  --shadow-sm: 0 8px 24px rgba(16, 74, 57, 0.06);
  --shadow-md: 0 20px 50px rgba(16, 74, 57, 0.1);
  --radius: 20px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 246, 244, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 233, 228, 0.8);
}
.nav-wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 14px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 19px; letter-spacing: 0.5px; color: var(--green-dark); }
.brand-text small { font-size: 11px; color: var(--muted-2); letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--green); }
.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--green);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(15, 110, 86, 0.2);
}
.nav-cta:hover { background: var(--green-dark); color: #fff !important; }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 11px 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--green-dark); border-radius: 2px; margin: 4px 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 88px;
  background:
    radial-gradient(circle at 82% 18%, rgba(15, 110, 86, 0.09), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(225, 245, 238, 0.9), transparent 36%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  right: -180px; top: -160px;
  border-radius: 50%;
  border: 1px solid rgba(15, 110, 86, 0.08);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 72px; align-items: center; }
.eyebrow, .section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--green);
  background: var(--green-soft);
  padding: 6px 14px;
  border-radius: 999px;
}
.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(44px, 5.2vw, 68px);
  line-height: 1.16;
  letter-spacing: -2px;
  color: var(--ink);
}
.hero h1 span { color: var(--green); }
.hero-lead { max-width: 560px; color: var(--muted); font-size: 17px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 12px 26px rgba(15, 110, 86, 0.22); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: #fff; color: var(--green-dark); border: 1px solid var(--line); }
.btn-ghost:hover { box-shadow: var(--shadow-sm); }

.hero-stats { display: flex; gap: 36px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 25px; color: var(--green-dark); line-height: 1.2; }
.hero-stats span { font-size: 13px; color: var(--muted-2); margin-top: 4px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .why-card { width: min(100%, 420px); }
.qr-card {
  width: min(100%, 380px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.qr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.qr-head img { width: 38px; height: 38px; border-radius: 12px; }
.qr-head > div { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.qr-head strong { font-size: 16px; color: var(--green-dark); }
.qr-head span { font-size: 12px; color: var(--muted-2); }
.qr-head .badge { background: var(--green-soft); color: var(--green); padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; flex: none; }

.qr-box { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; justify-content: center; }
.qr-box img { width: min(230px, 100%); height: auto; image-rendering: pixelated; border-radius: 12px; background: #fff; }
.qr-placeholder-tag { position: absolute; top: -10px; right: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 11px; padding: 3px 10px; border-radius: 999px; }
.qr-title { margin: 20px 0 4px; text-align: center; font-weight: 700; font-size: 16px; color: var(--ink); }
.qr-sub { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.qr-note { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); text-align: center; font-size: 11px; color: var(--muted-2); }

.floating-chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 12px; font-weight: 600; color: var(--green-dark); box-shadow: var(--shadow-sm); }
.chip-one { left: -8px; top: 88px; }
.chip-two { right: -18px; bottom: 96px; }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.section[id] { scroll-margin-top: 76px; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin: 18px 0 12px; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.28; letter-spacing: -0.8px; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }

/* 痛点 */
.pain { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.pain-icon { font-size: 13px; font-weight: 800; color: var(--green); letter-spacing: 1px; margin-bottom: 14px; }
.pain-card h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.pain-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* 功能 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bcd8cc; }
.feature-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin: 0 0 10px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* 流程 */
.flow { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.flow-panel { padding: 38px; border-radius: 26px; background: var(--bg); border: 1px solid var(--line); }
.flow-panel-alt { background: #f7fbf9; }
.flow-label { display: inline-block; font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 5px 12px; }
.flow-panel h3 { margin: 16px 0 26px; font-size: 24px; }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.step-list li:first-child { border-top: none; }
.step-list li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.step-list strong { display: block; font-size: 15px; margin-bottom: 2px; }
.step-list p { margin: 0; font-size: 13px; color: var(--muted); }

/* 为什么 */
.why-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 72px; align-items: center; }
.why-copy h2 { margin: 18px 0 18px; font-size: clamp(28px, 3vw, 38px); line-height: 1.35; }
.why-copy > p { color: var(--muted); font-size: 16px; margin: 0 0 24px; }
.why-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.why-tags span { font-size: 12px; padding: 7px 12px; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-weight: 600; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-md); }
.why-card-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--green-dark); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.why-card-top .dot { color: var(--green); font-size: 11px; }
.ledger-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; font-size: 14px; }
.ledger-row strong { color: var(--green-dark); }
.ledger-row .muted-num { color: var(--muted-2); font-weight: 600; }
.ledger-row .balance { font-size: 22px; }
.ledger-meta { font-size: 11px; color: var(--muted-2); margin-top: 4px; }
.why-card-foot { margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); text-align: center; }

/* FAQ */
.section-kicker-light { background: rgba(255, 255, 255, 0.14); color: #d9f2e8; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid .section-head { text-align: left; margin: 0; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 16px; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: relative; flex: none; width: 22px; height: 22px; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; background: var(--green); border-radius: 2px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.faq-list summary span::before { width: 14px; height: 2px; }
.faq-list summary span::after { width: 2px; height: 14px; transition: transform 0.2s ease; }
.faq-list details[open] summary span::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details p { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* 最终 CTA */
.final-cta { padding: 80px 0; background: var(--green-dark); color: #fff; }
.final-inner { display: grid; grid-template-columns: 1fr 0.6fr; gap: 60px; align-items: center; }
.final-copy h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.25; margin: 18px 0; }
.final-copy > p { color: rgba(255, 255, 255, 0.78); font-size: 16px; }
.final-points { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: 13px; color: #d9f2e8; }
.final-qr { display: flex; justify-content: center; }
.final-qr-card { background: #fff; border-radius: 24px; padding: 22px; text-align: center; color: var(--ink); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2); width: min(100%, 270px); }
.final-qr-card img { width: 100%; border-radius: 14px; margin-bottom: 14px; }
.final-qr-card strong { display: block; font-size: 16px; color: var(--green-dark); }
.final-qr-card span { display: block; font-size: 11px; color: var(--muted-2); margin-top: 4px; }

/* 页脚 */
.site-footer { background: #0b3d31; color: rgba(255, 255, 255, 0.7); padding: 42px 0 34px; font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 12px; }
.footer-brand strong { color: #fff; font-size: 16px; }
.footer-brand p { margin: 0; font-size: 12px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: #fff; }
.footer-code { display: grid; justify-items: center; gap: 8px; margin: 0; font-size: 12px; }
.footer-code img { width: 120px; height: 120px; object-fit: contain; background: #fff; border-radius: 12px; }
.footer-note { width: 100%; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; }
.footer-note a:hover, .footer-note a:focus-visible { text-decoration: underline; }

/* 入场动画 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid, .why-grid, .faq-grid, .final-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 56px 0 70px; }
  .hero-visual { margin-top: 20px; }
  .feature-grid, .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { text-align: center; }
  .section { padding: 72px 0; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .nav-wrap { height: 66px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 20px;
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 14px; text-align: center; }
  .hero h1 { letter-spacing: -1px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stats div { min-width: 120px; }
  .floating-chip { display: none; }
  .feature-grid, .pain-grid { grid-template-columns: 1fr; }
  .flow-panel { padding: 26px; }
  .section-head { margin-bottom: 36px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* 小屏 H5：压缩留白、按钮全宽、二维码自适应，避免窄屏横向溢出 */
@media (max-width: 420px) {
  .hero { padding: 44px 0 56px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { margin-top: 34px; }
  .qr-card { padding: 18px; border-radius: 22px; }
  .qr-box { padding: 12px; }
  .qr-box img { width: min(200px, 100%); }
  .section { padding: 58px 0; }
  .section-head h2 { font-size: 28px; }
  .pain-card, .feature-card { padding: 22px; }
  .flow-panel { padding: 22px; }
  .faq-list summary { font-size: 15px; }
  .final-cta { padding: 60px 0; }
  .site-footer { padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
