/* 组件：外框 frame、导航、按钮、卡片 board、胶囊标签 eyebrow、勾选标签 tag、承诺格 stats、流程路径 route、页脚，
   以及表单、提示、状态胶囊、表格、时间线、留言、常见问题、价格表、空状态。全部来自 design-final 的同一套语言。 */

/* ---------- 线条图标（_macros.html icon()）：尺寸写在 width / height 上（20 或 24），颜色跟随文字 ---------- */
.ic { display: block; flex: none; }

/* ---------- 顶部提示条 ---------- */
.dev-banner { background: var(--ink); color: var(--page); font-size: var(--fs-1); text-align: center; padding: var(--s-1) var(--s-2); }
.announcement { margin: var(--frame-gap) var(--frame-gap) 0; padding: var(--s-1h) var(--s-2); border-radius: var(--r-sm); background: var(--surface);
  color: var(--ink); font-size: var(--fs-2); text-align: center; box-shadow: 0 0 0 1px var(--frame-line); }

/* ---------- 外框 ---------- */
.frame { position: relative; margin: var(--frame-gap); background: var(--page); border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--frame-line); isolation: isolate; }   /* 外框和页面底同一个颜色，只靠一道细线分出边界：首屏和下面的页面衔接自然 */
.frame-hero { min-height: calc(100svh - 2 * var(--frame-gap)); display: flex; flex-direction: column; overflow: hidden; }
/* 超宽屏：首屏外框最宽 1480，居中，两侧露出页面底色 */
.frame-hero { width: min(100% - 2 * var(--frame-gap), 1480px); margin-inline: auto; }
.announcement + .frame { margin-top: var(--s-1); }

/* ---------- 导航 ---------- */
.nav { position: relative; z-index: 5; height: 64px; flex: none; display: flex; align-items: center; gap: var(--s-1);
  padding-inline: max(var(--wrap-pad) - var(--frame-gap), (100% - var(--wrap)) / 2); }   /* 品牌和按钮对齐内容网格（与下面的卡片、页脚同一条边） */
.brand { position: relative; display: inline-flex; align-items: center; gap: var(--s-1); min-width: 0; font-weight: 600; font-size: var(--fs-4); line-height: 1; color: var(--ink); letter-spacing: -0.01em; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
/* Logo：小纸人的脸（圆角纸页 + 折角 + 两个眼睛 + 微笑），SVG，见 _macros.html logo()。墨色版用在页头页脚，橙色版（.logo-o）是 favicon 那一版 */
.logo { width: 24px; height: 24px; display: block; flex: none; }
.logo .lg-page { fill: var(--logo-page); }
.logo .lg-fold { fill: var(--logo-fold); }
.logo .lg-eye { fill: var(--logo-face); }
.logo .lg-smile { fill: none; stroke: var(--logo-face); }
.logo-o .lg-page { fill: var(--logo-page-o); }
.logo-o .lg-fold { fill: var(--logo-fold-o); }
.links { display: flex; gap: var(--s-4); margin-left: var(--s-8); font-size: var(--fs-2b); color: var(--text); }
.links a { position: relative; padding: var(--s-1) 0; white-space: nowrap; transition: color var(--dur-ui) var(--ease); }
.links a:hover, .links a[aria-current] { color: var(--ink); }
.links a:active { color: var(--accent-text); }
.links a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--ink); }
.actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-1); flex: none; }
.dot-count { display: inline-flex; align-items: center; justify-content: center; min-width: var(--dot); height: var(--dot); padding: 0 var(--s-h); margin-left: var(--s-1);
  border-radius: var(--r-pill); background: var(--accent-btn); color: var(--on-accent); font-size: var(--fs-1); font-weight: 600; line-height: 1; }

/* 菜单：纯 HTML（details），没有 JS 也能用。手机上放全部链接；电脑上登录后放“消息 / 账号设置 / 退出” */
.menu { position: relative; }
.menu > summary { list-style: none; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; position: relative; transition: background-color var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--press); }
.menu > summary:active { transform: scale(.96); }
/* 菜单图标：线条图标 menu / close（20px），打开时换成 close */
.menu > summary .ic { grid-area: 1 / 1; }
.menu .ic-close, .menu[open] .ic-menu { display: none; }
.menu[open] .ic-close { display: block; }
.menu-dot { position: absolute; right: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-btn); box-shadow: 0 0 0 2px var(--surface); }
.menu-panel { position: absolute; right: 0; top: calc(100% + var(--s-1)); z-index: 20; min-width: 220px; padding: var(--s-1); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--sh-3); }
.menu-panel a, .menu-panel button { display: flex; align-items: center; width: 100%; min-height: var(--tap); padding: 0 var(--s-2); border-radius: var(--r-sm);
  font-size: var(--fs-2b); color: var(--text); text-align: left; transition: background-color var(--dur-ui) var(--ease); }
