/* ═══════════════════════════════════════════════════════════
   土豆收银 官网样式 — 大气 /  Premium 风格
   浅色主体 + 深绿渐变 Hero + 大留白 + 大字号 + 滚动渐显
   纯静态、零依赖；与收银后台的紧凑风区分（官网要气派）
   ═══════════════════════════════════════════════════════════ */
:root {
  --brand: #0f9d63;
  --brand-deep: #064e33;
  --brand-mid: #0b7a4b;
  --brand-lite: #e9f7f0;
  --gold: #f5b83d;
  --ink: #16211c;
  --ink-2: #41524a;
  --ink-3: #7d8c84;
  --line: #e3e9e5;
  --bg: #ffffff;
  --bg-soft: #f4f8f5;
  --radius: 16px;
  --maxw: 1180px;
  --shadow-lg: 0 24px 60px -18px rgba(9, 46, 30, .28);
  --shadow-md: 0 12px 32px -12px rgba(9, 46, 30, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.75 "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: var(--brand-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-deep); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── 顶栏（毛玻璃） ───────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -12px rgba(9, 46, 30, .15); }
.nav-in { display: flex; align-items: center; gap: 30px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: .5px; }
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #14b981, #0a6b44);
  display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 800;
  box-shadow: 0 6px 14px -4px rgba(15, 157, 99, .55);
}
.nav-links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--ink-2); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brand); border-radius: 2px; transition: right .25s;
}
.nav-links a:hover { color: var(--brand-deep); text-decoration: none; }
.nav-links a:hover::after { right: 0; }
.nav-cta { margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 11px 22px; font-size: 15px; font-weight: 700; letter-spacing: .3px;
  cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.solid { background: linear-gradient(135deg, #14b981, #0a7a4e); color: #fff; box-shadow: 0 10px 24px -8px rgba(15, 157, 99, .6); }
.btn.solid:hover { box-shadow: 0 14px 30px -8px rgba(15, 157, 99, .72); color: #fff; }
.btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(4px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn.line { background: #fff; color: var(--brand-deep); border-color: var(--brand); }
.btn.line:hover { background: var(--brand-lite); color: var(--brand-deep); }

/* ── Hero：深绿渐变 + 光斑 ────────────────────── */
.hero {
  position: relative;
  padding: 170px 0 90px;
  background:
    radial-gradient(720px 420px at 82% -10%, rgba(53, 224, 158, .34), transparent 62%),
    radial-gradient(560px 380px at 8% 108%, rgba(20, 185, 129, .22), transparent 60%),
    linear-gradient(160deg, #0a5a3c 0%, #07482f 46%, #053424 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before { /* 顶部细金线 */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .8;
}
.hero .grid-bg { /* 网格纹理，低调 */
  position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 100%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
  padding: 6px 16px; font-size: 13px; color: #d8f3e5; margin-bottom: 22px;
  background: rgba(255, 255, 255, .07);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #35e09e; box-shadow: 0 0 0 4px rgba(53, 224, 158, .25); }
.hero h1 {
  font-size: 46px; line-height: 1.22; margin: 0 0 20px; font-weight: 800; letter-spacing: 1px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}
.hero h1 .hl {
  background: linear-gradient(100deg, #7ff0bd 10%, #f5d98b 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { font-size: 17px; color: #cdeeda; max-width: 560px; margin: 0 0 34px; }
.hero .sub b { color: #fff; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; font-size: 13px; color: #a9cdb9; }
.hero-meta b { display: block; color: #fff; font-size: 14px; font-weight: 700; margin-top: 2px; }
.hero-meta .mono { font-family: Consolas, monospace; font-weight: 400; font-size: 12.5px; word-break: break-all; }

/* Hero 右侧截图：电脑窗框 mock */
.hero-shot { position: relative; perspective: 1400px; }
.hero-shot .monitor {
  border-radius: 14px; overflow: hidden; background: #0d2b1f;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, .2);
  transform: rotateY(-4deg) rotateX(1.5deg);
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.hero-shot .monitor:hover { transform: rotateY(0) rotateX(0); }
.hero-shot .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: linear-gradient(180deg, #123c2b, #0e2f21); }
.hero-shot .bar i { width: 11px; height: 11px; border-radius: 50%; }
.hero-shot .bar i:nth-child(1) { background: #ff5f57; }
.hero-shot .bar i:nth-child(2) { background: #febc2e; }
.hero-shot .bar i:nth-child(3) { background: #28c840; }
.hero-shot .bar span { margin-left: 10px; font-size: 11.5px; color: #9dc4ae; font-family: Consolas, monospace; }
.hero-shot .monitor img { width: 100%; height: auto; }
.hero-shot .glow { position: absolute; inset: 8% -6% -12% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(53, 224, 158, .35), transparent 75%); filter: blur(10px); }

/* ── 数据条 ───────────────────────────────────── */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 44px 28px; }
.stat { text-align: center; }
.stat .num { font-size: 38px; font-weight: 800; color: var(--brand-deep); letter-spacing: 1px; line-height: 1.1; }
.stat .num small { font-size: 18px; font-weight: 700; color: var(--brand); }
.stat .lbl { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }

/* ── 区块通用 ─────────────────────────────────── */
section { padding: 96px 0; }
section.alt { background: var(--bg-soft); }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .kick {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--brand); text-transform: uppercase; margin-bottom: 12px;
}
.sec-head h2 { font-size: 30px; margin: 0 0 14px; font-weight: 800; letter-spacing: .5px; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ── 功能卡（大气：大卡 + 图标 + 悬浮） ────────── */
.grid { display: grid; gap: 24px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.feat {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feat::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), #35d99c);
  opacity: 0; transition: opacity .3s;
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #cfe6d8; }
.feat:hover::after { opacity: 1; }
.feat .ic {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand-lite), #d3f0e1);
  display: grid; place-items: center; font-size: 24px; color: var(--brand-deep);
  box-shadow: inset 0 0 0 1px rgba(15, 157, 99, .18);
}
.feat h3 { margin: 0 0 10px; font-size: 17.5px; font-weight: 700; }
.feat p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ── 截图 Showcase ────────────────────────────── */
.shots { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.showcase {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md); transition: transform .3s, box-shadow .3s;
}
.showcase:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.showcase .cap { display: flex; align-items: baseline; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
.showcase .cap b { font-size: 15px; }
.showcase .cap span { font-size: 13px; color: var(--ink-3); }
.showcase img { width: 100%; height: auto; background: #eef4f0; }
.showcase.wide { grid-column: 1 / -1; }

/* ── 自动升级流程 ─────────────────────────────── */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.flow::before { /* 步骤连接线 */
  content: ""; position: absolute; top: 34px; left: 6%; right: 6%; height: 2px;
  background: repeating-linear-gradient(90deg, #bfe3d0 0 10px, transparent 10px 20px);
}
.flow .step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 22px; text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.flow .step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.flow .step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #14b981, #0a7a4e); color: #fff;
  font-size: 18px; font-weight: 800; margin: 0 auto 14px;
  box-shadow: 0 8px 18px -6px rgba(15, 157, 99, .6), 0 0 0 6px #fff;
}
.flow .step h3 { margin: 0 0 8px; font-size: 16px; }
.flow .step p { margin: 0; font-size: 13px; color: var(--ink-2); }
.flow .step code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; font-size: 12px; font-family: Consolas, monospace; color: var(--brand-deep); }

/* ── 表格 / 代码 ──────────────────────────────── */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: none; }
.tbl th { background: var(--bg-soft); font-weight: 700; width: 150px; color: var(--ink); }
code, .mono { font-family: Consolas, "Courier New", monospace; }
p code, li code, td code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; font-size: 13px; color: var(--brand-deep); }

/* ── FAQ ──────────────────────────────────────── */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer; padding: 18px 24px; font-weight: 700; font-size: 15.5px; list-style: none;
  display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q {
  flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-lite);
  color: var(--brand-deep); display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.faq summary .arrow { margin-left: auto; color: var(--ink-3); transition: transform .25s; font-size: 13px; }
.faq details[open] summary .arrow { transform: rotate(90deg); color: var(--brand); }
.faq .a { padding: 0 24px 20px 62px; font-size: 14px; color: var(--ink-2); }
.faq .a::before { content: "A"; color: var(--gold); font-weight: 800; margin-right: 8px; }

/* ── CTA 大横幅 ───────────────────────────────── */
.cta {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(53, 224, 158, .3), transparent 65%),
    linear-gradient(140deg, #0a5a3c, #053424);
  border-radius: 24px; padding: 72px 40px; margin: 0 28px 96px;
}
.cta h2 { font-size: 32px; margin: 0 0 14px; font-weight: 800; }
.cta p { color: #cdeeda; margin: 0 0 32px; font-size: 16px; }
.cta .hero-meta { justify-content: center; margin-top: 30px; }

/* ── 文档页 ───────────────────────────────────── */
.doc { display: grid; grid-template-columns: 230px 1fr; gap: 36px; padding: 110px 0 70px; align-items: start; }
.doc nav { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px; font-size: 14px; box-shadow: var(--shadow-md); }
.doc nav b { display: block; font-size: 12px; color: var(--ink-3); letter-spacing: 1.5px; margin: 12px 8px 6px; }
.doc nav b:first-child { margin-top: 0; }
.doc nav a { display: block; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; }
.doc nav a:hover { background: var(--brand-lite); color: var(--brand-deep); text-decoration: none; }
.doc article { min-width: 0; }
.doc article h2 { font-size: 26px; margin: 64px 0 18px; padding-left: 14px; border-left: 5px solid var(--brand); font-weight: 800; }
.doc article h2:first-child { margin-top: 0; }
.doc article h3 { font-size: 18px; margin: 34px 0 12px; }
.doc article p, .doc article li { font-size: 14.5px; color: var(--ink-2); }
.doc article ul, .doc article ol { padding-left: 24px; margin: 10px 0; }
.doc article li { margin: 5px 0; }
.doc article .note { border-left: 4px solid var(--gold); background: #fdf6ea; padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: 13.5px; color: #7c4a03; margin: 16px 0; }
.doc article .tip { border-left: 4px solid var(--brand); background: var(--brand-lite); padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: 13.5px; color: var(--brand-deep); margin: 16px 0; }
.kbd { background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 8px; font-size: 13px; font-family: Consolas, monospace; }
.step-list { counter-reset: sl; list-style: none; padding: 0; }
.step-list li { position: relative; padding: 0 0 0 44px; margin: 14px 0; }
.step-list li::before {
  counter-increment: sl; content: counter(sl);
  position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
}

/* ── 页脚（深色，收束全站） ───────────────────── */
footer { background: linear-gradient(160deg, #0a3c28, #052a1b); color: #9dc4ae; }
footer .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; padding: 40px 28px; font-size: 13px; }
footer .f-logo { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; font-size: 15px; }
footer .f-logo .mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #14b981, #0a6b44); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }
footer a { color: #cdeeda; }
footer .sep { opacity: .35; }

/* ── 滚动渐显 ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── 响应式 ───────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .hero { padding: 140px 0 70px; }
  .hero-shot .monitor { transform: none; }
  .grid.g3 { grid-template-columns: 1fr 1fr; }
  .stats-in { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat + .stat { border-left: none; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow::before { display: none; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .grid.g3, .shots, .flow { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .sec-head h2 { font-size: 24px; }
  section { padding: 64px 0; }
  .doc { grid-template-columns: 1fr; padding-top: 96px; }
  .doc nav { position: static; }
  .cta { padding: 52px 24px; margin-inline: 16px; }
}
