/* 工作台和首页之后几页的设计稿（第一轮）共用样式。
   字体、颜色、字号关系、留白、动效节奏照首页定稿 ../home/u1/site.css（Upload Me / Hinge 那套），变量名和取值同 u1；
   u1 没有、工作台要的（表单、状态标签、按钮层级、空状态、加载态、出错态、工作台外壳）补在后面，新增的变量只有标在 :root 里「工作台新增」的几项。
   字体自托管：Source Serif 4、DM Sans 拷自 u1；标题中文 Noto Serif SC 600 只含这几页衬线标题里用到的字（fonts/noto-serif-sc-600-app.woff2，改了标题文字要重出）。 */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/dm-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/source-serif-4-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Serif SC'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/noto-serif-sc-600-app.woff2) format('woff2'); }

:root {
  /* 产品名只在这里定义一处（同 u1） */
  --product-name: "SoaRank Commerce";
  /* 以下同 u1 */
  --bg: #FFFEFD;
  --ink: #1A1A1A;
  --stone: #484848;
  --stone-3: #6B6B6B;
  --stone-2: #8A8A8A;
  --line: #E8E4DE;
  --dark: #1A1A1A;
  --accent: #9A3B1C;
  --accent-25: #EDC6B5;
  --accent-soft: #F6E9E2;
  --tint: #EEE6DC;
  --serif: 'Source Serif 4', 'Noto Serif SC', serif;
  --sans: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --ease: cubic-bezier(.5, 0, .09, 1);
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --margin: 20px;
  --gutter: 10px;
  --r: 8px;
  /* 工作台新增：u1 界面示意里已在用的几个浅色（#F7F3EE 草稿底、#EEE9E2 细分隔、#D6CFC5 次按钮描边、#C9C1B6 空心圆点）收成变量；
     「走得通」要一个和陶土红分得开的颜色，取一个偏灰的深绿（纸色上 6.4:1），只用在这一个状态上 */
  --wash: #F7F3EE;
  --hair: #EEE9E2;
  --line-strong: #D6CFC5;
  --ring: #C9C1B6;
  --ok: #2D6A4F;
  --ok-soft: #E7F0EA;
  --app-top: 64px;
  --tabbar: 64px;
}
@media (min-width: 768px) { :root { --margin: 32px; --gutter: 24px; } }
@media (min-width: 1280px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--app-top) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.75 var(--sans); letter-spacing: .01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--accent-25); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pname::before { content: var(--product-name); }
.nw { white-space: nowrap; }
[hidden] { display: none !important; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 字号（同 u1 表二的关系；工作台整体收一档，页标题 30 → 40，不用首页 58–64 的大字） ---------- */
.eyebrow { font: 500 15px/1 var(--sans); letter-spacing: -.005em; color: var(--accent); margin-bottom: 16px; }
.eb-no { font-variant-numeric: tabular-nums; margin-right: .9em; }
.h-page { font: 600 30px/1.25 var(--serif); font-variation-settings: 'opsz' 60; letter-spacing: 0; text-wrap: balance; }
/* 中文标题只在词组之间（<wbr>、空格、标点处）换行，不把「下一步」拆成「下一 / 步」；放不下时才任意断 */
:is(.h-page, .h-verdict, .h-sec) { word-break: keep-all; overflow-wrap: anywhere; }
.h-sec { font: 600 24px/1.3 var(--serif); font-variation-settings: 'opsz' 60; letter-spacing: 0; }
.lead { margin-top: 16px; font-size: 16px; line-height: 1.75; color: var(--stone); max-width: 40em; text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.6; color: var(--stone-3); }
@media (min-width: 768px) {
  .eyebrow { font-size: 18px; line-height: 25.56px; margin-bottom: 20px; }
  .h-page { font-size: 40px; }
  .h-sec { font-size: 28px; }
  .lead { font-size: 18px; }
}

/* ---------- 按钮层级：主（墨底胶囊，同 u1 顶栏「登录」）/ 次（描边）/ 文字（下划线，同 u1 Pause）；按下 0.96，禁用不缩放 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 9999px; font: 700 15px/1 var(--sans); letter-spacing: 0; white-space: nowrap; border: 1px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease, scale .15s ease-out; }
.btn .ico { width: 18px; height: 18px; stroke-width: 2; }
.btn:not(:disabled):active { scale: .96; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #FFFEFD; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-text { display: inline-flex; align-items: center; height: 44px; padding: 0 2px; border-radius: 4px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgb(26 26 26 / .3); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn-primary:not(:disabled):hover { background: var(--accent); }
  .btn-secondary:not(:disabled):hover { background: var(--wash); border-color: var(--stone-2); }
  .btn-text:hover { text-decoration-color: currentColor; }
}
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- 表单：标签在上、说明和错误挂 aria-describedby；输入框描边 #8A8A8A（纸色上 3.4:1，过非文字 3:1） ---------- */
.field { display: grid; gap: 8px; }
.label { font: 600 14px/1.4 var(--sans); color: var(--ink); }
.input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--stone-2); border-radius: 10px; background: #FFFFFF; color: var(--ink); font: 400 max(16px, 1em)/1.4 var(--sans); letter-spacing: 0; appearance: none; transition: border-color .15s ease; }
.input::placeholder { color: var(--stone-3); opacity: 1; }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--ink); border-radius: 10px; }
.input[aria-invalid="true"] { border-color: var(--accent); }
.hint { font-size: 14px; line-height: 1.6; color: var(--stone-3); }
.field-error { display: flex; gap: 8px; align-items: flex-start; font: 500 14px/1.6 var(--sans); color: var(--accent); }
.field-error .ico { width: 16px; height: 16px; margin-top: 3px; }

/* 整块的提示：出错、提醒（平的浅底，不加阴影） */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--wash); font-size: 15px; line-height: 1.65; color: var(--stone); }
.notice .ico { margin-top: 4px; color: var(--stone); }
.notice strong { display: block; color: var(--ink); font-weight: 600; }
.notice-error { background: var(--accent-soft); color: var(--ink); }
.notice-error .ico { color: var(--accent); }