.menu-panel a:hover, .menu-panel button:hover, .menu-panel a[aria-current] { background: var(--surface-2); color: var(--ink); }
.menu-panel a:active, .menu-panel button:active { background: var(--press); }
.menu-panel hr { margin: var(--s-1); border-color: var(--line-soft); }
.menu-panel form { margin: 0; }

/* ---------- 按钮：悬停加深 / 按下轻微缩小 / 键盘焦点环 / 禁用变淡 / 提交中（app.js 加 .is-loading 并禁用） ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); white-space: nowrap; font-weight: 500; font-size: var(--fs-2b);
  height: var(--tap); padding: 0 var(--s-3); border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); line-height: 1; text-decoration: none;
  transition: background-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease), opacity var(--dur-ui) var(--ease); }
.btn:hover { background: var(--press); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }
.btn.is-loading { opacity: .72; cursor: progress; pointer-events: none; }
.btn-sm { height: 36px; padding: 0 var(--s-2); font-size: var(--fs-2); }
.btn-lg { height: 48px; padding: 0 var(--s-3); font-size: var(--fs-3); }
/* 次按钮：卡片色底 + 一道细线；主按钮：实心橙，没有阴影 */
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--press); }
.btn-primary { background: var(--accent-btn); color: var(--on-accent); box-shadow: none; }
.btn-primary:hover, .btn-primary:active { background: var(--accent-btn-hover); }
.btn-quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-quiet:hover { background: var(--surface-2); }
.btn-ink { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.btn-ink:hover { background: var(--doc-ink); }
.btn-danger { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-line); }
.btn-danger:hover { background: var(--danger); color: var(--on-accent); }
.btn-danger:active { background: var(--danger-hover); color: var(--on-accent); }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-1); align-items: center; }
.btn-row-center { justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }

/* ---------- 小标签：首屏 eyebrow（纯文字，不再是胶囊）/ 区块 kicker ——一律次级棕，不用橙 ---------- */
.eyebrow { --eb-h: 32px; display: inline-flex; align-items: center; height: var(--eb-h); font-size: var(--fs-2); color: var(--muted); line-height: 1; white-space: nowrap; letter-spacing: .02em; }
.eyebrow b { font-weight: 600; color: var(--ink); }
.eyebrow span::before { content: ""; display: inline-block; width: 1px; height: 12px; margin: 0 var(--s-1h); vertical-align: -1px; background: var(--line-strong); }
.kicker { font-size: var(--fs-2); font-weight: 600; color: var(--muted); letter-spacing: .02em; }

/* ---------- 内页页头（在外框里，导航下面）：紧凑，只有标题和一句说明 ---------- */
.phead { position: relative; padding: var(--s-3) var(--s-6) var(--s-5); display: flex; flex-direction: column; align-items: center; text-align: center; }
.phead h1 { font-size: var(--fs-6b); line-height: var(--lh-display); letter-spacing: -0.02em; text-wrap: balance; }   /* balance：不让最后一行只剩一两个字 */
.phead .lede { margin-top: var(--s-1); max-width: 560px; font-size: var(--fs-3); line-height: var(--lh-body); color: var(--text); text-wrap: balance; }
.phead .btn-row { margin-top: var(--s-2); justify-content: center; }
.phead-sm { padding-bottom: var(--s-4); }
.phead-sm h1 { font-size: var(--fs-6); }
.phead .back { position: absolute; left: max(var(--wrap-pad) - var(--frame-gap), (100% - var(--wrap)) / 2); top: var(--s-3); font-size: var(--fs-2); color: var(--muted);
  transition: color var(--dur-ui) var(--ease); }
.phead .back:hover { color: var(--ink); }
.phead .back:active { color: var(--accent-text); }
.phead .back { display: inline-flex; align-items: center; gap: var(--s-h); }
.phead .back .ic { width: var(--icon); height: var(--icon); }

