/* 有数鸭 H5 · 两端共享 token（DESIGN.md「共享设计 token（2026-10-21）」）。只用下列颜色，不再新增近似色。 */
:root {
  /* 品牌色 10 个，与 miniapp/app.wxss 同值 */
  --paper: #f8f9f4; --white: #fffefa; --ink: #203e36; --muted: #5c6b61; --green: #28594a;
  --mint: #e7eee5; --line: #dce3d8; --yellow: #f5d774; --amber: #78581c; --red: #a23c2e;
  /* 功能色 5 类：边框、禁用底、测试/警示横幅（底+字）、虚线分隔、历史卡底 */
  --border: #84958a; --disabled: #e2e7df; --banner-bg: #f5ecd2; --banner-ink: #5f4b21; --divider: #b4c1b3; --history-bg: #edf2e9;
  /* 形状与字号角色（px；小程序 rpx = px × 2） */
  --radius-card: 12px; --radius-button: 8px; --radius-tag: 4px;
  --fs-caption: 13px; --fs-body: 15px; --fs-button: 15px; --fs-section: 18px; --fs-amount: 20px; --fs-title: 24px;
  --shadow: 0 18px 50px rgb(0 0 0 / 5%);
  --shadow-pop: 0 24px 64px rgb(0 0 0 / 5%), 0 2px 8px rgb(0 0 0 / 4%);
  /* 动效 token（2026-10-22 首页重规划，值同 yp-ui.css）：先给 cubic-bezier 兜底，支持 linear() 的浏览器在下方换成弹簧曲线 */
  --spring-soft: cubic-bezier(.2, .9, .3, 1.03); --spring-bouncy: cubic-bezier(.3, 1.3, .5, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-in: cubic-bezier(.5, 0, .75, 0);
  --t-soft: 600ms; --t-bouncy: 620ms; --t-out: 420ms; --t-exit: 200ms; --t-fast: 160ms;
  --header-h: 72px;
  font-family: "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--fs-body); font-weight: 400; line-height: 1.65; letter-spacing: 0;
  color: var(--ink); background: var(--paper); font-synthesis: none;
  scrollbar-color: var(--divider) var(--paper);
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; overflow-wrap: break-word; }
button, input { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-underline-offset: 4px; }
button, summary, a, input { touch-action: manipulation; }
input { accent-color: var(--green); caret-color: var(--green); }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
small { font-size: var(--fs-caption); }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.container { width: calc(100% - 112px); max-width: 1168px; margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 40; background: var(--yellow); color: var(--ink); padding: 14px; font-size: var(--fs-body); }
.skip-link:focus { top: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; line-height: 1.35; }
p { line-height: 1.65; }

/* 按钮：主 = 深绿满宽 48px；次 = mint 填充绿字；文字按钮 = 绿色常驻下划线 */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: var(--radius-button); font-size: var(--fs-button); font-weight: 500; line-height: 1.4; text-decoration: none; text-align: center; transition: background .18s; }
.button .icon { width: 18px; height: 18px; }
.primary { background: var(--green); color: var(--white); }
.primary:not(:disabled):hover { background: var(--ink); }
.secondary { background: var(--mint); color: var(--green); }
.secondary:not(:disabled):hover { background: var(--line); }
.button:disabled, .button.primary:disabled, .button.secondary:disabled { background: var(--disabled); color: var(--muted); }
.text-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 0; background: none; color: var(--green); font-size: var(--fs-body); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.text-button .icon { width: 16px; height: 16px; }
.text-button:disabled { color: var(--muted); text-decoration: none; }
.danger-button { color: var(--red); }
.icon-button { background: none; padding: 10px; min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: var(--radius-button); color: var(--ink); }
.icon-button:hover { background: var(--line); }

/* 状态框：提示 = mint；警示 = 琥珀横幅；错误 = 红字 + 浅底 */
.notice, .site-notice { background: var(--mint); color: var(--ink); border-left: 4px solid var(--green); border-radius: var(--radius-tag); padding: 12px 16px; font-size: var(--fs-body); line-height: 1.65; margin: 0 0 20px; }
.warning { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--banner-bg); color: var(--banner-ink); border-left: 4px solid var(--amber); border-radius: var(--radius-tag); padding: 12px 16px; font-size: var(--fs-body); line-height: 1.65; margin: 0 0 20px; }
.warning strong { font-weight: 600; }
.warning .text-button { color: var(--banner-ink); min-height: 40px; padding-block: 6px; }
.error { color: var(--red); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius-tag); padding: 12px 16px; font-size: var(--fs-body); line-height: 1.65; margin: 12px 0 0; overflow-wrap: anywhere; }
.test-notice { margin: 0; padding: 8px 20px; text-align: center; font-size: var(--fs-caption); line-height: 1.5; background: var(--banner-bg); color: var(--banner-ink); border-bottom: 1px solid var(--divider); }
.site-notice { margin: 12px auto 0; width: calc(100% - 112px); max-width: 1168px; }

