/* Time To Class 官网(2026-11 重做)。颜色同产品 KC 视觉规范 v1(Portal src/theme.css 的 --kw-*)。 */
:root {
  --brand: #5cb800;        /* 品牌绿:只做不带字的填充 */
  --primary: #4d7a00;      /* 按钮底、链接、绿字(对比度够) */
  --primary-hover: #3f6500;
  --primary-soft: #f2f8e4;
  --primary-soft-2: #e2efc2;
  --ink: #1c1c1e;
  --ink-2: #3a3a3c;
  --muted: #6c6c70;
  --faint: #aeaeb2;
  --line: #e5e5ea;
  --line-soft: #f0f0f3;
  --page: #f2f2f7;
  --surface: #ffffff;
  --warning: #9a5b00; --warning-bg: #fff4e0;
  --info: #1a62b0; --info-bg: #eaf2fc;
  --radius: 12px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-pop: 0 18px 50px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--surface); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(77,122,0,.35); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
:lang(zh) .eyebrow { letter-spacing: .04em; text-transform: none; }

/* ── 按钮 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px;
  font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: #d1d1d6; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }

/* ── 顶栏 ── */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); font-size: 15px; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-right .lang { font-size: 14px; color: var(--muted); }
.nav-right .login { font-size: 15px; color: var(--ink-2); }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-right .login { display: none; }
}

/* ── 首屏 ── */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, var(--primary-soft) 0%, var(--surface) 72%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.12; font-weight: 800; margin: 14px 0 18px; }
.hero .lead { font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .hero { padding: 44px 0 56px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* 首屏右侧:手机里的签到 + 浮着一张账单(纯 HTML 画的产品界面,和 App / 后台同一套设计) */
.show { position: relative; min-height: 520px; display: flex; justify-content: center; }
.phone { width: 280px; height: 560px; border-radius: 44px; background: #1c1c1e; padding: 10px; box-shadow: var(--shadow-pop); position: relative; z-index: 1; }
/* App 里的真实截图(App Store 截图缩到 520px 宽) */
.phone-shot { display: block; width: 100%; height: 100%; border-radius: 34px; object-fit: cover; object-position: top; background: var(--page); }

.float-invoice { position: absolute; right: -56px; bottom: -36px; width: 250px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 16px; z-index: 2; }
.fi-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.fi-amount { font-size: 26px; font-weight: 800; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.fi-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 3px 0; font-variant-numeric: tabular-nums; }
.fi-status { margin-top: 10px; display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--primary); font-weight: 600; }
.fi-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
@media (max-width: 900px) {
  .show { min-height: 0; }
  .float-invoice { right: 50%; transform: translateX(150px); bottom: 24px; }
}
@media (max-width: 480px) {
  .phone { width: 250px; height: 500px; }
  .float-invoice { width: 200px; right: 8px; transform: none; bottom: 8px; }
}

/* ── 通用区块 ── */
.section { padding: 88px 0; }
.section.alt { background: var(--page); }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; font-weight: 800; margin: 10px 0 14px; }
.section-head p { font-size: 18px; color: var(--ink-2); }
@media (max-width: 700px) { .section { padding: 60px 0; } }

/* 两种经营方式 */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mode { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-card); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.mode-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.mode h3 { font-size: 22px; font-weight: 700; }
.mode p { color: var(--ink-2); }
.mode ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mode li { position: relative; padding-left: 26px; color: var(--ink-2); }
.mode li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.mode .fit { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .modes { grid-template-columns: minmax(0, 1fr); } }

/* 功能 */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* 三步上手 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* 价格 */
.pricing { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: stretch; }
.plan { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-pop); padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.plan-name { font-size: 15px; font-weight: 700; color: var(--primary); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 52px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.price span { font-size: 16px; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.plan li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.plan .btn { align-self: flex-start; }
.trial { background: var(--primary); color: #fff; border-radius: 20px; padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.trial h3 { font-size: 26px; font-weight: 800; }
.trial p { color: rgba(255,255,255,.88); }
.trial .btn { align-self: flex-start; background: #fff; color: var(--primary); }
.trial .btn:hover { background: var(--primary-soft); }
.trial small { color: rgba(255,255,255,.8); font-size: 13px; }
@media (max-width: 860px) { .pricing { grid-template-columns: minmax(0, 1fr); } .plan ul { grid-template-columns: minmax(0, 1fr); } }

/* 常见问题 */
.faq { max-width: 780px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); }

/* 收尾 CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.cta p { color: var(--ink-2); font-size: 18px; margin-bottom: 26px; }
.cta .hero-cta { justify-content: center; margin-top: 0; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--ink-2); }

/* App Store 按钮 */
.appstore { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 10px; background: #000; color: #fff; text-decoration: none; }
.appstore:hover { color: #fff; text-decoration: none; background: #222; }
.appstore svg { width: 20px; height: 20px; }
.appstore span { display: flex; flex-direction: column; line-height: 1.1; font-size: 11px; }
.appstore b { font-size: 16px; font-weight: 600; }

/* ── 法律页 ── */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h1 { font-size: 34px; font-weight: 800; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.legal h2 { font-size: 21px; font-weight: 700; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal .note { background: var(--page); border-radius: 10px; padding: 14px 16px; font-size: 15px; }