/* ---------- 卡片 board ---------- */
.board { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-2); overflow: hidden; }
.board-head { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; padding: var(--s-4) var(--s-5) var(--s-3); }
.board-head h2, .board-head h3 { font-size: var(--fs-5); letter-spacing: -0.01em; }
.board-head .aside { margin-left: auto; font-size: var(--fs-2); color: var(--muted); }
.board-body { padding: var(--s-4) var(--s-5); }
.board-head + .board-body { padding-top: 0; }
.board-rule { border-top: 1px solid var(--line-soft); }
.board-foot { padding: var(--s-3) var(--s-5); background: var(--surface-2); border-top: 1px solid var(--line-soft); }
.board-note { font-size: var(--fs-2); color: var(--muted); }
.board-flat { box-shadow: var(--sh-1); }
.board-accent { box-shadow: var(--sh-2), inset 3px 0 0 var(--ink); }   /* 需要你处理的卡片：左边一道墨色 */
.board-title { font-size: var(--fs-4); margin-bottom: var(--s-2); }

/* ---------- 承诺格 stats：每格都是“大字值 + 单位 + 一行说明”。上排（价格、质量、售后）更大、卡片底；下排（时效、隐私、沟通）稍小、浅底 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats li { padding: var(--s-3) var(--s-5); background: var(--surface-2); border-top: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
.stats li:nth-child(3n) { border-right: 0; }
.stats li.is-major { padding: var(--s-5) var(--s-5) var(--s-4); background: var(--surface); border-top: 0; }
.stats b { display: flex; align-items: baseline; gap: var(--s-h); font-weight: 600; font-size: var(--fs-6b); line-height: 1; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.stats b small { font-size: var(--fs-3); letter-spacing: 0; font-weight: 600; }
.stats .is-major b { font-size: var(--fs-8); }
.stats .is-major b small { font-size: var(--fs-5); }
.stats span { display: block; margin-top: var(--s-1h); font-size: var(--fs-2); line-height: var(--lh-body); color: var(--text); }
.stats .is-major span { font-size: var(--fs-2b); }

/* ---------- 徽章只有三种：① 勾选标签 tag（浅底胶囊 + 墨色勾）② 编号圆点（route-line .no / .steps .no / .marks / .pin / .flow-list .no，同一尺寸 --dot）
   ③ 状态胶囊 badge（订单状态）。见 DESIGN.md「徽章」 ---------- */
/* ---------- ① 勾选标签 tag（静态版：清单、服务范围） ---------- */
.tag { display: inline-flex; align-items: center; gap: var(--s-1); height: var(--tag-h); padding: 0 var(--s-1h) 0 calc((var(--tag-h) - var(--ck)) / 2); border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--sh-1); font-size: var(--fs-1); font-weight: 500; color: var(--ink); white-space: nowrap; }
.ck { width: var(--ck); height: var(--ck); border-radius: 50%; position: relative; flex: none; box-shadow: inset 0 0 0 1.25px var(--ck-ring); }
.ck::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); opacity: var(--on, 0); transform: scale(calc(.6 + .4 * var(--on, 0))); }
.ck::after { content: ""; position: absolute; left: 36%; top: 19%; width: 26%; height: 48%; opacity: var(--on, 0);
  border: solid var(--on-ink); border-width: 0 1.7px 1.7px 0; border-radius: 0 0 1px 0; transform: rotate(45deg); }   /* 墨色圆里的白勾：纯 CSS 画 */
.tag .ck, .ck.is-on { --on: 1; }
.tags-row { display: flex; flex-wrap: wrap; gap: var(--s-1); }

/* ---------- ② 编号圆点 + 流程路径 route（静态版：订单进度、下单步骤条） ----------
   编号圆点全站同一尺寸（--dot）、同一颜色规则：没到 = 卡片底 + 细圈 + 次级棕数字；做完 / 标注 = 墨色实心 + 白字（做完的显示勾）；
   进行中（当前这一步）= 橙色实心 + 白字。节点之间：走过的实线，没走的虚线。 */