/* 页头：隐私页、导出教程等静态页沿用 .site-header；首页 .app-header 吸顶、高度固定，滚动后只换半透明底、blur 和细线（边框常在，只变色，不改高度） */
.site-header { max-width: 1280px; margin: auto; min-height: 76px; padding: 16px 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-sentinel { height: 1px; margin-bottom: -1px; }
.app-header { position: sticky; top: 0; z-index: 20; height: var(--header-h); background: rgb(248 249 244 / 0%); border-bottom: 1px solid rgb(220 227 216 / 0%); transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out); }
.app-header.is-stuck { background: rgb(248 249 244 / 90%); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom-color: var(--line); }
.header-inner { width: calc(100% - 112px); max-width: 1168px; height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--fs-section); line-height: 1.3; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; border-radius: var(--radius-button); }
.brand-tagline { display: block; font-size: var(--fs-caption); font-weight: 400; color: var(--muted); margin-top: 2px; }
nav { display: flex; gap: 28px; align-items: center; margin-left: auto; }
nav a { font-size: var(--fs-body); font-weight: 500; text-decoration: none; padding: 10px 0; }
nav a:hover { color: var(--green); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions .text-button { white-space: nowrap; }
.nav-button { min-height: 44px; padding: 10px 0; background: none; color: var(--ink); font-size: var(--fs-body); font-weight: 500; white-space: nowrap; transition: color var(--t-fast); }
.nav-button:hover:not(:disabled) { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.nav-button:disabled { color: var(--muted); }
/* 页头按钮：导入卡在视口内时隐藏（占位不变，不引起重排），滚出或离开上传视图时弹出 */
.header-cta { min-height: 44px; padding: 10px 16px; white-space: nowrap; visibility: hidden; opacity: 0; transform: translateY(-6px) scale(.96); pointer-events: none; transition: opacity 180ms var(--ease-out), transform var(--t-bouncy) var(--spring-bouncy), background-color var(--t-fast), visibility 0s linear 180ms; }
.header-cta.is-shown { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity 180ms var(--ease-out), transform var(--t-bouncy) var(--spring-bouncy), background-color var(--t-fast), visibility 0s; }

/* 首页第一屏：hero 三条事实 + 导入卡；锚点区块让出吸顶页头 */
#check, #guide, #pricing, #privacy, #faq, #parents-guide, #history-panel, #earlier-panel { scroll-margin-top: calc(var(--header-h) + 16px); }
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 80px; align-items: center; padding-block: 40px 88px; }
.hero { display: grid; gap: 28px; align-content: center; }
.hero h1 { font-size: clamp(40px, 3.4vw, 48px); line-height: 1.3; margin: 0; word-break: keep-all; }
.hero-description { font-size: var(--fs-body); color: var(--muted); margin: 0; max-width: 26em; }
.hero-description [data-copy="hero-ai"] { white-space: nowrap; }
.hero-facts { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.hero-facts li { display: flex; gap: 14px; align-items: flex-start; }
.fact-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: var(--radius-button); background: var(--mint); color: var(--green); }
.fact-text { display: grid; }
.fact-text strong { font-weight: 500; line-height: 1.6; }
.privacy-badge { display: inline-flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 8px 12px; border-radius: var(--radius-button); background: var(--mint); color: var(--ink); font-size: var(--fs-body); font-weight: 500; line-height: 1.5; }
.privacy-badge .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.demo-hint { font-size: var(--fs-caption); color: var(--muted); margin: -20px 0 0; }
.check-section { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius-card); padding: 24px; box-shadow: 0 8px 32px rgb(0 0 0 / 3%); }
.check-section > h2 { font-size: var(--fs-section); margin: 0; }
.check-section > #free-window { margin: 4px 0 0; }
.dropzone { display: flex; align-items: center; flex-direction: column; justify-content: center; position: relative; min-height: 168px; padding: 16px; border: 1.5px dashed var(--border); border-radius: var(--radius-button); background: var(--paper); gap: 6px; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out); text-align: center; }
.dropzone:hover, .dropzone.dragover { background: var(--mint); border-color: var(--green); }
.dropzone:not(.disabled):active { transform: scale(.99); }
.dropzone:focus-within { outline: 3px solid var(--green); outline-offset: 3px; }
.upload-symbol { width: 36px; height: 36px; display: grid; place-items: center; color: var(--green); }
.upload-symbol .icon { width: 26px; height: 26px; }
.dropzone strong { font-size: var(--fs-body); font-weight: 500; }
.dropzone > span:not(.upload-symbol) { font-size: var(--fs-caption); color: var(--muted); line-height: 1.5; }
.dropzone .select-file { margin-top: 6px; padding: 8px 16px; border-radius: var(--radius-button); background: var(--green); color: var(--white) !important; font-size: var(--fs-button) !important; font-weight: 500; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone.disabled { cursor: not-allowed; background: var(--disabled); }
.dropzone.disabled .select-file { background: var(--border); }
.dropzone.disabled input { cursor: not-allowed; }
.guide-prompt { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 4px; margin: 8px 0 0; }
.guide-prompt .text-button { padding-block: 0; }
/* 选中文件后：文件卡 → 解析中进度条 → 解析完成的发送摘要（mint 提示框）；内容区由 #check[data-phase] 收起/展开 */
.file-area { display: grid; gap: 12px; }
.selected-file { display: flex; align-items: center; gap: 12px; padding: 8px 4px 8px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-button); }
.file-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: var(--radius-button); background: var(--mint); color: var(--green); }
.selected-file > div { flex: 1; min-width: 0; }
.selected-file strong { display: block; font-size: var(--fs-body); font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.selected-file span { display: block; font-size: var(--fs-caption); color: var(--muted); margin-top: 2px; }
#selected-preview { color: var(--ink); }
/* P3 本机解析与发送前预览：先说清"将发送什么"，"查看将发送的内容"打开 #send-dialog，列的就是请求体里的条目 */
.local-preview { display: grid; border-radius: var(--radius-tag); transition: background-color var(--t-fast); }
.local-preview p { margin: 0; }
[data-phase="ready"] .local-preview { padding: 12px 16px; background: var(--mint); border-left: 4px solid var(--green); }
.parse-meter { margin-bottom: 8px; }
.parse-status { font-size: var(--fs-caption); color: var(--muted); line-height: 1.5; font-variant-numeric: tabular-nums; }
[data-phase="ready"] .parse-status { font-size: var(--fs-body); font-weight: 600; color: var(--ink); line-height: 1.6; }
.send-note { display: grid; gap: 4px; }
.send-summary { font-size: var(--fs-body); color: var(--ink); line-height: 1.6; font-variant-numeric: tabular-nums; }
.send-note .text-button { padding-block: 0; }
.send-fields { font-size: var(--fs-caption); color: var(--muted); line-height: 1.6; }
.send-list { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--divider); }
.send-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px dashed var(--divider); }
.send-list strong { font-size: var(--fs-body); font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.send-meta { grid-column: 1; font-size: var(--fs-caption); color: var(--muted); font-variant-numeric: tabular-nums; }
.send-amount { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: var(--fs-body); font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 确认区：AI 复核开关、知情勾选（没勾就点开始时抖动并说明）、开始按钮 */
.confirm-area { display: grid; gap: 4px; padding-top: 16px; }
.consent .inline-link { font-weight: 500; }
.consent-error { padding-left: 32px; }
.analyze-button { width: 100%; margin-top: 8px; }
.service-message { font-size: var(--fs-caption); color: var(--muted); text-align: center; line-height: 1.5; margin: 16px 0 0; }
.recovery-actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* 通用区块 */
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 0; }
.section-heading p { font-size: var(--fs-body); color: var(--muted); margin: 0; }

/* 三步指南（分平台） */
.guide-section { padding-block: 72px; background: var(--history-bg); }
.guide-section .section-heading p { margin-top: 10px; }
.guide-format { display: flex; gap: 8px; align-items: center; font-size: var(--fs-caption); color: var(--muted); white-space: nowrap; }
.guide-format .icon { width: 18px; height: 18px; }
/* 指南三步：白底卡片（与弹层、导入卡同一套圆角和描边） */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 32px 0 0; padding: 0; }
.steps > li { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.step-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-button); background: var(--mint); color: var(--green); font-size: var(--fs-caption); font-weight: 600; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--fs-section); margin-bottom: 10px; }
.steps p { font-size: var(--fs-body); color: var(--muted); margin-bottom: 12px; }
.steps p strong { color: var(--ink); font-weight: 500; }
.step-reminder { font-size: var(--fs-caption) !important; line-height: 1.5; background: var(--white); color: var(--ink) !important; padding: 8px 10px; display: inline-block; border-radius: var(--radius-tag); border-left: 3px solid var(--green); }
.steps .step-reminder { background: var(--history-bg); }
.step-note { font-size: var(--fs-caption) !important; }
.platform-switch.seg { display: inline-grid; margin: 4px 0 12px; }
.platform-steps { background: var(--history-bg); border-radius: var(--radius-button); padding: 12px 14px; margin-bottom: 12px; }
.platform-steps p:last-child { margin-bottom: 0; }