/* ---------- 状态标签（路线结论）：文字本身就是区分，颜色和圆点只是辅助；六种：走得通 / 还差几步 / 走不通 / 资料不够 / 还没连店 / 连接失效 ---------- */
.tag { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 9999px; font: 600 13px/1 var(--sans); letter-spacing: 0; white-space: nowrap; border: 1px solid transparent; }
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.tag-open { color: var(--ok); background: var(--ok-soft); }
.tag-near { color: var(--accent); background: var(--accent-soft); }
.tag-blocked { color: var(--stone); background: #EFEBE6; }
.tag-blocked::before { width: 9px; height: 2px; border-radius: 1px; }
.tag-unknown { color: var(--stone); background: transparent; border: 1px dashed var(--ring); }
.tag-unknown::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.tag-new { color: var(--accent); background: transparent; border: 1px dashed var(--accent-25); }
.tag-new::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.tag-revoked { color: var(--accent); background: #FFFFFF; border: 1px solid var(--accent); }
.tag-revoked::before { border-radius: 1px; width: 2px; height: 9px; }

/* 谁来做：商家本人要做的标出来 */
.who { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 9999px; font: 600 12px/1 var(--sans); letter-spacing: .02em; white-space: nowrap; }
.who-you { color: var(--accent); border: 1px solid var(--accent-25); }
.who-we { color: var(--stone-3); border: 1px solid var(--hair); }

/* 步骤状态圆点：做完了（墨色实心勾）/ 没做（空心）/ 走不通（斜杠）/ 判断不了（虚线问号）；现在最该做的那一步是陶土红 */
.si { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.si svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.si-done { background: var(--ink); color: #FFFEFD; }
.si-todo { border: 1.5px solid var(--stone-2); }
.si-blocked { border: 1.5px solid var(--stone); color: var(--stone); }
.si-unknown { border: 1.5px dashed var(--stone-2); color: var(--stone-3); font: 700 12px/1 var(--sans); }
.si-next { border: 2px solid var(--accent); box-shadow: inset 0 0 0 4px var(--bg); background: var(--accent); }
.st-label { font: 600 13px/1.4 var(--sans); white-space: nowrap; }
.st-done { color: var(--stone-3); }
.st-todo { color: var(--accent); }
.st-blocked { color: var(--stone); }
.st-unknown { color: var(--stone-3); }

/* ---------- 折叠（原生 details）：「怎么做」「检查明细」 ---------- */
.disc > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 14px/1 var(--sans); color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgb(26 26 26 / .3); border-radius: 4px; }
.disc > summary::-webkit-details-marker { display: none; }
.disc > summary .chev { width: 14px; height: 14px; stroke-width: 2; transition: rotate .15s ease-out; }
.disc[open] > summary .chev { rotate: 180deg; }
@media (hover: hover) { .disc > summary:hover { text-decoration-color: currentColor; } }
.guide { margin-top: 4px; padding: 14px 16px; border-radius: 8px; background: var(--wash); font-size: 15px; line-height: 1.7; color: var(--stone); text-wrap: pretty; }

/* ---------- 加载态（骨架，慢慢扫过一道浅光；减少动效时静止）、空状态、出错态 ---------- */
.sk { display: block; border-radius: 6px; background: #EFEAE3; }
.motion .sk { background: linear-gradient(90deg, #EFEAE3 0%, #F7F3EE 40%, #EFEAE3 80%) 0 0 / 300% 100%; animation: sk 1.6s linear infinite; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.state-panel { max-width: 520px; padding: 56px 0; }
.state-panel .ico-lg { width: 40px; height: 40px; stroke-width: 1.5; color: var(--stone); margin-bottom: 20px; }
.state-panel h2 { font: 600 24px/1.35 var(--serif); font-variation-settings: 'opsz' 60; }
.state-panel p { margin-top: 12px; color: var(--stone); }
.state-panel .btn-row { margin-top: 28px; }
.spin { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--hair); border-top-color: var(--ink); }
.motion .spin { animation: spin .9s linear infinite; }
@keyframes spin { to { rotate: 1turn; } }

/* 进度条：原生 progress 全自定义（modern-web-guidance「progress」） */
.bar { appearance: none; border: 0 solid; overflow: clip; width: 100%; height: 4px; border-radius: 9999px; background: var(--hair); }
.bar::-webkit-progress-bar { background: transparent; }
.bar::-webkit-progress-value { background: var(--ink); border-radius: 9999px; transition: inline-size .6s var(--ease-std); }
.bar::-moz-progress-bar { background: var(--ink); border-radius: 9999px; }

/* ---------- 公开页顶栏（结果页、登录页）：同 u1 顶栏在浅色区块上的样子：实底、墨色字、右边墨底「登录」胶囊 ---------- */
.pub-top { position: sticky; top: 0; z-index: 40; height: 72px; background: rgb(255 254 253 / .92); box-shadow: 0 1px 0 rgb(0 0 0 / .06); }
@supports (backdrop-filter: blur(1px)) { .pub-top { backdrop-filter: blur(12px); } }
.top-in { position: relative; height: 100%; max-width: 1344px; margin: 0 auto; padding: 0 var(--margin); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; border-radius: 4px; }
.brand-i { width: 24px; height: 24px; flex: none; }
.brand-w { font: 600 20px/1 var(--serif); font-variation-settings: 'opsz' 60; letter-spacing: -.01em; white-space: nowrap; }
.top-pill { height: 34px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 9999px; background: var(--ink); color: #FFFEFD; font: 700 14px/1 var(--sans); transition: background-color .2s ease, scale .15s ease-out; }
.top-pill:active { scale: .96; }
@media (hover: hover) { .top-pill:hover { background: var(--accent); } }
@media (min-width: 768px) {
  .pub-top .brand { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
  .pub-top .top-pill { margin-left: auto; }
  .brand-i { width: 28px; height: 28px; }
  .brand-w { font-size: 24px; }
}

/* ---------- 工作台外壳：顶栏（产品名、店铺、账号）+ 四步导航（桌面在顶栏下一行，手机收成底部标签栏） ---------- */
.app-top { position: sticky; top: 0; z-index: 40; height: var(--app-top); background: rgb(255 254 253 / .96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .app-top { background: rgb(255 254 253 / .9); backdrop-filter: blur(12px); } }
.app-top-in { height: 100%; max-width: 1344px; margin: 0 auto; padding: 0 var(--margin); display: flex; align-items: center; gap: 12px; }
.app-top .brand-w { font-size: 19px; }
.app-top .brand-i { width: 24px; height: 24px; }
.app-top .brand .brand-w { display: none; }
.store-btn { min-width: 0; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; margin-left: 2px; border-radius: 8px; text-align: left; transition: background-color .15s ease; }
.store-btn .s-name { font: 600 15px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-btn .s-host { display: none; font: 400 13px/1.2 var(--sans); color: var(--stone-3); }
.store-btn .ico { width: 16px; height: 16px; color: var(--stone-3); }
.acct { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px 0 10px; border-radius: 9999px; transition: background-color .15s ease; }
.acct .a-mail { display: none; font: 500 14px/1 var(--sans); color: var(--stone); }
.avatar { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--ink); font: 700 14px/1 var(--sans); }
@media (hover: hover) { .store-btn:hover, .acct:hover { background: var(--wash); } }
@media (min-width: 768px) {
  .app-top .brand .brand-w { display: inline; }
  .store-btn { margin-left: 12px; padding-left: 16px; border-left: 1px solid var(--line); border-radius: 0 8px 8px 0; }
  .store-btn .s-host { display: inline; }
  .acct .a-mail { display: inline; }
}

/* 四步导航：接商品 → 看路线 → 做进去 → 看状态。每步写完成情况，当前这一步下面一条墨色线（aria-current="page"） */
.stepnav { display: none; border-bottom: 1px solid var(--line); background: var(--bg); }
.stepnav ol { max-width: 1344px; margin: 0 auto; padding: 0 var(--margin); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.stepnav a { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px 0 18px; border-radius: 4px; }
.stepnav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.stepnav a[aria-current="page"]::after { background: var(--ink); }
.stepnav .si { margin-top: 1px; }
.sn-text { min-width: 0; display: grid; gap: 4px; }
.sn-label { font: 600 15px/1.3 var(--sans); color: var(--ink); }
.sn-no { font-variant-numeric: tabular-nums; color: var(--stone-3); font-weight: 500; margin-right: 8px; }
.sn-sub { font: 400 13px/1.4 var(--sans); color: var(--stone-3); }
.stepnav a:not([aria-current="page"]) .sn-label { color: var(--stone); }
@media (hover: hover) { .stepnav a:not([aria-current="page"]):hover .sn-label { color: var(--ink); } }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgb(255 254 253 / .96); border-top: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .tabbar { background: rgb(255 254 253 / .9); backdrop-filter: blur(12px); } }
.tabbar ol { height: var(--tabbar); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tabbar a { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font: 600 12px/1 var(--sans); color: var(--stone-3); }
.tabbar a::before { content: ''; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; border-radius: 0 0 2px 2px; background: transparent; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::before { background: var(--ink); }
.tabbar .si { width: 20px; height: 20px; }
.tabbar .si svg { width: 11px; height: 11px; }
.has-tabbar { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .stepnav { display: block; }
  .tabbar { display: none; }
  .has-tabbar { padding-bottom: 0; }
}

/* ---------- 工作台版心 ---------- */
.page { max-width: 1344px; margin: 0 auto; padding: 32px var(--margin) 72px; }
.page-head { max-width: 860px; }
.page-head .meta { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--stone-3); }
@media (min-width: 768px) { .page { padding: 48px var(--margin) 96px; } }

/* 「现在最该做的一步」：两版共用，放在页标题下面第一眼能看到的位置（平的陶土红浅底，不加阴影） */
.next { margin-top: 28px; padding: 20px; border-radius: 12px; background: var(--accent-soft); }
.next-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 600 13px/1.4 var(--sans); color: var(--accent); letter-spacing: .02em; }
.next-label .via { color: var(--stone); font-weight: 500; letter-spacing: 0; }
.next h2 { margin-top: 10px; font: 600 22px/1.35 var(--sans); letter-spacing: 0; }
.next .why { margin-top: 8px; color: var(--ink); max-width: 46em; }
.next .detail { margin-top: 6px; color: var(--stone); max-width: 46em; }
.next .guide { margin-top: 16px; background: rgb(255 254 253 / .7); color: var(--stone); max-width: 46em; }
.next .guide-h { display: block; font: 600 13px/1.4 var(--sans); color: var(--ink); margin-bottom: 2px; }
.next .btn-row { margin-top: 16px; }
@media (min-width: 768px) {
  .next { margin-top: 36px; padding: 28px 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: end; }
  .next-main { grid-column: 1; grid-row: 1; }
  .next .guide { grid-column: 1; grid-row: 2; }
  .next .btn-row { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .next h2 { font-size: 24px; }
  .next .btn-row { margin-top: 0; flex-direction: column; align-items: stretch; gap: 8px; }
  .next .btn-row .btn-text { align-self: center; }
}

/* 通到哪几家 AI：一行文字，AI 名之间用细点隔开 */
.reach { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; font-size: 14px; line-height: 1.6; color: var(--stone); }
.reach .rk { font-weight: 600; color: var(--stone-3); margin-right: 10px; }
.reach .ai + .ai::before { content: '·'; margin: 0 8px; color: var(--stone-2); }
.reach .none { color: var(--stone-3); }

/* ---------- 路线页 A 版：一条路一整块，从上往下排，步骤展开成待办清单 ---------- */
.ra-list { margin-top: 48px; border-top: 1px solid var(--ink); }
.ra { padding: 32px 0 40px; border-bottom: 1px solid var(--line); }
.ra-head { display: grid; gap: 12px; align-content: start; }
.ra-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ra-summary { font-size: 16px; line-height: 1.7; color: var(--ink); text-wrap: pretty; }
.ra-count { display: grid; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--stone-3); }
.meter { display: block; height: 2px; border-radius: 9999px; background: var(--hair); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--p, 0%); background: var(--ink); }
.steps { margin-top: 24px; border-top: 1px solid var(--hair); }
.step { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.step .si { margin-top: 1px; }
.step-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.step-title { font: 600 16px/1.45 var(--sans); color: var(--ink); }
.step.is-done .step-title { color: var(--stone); font-weight: 500; }
.step-detail { margin-top: 4px; font-size: 15px; line-height: 1.7; color: var(--stone); text-wrap: pretty; }
.step.is-done .step-detail { color: var(--stone-3); font-size: 14px; }
.step .disc { margin-top: 2px; }
.step .st-out { display: none; }
.step .st-in { margin-left: auto; }
.step.is-next { background: linear-gradient(to right, var(--accent-soft), rgb(246 233 226 / 0) 85%); margin: 0 calc(var(--margin) * -1); padding-left: var(--margin); padding-right: var(--margin); grid-template-columns: 22px minmax(0, 1fr); }
.next-mark { font: 600 12px/1 var(--sans); color: #FFFEFD; background: var(--accent); padding: 5px 8px; border-radius: 9999px; letter-spacing: .02em; }
@media (min-width: 768px) {
  .ra { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: calc(var(--gutter) * 2); padding: 40px 0 48px; }
  .ra-head { position: sticky; top: calc(var(--app-top) + 24px); }
  .steps { margin-top: 0; }
  .step { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .step .st-out { display: inline; grid-column: 3; grid-row: 1; margin-left: 16px; padding-top: 2px; }
  .step .st-in { display: none; }
  .step.is-next { margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: 8px; grid-template-columns: 22px minmax(0, 1fr) auto; }
}

/* ---------- 路线页 B 版：左边路的列表，右边选中这条路的步骤（像邮件客户端的两栏）；手机上先列表、点进去看详情 ---------- */
.rb { margin-top: 32px; border-top: 1px solid var(--ink); }
.rb-list { display: grid; }
.rb-item { display: grid; gap: 8px; width: 100%; padding: 20px 0; border-bottom: 1px solid var(--line); text-align: left; position: relative; }
.rb-item .ri-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rb-item .ri-name { font: 600 17px/1.35 var(--sans); }
.rb-item .ri-sum { font-size: 14px; line-height: 1.6; color: var(--stone); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-item .ri-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--stone-3); }
.rb-item .ri-go { width: 16px; height: 16px; color: var(--stone-3); }
.rb-item .ri-next { color: var(--accent); font-weight: 600; }
.rb-pane { display: none; }
.rb-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 8px 0 4px; font: 600 14px/1 var(--sans); color: var(--ink); border-radius: 4px; }
.rb-back .ico { width: 16px; height: 16px; }
.rb.is-detail .rb-list { display: none; }
.rb.is-detail .rb-pane { display: block; }
.rb.is-detail { border-top: 0; margin-top: 8px; }
.rp-head { display: grid; gap: 12px; padding: 8px 0 24px; border-bottom: 1px solid var(--line); }
.rp-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rp-sum { font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.rp-group { margin-top: 28px; }
.rp-group > h3, .rp-done > summary { font: 600 13px/1.4 var(--sans); letter-spacing: .06em; color: var(--stone-3); }
.rp-group > h3 { padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
/* 建议项一组：组标题前一条虚线，和必做分开 */
.rp-group.rp-opt { margin-top: 36px; padding-top: 20px; border-top: 1px dashed var(--ring); }
.rp-head .ra-count { max-width: 320px; }
.acc { border-bottom: 1px solid var(--hair); }
.acc > summary { list-style: none; display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; column-gap: 14px; align-items: start; padding: 16px 0; cursor: pointer; border-radius: 4px; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .chev { width: 16px; height: 16px; margin-top: 4px; color: var(--stone-3); stroke-width: 2; transition: rotate .15s ease-out; }
.acc[open] > summary .chev { rotate: 180deg; }
.acc .acc-body { padding: 0 0 20px 36px; }
.acc .acc-body .step-detail { margin-top: 0; }
.acc .acc-body .guide { margin-top: 12px; }
.acc .acc-body .guide-h { display: block; font: 600 13px/1.4 var(--sans); color: var(--ink); margin-bottom: 4px; }
.acc .acc-body .btn-row { margin-top: 14px; }
.acc .s-sub { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; }
.acc.is-next > summary .step-title { color: var(--ink); }
.rp-done { margin-top: 28px; border-top: 1px solid var(--hair); }
.rp-done > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 52px; cursor: pointer; border-radius: 4px; }
.rp-done > summary::-webkit-details-marker { display: none; }
.rp-done > summary .chev { width: 14px; height: 14px; stroke-width: 2; transition: rotate .15s ease-out; }
.rp-done[open] > summary .chev { rotate: 180deg; }
.rp-done .done-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; padding: 12px 0; border-top: 1px solid var(--hair); }
.rp-done .done-row .step-title { font-weight: 500; color: var(--stone); font-size: 15px; }
.rp-done .done-row .opt { margin-left: 8px; vertical-align: 1px; }
.rp-done .done-row .step-detail { font-size: 14px; color: var(--stone-3); margin-top: 2px; }
@media (hover: hover) { .rb-item:hover { background: var(--wash); } }
/* 手机上点进一条路：只留这条路的详情（页头和「最该做的一步」收起，返回列表再出现） */
@media (max-width: 767px) { body:has(.rb.is-detail) :is(#head, .next) { display: none; } }
@media (min-width: 768px) {
  .rb, .rb.is-detail { margin-top: 36px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); align-items: start; }
  .rb .rb-list, .rb.is-detail .rb-list { display: grid; position: sticky; top: calc(var(--app-top) + 16px); border-right: 1px solid var(--line); }
  .rb .rb-pane, .rb.is-detail .rb-pane { display: block; padding: 28px 0 0 calc(var(--gutter) * 1.5); min-width: 0; }
  .rb-back { display: none; }
  .rb-item { padding: 20px 20px 20px 16px; border-left: 2px solid transparent; }
  .rb-item[aria-current="true"] { background: var(--wash); border-left-color: var(--ink); }
  .rb-item .ri-go { display: none; }
  .rp-head { padding-top: 0; }
}

/* ---------- 快速检查结果页 ---------- */
.check { max-width: 760px; margin: 0 auto; padding: 48px var(--margin) 80px; }
.check-host { font: 500 15px/1.5 var(--sans); color: var(--stone-3); margin-bottom: 16px; }
.check-host b { color: var(--ink); font-weight: 600; }
.h-verdict { font: 600 32px/1.28 var(--serif); font-variation-settings: 'opsz' 60; letter-spacing: 0; text-wrap: balance; }
.check .lead { margin-top: 20px; }
.gaps-h { margin-top: 48px; font: 500 15px/1.4 var(--sans); color: var(--accent); }
.gaps { margin-top: 16px; border-top: 1px solid var(--ink); counter-reset: gap; }
.gaps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.gaps .no { font: 500 15px/1.6 var(--sans); font-variant-numeric: tabular-nums; color: var(--stone-3); }
.gaps h3 { font: 600 18px/1.5 var(--sans); }
.gaps p { margin-top: 6px; font-size: 15px; line-height: 1.75; color: var(--stone); text-wrap: pretty; }
.cta { margin-top: 28px; display: grid; gap: 10px; justify-items: start; }
.cta .small { max-width: 32em; }
.check .disc-wrap { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 8px; }
.facts { margin-top: 8px; display: grid; gap: 20px; font-size: 14px; color: var(--stone); }
.facts h4 { font: 600 13px/1.4 var(--sans); color: var(--ink); margin-bottom: 6px; }
.facts table { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts th, .facts td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--hair); font-weight: 400; vertical-align: top; }
.facts th { font-weight: 600; color: var(--stone-3); font-size: 13px; }
.facts td.v-yes { color: var(--ok); font-weight: 600; }
.facts td.v-no { color: var(--accent); font-weight: 600; }
.facts td.v-na { color: var(--stone-3); }
.facts .fine { color: var(--stone-3); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; }
.chips .y { color: var(--ok); font-weight: 600; }
.chips .n { color: var(--accent); font-weight: 600; }
/* 等待：分阶段的进度（不是空转圈） */
.wait-steps { margin-top: 28px; display: grid; }
.wait-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--hair); font-size: 15px; color: var(--stone-3); }
.wait-steps li.is-done { color: var(--stone); }
.wait-steps li.is-doing { color: var(--ink); font-weight: 600; }
.wait-steps .t { font: 500 13px/1 var(--sans); color: var(--stone-3); font-variant-numeric: tabular-nums; }
.wait-steps .si-doing { border: 2px solid var(--accent); }
.wait-steps .si-doing::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.motion .wait-steps .si-doing::after { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.wait-meta { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--stone-3); }
.wait-meta b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.check .bar { margin-top: 32px; }
@media (min-width: 768px) {
  .check { padding: 64px var(--margin) 120px; }
  .h-verdict { font-size: 44px; }
  .gaps-h { margin-top: 44px; font-size: 18px; }
  .gaps li { grid-template-columns: 64px minmax(0, 1fr); padding: 18px 0 20px; }
  .gaps h3 { font-size: 20px; }
  .gaps p { font-size: 16px; }
  .cta { margin-top: 32px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .facts .wide { grid-column: 1 / -1; }
}

/* ---------- 隐私政策（/privacy，英文长文）：版心、标题、导语沿用结果页的 .check、.h-page、.lead；只补小标题、段落、列表的间距 ---------- */
.policy-date { margin-top: 12px; font: 500 15px/1.5 var(--sans); color: var(--stone-3); }
.policy section { margin-top: 40px; }
.policy h2 { font: 600 18px/1.5 var(--sans); }
.policy section p, .policy li { font-size: 16px; line-height: 1.75; color: var(--stone); text-wrap: pretty; overflow-wrap: break-word; }
.policy h2 + * { margin-top: 10px; }
.policy ul + p { margin-top: 14px; }
.policy ul { display: grid; gap: 10px; padding-left: 1.25em; list-style: disc; }
.policy li::marker { color: var(--stone-2); }
.policy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(26 26 26 / .3); }
@media (hover: hover) { .policy a:hover { text-decoration-color: currentColor; } }
@media (min-width: 768px) {
  .policy section { margin-top: 48px; }
  .policy h2 { font-size: 20px; }
  .policy section p, .policy li { font-size: 17px; }
}

/* ---------- 登录页：桌面左半是首页同款照片（第 1 张），右半是干净的纸色表单；手机上照片收成顶部一条 ---------- */
.login { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.login-media { position: relative; height: 200px; overflow: hidden; background: var(--dark); color: #FFFEFD; }
.login-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%; }
.login-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / .62), rgb(0 0 0 / .45) 70px, rgb(0 0 0 / 0) 160px); pointer-events: none; }
.login-media .brand { position: absolute; z-index: 1; top: 22px; left: var(--margin); color: #FFFEFD; text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.login-panel { display: grid; align-content: start; justify-items: center; padding: 36px var(--margin) 56px; }
.login-box { width: 100%; max-width: 400px; }
.login-box .h-page { font-size: 30px; }
.login-box .lead { font-size: 16px; margin-top: 12px; }
.login-form { margin-top: 28px; display: grid; gap: 20px; }
.captcha { width: 300px; max-width: 100%; height: 65px; display: grid; place-content: center; justify-items: center; gap: 2px; border: 1px dashed var(--ring); border-radius: 6px; background: var(--wash); text-align: center; }
.captcha b { font: 600 14px/1.3 var(--sans); color: var(--stone); }
.captcha span { font: 400 12px/1.3 var(--sans); color: var(--stone-3); }
.captcha[data-state="fail"] { border-color: var(--accent); border-style: solid; }
.login-fine { margin-top: 24px; font-size: 14px; line-height: 1.65; color: var(--stone-3); }
.login-fine a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(26 26 26 / .3); }
.mail-ico { width: 44px; height: 44px; stroke-width: 1.5; color: var(--ink); margin-bottom: 20px; }
.sent-to { margin-top: 20px; padding: 14px 16px; border-radius: 10px; background: var(--wash); font-size: 15px; line-height: 1.6; color: var(--stone); overflow-wrap: anywhere; }
.sent-to b { color: var(--ink); font-weight: 600; }
.trouble { margin-top: 28px; }
.trouble h2 { font: 600 15px/1.4 var(--sans); }
.trouble ol { margin-top: 10px; display: grid; gap: 10px; counter-reset: t; }
.trouble li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.65; color: var(--stone); }
.trouble li::before { counter-increment: t; content: counter(t); position: absolute; left: 0; top: 0; font: 500 13px/1.9 var(--sans); color: var(--stone-3); font-variant-numeric: tabular-nums; }
.login-box .btn-row { margin-top: 28px; }
.verifying { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 15px; color: var(--stone); }
@media (min-width: 900px) {
  .login { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .login-media { height: auto; min-height: 100svh; position: sticky; top: 0; max-height: 100svh; }
  .login-media img { object-position: 30% 50%; }
  .login-media .brand { top: 28px; left: 32px; }
  .login-media .brand .brand-w { font-size: 24px; }
  .login-media .brand .brand-i { width: 28px; height: 28px; }
  .login-panel { align-content: center; padding: 72px 48px; }
  .login-box .h-page { font-size: 40px; }
  .login-box .lead { font-size: 17px; }
}

/* ==================== 第二轮：接商品、做进去、看状态（共用第一轮的外壳、按钮、表单、标签；没有新增颜色变量） ==================== */
code, .mono { font: 500 13px/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0; }
code { padding: 1px 6px; border-radius: 4px; background: var(--wash); color: var(--ink); overflow-wrap: anywhere; }
.sec { margin-top: 56px; }
.sec > .h-sec + .meta, .sec-meta { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--stone-3); max-width: 46em; }
@media (min-width: 768px) { .sec { margin-top: 72px; } }

/* 路线页 B 版补的：建议项小标、从别的页回来时「有变化」的标记 */
.opt { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 9999px; font: 600 12px/1 var(--sans); letter-spacing: .02em; color: var(--stone-3); background: var(--wash); white-space: nowrap; }
.chg-mark { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 9999px; font: 600 12px/1 var(--sans); color: var(--ink); background: var(--tint); white-space: nowrap; }
.changed-note { margin-bottom: 12px; padding: 10px 14px; border-radius: 8px; background: var(--tint); font: 500 14px/1.6 var(--sans); color: var(--ink); }
.acc.is-changed > summary .step-title { color: var(--ink); }

/* 小号按钮（行内操作、复制）：同主次按钮的形，只是矮一档 */
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-text.sm { height: 40px; font-size: 14px; }
.btn-text.quiet { color: var(--stone); text-decoration-color: rgb(72 72 72 / .3); }

/* ---------- 接商品：选方式 ---------- */
.methods { margin-top: 32px; max-width: 760px; border-top: 1px solid var(--ink); }
.method { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 16px; row-gap: 2px; align-items: center; width: 100%; padding: 20px 8px 20px 0; border-bottom: 1px solid var(--line); text-align: left; transition: background-color .15s ease; }
.method .m-ico { grid-row: 1 / span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--tint); color: var(--ink); }
.method .m-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.method .m-name { font: 600 17px/1.4 var(--sans); }
.method .m-desc { grid-column: 2; font-size: 14px; line-height: 1.6; color: var(--stone); text-wrap: pretty; }
.method .m-go { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--sans); }
.method .m-go .ico { width: 16px; height: 16px; }
.method:disabled { cursor: not-allowed; }
.method:disabled .m-name { color: var(--stone); }
.method:disabled .m-ico { background: var(--wash); color: var(--stone-3); }
.soon { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 9999px; border: 1px dashed var(--ring); font: 600 12px/1 var(--sans); color: var(--stone-3); white-space: nowrap; }
@media (hover: hover) { .method:not(:disabled):hover { background: var(--wash); } }
@media (min-width: 768px) { .method { padding-left: 12px; padding-right: 16px; } }

/* ---------- 接商品：连店表单 + Dev Dashboard 指引 ---------- */
.cx { margin-top: 32px; display: grid; gap: 48px; align-items: start; }
.cx-form { display: grid; gap: 20px; max-width: 460px; }
.cx-form .btn-row { margin-top: 4px; }
.cx-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 14px/1 var(--sans); color: var(--ink); border-radius: 4px; }
.cx-back .ico { width: 16px; height: 16px; }
.cx-form .notice ul { margin-top: 8px; display: grid; gap: 8px; padding-left: 18px; list-style: disc; }
.cx-form .notice li::marker { color: var(--stone-3); }
.cx-guide > h2 { font: 600 18px/1.4 var(--sans); }
.cx-guide > p { margin-top: 6px; font-size: 15px; line-height: 1.7; color: var(--stone); max-width: 40em; }
.howto { margin-top: 16px; border-top: 1px solid var(--line); counter-reset: hn; }
.howto details { border-bottom: 1px solid var(--hair); }
.howto summary { list-style: none; display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; column-gap: 14px; align-items: center; padding: 14px 0; cursor: pointer; border-radius: 4px; font: 600 16px/1.45 var(--sans); }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::before { counter-increment: hn; content: counter(hn); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.howto summary .chev { width: 16px; height: 16px; color: var(--stone-3); stroke-width: 2; transition: rotate .15s ease-out; }
.howto details[open] summary .chev { rotate: 180deg; }
.howto .hb { padding: 0 0 20px 42px; font-size: 15px; line-height: 1.7; color: var(--stone); }
.howto .hb p + p, .howto .hb p + ul, .howto .hb ul + p { margin-top: 8px; }
.howto .hb ul { display: flex; flex-wrap: wrap; gap: 6px; }
.shot-ph { margin-top: 14px; max-width: 520px; aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 16px; border: 1px dashed var(--ring); border-radius: 8px; background: var(--wash); font-size: 13px; line-height: 1.5; color: var(--stone-3); text-align: center; }
@media (min-width: 1024px) {
  .cx { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 72px; }
  .cx-guide { padding-top: 6px; }
}

/* ---------- 接商品：正在读店 ---------- */
.sync { margin-top: 32px; max-width: 720px; }
.sync-store { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 15px; color: var(--stone); }
.sync-store b { color: var(--ink); font-weight: 600; font-size: 17px; }
.sync .bar { margin-top: 24px; }
.sync .count { margin-top: 20px; font: 600 22px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.sync .count span { font: 400 15px/1.5 var(--sans); color: var(--stone-3); margin-left: 8px; }
.sync .wait-steps { margin-top: 20px; }
.sync .btn-row { margin-top: 28px; }

/* ---------- 接商品：读完后的商品（B 版两栏：左列表、右档案） ---------- */
.store-sum { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.store-sum .ss-main { min-width: 0; display: grid; gap: 2px; }
.store-sum .ss-name { font: 600 17px/1.35 var(--sans); }
.store-sum .ss-facts { font-size: 14px; line-height: 1.6; color: var(--stone-3); }
.store-sum .ss-facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.store-sum .btn { margin-left: auto; }
.filters { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9999px; border: 1px solid var(--line-strong); font: 600 14px/1 var(--sans); color: var(--stone); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.chip b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--stone-3); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFEFD; }
.chip[aria-pressed="true"] b { color: #D4D4D4; }
@media (hover: hover) { .chip[aria-pressed="false"]:hover { background: var(--wash); } }
.filters + .rb { margin-top: 16px; }
.rb-item .pi-price { font: 500 14px/1.35 var(--sans); color: var(--stone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pi-st { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--stone); }
.pi-st::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; translate: 0 -1px; background: var(--ring); }
.pi-st.st-ok::before { background: var(--ok); }
.pi-st.st-we::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--stone); }
.pi-st.st-you::before { background: var(--accent); }
.pi-st.st-off::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--stone-2); }
.rb-more { width: 100%; min-height: 52px; padding: 0 16px 0 0; font: 600 14px/1 var(--sans); color: var(--ink); text-align: left; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgb(26 26 26 / .3); }
@media (min-width: 768px) { .rb-more { padding-left: 16px; } }
.pd-meta { font-size: 14px; line-height: 1.6; color: var(--stone-3); }
.pd-meta b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rb-pane .notice { margin-top: 20px; }
.rb-pane .notice .btn-text { height: auto; margin-top: 6px; }
.pd-sec { margin-top: 28px; }
.pd-sec > h3 { font: 600 13px/1.4 var(--sans); letter-spacing: .06em; color: var(--stone-3); padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.kv { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.kv dt, .kv dd { padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.6; }
.kv dt { font: 600 13px/1.6 var(--sans); color: var(--stone-3); padding-top: 12px; padding-right: 12px; }
.kv dd { color: var(--ink); overflow-wrap: anywhere; }
.kv .gap { color: var(--accent); font-weight: 600; }
.kv .en { color: var(--ink); }
.fix { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.fix .ft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 600 15px/1.5 var(--sans); }
.fix p { margin-top: 2px; font-size: 14px; line-height: 1.65; color: var(--stone); }
.fix .btn-row { margin-top: 10px; }
.proute { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.proute .pr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.proute .pr-name { font: 600 15px/1.4 var(--sans); }
.proute p { font-size: 14px; line-height: 1.65; color: var(--stone); }

/* ---------- 做进去：修改清单 ---------- */
.from-route { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; line-height: 1.6; color: var(--stone); }
.from-route .btn-text { height: 36px; font-size: 14px; }
.chg-list { margin-top: 32px; max-width: 980px; }
.chg-group + .chg-group { margin-top: 36px; }
.cg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 0 12px; border-top: 1px solid var(--ink); }
.cg-title { font: 600 18px/1.4 var(--sans); }
.cg-meta { font-size: 13px; line-height: 1.5; color: var(--stone-3); }
.chg { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--hair); }
.chg-field { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 600 15px/1.45 var(--sans); }
.chg-body .chg-why { margin-top: 2px; }
.chg-why { font-size: 13px; line-height: 1.6; color: var(--stone-3); }
.diff { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; font-size: 15px; line-height: 1.6; }
.diff dt { font: 600 12px/1.6 var(--sans); color: var(--stone-3); padding-top: 2px; }
.diff dd { overflow-wrap: anywhere; }
/* 原值浅灰加删除线，新值墨色、左边一条墨线：一眼分得清哪个是要改成的 */
.diff .before { color: var(--stone-3); }
.diff .before .v { text-decoration: line-through; text-decoration-color: rgb(107 107 107 / .7); text-decoration-thickness: 1px; }
.diff .after { color: var(--ink); font-weight: 500; padding-left: 12px; border-left: 2px solid var(--ink); }
.diff dt.dt-after { color: var(--ink); }
.diff .none { font-style: normal; color: var(--stone-3); }
.chg-act { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.chg-act .btn-text { height: 40px; font-size: 14px; }
.chg .err { font-size: 14px; line-height: 1.6; color: var(--ink); padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); }
.chg.is-rejected .chg-field { color: var(--stone); font-weight: 500; }
.chg.is-rejected .chg-why, .chg.is-rejected .diff { display: none; }
.wstate { display: inline-flex; align-items: center; gap: 7px; font: 600 13px/1.4 var(--sans); white-space: nowrap; color: var(--stone); }
.wstate .si { width: 18px; height: 18px; }
.wstate .si svg { width: 10px; height: 10px; }
.wstate .spin { width: 16px; height: 16px; }
.w-ok { color: var(--ink); }
.w-bad { color: var(--accent); }
.w-bad::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.w-wait::before { content: ''; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--stone-2); }
.w-muted { color: var(--stone-3); }
.chg-edit { display: grid; gap: 8px; }
.textarea { height: auto; min-height: 104px; padding: 12px 16px; line-height: 1.6; resize: vertical; }
.chg-edit .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.chg-edit .count { font: 500 13px/1 var(--sans); color: var(--stone-3); font-variant-numeric: tabular-nums; }
.manual .guide { margin-top: 8px; }
.manual ol { display: grid; gap: 6px; counter-reset: m; }
.manual ol li { position: relative; padding-left: 22px; }
.manual ol li::before { counter-increment: m; content: counter(m) '.'; position: absolute; left: 0; color: var(--stone-3); font-variant-numeric: tabular-nums; }
.copy-row { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.copy-row .tip { font: 500 13px/1.4 var(--sans); color: var(--ok); }
.run-sum { margin-top: 28px; display: grid; gap: 14px; max-width: 980px; }
.run-sum .rs-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; font: 600 17px/1.45 var(--sans); }
.run-sum .rs-line span { font: 400 14px/1.5 var(--sans); color: var(--stone-3); }
.run-sum .bar { margin-top: 0; }
.write-off { margin-top: 24px; max-width: 980px; }
.write-off .btn-row { margin-top: 10px; }
/* 底部操作条：批准、写回、撤回整批（手机上贴在底部标签栏上面） */
.actbar { position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); z-index: 30; margin: 32px calc(var(--margin) * -1) 0; padding: 12px var(--margin); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; background: rgb(255 254 253 / .96); border-top: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .actbar { background: rgb(255 254 253 / .9); backdrop-filter: blur(12px); } }
.actbar .ab-sum { font-size: 14px; line-height: 1.5; color: var(--stone); }
.actbar .ab-sum b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.actbar .btn-row { gap: 8px 16px; }
/* 编辑一条文字时收起吸底条，保存 / 取消不被盖住 */
body.is-editing .actbar { display: none; }
@media (max-width: 767px) {
  .actbar { padding-top: 8px; padding-bottom: 8px; margin-top: 24px; }
  .actbar .ab-sum { display: none; }
  .actbar .btn { height: 44px; }
  .actbar .btn-row { width: 100%; justify-content: flex-end; }
}
@media (min-width: 768px) {
  .chg { grid-template-columns: 168px minmax(0, 1fr) minmax(150px, auto); column-gap: 28px; align-items: start; }
  .chg > .chg-head { grid-column: 1; }
  .chg > .chg-body { grid-column: 2; display: grid; gap: 10px; }
  .chg > .chg-side { grid-column: 3; justify-self: end; display: grid; justify-items: end; gap: 4px; }
  .chg.is-rejected { grid-template-columns: 168px minmax(0, 1fr) auto; }
  .actbar { bottom: 0; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; max-width: 980px; }
}
@media (max-width: 767px) { .chg > .chg-head, .chg > .chg-body, .chg > .chg-side { display: grid; gap: 8px; } .chg-side { justify-items: start; } }