.route-line { --n: 6; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; counter-reset: rt; }
.route-line li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--s-h); counter-increment: rt; }
.route-line li::before { content: ""; position: absolute; top: calc(var(--dot) / 2); left: -50%; right: 50%; height: 0; border-top: 1.25px dashed var(--rail); z-index: 0; }
.route-line li:first-child::before { display: none; }
.route-line li.is-done::before, .route-line li.is-current::before { border-top: 1.5px solid var(--run); }
.route-line .no { position: relative; z-index: 1; width: var(--dot); height: var(--dot); border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 1.25px var(--node-line); font-size: var(--fs-0); font-weight: 600; color: var(--muted); font-style: normal; line-height: 1; }
.route-line .no::before { content: counter(rt); }
.route-line li.is-done .no { background: var(--ink); box-shadow: none; color: var(--on-ink); }
.route-line li.is-done .no::before { content: ""; width: 5px; height: 9px; translate: 0 -1px; border: solid var(--on-ink); border-width: 0 1.75px 1.75px 0; transform: rotate(45deg); }
.route-line li.is-current .no { background: var(--accent-btn); color: var(--on-accent); box-shadow: none; }
.route-line b { margin-top: var(--s-1h); font-size: var(--fs-2); font-weight: 600; color: var(--ink); line-height: var(--lh-head); }
.route-line li:not(.is-done):not(.is-current) b { color: var(--muted); font-weight: 500; }
.route-line span { margin-top: var(--s-h); font-size: var(--fs-1); color: var(--muted); line-height: var(--lh-head); }
.route-line li.is-current span { color: var(--accent-text); font-weight: 500; }
.route-line.is-off li::before { border-top-style: dashed !important; border-top-color: var(--rail) !important; }
.route-line.is-off li.is-current .no { background: var(--ink); color: var(--on-ink); }   /* 已关闭 / 已退款：停住的那一步不再是“进行中”，不用橙 */

/* ---------- 页脚：三栏 + 底栏 ---------- */
.foot { width: min(var(--wrap), calc(100% - 2 * var(--wrap-pad))); margin: var(--s-12) auto 0; padding: var(--s-6) 0 calc(var(--s-4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  font-size: var(--fs-2); color: var(--muted); }
.foot-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); }
.foot .brand { font-size: var(--fs-2b); }
.foot .logo { width: 22px; height: 22px; }
.foot-intro { margin-top: var(--s-1h); max-width: 26em; }
.foot-contact { margin-top: var(--s-2); display: grid; gap: var(--s-h); }
.foot-contact div { display: flex; gap: var(--s-1); }
.foot-contact dd { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.foot-title { margin-bottom: var(--s-1h); font-weight: 600; color: var(--ink); }
.foot-col ul { display: grid; gap: var(--s-1); }
.foot-col a, .foot-links a { position: relative; transition: color var(--dur-ui) var(--ease); }
.foot-col a:hover, .foot-links a:hover { color: var(--ink); }
.foot-col a:active, .foot-links a:active { color: var(--accent-text); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-3); margin-top: var(--s-5); padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft); font-size: var(--fs-1); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }

/* ---------- 提示 ---------- */
.alert { padding: var(--s-1h) var(--s-2); border-radius: var(--r-sm); font-size: var(--fs-2); line-height: var(--lh-body); background: var(--info-soft); color: var(--info); box-shadow: inset 0 0 0 1px var(--info-line); }
.alert ul { padding-left: var(--s-2); list-style: disc; }
.alert-success { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line); }
.alert-error, .alert-danger { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-line); }
.alert-warning { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.alert-info { background: var(--info-soft); color: var(--info); }
.flash-wrap { margin-top: var(--s-3); }
.flash-wrap .alert { box-shadow: var(--sh-1); }
.note { padding: var(--s-1h) var(--s-2); border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--fs-2); color: var(--text); }
.note b, .note strong { color: var(--ink); }

/* ---------- 表单 ---------- */
.form-field { display: flex; flex-direction: column; gap: var(--s-1); margin-bottom: var(--s-3); }
.form-field > label, .form-label { font-size: var(--fs-2); font-weight: 500; color: var(--ink); }
.required::after { content: " *"; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; height: var(--tap); padding: 0 var(--s-2); border-radius: var(--r-sm); border: 0; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-size: var(--fs-3); line-height: 1.5;
  transition: box-shadow var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease); appearance: none; -webkit-appearance: none; }