/* 定价 */
.pricing-section { padding-block: 56px 40px; }
.pricing-section h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 20px; }
.pricing-row { display: flex; gap: 24px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 20px 0; }
.pricing-row h3 { font-size: var(--fs-section); margin: 0 0 4px; }
.pricing-row p { margin: 0; font-size: var(--fs-body); color: var(--muted); }
.pricing-row > strong, .history-heading > strong { font-size: var(--fs-title); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.pricing-row small, .history-heading small { font-size: var(--fs-body); font-weight: 400; }
.price-note { display: block; color: var(--muted); font-size: var(--fs-caption) !important; }
.pricing-terms, .scope-copy, .history-terms { font-size: var(--fs-body); color: var(--muted); line-height: 1.65; }
.scope-copy { margin: 12px 0; }

/* 线索介绍（营销内容下移） */
.possibilities { padding-block: 64px; border-top: 1px solid var(--line); }
.possibility-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; margin-top: 32px; }
.possibility-list { display: grid; gap: 24px; }
.possibility-list article { position: relative; padding: 20px 0 0 44px; border-top: 1px solid var(--line); }
.category-symbol { position: absolute; left: 0; top: 22px; color: var(--green); }
.category-symbol .icon { width: 24px; height: 24px; }
.possibility-list h3 { font-size: var(--fs-section); margin-bottom: 8px; }
.possibility-list p { font-size: var(--fs-body); color: var(--muted); margin-bottom: 0; }
.hero-visual { position: relative; padding: 16px 16px 8px; isolation: isolate; }
.visual-orbit { position: absolute; z-index: -1; border-radius: 50%; background: var(--mint); }
.orbit-one { width: 320px; height: 320px; left: 40px; top: 10px; }
.orbit-two { width: 220px; height: 220px; right: -10px; bottom: 30px; background: var(--banner-bg); }
.receipt { position: relative; background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 20px 24px 0; transform: rotate(-2deg); }
.receipt:after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 14px; background: radial-gradient(circle at 7px 14px, transparent 6px, var(--white) 6.5px) 0 0 / 14px 14px; }
.receipt-header { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-caption); border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.receipt-header > span:first-child { display: flex; align-items: center; gap: 6px; }
.receipt-header .icon { width: 16px; height: 16px; }
.sample-label { color: var(--muted); border: 1px solid var(--border); padding: 0 6px; border-radius: var(--radius-tag); font-size: var(--fs-caption); }
.receipt-title { font-size: var(--fs-title); font-weight: 600; padding: 18px 0 12px; line-height: 1.35; }
.receipt-title > span { font-size: var(--fs-caption); color: var(--muted); display: block; font-weight: 400; margin-top: 6px; }
.receipt-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--divider); }
.receipt-icon { width: 36px; height: 36px; background: var(--mint); color: var(--green); border-radius: var(--radius-button); display: grid; place-items: center; flex: none; }
.receipt-icon .icon { width: 18px; height: 18px; }
.receipt-icon.warm { background: var(--banner-bg); color: var(--amber); }
.receipt-icon.pale { background: var(--history-bg); color: var(--muted); }
.receipt-row > div { flex: 1; min-width: 0; }
.receipt-row strong { display: block; font-size: var(--fs-body); font-weight: 500; margin-bottom: 2px; }
.receipt-row div > span { font-size: var(--fs-caption); color: var(--muted); line-height: 1.5; display: block; }
.receipt-tag { font-size: var(--fs-caption); background: var(--mint); color: var(--green); padding: 2px 6px; border-radius: var(--radius-tag); white-space: nowrap; }
.receipt-tag.warm { background: var(--banner-bg); color: var(--banner-ink); }
.receipt-tag.neutral { background: var(--history-bg); color: var(--muted); }
.receipt-bottom { display: flex; align-items: center; gap: 8px; font-size: var(--fs-caption); color: var(--muted); padding: 16px 0 20px; }
.receipt-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--divider); }
.duck-stamp { position: absolute; right: -8px; top: -14px; display: flex; align-items: center; gap: 8px; border-radius: var(--radius-card); padding: 10px 12px; background: var(--yellow); transform: rotate(6deg); box-shadow: 0 8px 28px rgb(0 0 0 / 5%); }
.duck-stamp img { border-radius: var(--radius-button); }
.duck-stamp > span { font-size: var(--fs-caption); line-height: 1.5; }
.duck-stamp strong { font-size: var(--fs-body); font-weight: 600; }
.visual-caption { text-align: center; font-size: var(--fs-caption); color: var(--muted); margin: 24px 0 0; }

/* 隐私、FAQ、收尾、页脚 */
.privacy-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; padding-block: 64px; border-top: 1px solid var(--line); }
.privacy-heading > .icon { width: 28px; height: 28px; margin-bottom: 16px; color: var(--green); }
.privacy-heading h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 12px; }
.privacy-heading p { font-size: var(--fs-body); color: var(--muted); }
.privacy-facts article + article { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.privacy-facts h3 { font-size: var(--fs-section); margin-bottom: 6px; }
.privacy-facts p { font-size: var(--fs-body); color: var(--muted); margin-bottom: 0; max-width: 70ch; }
.faq-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; padding-bottom: 64px; }
.faq-section h2 { font-size: clamp(24px, 2.2vw, 30px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; font-size: var(--fs-body); font-weight: 500; line-height: 1.6; padding: 16px 32px 16px 0; cursor: pointer; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: var(--fs-section); font-weight: 400; color: var(--green); }
.faq-list details[open] summary:after { content: "−"; }
/* FAQ 渐进增强：支持 ::details-content 与 interpolate-size 的浏览器平滑展开，其余保持原生 details */
@supports selector(::details-content) {
  .faq-list details { interpolate-size: allow-keywords; }
  .faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--t-out) var(--ease-out), content-visibility var(--t-out) allow-discrete; }
  .faq-list details[open]::details-content { block-size: auto; }
}
.faq-list p { color: var(--muted); font-size: var(--fs-body); margin-bottom: 18px; max-width: 70ch; }
.closing { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 40px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.closing h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 8px; }
.closing p { font-size: var(--fs-body); color: var(--muted); margin-bottom: 0; }
.closing-cta { min-width: 240px; }
.site-footer { display: flex; align-items: start; justify-content: space-between; padding-block: 40px 32px; gap: 40px; }
.site-footer .brand { font-size: var(--fs-section); }
.site-footer p { font-size: var(--fs-caption); color: var(--muted); margin: 12px 0 0; }
.footer-meta { text-align: right; font-size: var(--fs-caption); }
.footer-meta > a { font-size: var(--fs-body); text-decoration: none; margin-left: 24px; }
.footer-meta > a:hover, .footer-meta p a:hover { text-decoration: underline; }
.footer-meta p { margin-top: 16px; line-height: 1.7; }
.footer-meta p a { text-decoration: none; }
.footer-meta > span { color: var(--muted); display: block; line-height: 1.6; margin-top: 4px; }

