/* 轻单小店官网
   颜色全部取自 logo：品牌蓝 #2957a4（店铺底色）+ 遮阳棚橙 #ff8c1a。
   首屏和下载区铺满品牌蓝，底纹是账本的格线；橙色只给最重要的按钮和配图底。
   整页唯一自己会动的是首屏：联想框里的光标在闪，小票从小票机里吐出来。 */

:root {
  --brand: #2957a4;
  --brand-deep: #1f4688;
  --brand-ink: #183669;
  --brand-tint: #eaf0fb;
  --sun: #ff8c1a;
  --sun-deep: #e07410;
  --sun-tint: #fff1e3;
  --ink: #1c2433;
  --sub: #556074;
  --faint: #8a93a3;
  --line: #e1e6ee;
  --paper: #ffffff;
  --due: #d9480f;

  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;

  --wrap: 1200px;
  --gutter: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}
/* height:auto 必须有：<img> 写了 width/height 属性时，max-width 把宽压窄、高还按属性值走，图就被拉长 */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
/* app.js 靠 hidden 属性按 config 隐藏卡片/按钮；不加这条会被 .way、.btn 的 display 盖掉 */
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

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

/* 账本格线底纹：首屏和下载区共用 */
.ledger {
  background-color: var(--brand);
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 12px; border: 2px solid transparent;
  font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 0 var(--sun-deep); }