textarea { height: auto; min-height: 112px; padding: var(--s-1h) var(--s-2); line-height: var(--lh-body); resize: vertical; }
/* 下拉框：去掉系统样式后，用两道渐变画一个小箭头 */
select { padding-right: var(--s-5); background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
:is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover { box-shadow: inset 0 0 0 1px var(--muted); }
:is(input, select, textarea):focus-visible, :is(input, select, textarea):not([type="checkbox"]):focus-visible:hover { outline: 0; box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px var(--focus-halo); }
/* 出错：浏览器判定填错（:user-invalid，用户动过之后才算）或脚本标记（.is-invalid / aria-invalid） */
:is(input, select, textarea):user-invalid, [aria-invalid="true"], .is-invalid :is(input, select, textarea) { box-shadow: inset 0 0 0 1.5px var(--danger); }
:is(input, select, textarea):user-invalid:focus-visible, [aria-invalid="true"]:focus-visible, .is-invalid :is(input, select, textarea):focus-visible { box-shadow: inset 0 0 0 1.5px var(--danger), 0 0 0 4px var(--danger-soft); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="file"] { font-size: var(--fs-3); color: var(--muted); max-width: 100%; }
.form-hint { font-size: var(--fs-1); color: var(--muted); line-height: var(--lh-body); }
.form-error { font-size: var(--fs-1); line-height: var(--lh-body); color: var(--danger); }
.form-alert { margin-bottom: var(--s-3); }
.check-field { display: flex; align-items: flex-start; gap: var(--s-1h); font-size: var(--fs-2); line-height: var(--lh-body); margin-bottom: var(--s-2); }
.check-field input { flex: none; width: 18px; height: 18px; margin-top: calc((1.75em - 18px) / 2); accent-color: var(--ink); cursor: pointer; }
.check-field label { cursor: pointer; }
.check-field.is-invalid input { outline: 1.5px solid var(--danger); outline-offset: 1px; }
.fieldset { border: 0; }
/* 标题不按浏览器默认“压在边框上”的方式摆：浮动成普通的块，上面的内边距和下面的间距才对称 */
.fieldset legend { float: left; width: 100%; font-size: var(--fs-4); font-weight: 600; color: var(--ink); margin-bottom: var(--s-2); padding: 0; }
.fieldset legend + * { clear: both; }
.or { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); color: var(--muted); font-size: var(--fs-1); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px dashed var(--line-strong); }
/* 上传拖放区：有 JS 时整块可点、可拖；没有 JS 时就是普通文件框 */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-h); text-align: center;
  padding: var(--s-4) var(--s-2); border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1.25px var(--line-strong);
  border: 0; transition: background-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease); }
.dropzone-compact { padding: var(--s-3) var(--s-2); }
.dropzone-icon { width: var(--icon-lg); height: var(--icon-lg); color: var(--ink); margin-bottom: var(--s-h); }
.dropzone-title { font-size: var(--fs-2b); font-weight: 500; color: var(--ink); }
.dropzone-sub { font-size: var(--fs-1); color: var(--muted); }
.dropzone-file { font-size: var(--fs-1); color: var(--ok); font-weight: 500; overflow-wrap: anywhere; }
.js .dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
/* 拖放区：悬停 → 拖入（边框加粗、外圈淡墨）→ 已选文件（绿）→ 出错（红） */
.dropzone:hover { background: var(--surface); box-shadow: inset 0 0 0 1.25px var(--ink); }
.dropzone.is-over { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px var(--focus-halo); }
.dropzone.has-file { box-shadow: inset 0 0 0 1.5px var(--ok); background: var(--ok-soft); }
.dropzone:has(:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px var(--focus-halo); }
.is-invalid .dropzone, .is-invalid .dropzone:hover { background: var(--danger-soft); box-shadow: inset 0 0 0 1.5px var(--danger); }
.is-invalid .dropzone:has(:focus-visible) { background: var(--danger-soft); box-shadow: inset 0 0 0 1.5px var(--danger), 0 0 0 4px var(--danger-soft); }
html:not(.js) .dropzone-icon, html:not(.js) .dropzone-title, html:not(.js) .dropzone-sub { display: none; }