/* 进度 */
.progress-section { min-height: 68vh; display: grid; place-items: center; padding-block: 72px; }
.progress-content { max-width: 600px; width: 100%; text-align: center; }
.progress-content img { border-radius: var(--radius-card); }
.progress-content h1 { font-size: var(--fs-title); margin: 20px 0 12px; }
.progress-content > p { font-size: var(--fs-body); color: var(--muted); }
.progress-steps { display: flex; list-style: none; gap: 6px; margin: 32px 0 20px; padding: 0; }
.progress-steps li { flex: 1; font-size: var(--fs-caption); color: var(--muted); padding-top: 12px; border-top: 4px solid var(--line); }
.progress-steps li.active { border-color: var(--green); font-weight: 600; color: var(--green); }
.progress-steps li.current { border-color: var(--yellow); }
.progress-note { font-size: var(--fs-caption) !important; margin-bottom: 24px; }

/* 报告 */
.results-section { padding-block: 40px 64px; min-height: 70vh; }
.result-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.result-header h1 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 8px; }
.result-header p { font-size: var(--fs-caption); color: var(--muted); margin: 0; }
.report-actions { display: flex; align-items: center; gap: 20px; }
.report-summary { padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius-card); margin-bottom: 20px; }
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--fs-caption); color: var(--muted); }
.summary-scope { color: var(--green); background: var(--mint); border-radius: var(--radius-tag); padding: 2px 8px; font-weight: 500; }
.summary-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; font-size: var(--fs-body); }
.summary-total #check-count { font-size: var(--fs-title); line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.report-summary p { font-size: var(--fs-body); margin: 0; }
.summary-categories { color: var(--ink); font-variant-numeric: tabular-nums; }
.summary-empty { margin-top: 12px !important; color: var(--ink); }
.summary-refunds { color: var(--muted); margin-top: 6px !important; font-size: var(--fs-caption) !important; }
.summary-disclaimer { color: var(--muted); border-top: 1px dashed var(--divider); margin-top: 14px !important; padding-top: 12px; font-size: var(--fs-caption) !important; }
.summary-disclaimer strong { color: var(--ink); font-weight: 600; }
.summary-receipt { margin-top: 10px !important; padding: 8px 12px; border-radius: var(--radius-tag); background: var(--history-bg); color: var(--ink); font-size: var(--fs-caption) !important; overflow-wrap: anywhere; }
.earlier-panel { padding: 24px; margin-bottom: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.earlier-panel .eyebrow { color: var(--amber); font-size: var(--fs-caption); margin-bottom: 4px; }
.earlier-panel h2 { font-size: var(--fs-section); margin-bottom: 8px; }
.earlier-panel .notice { margin: 12px 0; font-size: var(--fs-caption); }
.earlier-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.share-area { margin: 8px 0 28px; }
.share-area .button { min-width: 280px; }
.share-hint { font-size: var(--fs-caption); color: var(--muted); margin: 8px 0 0; overflow-wrap: anywhere; }
.report-end { border-top: 1px solid var(--line); margin-top: 8px; }
.report-end .danger-button { margin-top: 12px; }
.report-scope { font-size: var(--fs-body); font-weight: 500; margin: 0 0 20px; line-height: 1.65; }
.top-checks { padding: 20px 24px; margin: 0 0 24px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--radius-card); }
.top-checks h2 { font-size: var(--fs-section); margin: 0 0 4px; }
.top-checks-note { font-size: var(--fs-caption); line-height: 1.5; color: var(--muted); margin: 0; }
.top-checks-list { list-style: none; margin: 8px 0 0; padding: 0; }
.top-check { padding: 14px 0 0; margin-top: 14px; border-top: 1px dashed var(--divider); }
.top-check-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; margin-bottom: 6px; }
.top-check-merchant { font-size: var(--fs-body); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; min-width: 0; }
.top-check-amount { font-size: var(--fs-caption); color: var(--muted); line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.top-check-reason, .top-check-ask { font-size: var(--fs-body); line-height: 1.65; margin: 0; overflow-wrap: anywhere; }
.top-check-ask { color: var(--green); font-weight: 500; margin-top: 2px; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { min-height: 44px; padding: 8px 12px; border-radius: var(--radius-button); background: var(--mint); border: 1px solid var(--border); color: var(--green); font-size: var(--fs-caption); font-weight: 500; white-space: nowrap; }
.filters button:hover { background: var(--line); }
.filters button[aria-pressed=true] { color: var(--white); background: var(--green); border-color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.filters .filter-count { font-size: var(--fs-caption); margin-left: 6px; font-variant-numeric: tabular-nums; }
/* 搜索框用统一 .control（前置图标，页面底上用 muted 边框）；这里只定宽度 */
.search { width: 240px; flex-shrink: 0; padding-right: 12px; }
.result-count { font-size: var(--fs-caption); color: var(--muted); margin: 14px 0 0; }
.result-item { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px 16px; }
.item-symbol { display: grid; place-items: center; width: 40px; height: 40px; background: var(--mint); color: var(--green); border-radius: var(--radius-button); }
.item-symbol.refund { background: var(--history-bg); color: var(--muted); }
.item-symbol.prepaid { background: var(--banner-bg); color: var(--amber); }
.item-symbol .icon { width: 20px; height: 20px; }
.item-title { font-size: var(--fs-section); font-weight: 600; margin: 0 0 6px; overflow-wrap: anywhere; line-height: 1.4; }
.item-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; border-radius: var(--radius-tag); background: var(--mint); color: var(--green); font-size: var(--fs-caption); font-weight: 400; padding: 2px 6px; line-height: 1.5; }
.tag.important { background: var(--banner-bg); color: var(--banner-ink); font-weight: 500; }
.item-meta { font-size: var(--fs-caption); color: var(--muted); line-height: 1.5; margin: 6px 0 0; }
.item-amount { text-align: right; font-size: var(--fs-amount); line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.item-amount > span { font-size: var(--fs-caption); color: var(--muted); display: block; font-weight: 400; }
.item-reason { grid-column: 2 / -1; font-size: var(--fs-body); line-height: 1.65; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.item-guide { grid-column: 2 / -1; justify-self: start; font-size: var(--fs-caption); line-height: 1.5; padding-block: 8px; color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.item-action { grid-column: 2 / -1; font-size: var(--fs-body); line-height: 1.65; color: var(--ink); margin: 0; }
.item-evidence { grid-column: 2 / -1; font-size: var(--fs-caption); color: var(--muted); }
.item-evidence summary { cursor: pointer; line-height: 1.5; padding-block: 8px; width: fit-content; color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.item-evidence p { background: var(--history-bg); padding: 12px 14px; border-radius: var(--radius-button); line-height: 1.65; margin: 6px 0 0; overflow-wrap: anywhere; font-size: var(--fs-caption); }
.empty { padding: 40px 20px; text-align: center; font-size: var(--fs-body); color: var(--muted); background: var(--history-bg); border-radius: var(--radius-card); margin: 20px 0; }
.more { display: flex; margin: 24px auto; }
.report-footnote { display: flex; gap: 12px; align-items: center; margin: 24px 0; }
.report-footnote > .icon { width: 22px; height: 22px; color: var(--muted); }
.report-footnote p { font-size: var(--fs-caption); color: var(--muted); margin: 0; }
.result-help { font-size: var(--fs-body); border-top: 1px solid var(--line); padding-top: 16px; }
.result-help summary { cursor: pointer; padding-block: 6px; font-weight: 500; }
.result-help p { color: var(--muted); max-width: 75ch; margin: 10px 0 0; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: var(--radius-button); font-size: var(--fs-body); line-height: 1.5; max-width: calc(100% - 32px); width: max-content; }

/* 历史卡、邀请卡 */
.history-panel { padding: 24px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--history-bg); }
.history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.history-heading h2 { margin: 0; font-size: var(--fs-section); }
#history-detail { font-size: var(--fs-body); margin: 12px 0; }
.history-candidates { font-size: var(--fs-body); font-weight: 600; color: var(--ink); margin: 0 0 12px; padding: 8px 12px; background: var(--white); border-left: 4px solid var(--green); border-radius: var(--radius-tag); font-variant-numeric: tabular-nums; }
.offline-banner p { margin: 0; }
.offline-banner .button { margin-top: 8px; }
.history-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.history-panel .consent { margin: 8px 0; }
.history-panel .error { overflow-wrap: anywhere; }
.invite-panel { padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 32px; }
.invite-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.invite-heading h2 { margin: 0 0 12px; font-size: var(--fs-section); }
.invite-heading strong { white-space: nowrap; font-size: var(--fs-body); font-weight: 600; color: var(--green); }
.invite-panel p, .invite-panel details { font-size: var(--fs-body); color: var(--muted); }
.invite-label { display: block; font-size: var(--fs-body); margin-bottom: 6px; }
.invite-share { max-width: 760px; }
.invite-totals { margin: 12px 0 0; }
.invite-status { display: flex; align-items: baseline; gap: 16px; margin: 12px 0; }
.invite-status p { margin: 0; }
.invite-status .text-button { flex-shrink: 0; }
.invite-welcome { padding: 20px; background: var(--mint); border-radius: var(--radius-card); margin-bottom: 24px; }
.invite-welcome p { color: var(--ink); margin-bottom: 12px; }
.invite-panel .error { color: var(--red); }
.invite-panel summary { cursor: pointer; color: var(--green); font-weight: 500; }

/* 账号弹窗 */
/* 账号弹层：统一 .sheet；手机号 +86 前缀、验证码「获取验证码」做成框内后缀 */
.account-form, .account-signed-in { display: grid; gap: 16px; }
.account-form p, .account-signed-in p, .account-form details { margin: 0; }
.account-form .text-button { padding-block: 0; }
.account-form .check { padding-block: 4px; }
.account-intro, .account-privacy { color: var(--muted); }
.account-privacy summary { cursor: pointer; color: var(--green); font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.account-privacy p + p { margin-top: 8px; }

/* 隐私页 privacy.html（同源静态页，复用本样式表） */
.privacy-doc { max-width: 820px; padding-block: 24px 56px; }
.privacy-doc h1 { font-size: clamp(24px, 3vw, 40px); margin-bottom: 12px; }
.privacy-lead { color: var(--muted); }
.privacy-block { margin-top: 40px; }
.privacy-block h2 { font-size: var(--fs-title); margin-bottom: 16px; }
.privacy-block h3 { font-size: var(--fs-section); margin-bottom: 6px; color: var(--ink); }
.privacy-list + p { margin-top: 12px; }
.privacy-block p, .privacy-block li { color: var(--muted); }
.data-flow { list-style: none; margin: 0; padding: 0; }
.data-flow li { position: relative; padding: 16px 16px 16px 60px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.data-flow li + li { margin-top: 32px; }
.data-flow li + li:before { content: ""; position: absolute; left: 31px; top: -32px; width: 2px; height: 32px; background: var(--green); }
.data-flow li + li:after { content: ""; position: absolute; left: 26px; top: -10px; border: 6px solid transparent; border-top-color: var(--green); }
.data-flow p { margin: 0; }
.flow-step { position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-button); background: var(--mint); color: var(--green); font-weight: 600; font-size: var(--fs-caption); }
.never-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.never-grid article { background: var(--history-bg); border-radius: var(--radius-card); padding: 16px; }
.never-grid ul, .privacy-list { margin: 0; padding-left: 20px; }
.never-grid li + li, .privacy-list li + li { margin-top: 4px; }
.privacy-contact { font-size: var(--fs-caption); }
.privacy-back { margin-top: 24px; }
.privacy-link { margin-top: 16px; }

@media (min-width: 761px) { .sticky-choose { display: none !important; } }
@media (max-width: 1050px) {
  .container, .site-notice, .header-inner { width: calc(100% - 64px); } .site-header { padding-inline: 32px; }
  nav { gap: 20px; } .header-actions { gap: 16px; }
  .home-top { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px; }
  .hero h1 { font-size: 36px; }
  .possibility-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 32px; }
  .privacy-section, .faq-section { gap: 48px; } .steps { gap: 28px; }
  .report-toolbar { flex-wrap: wrap; } .search { width: 100%; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .container, .site-notice, .header-inner { width: calc(100% - 32px); }
  .site-header { padding: 12px 16px; min-height: 64px; gap: 8px; }
  .header-inner { gap: 8px; }
  .brand { font-size: var(--fs-body); gap: 8px; } .brand img { width: 36px; height: 36px; }
  nav { display: none; } .header-actions { gap: 14px; margin-left: auto; } .header-actions .header-cta { display: none; }
  .test-notice { padding-inline: 16px; text-align: left; }
  .home-top { grid-template-columns: 1fr; gap: 16px; padding-block: 8px 32px; }
  .hero { gap: 12px; }
  .hero h1 { font-size: var(--fs-title); line-height: 1.35; }
  .hero-facts { gap: 6px; }
  .hero-facts li { gap: 8px; align-items: center; font-size: var(--fs-caption); line-height: 1.5; }
  .fact-icon { width: 20px; height: 20px; background: none; }
  .fact-icon .icon { width: 16px; height: 16px; }
  .fact-text strong { font-weight: 400; line-height: 1.5; }
  .fact-text .hint { display: none; }
  .hero-actions { gap: 12px; }
  .hero-actions .text-button { padding-block: 0; }
  .demo-hint { margin-top: -8px; }
  .check-section { padding: 20px 16px; }
  .import-steps { margin: 16px 0; }
  .dropzone { min-height: 136px; }
  .section-heading { display: block; } .section-heading > p, .section-heading > div > p { margin-top: 10px; }
  .guide-section { padding-block: 40px; } .guide-format { margin-top: 12px; }
  .steps { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; } .steps > li { padding: 20px 16px; }
  .step-number { width: 30px; height: 30px; margin-bottom: 12px; }
  .pricing-section { padding-block: 40px 24px; }
  .pricing-row { align-items: flex-start; gap: 12px; } .pricing-row > strong { font-size: var(--fs-amount); }
  .possibilities { padding-block: 40px; }
  .possibility-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 24px; }
  .hero-visual { width: 100%; max-width: 400px; margin: 0 auto; padding-inline: 8px; }
  .orbit-one { width: 260px; height: 260px; left: 20px; } .orbit-two { width: 200px; height: 200px; right: 0; }
  .receipt { padding: 16px 18px 0; } .duck-stamp { right: -4px; top: -10px; } .duck-stamp img { width: 40px; height: 40px; }
  .privacy-section { grid-template-columns: 1fr; gap: 20px; padding-block: 40px; }
  .never-grid { grid-template-columns: 1fr; } .privacy-back { width: 100%; }
  .privacy-start { min-height: 44px; padding: 8px 12px; }
  .faq-section { grid-template-columns: 1fr; gap: 12px; padding-bottom: 40px; }
  .closing { display: block; padding-block: 28px; } .closing-cta { margin-top: 20px; width: 100%; }
  /* 页脚固定给底部吸附按钮留位（按钮用 transform 进出，不再给 body 切换内边距） */
  .site-footer { padding-block: 28px calc(104px + env(safe-area-inset-bottom)); display: block; }
  .footer-meta { text-align: left; margin-top: 20px; } .footer-meta > a { margin: 0 20px 0 0; }
  .results-section { padding-top: 20px; }
  .result-header { display: block; margin-bottom: 16px; }
  .report-actions { margin-top: 12px; gap: 20px; }
  .report-summary { padding: 16px; }
  .earlier-panel { padding: 20px 16px; }
  .earlier-actions .button, .share-area .button { width: 100%; min-width: 0; }
  .report-toolbar { gap: 12px; } .filters { gap: 6px; } .filters button { padding: 8px 10px; }
  .result-item { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px 10px; padding-block: 18px; }
  .item-symbol { width: 32px; height: 32px; } .item-symbol .icon { width: 17px; height: 17px; }
  .item-title { font-size: var(--fs-body); }
  .progress-section { padding-block: 48px; min-height: 65vh; }
  .invite-heading { flex-wrap: wrap; gap: 0 16px; margin-bottom: 12px; }
  .invite-status { align-items: flex-start; }
  .history-panel { padding: 20px 16px; }
  .history-heading { flex-wrap: wrap; gap: 8px; }
  .history-actions .button { width: 100%; }
}
@media (max-width: 370px) {
  .header-actions { gap: 10px; } .brand-tagline { display: none; }
  .filters button { padding-inline: 8px; }
  .item-amount { font-size: var(--fs-section); }
  .result-item { grid-template-columns: minmax(0, 1fr) auto; } .item-symbol { display: none; }
  .item-reason, .item-guide, .item-action, .item-evidence { grid-column: 1 / -1; }
}
/* 系统设置了「减少动态效果」：时长归零（1ms 让 animationend/transitionend 照常触发，弹层关闭流程不必等超时），不位移、不回弹 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 1ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* P6 可收录页 guide-*.html（以隐私页 privacy-doc 为底；只加不改） */
.guide-doc .privacy-list li + li { margin-top: 8px; }
.guide-doc .privacy-block a:not(.button) { color: var(--green); font-weight: 500; }
/* P6 guide pages (contract 6.2 skeleton) mark the verification date with "small muted"; scoped so no other page changes. */
.guide-doc .small { font-size: var(--fs-caption); }
.guide-doc .muted { color: var(--muted); }
.guide-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.guide-platforms article { background: var(--history-bg); border-radius: var(--radius-card); padding: 16px; }
.guide-platforms h3 { margin-bottom: 8px; }
@media (max-width: 760px) { .guide-platforms { grid-template-columns: 1fr; } }

/* P6 首页指南段末尾「帮爸妈查」（只加不改） */
.parents-guide { margin-top: 32px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.parents-guide h3 { font-size: var(--fs-section); margin-bottom: 10px; }
.parents-guide ol { margin: 0; padding-left: 20px; color: var(--muted); }
.parents-guide li + li { margin-top: 6px; }
@media (max-width: 760px) { .parents-guide { margin-top: 24px; padding: 16px; } }

/* ===== 统一组件与动效（2026-10-22 首页重规划；权威来源 docs/superpowers/plans/2026-10-22-hero-redesign/yp-ui.css，去掉 .yp 前缀）=====
   只动 transform / opacity，高度变化用 grid 0fr → 1fr；颜色只用上方 16 个 token，半透明写成 token 色的 rgb(r g b / a%)；阴影只用 ≤5% 的黑。 */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* 阻尼弹簧（k=220, c=22）：约 3% 回弹，弹层进场、拖拽复位、卡片内容出现 */
    --spring-soft: linear(0, 0.035, 0.119, 0.231, 0.352, 0.472, 0.587, 0.687, 0.773, 0.845, 0.902, 0.945, 0.978, 1.001, 1.016, 1.025, 1.029, 1.03, 1.029, 1.027, 1.023, 1.019, 1.016, 1.012, 1.009, 1.007, 1.005, 1.003, 1.002, 1.001, 1, 0.999, 1);
    /* 阻尼弹簧（k=340, c=25）：约 5% 回弹，对勾、开关、分段滑块、toast、吸附按钮、页头按钮 */
    --spring-bouncy: linear(0, 0.056, 0.183, 0.345, 0.507, 0.655, 0.783, 0.882, 0.954, 1.005, 1.035, 1.05, 1.054, 1.052, 1.045, 1.036, 1.028, 1.019, 1.012, 1.007, 1.003, 1, 0.998, 0.997, 0.997, 0.997, 0.998, 0.998, 0.998, 0.999, 0.999, 1, 1);
    /* 近临界阻尼：不回弹，高度展开收起、进度条 */
    --ease-out: linear(0, 0.037, 0.123, 0.227, 0.341, 0.453, 0.551, 0.641, 0.718, 0.78, 0.833, 0.875, 0.907, 0.933, 0.953, 0.967, 0.978, 0.986, 0.991, 0.995, 0.998, 1);
  }
}
.hint { font-size: var(--fs-caption); line-height: 1.5; color: var(--muted); }
.hint.is-error { color: var(--red); }
.num { font-variant-numeric: tabular-nums; }
.note { padding: 12px 16px; background: var(--mint); border-left: 4px solid var(--green); border-radius: var(--radius-tag); }
.inline-link { color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
/* 文字按钮与主/次按钮的箭头跟随与按压反馈 */
.button .icon, .text-button .icon { transition: transform var(--t-bouncy) var(--spring-bouncy); }
.button:not(:disabled):hover .icon, .text-button:not(:disabled):hover .icon { transform: translateX(3px); }
.button:not(:disabled):active { transform: scale(.98); }

/* 输入框：一套 field，标签在上、48px、8px 圆角、同一焦点环；白卡上 border 边框，直接放在页面底上的加 .on-paper 用 muted 边框 */
.field { display: grid; gap: 6px; }
.field-label { display: block; font-size: var(--fs-body); font-weight: 500; line-height: 1.4; }
.control { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 4px 0 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-button); transition: border-color var(--t-fast); }
.control.on-paper { border-color: var(--muted); }
.control:focus-within { border-color: var(--green); outline: 3px solid var(--green); outline-offset: 3px; }
.control input { flex: 1; min-width: 0; height: 46px; margin: 0; border: 0; outline: 0; padding: 0; background: transparent; font-size: 16px; color: var(--ink); }
.control input::placeholder { color: var(--muted); opacity: 1; }
.control .prefix { flex: none; padding-right: 8px; border-right: 1px solid var(--line); color: var(--muted); font-size: var(--fs-body); line-height: 1.4; }
.control .lead { width: 18px; height: 18px; color: var(--muted); }
.control .suffix { flex: none; min-height: 44px; padding: 0 12px; border-radius: var(--radius-tag); background: none; color: var(--green); font-size: var(--fs-button); font-weight: 500; line-height: 1.4; white-space: nowrap; transition: background-color var(--t-fast), color var(--t-fast); }
.control .suffix:hover:not(:disabled) { background: var(--mint); }
.control .suffix:disabled { color: var(--muted); }
.control .suffix:focus-visible { outline-offset: -3px; }
.control.is-error { border-color: var(--red); }
.control.is-error:focus-within { outline-color: var(--red); }
.control.is-disabled { background: var(--disabled); border-color: var(--disabled); }
.control.is-disabled input { color: var(--muted); cursor: not-allowed; }

/* 勾选框：保留原生 input（透明叠在 .box 上，便于读屏与自动化），20px、4px 圆角，对勾用 bouncy 弹出 */
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: var(--fs-body); line-height: 1.6; }
.check > input { position: absolute; left: 0; top: 12px; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.check .box { flex: none; width: 20px; height: 20px; margin-top: 2px; display: grid; place-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-tag); background: var(--white); transition: background-color var(--t-fast), border-color var(--t-fast); }
.check .box svg { width: 14px; height: 14px; fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: scale(0); transition: transform var(--t-bouncy) var(--spring-bouncy); }
.check > input:checked + .box { background: var(--green); border-color: var(--green); }
.check > input:checked + .box svg { transform: scale(1); }
.check > input:focus-visible + .box { outline: 3px solid var(--green); outline-offset: 3px; }
.check.is-error .box { border-color: var(--red); }
.check.is-nudge .box { animation: nudge 420ms var(--ease-out); }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* 开关：input[type=checkbox][role=switch] 透明叠在圆角矩形轨道上，触控区 64×44 */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; cursor: pointer; }
.switch-copy { display: grid; }
.switch-title { font-weight: 500; }
.switch-control { position: relative; flex: none; width: 48px; height: 28px; }
.switch-control > input { position: absolute; z-index: 1; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); margin: 0; opacity: 0; cursor: pointer; }
.switch { position: relative; display: block; width: 48px; height: 28px; border-radius: var(--radius-button); background: var(--border); transition: background-color 200ms var(--ease-out); }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: var(--radius-tag); background: var(--white); transition: transform var(--t-bouncy) var(--spring-bouncy); }
.switch-control > input:checked + .switch { background: var(--green); }
.switch-control > input:checked + .switch::after { transform: translateX(20px); }
.switch-control > input:active + .switch::after { width: 24px; }
.switch-control > input:checked:active + .switch::after { transform: translateX(16px); }
.switch-control > input:focus-visible + .switch { outline: 3px solid var(--green); outline-offset: 3px; }
.switch-control > input:disabled { cursor: not-allowed; }
.switch-control > input:disabled + .switch { opacity: .55; }