/* ---------- 看状态：要处理的事、进度、问法、线索来源 ---------- */
.alerts { margin-top: 28px; display: grid; gap: 12px; max-width: 980px; }
.alerts > h2 { font: 600 13px/1.4 var(--sans); letter-spacing: .02em; color: var(--accent); }
.alert { padding: 18px 20px; border-radius: 12px; background: var(--accent-soft); }
.alert h3 { font: 600 17px/1.45 var(--sans); }
.alert p { margin-top: 6px; font-size: 15px; line-height: 1.7; color: var(--ink); max-width: 46em; }
.alert .how { color: var(--stone); }
.alert .btn-row { margin-top: 12px; }
.alert .btn-text { height: 40px; }
.calm { margin-top: 28px; font-size: 15px; color: var(--stone); }
.legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; line-height: 1.5; color: var(--stone-3); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .ladder { gap: 2px; }
.scale { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; counter-reset: lv; }
.scale li { word-break: keep-all; overflow-wrap: anywhere; display: grid; gap: 2px; padding-top: 10px; border-top: 2px solid var(--ink); font-size: 13px; line-height: 1.5; color: var(--stone-3); }
.scale li b { font: 600 14px/1.4 var(--sans); color: var(--ink); }
.scale li b::before { counter-increment: lv; content: counter(lv) ' '; color: var(--stone-3); font-variant-numeric: tabular-nums; margin-right: 4px; }
.scale li.mon { border-top-style: dashed; border-top-color: var(--stone-2); }
@media (min-width: 768px) { .scale { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ladder { display: inline-flex; gap: 3px; }
.ladder i { width: 18px; height: 6px; border-radius: 2px; background: var(--line-strong); }
.ladder i.on { background: var(--ink); }
.ladder i.nt { background: transparent; box-shadow: inset 0 0 0 1px var(--stone-2); }
.ladder i.mon.on { background: repeating-linear-gradient(-45deg, var(--ink) 0 2px, #5A5A5A 2px 4px); }
.mon-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 9999px; border: 1px dashed var(--stone-2); font: 600 12px/1 var(--sans); color: var(--stone); white-space: nowrap; }
.prog { display: none; width: 100%; margin-top: 20px; border-collapse: collapse; table-layout: fixed; }
.prog th { padding: 10px 12px; text-align: left; font: 600 13px/1.4 var(--sans); color: var(--stone-3); border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.prog th:first-child { width: 25%; padding-left: 0; }
.prog tbody th { padding: 14px 12px 14px 0; font: 600 15px/1.45 var(--sans); color: var(--ink); border-bottom: 1px solid var(--line); vertical-align: top; }
.prog tbody th .pm { display: block; margin-top: 2px; font: 400 13px/1.5 var(--sans); color: var(--stone-3); }
.prog td { padding: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cell { width: 100%; min-height: 76px; display: grid; align-content: start; gap: 6px; padding: 14px 12px; text-align: left; border-radius: 6px; transition: background-color .15s ease; }
.cell .lv { font: 600 14px/1.35 var(--sans); color: var(--ink); }
.cell .lv-note { font: 400 12px/1.45 var(--sans); color: var(--stone-3); }
.cell.lv0 .lv { color: var(--stone); }
.cell .flag { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1.4 var(--sans); color: var(--accent); }
.cell .flag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (hover: hover) { .cell:hover { background: var(--wash); } .cell:hover .lv { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(26 26 26 / .3); } }
.prog-m { margin-top: 20px; border-top: 1px solid var(--ink); }
.pm-prod { padding: 16px 0 8px; border-bottom: 1px solid var(--line); }
.pm-prod h3 { font: 600 16px/1.45 var(--sans); }
.pm-prod .pm { font-size: 13px; color: var(--stone-3); }
.pm-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hair); text-align: left; }
.pm-prod .pm + .pm-row, .pm-prod h3 + .pm-row { margin-top: 8px; }
.pm-row .ai { font: 600 14px/1.4 var(--sans); }
.pm-row .lv { grid-column: 1; font-size: 13px; line-height: 1.45; color: var(--stone); }
.pm-row .lv .flag { color: var(--accent); font-weight: 600; }
.pm-row .ladder { grid-column: 2; grid-row: 1 / span 2; }
.pm-row .ico { grid-column: 3; grid-row: 1 / span 2; width: 16px; height: 16px; color: var(--stone-3); }
@media (min-width: 900px) { .prog { display: table; } .prog-m { display: none; } }
/* 手机上点进一个商品：店铺摘要和筛选收起（同路线页 B 版点进一条路时收起页头） */
@media (max-width: 767px) { body:has(.rb.is-detail) :is(.store-sum, .filters) { display: none; } }
/* 凭据：点开一格才看（原生 dialog，Esc / 返回手势关闭，焦点回到那一格） */
.ev { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); overscroll-behavior: contain; }
.ev::backdrop { background: rgb(26 26 26 / .4); overflow: hidden; overscroll-behavior: contain; }
.ev-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 16px 14px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.ev-head h2 { font: 600 19px/1.4 var(--sans); padding-top: 8px; }
.ev-head .ev-sub { display: block; margin-top: 2px; font: 400 14px/1.5 var(--sans); color: var(--stone-3); }
.ev-x { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.ev-x .ico { width: 18px; height: 18px; }
@media (hover: hover) { .ev-x:hover { background: var(--wash); } }
.ev-body { padding: 4px 24px 24px; }
.ev-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.ev-steps .et { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 600 15px/1.45 var(--sans); }
.ev-steps .et .st-label { font-weight: 600; }
.ev-steps p { margin-top: 4px; font-size: 14px; line-height: 1.65; color: var(--stone); }
.ev-steps .when { font-size: 13px; color: var(--stone-3); }
.quote { margin-top: 10px; padding: 12px 14px; border-left: 2px solid var(--line-strong); background: var(--wash); border-radius: 0 6px 6px 0; font-size: 14px; line-height: 1.65; color: var(--stone); }
.quote + .quote { margin-top: 8px; }
.quote b { display: block; font: 600 12px/1.5 var(--sans); color: var(--stone-3); margin-bottom: 2px; }
.quote q { quotes: none; color: var(--ink); }
.ev-foot { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--stone-3); }
@media (max-width: 599px) {
  .ev { width: 100%; max-width: 100%; margin: auto 0 0; max-height: calc(100dvh - 40px); border-radius: 14px 14px 0 0; }
  .ev-body { padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); }
  .ev-head { padding-left: 20px; }
}
.pp-run { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pp-run .pr-text { display: grid; gap: 2px; font-size: 14px; line-height: 1.6; color: var(--stone); }
.pp-run .pr-text b { font: 600 15px/1.5 var(--sans); color: var(--ink); }
.pp-run .pr-act { display: grid; justify-items: end; gap: 4px; }
.pp-run .pr-act .small { text-align: right; }
.pp-run.running { display: grid; justify-content: stretch; }
.pp-run.running .bar { margin-top: 4px; }
.pp-prod { padding: 18px 0 6px; border-bottom: 1px solid var(--line); }
.pp-prod h3 { font: 600 16px/1.45 var(--sans); }
.pq { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; padding: 12px 0; border-top: 1px solid var(--hair); }
.pp-prod h3 + .pq { margin-top: 10px; }
.pq .pk { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 600 12px/1.6 var(--sans); color: var(--stone-3); letter-spacing: .02em; }
.pq .pt { grid-column: 1; font-size: 15px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.pq .pr { grid-column: 1; font-size: 13px; line-height: 1.5; color: var(--stone-3); }
.pq .btn-text { grid-column: 2; grid-row: 1 / span 3; align-self: center; height: 40px; font-size: 14px; }
.pq.is-editing { grid-template-columns: minmax(0, 1fr); }
.pq .chg-edit { margin-top: 4px; }
.leads { margin-top: 16px; padding: 28px 0 8px; border-top: 1px solid var(--line); max-width: 760px; }
.leads h3 { font: 600 17px/1.45 var(--sans); }
.leads p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--stone); }
.leads ul { margin-top: 16px; display: grid; gap: 0; border-top: 1px dashed var(--ring); }
.leads li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--ring); font-size: 14px; color: var(--stone); }
.leads li span:last-child { color: var(--stone-3); }

/* ---------- 评审用：页面最下面一条切换状态的链接（不是产品界面的一部分） ---------- */
.review { margin-top: 0; padding: 20px var(--margin) 28px; border-top: 1px dashed var(--ring); background: #FAF8F5; font: 400 13px/1.6 var(--sans); color: var(--stone-3); }
.review-in { max-width: 1344px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.review b { color: var(--stone); font-weight: 600; margin-right: 4px; }
.review a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(26 26 26 / .25); color: var(--stone); }
.review a[aria-current="true"] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* 进场：页标题和主体淡入上移（只在不要求减少动效时，同 u1 的 rise） */
.motion .rise { animation: rise .7s var(--ease) both; }
.motion .rise-2 { animation-delay: .1s; }
.motion .rise-3 { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