/* ---------- ③ 状态胶囊（订单状态；“新”“加急”也是这一种） ---------- */
.badge { display: inline-flex; align-items: center; gap: var(--s-1); height: 26px; padding: 0 var(--s-1h); border-radius: var(--r-pill); font-size: var(--fs-1); font-weight: 500;
  white-space: nowrap; background: var(--st-closed-bg); color: var(--st-closed-fg); line-height: 1; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending_quote { background: var(--st-quote-bg); color: var(--st-quote-fg); }
.badge-pending_payment { background: var(--st-pay-bg); color: var(--st-pay-fg); }
.badge-pending_confirm { background: var(--st-confirm-bg); color: var(--st-confirm-fg); }
.badge-processing { background: var(--st-process-bg); color: var(--st-process-fg); }
.badge-pending_user_confirm { background: var(--st-user-bg); color: var(--st-user-fg); }
.badge-completed { background: var(--st-done-bg); color: var(--st-done-fg); }
.badge-closed, .badge-refunded { background: var(--st-closed-bg); color: var(--st-closed-fg); }
.badge-danger { background: var(--accent-soft); color: var(--accent-text); }
.badge-plain::before { display: none; }

/* ---------- 键值表 ---------- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-1h) var(--s-3); font-size: var(--fs-2); }
.kv dt { color: var(--muted); }
.kv dd { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { font-size: var(--fs-2); }
.table th, .table td { padding: var(--s-1h) var(--s-2); text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table th { font-weight: 500; color: var(--muted); font-size: var(--fs-1); }
.table tr:last-child td { border-bottom: 0; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: var(--s-3); }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; border-left: 1.25px dashed var(--rail); }
.timeline li { position: relative; padding-bottom: var(--s-2); font-size: var(--fs-2); color: var(--text); }
.timeline li::before { content: ""; position: absolute; left: calc(-1 * var(--s-3)); top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.25px var(--node-line); }
.timeline li:last-child::before { background: var(--ink); box-shadow: none; }
.timeline li:last-child { padding-bottom: 0; }
.tl-time { font-size: var(--fs-1); color: var(--muted); }

/* ---------- 留言 ---------- */
.msg-list { display: flex; flex-direction: column; gap: var(--s-1); margin-bottom: var(--s-3); }
.msg { max-width: 88%; padding: var(--s-1h) var(--s-2); border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--fs-2); }
.msg-user { align-self: flex-end; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.msg-meta { font-size: var(--fs-1); color: var(--muted); margin-bottom: var(--s-h); }

/* ---------- 常见问题 ---------- */
.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-2) var(--s-5); cursor: pointer;
  font-size: var(--fs-3); font-weight: 600; color: var(--ink); transition: background-color var(--dur-ui) var(--ease); }
/* 悬停：卡片底 → 浅底一档（180ms）；按下（含手机点一下）再深一档到交互色，看得出“按到了” */
@media (hover: hover) { .faq-item summary:hover { background: var(--surface-2); } }
.faq-item summary:active { background: var(--press); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { flex: none; width: var(--icon); height: var(--icon); color: var(--muted); transition: transform var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease); }
.faq-item summary:hover .ic { color: var(--ink); }
.faq-item[open] summary .ic { transform: rotate(45deg); }
.faq-a { padding: 0 var(--s-5) var(--s-3); font-size: var(--fs-2b); line-height: var(--lh-body); color: var(--text); }

/* ---------- 价格表 ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tier { padding: var(--s-4) var(--s-5); background: var(--surface-2); border-right: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: var(--s-1); }
.tier:last-child { border-right: 0; }
.tier-name { font-size: var(--fs-2); color: var(--muted); }
.tier-range { font-size: var(--fs-3); font-weight: 600; color: var(--ink); }
.tier-price { font-size: var(--fs-6b); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ---------- 空状态（小纸人点缀） ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s-6) var(--s-3); }
.empty-art { width: calc(var(--m-md) * var(--k, 1)); margin-bottom: var(--s-2); }
/* 小纸人的动作（最终轮，_macros.html 的 mascot(pose=…)）：动作图和坐姿图同一个机位渲的，举起的手、伸出的腿让图变宽 / 变窄；
   --k = 动作图宽 ÷ 坐姿图宽，外框按这个倍数放宽，小纸人本身仍是 --m-* 那一档的大小（和 _macros.html 的 POSE_K 是同一组数） */
.pose-wave { --k: 1.281; }
.pose-loupe { --k: 0.969; }
.pose-hug { --k: 0.819; }
.pose-pencil { --k: 1.148; }
.empty-art img { width: 100%; }
.empty-title { font-size: var(--fs-4); font-weight: 600; color: var(--ink); }
.empty-text { margin-top: var(--s-1); font-size: var(--fs-2); color: var(--muted); }
.empty .btn-row { margin-top: var(--s-3); justify-content: center; }

/* ---------- 订单卡片列表 ---------- */
.order-list { display: grid; gap: var(--s-2); }
.order-card { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-2); align-items: center; padding: var(--s-3) var(--s-4);
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); transition: box-shadow var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease); }
a.order-card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
a.order-card:active { box-shadow: var(--sh-1); transform: scale(.99); }
.order-no { font-family: var(--font-mono); font-size: var(--fs-3); font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.order-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-h) var(--s-2); font-size: var(--fs-1); color: var(--muted); }
.order-price { grid-column: 1 / -1; font-size: var(--fs-2); color: var(--text); }
.order-card.is-unread { box-shadow: var(--sh-1), inset 3px 0 0 var(--ink); }