/* 分段控件：滑块带弹性；JS 只写 data-index */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; background: var(--mint); border-radius: var(--radius-button); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); background: var(--white); border-radius: var(--radius-tag); box-shadow: 0 1px 3px rgb(0 0 0 / 5%); transition: transform var(--t-bouncy) var(--spring-bouncy); }
.seg[data-index="1"] .seg-thumb { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; min-height: 44px; padding: 8px 18px; border-radius: var(--radius-tag); background: none; color: var(--muted); font-size: var(--fs-body); font-weight: 500; transition: color var(--t-fast); }
.seg button[aria-pressed="true"] { color: var(--ink); }

/* 展开收起：grid 行高 0fr → 1fr；收起态 visibility: hidden，退出 Tab 顺序与无障碍树 */
.collapse { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows var(--t-out) var(--ease-out), opacity 180ms var(--ease-out), visibility 0s linear var(--t-out); }
.collapse.is-open,
[data-phase="empty"] .collapse.if-empty,
[data-phase="parsing"] .collapse.if-file, [data-phase="ready"] .collapse.if-file,
[data-phase="parsing"] .collapse.if-parsing,
[data-phase="ready"] .collapse.if-ready { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows var(--t-out) var(--ease-out), opacity 320ms var(--ease-out) 80ms, visibility 0s; }
.collapse > .collapse-in { min-height: 0; overflow: hidden; padding: 6px; margin: -6px; }