.btn-sun:hover { background: #ffab5e; }
.btn-line { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: var(--paper); }
.btn-ghost:hover { background: var(--brand-tint); }

/* 地址还没配：按钮退成灰底「即将上线」，不可点 */
.btn.is-soon,
.btn.is-soon:hover {
  background: #f1f3f7; color: var(--faint);
  border-color: transparent; box-shadow: none;
  cursor: default; transform: none;
}

/* ── 顶栏 ── */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--sub); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-dl {
  color: var(--ink); font-weight: 700;
  background: var(--sun); padding: 6px 16px; border-radius: 999px;
}
.nav-links .nav-dl:hover { background: #ffab5e; }

/* ── 首屏 ── */
.hero { color: #fff; overflow: hidden; }
/* 上下两层：上面是文字（标题左、说明和按钮右），下面整宽摆三台设备 */
.hero-in { padding-top: 72px; padding-bottom: 32px; }
.hero-text {
  display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 64px;
  align-items: end;
}
.hero-kicker { grid-column: 1 / -1; }
.hero-text h1 { grid-column: 1; grid-row: 2 / 4; align-self: end; }
.hero-text .lead, .hero-text .hero-actions { grid-column: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.hero h1 { margin-top: 14px; font-size: clamp(36px, 4.6vw, 58px); font-weight: 900; letter-spacing: .01em; line-height: 1.2; }
.lead { margin-top: 14px; max-width: 30em; font-size: 18px; color: rgba(255, 255, 255, .86); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; }

/* 事实条：贴在首屏底部 */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding-bottom: 40px;
}
.facts li {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; font-size: 15px;
}
.facts li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231c2433' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* 舞台：电脑窗口 + 小票机 */
.stage { --w: min(760px, 70%); position: relative; margin-top: 64px; padding-bottom: 28px; }
.stage .win { width: var(--w); margin: 0 auto; }
.win {
  background: var(--paper); color: var(--ink);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(8, 20, 48, .55);
  font-size: 13px; line-height: 1.5;
}
.win-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f3f5f9; border-bottom: 1px solid var(--line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d5dae3; }
.win-bar i:first-child { background: #ff6159; } .win-bar i:nth-child(2) { background: #ffbd2e; } .win-bar i:nth-child(3) { background: #28c941; }
.win-bar span { margin-left: 10px; color: var(--faint); font-size: 12px; }
.win-body { display: grid; grid-template-columns: 76px 1fr; min-height: 330px; }
.win-side { background: var(--brand-ink); padding: 12px 8px; }
.win-side li { color: rgba(255, 255, 255, .65); padding: 7px 10px; border-radius: 8px; margin-bottom: 4px; }
.win-side li.on { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; }
.win-main { position: relative; padding: 14px 16px 12px; display: flex; flex-direction: column; }
.win-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.field { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--sub); }
.field b { color: var(--ink); }
.tag-paid { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #e7f6ec; color: #1f8a4c; font-weight: 600; }
.tbl { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1fr 52px 64px 70px; gap: 8px; padding: 7px 10px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tr span:not(:first-child) { text-align: right; }
.tr span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th { border-top: 0; background: #f6f8fb; color: var(--faint); }
.tr:nth-child(odd):not(.th) { background: #fafbfd; }
.tr-typing { background: var(--brand-tint) !important; box-shadow: inset 2px 0 0 var(--brand); }
.tr-typing em { font-style: normal; font-weight: 700; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.suggest {
  position: absolute; left: 16px; top: 222px; width: 250px; z-index: 2;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 28px -10px rgba(28, 36, 51, .3); padding: 4px;
}
.sg { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--sub); }
.sg.on { background: var(--brand); color: #fff; }
.sg-hint { padding: 0 6px; border-radius: 4px; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 700; }
.win-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; }
.win-foot > span:first-child { margin-right: auto; color: var(--sub); }
.win-foot b { color: var(--ink); font-size: 16px; }
.wbtn { padding: 5px 16px; border-radius: 8px; background: var(--brand-tint); color: var(--brand); font-weight: 700; }
.wbtn-main { background: var(--brand); color: #fff; }

/* 小票机压在窗口右下角，小票从机器顶上吐出来 */
.printer { position: absolute; right: max(0px, calc((100% - var(--w)) / 2 - 150px)); bottom: 28px; width: 200px; }
.printer-top {
  position: relative; z-index: 2;
  height: 26px; border-radius: 10px 10px 14px 14px;
  background: #2b3445; box-shadow: inset 0 -7px 0 #1b2230, 0 16px 30px -10px rgba(8, 20, 48, .6);
}
.receipt {
  position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 16px;
  padding: 16px 14px 18px;
  background: var(--paper); color: #262c38;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.65;
  box-shadow: 0 10px 24px -10px rgba(8, 20, 48, .45);
  animation: print 2.2s steps(22, end) .5s both;
}
/* 撕纸的锯齿边（在上沿，因为小票是往上吐的） */
.receipt::before {
  content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px;
  background:
    linear-gradient(45deg, var(--paper) 50%, transparent 50%) 0 0 / 12px 9px repeat-x,
    linear-gradient(-45deg, var(--paper) 50%, transparent 50%) 0 0 / 12px 9px repeat-x;
}
@keyframes print {
  from { clip-path: inset(100% -40px -40px -40px); transform: translateY(60%); }
  to   { clip-path: inset(-20px -40px -40px -40px); transform: translateY(0); }
}
.r-shop { text-align: center; font-family: var(--sans); font-weight: 800; font-size: 14px; }
.r-sub { text-align: center; color: #6b7280; margin-bottom: 6px; font-family: var(--sans); }
.r-line, .r-item, .r-total { display: flex; justify-content: space-between; gap: 6px; }
.r-line span:first-child, .r-item span:first-child, .r-total span:first-child { font-family: var(--sans); }
.r-item span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-rule { border-top: 1.5px dashed #b8bfcc; margin: 7px 0; }
.r-total { font-size: 15px; font-weight: 800; }
.r-foot { text-align: center; margin-top: 8px; font-family: var(--sans); color: #6b7280; }

/* 图片缺失时的占位（小程序码等，见 app.js） */
.shot-missing { display: none; }
figure.is-missing img { display: none; }
figure.is-missing .shot-missing {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; color: var(--faint); font-size: 15px;
  background: repeating-linear-gradient(45deg, #f3f5f9 0 12px, var(--paper) 12px 24px);
}

/* ── 通用区块 ── */
section h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; }
.section-lead { margin-top: 12px; max-width: 36em; color: var(--sub); font-size: 18px; }
#version { margin-left: .5em; opacity: .75; }

/* ── 功能：左右交错，每条配一张小图 ── */
.features { padding: 104px 0 96px; }
.feat {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center;
  margin-top: 72px;
}
.feat-flip .feat-text { order: 2; }
.feat-text h3 { font-size: 26px; font-weight: 800; }
.feat-text p { margin-top: 14px; font-size: 17px; max-width: 28em; }
.feat-text .feat-more { margin-top: 8px; color: var(--sub); font-size: 16px; }
.feat-also { margin-top: 80px; padding: 20px 24px; border-radius: 12px; background: #f6f8fb; color: var(--sub); }

.feat-pic {
  position: relative; min-height: 280px; border-radius: 20px; padding: 36px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  font-size: 14px;
}
.pic-blue { background: var(--brand-tint); }
.pic-sun { background: var(--sun-tint); }

/* 配图：联想框 */
.mock-input {
  align-self: flex-start; min-width: 240px;
  padding: 10px 14px; border-radius: 10px; background: var(--paper);
  border: 2px solid var(--brand); font-weight: 700; font-size: 16px;
}
.mock-list { max-width: 360px; background: var(--paper); border-radius: 12px; padding: 6px; box-shadow: 0 14px 30px -16px rgba(28, 36, 51, .35); }
.mock-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--sub); }
.mock-list div.on { background: var(--brand); color: #fff; font-weight: 600; }
.bubble { padding: 0 8px; border-radius: 6px; background: var(--sun); color: var(--ink); font-weight: 700; font-size: 13px; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--sub); }
.keys span { margin-right: 10px; }
kbd {
  font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink);
  padding: 3px 10px; border-radius: 7px; background: var(--paper);
  border: 1px solid #c9d3e3; box-shadow: 0 2px 0 #c9d3e3;
}

/* 配图：小票机 */
.mini-printer { align-self: center; width: 220px; display: flex; flex-direction: column-reverse; }
.mp-body { position: relative; height: 70px; border-radius: 14px; background: #2b3445; box-shadow: inset 0 -10px 0 #1b2230; }
.mp-led { position: absolute; right: 16px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.mp-paper {
  margin: 0 22px -8px; padding: 14px 14px 18px;
  background: var(--paper); display: flex; flex-direction: column; gap: 7px;
  box-shadow: 0 -6px 18px -10px rgba(28, 36, 51, .25);
}
.mp-paper b { text-align: center; font-size: 13px; }
.mp-paper span { height: 6px; border-radius: 3px; background: #e3e7ee; }
.mp-paper span.short { width: 60%; }
.mp-paper em { font-style: normal; font-weight: 800; text-align: right; border-top: 1.5px dashed #c3c9d4; padding-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips span { padding: 4px 12px; border-radius: 999px; background: var(--paper); color: var(--sub); font-weight: 600; font-size: 13px; }
.chips-filter { justify-content: flex-start; }
.chips-filter span.on { background: var(--brand); color: #fff; }

/* 配图：账单 */
.bills { background: var(--paper); border-radius: 12px; padding: 4px 16px; }
.bills div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.bills div:first-child { border-top: 0; }
.due { color: var(--due); }
.sum { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 12px 16px; border-radius: 12px; background: var(--brand); color: rgba(255, 255, 255, .85); }
.sum b { color: #fff; font-size: 16px; }
.sum b.due { color: #ffc48c; }

/* 手机（小程序）：首屏压在电脑窗口左下角；功能区报价表配图里单独立着 */
.phone {
  width: 172px; padding: 10px 10px 14px;
  background: var(--paper); color: var(--ink);
  border: 7px solid #2b3445; border-radius: 26px;
  font-size: 11.5px; line-height: 1.45;
  box-shadow: 0 24px 44px -16px rgba(8, 20, 48, .55);
}
.ph-notch { width: 46px; height: 5px; margin: 0 auto 8px; border-radius: 3px; background: #2b3445; }
.ph-title { font-weight: 800; font-size: 13px; text-align: center; margin-bottom: 8px; }
.ph-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px; margin-bottom: 6px; border-radius: 10px; background: var(--brand); color: rgba(255, 255, 255, .8); }
.ph-sum b { color: #fff; font-size: 14px; }
.ph-bill { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.ph-bill > div { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.ph-bill > div + div { color: var(--faint); }
.ph-bill > div + div b { color: var(--ink); }
.ph-bill.is-new { margin: 0 -4px; padding: 7px 8px; border-radius: 8px; border-bottom: 0; background: var(--sun-tint); }
.ph-from { padding: 0 6px; border-radius: 4px; background: var(--sun); color: var(--ink); font-size: 10.5px; font-weight: 700; }
/* 手机压住窗口左缘约 40px（只盖侧栏），小票机压住右缘 */
.phone-hero { position: absolute; z-index: 3; bottom: 0; left: max(0px, calc((100% - var(--w)) / 2 - 124px)); width: 160px; }

.phone-flat { align-self: center; width: 210px; font-size: 12.5px; }
.ph-tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.ph-tabs span { padding: 2px 9px; border-radius: 999px; background: #f1f3f7; color: var(--sub); }
.ph-tabs span.on { background: var(--brand); color: #fff; }
.ph-row { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.ph-row b { color: var(--due); }
.ph-share { margin-top: 12px; padding: 8px; border-radius: 10px; background: #07c160; color: #fff; text-align: center; font-weight: 700; }

/* 配图：店员 */
.staff { background: var(--paper); border-radius: 12px; padding: 6px 16px; max-width: 380px; }
.staff div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.staff div:first-child { border-top: 0; }
.staff b { flex: 1; }
.av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); font-weight: 800; }
.role { padding: 2px 10px; border-radius: 999px; background: var(--sun-tint); color: #a2540c; font-size: 13px; font-weight: 700; }

/* ── 怎么用：每个端一张卡 ── */
.ways { padding: 96px 0 104px; color: #fff; }
.ways .section-lead { color: rgba(255, 255, 255, .85); }
.ways-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; margin-top: 40px; align-items: start; }
.ways-grid.has-app { grid-template-columns: 1fr 1.4fr 1fr; }
.way {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); border-radius: 20px; padding: 32px;
  box-shadow: 0 20px 40px -24px rgba(8, 20, 48, .6);
}
/* 从小程序链接（#desktop）或首屏「下载电脑版」跳来：避开吸顶栏，并用橙框标出 */
.way { scroll-margin-top: 96px; }
.way:target { box-shadow: 0 0 0 4px var(--sun), 0 20px 40px -24px rgba(8, 20, 48, .6); }
.way h3 { font-size: 24px; font-weight: 800; }
.way-desc { margin-top: 8px; color: var(--sub); }
.way-note { margin-top: 18px; color: var(--sub); font-size: 14px; }
.way-note + .way-note { margin-top: 6px; }
.way-badge {
  position: absolute; top: -14px; left: 28px;
  padding: 2px 12px; border-radius: 999px; background: var(--sun); color: var(--ink);
  font-size: 13px; font-weight: 800;
}
.way-mini { align-items: flex-start; }
.mini-code { margin: 22px 0 0; width: 200px; padding: 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.os-row { margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: #f6f8fb; }
.os-row.is-yours { background: var(--sun-tint); box-shadow: inset 0 0 0 2px var(--sun); }
.os-name { display: flex; align-items: center; gap: 12px; }
.os-name > div { display: flex; flex-direction: column; line-height: 1.4; }
.os-name b { font-size: 18px; }
.os-yours { display: none; margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 800; }
.os-row.is-yours .os-yours { display: inline-block; }
.dl-meta { color: var(--faint); font-size: 13px; }
.dl-btns { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.dl-btns .btn { min-height: 46px; font-size: 16px; }
.os-old { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; }

/* ── 安装帮助 ── */
.help { padding: 88px 0 104px; }
.help h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; }
.back { display: inline-block; margin-bottom: 18px; font-size: 15px; text-decoration: none; }
.help-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.help-why { position: sticky; top: 96px; }
.help-why p { margin-top: 16px; color: var(--sub); }
.help-why p:first-of-type { margin-top: 20px; }
.help-contact { padding: 14px 18px; border-radius: 12px; background: var(--sun-tint); color: var(--ink) !important; }
.help-steps { display: flex; flex-direction: column; gap: 16px; }
.help-os { border-radius: 16px; background: #f6f8fb; padding: 0 28px; }
.help-os summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 20px; font-weight: 800;
}
.help-os summary::-webkit-details-marker { display: none; }
.help-os summary::after { content: "展开"; font-size: 14px; font-weight: 600; color: var(--brand); }
.help-os[open] summary::after { content: "收起"; }
.steps { margin: 0; padding: 0 0 12px; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 0 0 20px 46px; counter-increment: s; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps b { display: block; }
.steps span { display: block; color: var(--sub); font-size: 15px; }
.steps b.inline { display: inline; color: var(--ink); }
.steps .step-btn { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0 2px; }
.steps .step-btn .btn { min-height: 44px; padding: 0 20px; font-size: 16px; }
.steps .step-btn em { font-style: normal; font-size: 14px; }
.cmd {
  display: block; margin: 8px 0; padding: 10px 14px;
  background: #1e2533; color: #e6ebf3; border-radius: 8px;
  font-family: var(--mono); font-size: 13.5px;
  overflow-x: auto; white-space: nowrap; user-select: all;
}

/* ── 页脚 ── */
.footer { background: var(--brand-ink); color: rgba(255, 255, 255, .7); font-size: 14px; padding: 52px 0 36px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-in { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-name { color: #fff; font-weight: 800; font-size: 17px; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols h4 { color: #fff; font-size: 14px; margin-bottom: 8px; }
.footer-cols p { margin-top: 4px; }
.link-btn {
  margin-left: 6px; padding: 0; border: 0; background: none;
  color: var(--sun); font: inherit; font-weight: 600; cursor: pointer;
}
.footer-beian { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-beian a { color: rgba(255, 255, 255, .7); }

/* ── 窄屏 ── */
@media (max-width: 1000px) {
  .hero-in { padding-top: 56px; }
  .hero-text { grid-template-columns: 1fr; }
  .hero-text h1, .hero-text .lead, .hero-text .hero-actions { grid-column: 1; grid-row: auto; }
  .lead { margin-top: 20px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .feat { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
  .feat-flip .feat-text { order: 0; }
  .ways-grid, .ways-grid.has-app, .help-in { grid-template-columns: 1fr; }
  .help-why { position: static; }
  .help-in { gap: 32px; }
  .footer-in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-dl) { display: none; }
  .lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stage { --w: 100%; margin-top: 40px; padding-bottom: 0; }
  .win-body { grid-template-columns: 1fr; min-height: 300px; }
  .win-side { display: none; }
  .tr { grid-template-columns: 1fr 44px 58px; }
  .tr span:nth-child(3) { display: none; }
  .suggest { width: 220px; }
  .printer, .phone-hero { display: none; }
  .facts { grid-template-columns: 1fr; }
  .features, .help { padding: 72px 0; }
  .feat-pic { padding: 24px; min-height: 0; }
  .ways { padding: 64px 0 72px; }
  .way { padding: 24px; }
  .os-row { padding: 16px; }
  .help-os { padding: 0 18px; }
  .footer-cols { gap: 36px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .receipt, .caret { animation: none; }
}