/* ---------- 文件列表、二维码 ---------- */
.file-list { display: grid; gap: var(--s-1); font-size: var(--fs-2); }
.file-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-h) var(--s-1); padding: var(--s-1h) var(--s-2); border-radius: var(--r-sm); background: var(--surface-2); }
.file-list a { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: .2em;
  transition: color var(--dur-ui) var(--ease); }
.file-list a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.qr { width: 200px; max-width: 100%; padding: var(--s-1); border-radius: var(--r-sm); background: var(--color-qr-bg); box-shadow: var(--sh-1); }

/* ---------- 正文排版（隐私、条款） ---------- */
.prose { font-size: var(--fs-3); line-height: var(--lh-body); color: var(--text); }
.prose section + section { margin-top: var(--s-5); }
.prose h2 { font-size: var(--fs-5); margin-bottom: var(--s-1); scroll-margin-top: var(--s-3); }
.prose p + p { margin-top: var(--s-2); }
.prose strong { color: var(--ink); }
.toc-list { display: grid; gap: 0; font-size: var(--fs-2); counter-reset: tc; }
.toc-list a { display: flex; align-items: center; min-height: 40px; padding: 0 var(--s-1h); border-radius: var(--r-sm); color: var(--text); transition: background-color var(--dur-ui) var(--ease); }
.toc-list a:hover { background: var(--surface-2); color: var(--ink); }
.toc-list a:active { background: var(--surface-2); }

/* ---------- 对比滑块（案例） ---------- */
.compare-stage { position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-h); }
.compare-pane { position: relative; }
.compare-pane img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.compare-tag { position: absolute; left: var(--s-1); top: var(--s-1); z-index: 2; height: 26px; padding: 0 var(--s-1h); display: inline-flex; align-items: center; border-radius: var(--r-pill);
  background: var(--neutral-soft); font-size: var(--fs-1); font-weight: 500; color: var(--neutral); line-height: 1; }   /* 和状态胶囊同一个样子（中性色） */
.compare-handle, .compare-range-wrap { display: none; }
.js .compare-stage { display: block; }
.js .compare-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.js .compare-after .compare-tag { left: auto; right: var(--s-1); }
.js .compare-handle { display: block; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--surface); box-shadow: var(--sh-2); z-index: 3; pointer-events: none; }
.js .compare-range-wrap { display: block; margin-top: var(--s-1); }
.compare-range { width: 100%; accent-color: var(--ink); }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: var(--s-2); margin-top: var(--s-3); }