/* 进度条与导入卡三段步骤（解析段读 --p） */
.meter { display: block; height: 4px; border-radius: var(--radius-tag); background: var(--line); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left center; transition: transform var(--t-out) var(--ease-out); }
.import-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 20px 0; padding: 0; }
.import-steps li { display: grid; gap: 6px; font-size: var(--fs-caption); line-height: 1.4; color: var(--muted); transition: color var(--t-fast); }
.import-steps li.is-now { color: var(--ink); font-weight: 500; }
.import-steps li.is-done { color: var(--green); }
.import-steps li.is-now .meter > i { transform: scaleX(.5); }
.import-steps li.is-done .meter > i { transform: scaleX(1); }
[data-phase="parsing"] .import-steps li.is-now .meter > i, .parse-meter > i { transform: scaleX(var(--p, 0)); transition: transform 160ms linear; }
.check-section:has(#consent:checked) .import-steps li.is-now:last-child .meter > i { transform: scaleX(1); }

/* 弹层：一个组件。桌面居中对话框，≤760px 贴底弹层带拖拽把手；::backdrop 不一定继承变量，遮罩与曲线写字面值 */
html.has-sheet { overflow: hidden; scrollbar-gutter: stable; }
.sheet { width: min(480px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); color: var(--ink); box-shadow: var(--shadow-pop); overflow: hidden; }
.sheet.wide { width: min(560px, calc(100% - 32px)); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-pop-in var(--t-soft) var(--spring-soft) both; }
.sheet::backdrop { background: rgb(32 62 54 / 45%); }
.sheet[open]::backdrop { animation: sheet-fade-in 240ms cubic-bezier(.22, 1, .36, 1) both; }
.sheet.is-leaving { animation: sheet-pop-out var(--t-exit) var(--ease-in) both; }
.sheet.is-leaving::backdrop { animation: sheet-fade-out 200ms cubic-bezier(.5, 0, .75, 0) both; }
.sheet-grabber { display: none; }
.sheet-head { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 20px 12px 8px 24px; }
.sheet-head > div { flex: 1; min-width: 0; padding-top: 8px; }
.sheet-head h2 { margin: 0; font-size: var(--fs-section); line-height: 1.4; }
.sheet-head h2:focus { outline: none; }
.sheet-head .hint { margin: 4px 0 0; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 20px; display: grid; gap: 16px; align-content: start; }
.sheet-body > *, .sheet-foot > * { margin: 0; }
.sheet-foot { flex: none; display: grid; gap: 8px; padding: 16px 24px 24px; border-top: 1px solid var(--line); }
.sheet-foot .button { width: 100%; }
@keyframes sheet-fade-in { from { opacity: 0; } }
@keyframes sheet-fade-out { to { opacity: 0; } }
@keyframes sheet-pop-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sheet-pop-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes sheet-up-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down-out { to { transform: translateY(100%); } }
/* 弹层内的编号步骤 */
.guide-steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.guide-steps > li { display: flex; gap: 12px; align-items: flex-start; }
.guide-steps > li > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.guide-steps strong { display: block; font-weight: 500; line-height: 1.6; }
.guide-steps p { margin: 0; color: var(--muted); }
.step-no { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: var(--radius-button); background: var(--mint); color: var(--green); font-size: var(--fs-caption); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Toast：弹性滑入、200ms 淡出；吸附按钮显示时用独立的 translate 上移，不与动画的 transform 打架 */
.toast { z-index: 60; box-shadow: var(--shadow-pop); animation: toast-in var(--t-bouncy) var(--spring-bouncy) both; transition: translate var(--t-out) var(--ease-out); }
.toast.is-leaving { animation: toast-out var(--t-exit) var(--ease-in) both; }
body.dock-shown .toast { translate: 0 -68px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 20px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(-50%); } to { opacity: 0; transform: translate(-50%, 8px); } }

/* 手机底部吸附按钮：transform 滑入，不改页面内边距；隐藏时 visibility: hidden */
.dock { position: fixed; z-index: 25; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 8px 24px rgb(0 0 0 / 5%); visibility: hidden; transform: translateY(calc(100% + 32px)); transition: transform 260ms var(--ease-in), background-color var(--t-fast), visibility 0s linear 260ms; }
.dock.is-shown { visibility: visible; transform: none; transition: transform var(--t-bouncy) var(--spring-bouncy), background-color var(--t-fast), visibility 0s; }

/* 滚动进场：只有 IntersectionObserver 存在且未开启减少动态效果时 <main> 才带 .reveal-armed；脚本没跑时内容照常可见 */
.reveal-armed .reveal { opacity: 0; transform: translateY(20px); transition: opacity 480ms var(--ease-out), transform var(--t-soft) var(--spring-soft); }
.reveal-armed .reveal.is-in { opacity: 1; transform: none; }
.reveal-armed .reveal.d1 { transition-delay: 70ms; }
.reveal-armed .reveal.d2 { transition-delay: 140ms; }
.reveal-armed .reveal.d3 { transition-delay: 210ms; }
.reveal-armed .reveal.d4 { transition-delay: 280ms; }

@media (max-width: 760px) {
  .sheet, .sheet.wide { width: 100%; max-height: 88vh; max-height: 88dvh; margin: auto 0 0; border-bottom: 0; border-radius: var(--radius-card) var(--radius-card) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .sheet[open] { animation-name: sheet-up-in; }
  .sheet.is-leaving { animation: sheet-down-out 260ms var(--ease-in) both; }
  /* 拖拽区不许选中文字，否则一拖就把标题选成黄色 */
  .sheet-grabber { display: grid; place-items: center; height: 24px; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
  .sheet-grabber::before { content: ""; width: 40px; height: 4px; border-radius: var(--radius-tag); background: var(--divider); }
  .sheet-head { padding: 0 12px 8px 16px; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
  .sheet-body { padding-inline: 16px; }
  .sheet-foot { padding: 12px 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-armed .reveal { transform: none; }
  .sheet::backdrop, .sheet[open]::backdrop, .sheet.is-leaving::backdrop { animation-duration: 1ms !important; }
  .faq-list details::details-content { transition-duration: 1ms !important; }
}