/* ---------- 断点 ---------- */
@media (max-width: 1080px) {
  .links { gap: var(--s-3); margin-left: var(--s-5); }
}
@media (min-width: 901px) {
  .menu-auto { display: none; }
  .menu .menu-links { display: none; }
}
@media (max-width: 900px) {
  .links { display: none; }
}
@media (max-width: 640px) {
  .nav { height: 60px; padding: 0 var(--s-2); gap: var(--s-1); }
  .brand { font-size: var(--fs-3); }
  .btn-sm { height: 36px; padding: 0 var(--s-1h); font-size: var(--fs-1); }
  .nav .hide-m { display: none; }
  .phead { padding: var(--s-1) var(--s-2) var(--s-4); }
  .phead h1, .phead-sm h1 { font-size: var(--fs-5); }
  .phead .lede { font-size: var(--fs-2b); }
  .phead .back { position: static; align-self: flex-start; display: inline-flex; align-items: center; min-height: var(--tap); }   /* 页头变紧凑后，返回链接自己撑满 44px 高 */
  .board-head { flex-direction: column; gap: var(--s-1); padding: var(--s-3) var(--s-3) var(--s-2); }
  .board-head h2, .board-head h3 { font-size: var(--fs-4); }
  .board-head .aside { margin-left: 0; }
  .board-body { padding: var(--s-3); }
  .board-foot { padding: var(--s-2) var(--s-3); }
  /* 手机：一格一行——左边大字值，右边一行说明 */
  .stats { grid-template-columns: 1fr; }
  .stats li, .stats li.is-major { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: baseline; column-gap: var(--s-2); padding: var(--s-2) var(--s-3); border-right: 0; }
  .stats li.is-major + li.is-major { border-top: 1px solid var(--line-soft); }
  .stats b { font-size: var(--fs-5); }
  .stats b small { font-size: var(--fs-2); }
  .stats .is-major b { font-size: var(--fs-6); }
  .stats .is-major b small { font-size: var(--fs-2b); }
  .stats span, .stats .is-major span { margin-top: 0; font-size: var(--fs-2); text-wrap: balance; }
  .faq-item summary { padding: var(--s-2) var(--s-3); font-size: var(--fs-2b); }
  .faq-a { padding: 0 var(--s-3) var(--s-2); }
  /* 手机上内页正文不小于 15px（桌面 14px 起）：说明框、键值表、表格、时间线、留言、订单卡片、文件列表、目录 */
  .note, .kv, .table, .timeline li, .msg, .order-price, .file-list, .toc-list { font-size: var(--fs-2b); }
  .tiers { grid-template-columns: 1fr 1fr; }   /* 手机上价格档位排成两列，不再一档占满一行 */
  .tier { padding: var(--s-3); }
  .tier:nth-child(2n) { border-right: 0; }
  .tier-price { font-size: var(--fs-6); }
  .order-card { padding: var(--s-2) var(--s-3); }
  .foot { margin-top: var(--s-8); padding-top: var(--s-5); }
  .foot-main { grid-template-columns: 1fr 1fr; row-gap: var(--s-4); }
  .foot-about { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; align-items: flex-start; margin-top: var(--s-4); }
  /* 竖排的进度路径 */
  .route-line { grid-template-columns: 1fr; gap: 0; }
  .route-line li { flex-direction: row; align-items: center; text-align: left; gap: var(--s-h) var(--s-1h); padding: 0 0 var(--s-2); min-height: 44px; flex-wrap: wrap; }
  .route-line li:last-child { padding-bottom: 0; min-height: var(--dot); }
  .route-line li::before { display: none; }
  .route-line li:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--dot) / 2 - .6px); top: var(--dot); bottom: 0; border-left: 1.25px dashed var(--rail); }
  .route-line li.is-done:not(:last-child)::after { border-left: 1.5px solid var(--run); }
  .route-line.is-off li::after { border-left-style: dashed !important; border-left-color: var(--rail) !important; }
  .route-line b { margin-top: 0; }
  .route-line span { margin-top: 0; flex-basis: 100%; padding-left: calc(var(--dot) + var(--s-1h)); }
  .msg { max-width: 100%; }
  /* 成对的按钮（次按钮在左、主按钮在右）：手机上主按钮占满剩下的宽度 */
  .btn-row > .btn-ghost + .btn-primary { flex: 1; }
  /* 最终轮：成对按钮里的次按钮在各页一样宽（原来首页价格区 108、结尾区 96、价格页 108），主按钮占满剩下的；
     下单向导同样：“上一步”和次按钮一样宽，“下一步 / 提交订单”占满剩下的（第一步只有“下一步”，就占满整行） */
  .btn-row > .btn-ghost:has(+ .btn-primary), .wizard-actions > [data-prev] { flex: 0 0 112px; padding: 0; }
  .wizard-actions > span:empty { display: none; }
  .wizard-actions > .btn-primary { flex: 1; }
  /* 订单页卡片里单独一个的提交按钮（付款信息、确认完成、申请修改、发送留言）：手机上和“其他操作”里的按钮一样占满整行 */
  .btn-act { width: 100%; }
}
/* 手机：输入框字号不小于 16px（否则 iPhone 一点就自动放大）；小按钮、菜单、品牌、页脚链接外观不变，用透明的扩大区把可点区域撑到 44×44 */
@media (max-width: 640px) {
  input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], select, textarea { font-size: var(--fs-3); }
  .toc-list a { min-height: var(--tap); }
}
@media (max-width: 640px), (pointer: coarse) {
  .btn-sm::after, .menu > summary::after, .brand::after, .foot-links a::after, .foot-col a::after, .phead .back::after, .order-meta a::after, .seg-btn::after, .file-list a::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, var(--tap)); height: max(100%, var(--tap)); translate: -50% -50%; }
  .foot-links { row-gap: var(--s-3); }
  .foot-col ul { gap: 0; }
  .foot-col a { display: inline-flex; align-items: center; min-height: var(--tap); }   /* 页脚两栏的链接一个挨一个，每个占满 44px 高 */
  .order-meta a, .file-list a { position: relative; }   /* 成品下载链接：文件行上下各有 12px 内边距，透明扩大区撑到 44px 高不会碰到别的东西 */
  /* 勾选框：整行（含上下 12px）都能点，点到就勾选；行里的链接浮在上面照常可点 */
  .check-field { position: relative; }
  .check-field label::before { content: ""; position: absolute; left: calc(-1 * var(--s-2)); right: 0; top: calc(-1 * var(--s-1h)); bottom: calc(-1 * var(--s-1h)); }
  .check-field a, .check-field input { position: relative; z-index: 1; }
}
