/* 老人房 App 样式（照原型 docs/老人房App原型/）。字号都乘 --k，右上角【大字】把 --k 调到 1.18。
   R14：正文 ≥ 18px，按钮 ≥ 48px 高。 */
:root {
  --bg: #F6F2EA; --ink: #1E2A2D; --ink-2: #3F4D51; --muted: #56656A; --line: #C9D3D1; --line-2: #E3E0D8;
  --primary: #0E5A5E; --primary-dark: #08393C; --primary-soft: #EEF4F3; --cta: #B4501B;
  --green: #0E5A40; --green-soft: #E6F2EE; --amber: #7A4A00; --amber-soft: #FFF6E9; --amber-line: #F0D9B0;
  --red: #B42318; --sand: #F3EFE6; --card: #FFFFFF;
  --k: 1;
  --shadow: 0 1px 2px rgba(30,42,45,0.06), 0 6px 20px rgba(30,42,45,0.05);
}
html.big { --k: 1.18; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: calc(18px * var(--k)); line-height: 1.6; overflow-x: hidden;
}
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
input:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #E59A62; outline-offset: 2px; }
.serif { font-family: 'Noto Serif SC', serif; }
.wrap { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.muted { color: var(--muted); }
.small { font-size: calc(15px * var(--k)); }
.tiny { font-size: calc(14px * var(--k)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }

/* 顶栏 */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-family: 'Noto Serif SC', serif; font-weight: 700; font-size: calc(20px * var(--k)); }
.brand-sub { font-size: 13px; color: var(--muted); white-space: nowrap; }
.top-actions { display: flex; gap: 8px; flex: none; }
.pill { height: 44px; padding: 0 14px; border-radius: 22px; background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; font-size: 16px; font-weight: 500; }
.pill[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }

/* 通用块 */
.section { padding: 0 16px; }
.card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
h1, h2, h3 { margin: 0; }
.h1 { font-family: 'Noto Serif SC', serif; font-size: calc(28px * var(--k)); line-height: 1.35; font-weight: 700; }
.h2 { font-family: 'Noto Serif SC', serif; font-size: calc(23px * var(--k)); line-height: 1.35; }
.h3 { font-size: calc(20px * var(--k)); line-height: 1.35; }
.lead { margin: 8px 0 0; color: var(--ink-2); }
.flash { margin: 12px 16px 0; padding: 12px 14px; border-radius: 14px; background: var(--green-soft); color: var(--green); font-weight: 500; }
.flash.warn { background: var(--amber-soft); color: var(--amber); border: 1.5px solid var(--amber-line); }

/* 按钮 */
.btn { min-height: 52px; border-radius: 14px; border: 1.5px solid transparent; display: flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; font-size: calc(18px * var(--k)); font-weight: 700; padding: 0 16px; text-align: center; line-height: 1.25; }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { color: #fff; background: #9C4415; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { color: #fff; background: var(--primary-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 400; }
.btn-ghost:hover { color: var(--ink); border-color: var(--primary); }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn:first-child { flex: 1.4; }
.btn-row > .btn:last-child { flex: 1; }
.btn-big { min-height: 56px; border-radius: 16px; font-size: calc(20px * var(--k)); letter-spacing: 1px; }

/* 4 个问题 */
.quiz { margin: 14px 16px 0; padding: 20px 18px; display: flex; flex-direction: column; gap: 22px; }
.q { display: flex; flex-direction: column; gap: 8px; }
.q-label { font-weight: 700; font-size: calc(18px * var(--k)); }
.q-label .en { font-weight: 400; font-size: calc(15px * var(--k)); color: var(--muted); }
.q-help { font-size: calc(15px * var(--k)); color: var(--muted); }
.q-row { display: flex; align-items: center; gap: 10px; }
.field { height: 52px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 14px; font-size: calc(22px * var(--k)); color: var(--ink); background: #fff; min-width: 0; }
.field.age { width: 110px; } .field.inc { width: 190px; } .field.zip { width: 160px; letter-spacing: 1px; }
.field.wide { width: 100%; font-size: calc(18px * var(--k)); }
.stepper { display: flex; align-items: center; width: 190px; height: 52px; border-radius: 12px; border: 1.5px solid var(--line); overflow: hidden; background: #fff; }
.stepper button { width: 56px; height: 100%; border: none; background: var(--primary-soft); color: var(--primary); font-size: 26px; }
.stepper input { flex: 1; width: 100%; min-width: 0; border: none; text-align: center; font-size: calc(22px * var(--k)); font-weight: 700; color: var(--ink); background: transparent; }
.errors { margin: 0; padding: 12px 14px 12px 34px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-size: calc(16px * var(--k)); }

/* 结果分组 */
.group-head { padding: 28px 16px 0; display: flex; flex-direction: column; gap: 6px; }
.group-title { display: flex; align-items: center; gap: 10px; }
.dot { width: 32px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.dot.ok { background: #DCEEE9; } .dot.near { background: #FBEBD3; }
.cards { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 16px; }

/* 房源卡 */
.lcard { overflow: hidden; }
.lcard-link { display: block; text-decoration: none; color: inherit; }
.photo { height: 150px; background: #D7E6E3; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .ph-label { position: absolute; left: 12px; bottom: 10px; font-size: 13px; color: #3E6763; }
.badge { border-radius: 10px; padding: 2px 10px; font-size: calc(15px * var(--k)); font-weight: 500; display: inline-block; }
.photo .badge { position: absolute; right: 12px; top: 12px; }
.badge.red { background: var(--red); color: #fff; font-weight: 700; }
.badge.plain { background: #fff; color: var(--ink); }
.badge.blue { background: #E4ECF6; color: #23446E; }
.badge.sand { background: var(--sand); color: var(--ink-2); }
.lcard-body { padding: 16px 16px 4px; display: flex; flex-direction: column; gap: 6px; }
.lcard-title { font-size: calc(22px * var(--k)); line-height: 1.35; }
.en-line { font-size: calc(15px * var(--k)); color: var(--muted); overflow-wrap: anywhere; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-size: calc(24px * var(--k)); color: var(--primary); }
.price span { font-size: calc(16px * var(--k)); color: var(--ink-2); }
.summary-short { margin: 0; font-size: calc(17px * var(--k)); color: var(--ink-2); }
.reasons { list-style: none; margin: 0; padding: 6px 16px 0; display: flex; flex-direction: column; gap: 6px; }
.reasons li { display: flex; gap: 8px; align-items: center; font-size: calc(17px * var(--k)); }
.reasons li.hl { color: #0E6B4E; font-weight: 500; }
.method { margin: 12px 16px 0; padding: 8px 12px; border-radius: 10px; background: var(--sand); font-size: calc(15px * var(--k)); color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.method.green { background: var(--green-soft); color: var(--green); }
.method.amber { background: var(--amber-soft); color: var(--amber); }
.lcard-actions { padding: 14px 16px 16px; }

/* 差一点 / 其他 */
.near-card { background: #FFFBF3; border: 1.5px solid #EED9B4; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.near-card .t { font-size: calc(20px * var(--k)); font-weight: 700; }
.near-card .why { font-size: calc(17px * var(--k)); color: var(--amber); font-weight: 500; }
details.others { padding: 20px 16px 0; }
details.others > summary { list-style: none; min-height: 52px; border-radius: 14px; border: 1.5px dashed #B9C4C2; color: var(--ink-2);
  font-size: calc(17px * var(--k)); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-align: center; padding: 0 12px; }
details.others > summary::-webkit-details-marker { display: none; }
details.others[open] .when-closed, details.others:not([open]) .when-open { display: none; }
.other-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.other-list a { background: #fff; border-radius: 14px; padding: 12px 14px; font-size: calc(16px * var(--k)); display: flex; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); }
.other-list .lbl { color: var(--muted); flex: none; }

/* 空状态 / 登记 / 页脚 */
.empty { margin: 20px 16px 0; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.signup { margin: 28px 16px 0; background: var(--primary); border-radius: 20px; padding: 20px 18px; color: #fff; display: flex; flex-direction: column; gap: 12px; }
.signup p, .signup label { margin: 0; color: #D5E7E5; font-size: calc(16px * var(--k)); }
.signup .field { border: none; }
.signup .btn { background: #fff; color: var(--primary); border: none; }
.hp { position: absolute; left: -9999px; }
.foot { padding: 24px 16px 28px; display: flex; flex-direction: column; gap: 6px; font-size: calc(15px * var(--k)); color: var(--muted); }
.foot strong { color: var(--ink); font-weight: 500; }

/* 底部菜单 */
.tabbar { position: sticky; bottom: 0; margin-top: auto; background: #fff; border-top: 1px solid var(--line-2); display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); height: 76px; z-index: 10; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: calc(14px * var(--k)); }
.tabbar a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.tabbar a.human { color: var(--cta); font-weight: 700; }

/* 详情页 */
.hero { height: 230px; background: #D7E6E3; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .ph-label { position: absolute; left: 16px; bottom: 40px; font-size: 13px; color: #3E6763; }
.back { position: absolute; left: 16px; top: 14px; height: 44px; padding: 0 16px 0 10px; border-radius: 22px; background: #fff; color: var(--ink);
  text-decoration: none; display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.title-card { margin: -28px 16px 0; position: relative; padding: 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 24px rgba(30,42,45,0.08); }
.title-card .badge { align-self: flex-start; }
.title-card h1 { margin-top: 4px; font-family: 'Noto Serif SC', serif; font-size: calc(26px * var(--k)); line-height: 1.35; }
.title-card .price b { font-size: calc(28px * var(--k)); }
.box { margin: 16px 16px 0; border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.box.white { background: #fff; padding: 18px; gap: 12px; }
.box.green { background: var(--green-soft); }
.box.amber { background: var(--amber-soft); border: 1.5px solid var(--amber-line); }
.box h2 { font-size: calc(20px * var(--k)); display: flex; align-items: center; gap: 8px; }
.box.green h2 { color: var(--green); } .box.amber h2 { color: var(--amber); }
.box p { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.tile .k { font-size: calc(14px * var(--k)); color: var(--muted); }
.tile .v { font-size: calc(18px * var(--k)); font-weight: 700; overflow-wrap: anywhere; }
.tile .y { font-size: calc(14px * var(--k)); color: var(--green); }
.kv { display: flex; flex-direction: column; gap: 4px; }
.kv .k { font-size: calc(15px * var(--k)); color: var(--muted); }
.kv .v { font-size: calc(18px * var(--k)); font-weight: 700; }
.chip { align-self: flex-start; background: var(--sand); color: var(--ink); border-radius: 10px; padding: 3px 12px; font-size: calc(17px * var(--k)); font-weight: 700; }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.plain-list { margin: 0; padding-left: 22px; font-size: calc(17px * var(--k)); color: #2E3B3F; }
.env-row { display: flex; gap: 12px; align-items: flex-start; }
.env-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
.env-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bar { height: 10px; border-radius: 5px; background: #EEF0EE; overflow: hidden; }
.bar > div { height: 100%; background: var(--primary); }
.seg5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.seg5 > div { height: 10px; border-radius: 5px; background: #E3E6E4; }
.seg5 > div.on { background: var(--primary); }
details.src > summary { color: var(--primary); font-size: calc(15px * var(--k)); text-decoration: underline; cursor: pointer; padding: 6px 0; list-style: none; }
details.src > summary::-webkit-details-marker { display: none; }
details.src ul { margin: 0; padding-left: 20px; font-size: calc(14px * var(--k)); color: var(--muted); }
.stickybar { position: sticky; bottom: 0; margin-top: auto; background: #fff; border-top: 1px solid var(--line-2); padding: 12px 16px 16px; display: flex; gap: 10px; z-index: 10; }
.stickybar .btn-cta { flex: 1.6; min-height: 56px; border-radius: 16px; flex-direction: column; gap: 0; }
.stickybar .btn-cta small { font-size: 13px; font-weight: 400; color: #FFE7D6; }
.stickybar .btn-ghost { flex: 1; min-height: 56px; border-radius: 16px; }

/* 找真人 */
.contact-card { margin: 16px 16px 0; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.wechat-id { font-size: calc(24px * var(--k)); font-weight: 700; letter-spacing: 1px; user-select: all; }

/* 登录（T13） */
.login-card { margin: 0 16px; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.login-card .flash { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.field.code { width: 100%; height: 64px; text-align: center; font-size: calc(32px * var(--k)); letter-spacing: 10px; font-weight: 700; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: calc(17px * var(--k)); color: var(--ink-2); }
.check-row input { width: 26px; height: 26px; accent-color: var(--primary); flex: none; }
.row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.linklike { background: none; border: none; padding: 0; min-height: 48px; color: var(--primary); font-size: calc(17px * var(--k)); font-weight: 700; text-decoration: underline; cursor: pointer; font-family: inherit; }

/* 委托流程（T14）：顶部返回 + 3 步进度 */
.flowbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px 4px; }
.flowbar .back-btn { width: 48px; height: 48px; border-radius: 24px; background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  display: flex; align-items: center; justify-content: center; flex: none; }
.flowbar .t { font-size: calc(20px * var(--k)); font-weight: 700; }
.steps { padding: 6px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.steps .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.steps .seg > div { height: 6px; border-radius: 3px; background: var(--line-2); }
.steps .seg > div.on { background: var(--primary); }
.flow { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.picks { display: flex; flex-direction: column; gap: 12px; }
.pick { position: relative; display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 14px 16px; border-radius: 18px;
  background: #fff; border: 1.5px solid #D9DFDD; cursor: pointer; color: var(--ink); }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick .radio { width: 28px; height: 28px; flex: none; border-radius: 14px; border: 2px solid #9FB2AF; background: #fff;
  display: flex; align-items: center; justify-content: center; }
.pick:has(input:checked) { border: 2.5px solid var(--primary); box-shadow: 0 4px 16px rgba(14,90,94,0.12); }
.pick:has(input:checked) .radio { background: var(--primary); border-color: var(--primary); }
.pick:has(input:checked) .radio::after { content: ""; width: 10px; height: 10px; border-radius: 5px; background: #fff; }
.pick input:focus-visible + .radio { outline: 3px solid #E59A62; outline-offset: 2px; }
.pick.off { cursor: default; background: var(--sand); border-style: dashed; }
.pick-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pick-name { font-size: calc(19px * var(--k)); font-weight: 700; }
.pick-line { font-size: calc(16px * var(--k)); color: var(--ink-2); overflow-wrap: anywhere; }
.pick-line.ok { color: var(--green); }
.pick-line.warn { color: #8A5300; }
.pick-edit { font-size: calc(16px * var(--k)); font-weight: 700; min-height: 48px; display: inline-flex; align-items: center; }
.add-btn { min-height: 56px; border-radius: 16px; border: 2px dashed #9FB2AF; background: transparent; color: var(--primary);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: calc(18px * var(--k)); }
.sum { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; }
.sumrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.sumrow:last-child { border-bottom: none; }
.sumrow .k { color: var(--muted); flex: none; }
.sumrow .v { font-weight: 700; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.due { font-size: calc(30px * var(--k)); color: var(--cta); font-weight: 700; }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 400; font-size: calc(18px * var(--k)); margin-right: 8px; }
.paybox { background: var(--primary-soft); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.paybox .big { font-size: calc(20px * var(--k)); font-weight: 700; overflow-wrap: anywhere; user-select: all; }
.copy { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--primary); background: #fff; color: var(--primary); font-weight: 700; font-size: 16px; }
.terms { margin: 0; padding-left: 20px; font-size: calc(15px * var(--k)); color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.ok-mark { width: 84px; height: 84px; border-radius: 42px; background: var(--green); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px #DCEEE6; }
.ok-mark.wait { background: var(--primary); box-shadow: 0 0 0 10px var(--primary-soft); }
.done-head { padding: 40px 16px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: flex; gap: 14px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; }
.timeline .n { width: 30px; height: 30px; border-radius: 15px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none; }
.timeline .line { width: 2px; flex: 1; min-height: 20px; background: var(--line-2); margin: 4px 0; }
.timeline .txt { display: flex; flex-direction: column; padding-bottom: 14px; }
.timeline .txt b { font-size: calc(18px * var(--k)); }
.timeline .txt span { font-size: calc(15px * var(--k)); color: var(--muted); }
/* 家庭档案分步表单 */
.form-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > label, .fld > .lbl { font-weight: 700; font-size: calc(17px * var(--k)); }
.fld .hint { font-size: calc(15px * var(--k)); color: var(--muted); }
.fld .field { width: 100%; font-size: calc(19px * var(--k)); }
select.field { appearance: auto; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; min-height: 48px; padding: 0 18px; border-radius: 24px; border: 1.5px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; cursor: pointer; font-size: calc(17px * var(--k)); }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.chips label:has(input:focus-visible) { outline: 3px solid #E59A62; outline-offset: 2px; }
.member-row { border: 1.5px solid var(--line-2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
[hidden] { display: none !important; }   /* JS 用 hidden 切换，别被 .fld/.paybox 的 display 盖掉 */
.form-actions { display: flex; flex-direction: column; gap: 10px; }
/* 我的账户（T16） */
.svc-card { margin: 16px 16px 0; background: var(--primary); color: #fff; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.svc-k { font-size: calc(15px * var(--k)); opacity: .85; }
.svc-name { font-size: calc(24px * var(--k)); font-weight: 700; }
.svc-sub { font-size: calc(16px * var(--k)); opacity: .9; }
.svc-quota { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.25); margin-top: 6px; }
.svc-seg { display: grid; gap: 4px; }
.svc-seg > div { height: 10px; border-radius: 5px; background: rgba(255,255,255,.3); }
.svc-seg > div.on { background: #fff; }
.svc-bal { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(255,255,255,.25); padding-top: 10px; }
.svc-money { font-size: calc(28px * var(--k)); font-weight: 700; }
.price-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.price-row:last-of-type { border-bottom: none; }
.ledger { display: flex; flex-direction: column; }
.lrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.lrow:last-child { border-bottom: none; }
.lmain { display: flex; flex-direction: column; min-width: 0; }
.lmain span { font-size: calc(15px * var(--k)); color: var(--muted); overflow-wrap: anywhere; }
.lmain a { font-size: calc(16px * var(--k)); color: var(--primary); font-weight: 700; min-height: 32px; display: inline-flex; align-items: center; }
.lamt { font-weight: 700; flex: none; }
.lamt.plus { color: var(--green); }
.receipt { margin: 20px 16px; background: #fff; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
/* 我的申请（T18） */
.who-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.who-tabs a { flex: none; min-height: 48px; padding: 0 16px; border-radius: 24px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; font-size: calc(17px * var(--k)); white-space: nowrap; }
.who-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.ap-stats { margin: 14px 16px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ap-stats > div { background: #fff; border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.ap-stats b { font-size: calc(26px * var(--k)); }
.ap-stats span { font-size: calc(15px * var(--k)); color: var(--muted); }
.ap-stats .hot b { color: var(--cta); }
.ap-sec.todo { color: var(--cta); }
.ap-card { background: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.ap-card.todo { border: 2px solid #E9B48F; }
.ap-card.won { border: 2px solid #9CCBB8; }
.ap-card p { margin: 0; }
.ap-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ap-name { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.ap-name b { font-size: calc(20px * var(--k)); overflow-wrap: anywhere; }
.ap-name span { font-size: calc(15px * var(--k)); color: var(--muted); }
.ap-badge { flex: none; background: var(--primary-soft); color: var(--primary); border-radius: 10px; padding: 2px 10px; font-size: calc(15px * var(--k)); font-weight: 700; }
.ap-badge.todo { background: var(--amber-soft); color: #8A5E00; }
.ap-badge.won { background: var(--green-soft); color: var(--green); }
.ap-badge.end { background: var(--sand); color: var(--ink-2); }
.pbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.pbar > div { height: 8px; border-radius: 4px; background: #E3E6E4; }
.pbar > div.on { background: var(--primary); }
.ap-when { display: flex; gap: 8px; align-items: flex-start; }
.ap-note { white-space: pre-line; background: var(--sand); border-radius: 14px; padding: 10px 12px; }
.lognum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lognum .k { color: var(--muted); }
.lognum .n { font-size: calc(26px * var(--k)); font-weight: 700; letter-spacing: 1px; }
.svc-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.svc-btns form, .svc-btns .btn { width: 100%; }
.svc-btns .btn { flex-direction: column; gap: 0; padding: 6px 8px; min-height: 60px; }
.svc-btns .btn b { font-size: calc(18px * var(--k)); }
.svc-btns .btn span { font-size: calc(15px * var(--k)); color: var(--muted); }
details.tl > summary { list-style: none; min-height: 48px; display: inline-flex; align-items: center; color: var(--primary); font-weight: 700; cursor: pointer; }
details.tl > summary::-webkit-details-marker { display: none; }
details.tl[open] .when-closed, details.tl:not([open]) .when-open { display: none; }
.tl-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.tl-list li { display: flex; gap: 12px; }
.tl-list .rail { display: flex; flex-direction: column; align-items: center; }
.tl-list .dot { width: 14px; height: 14px; border-radius: 7px; background: #9FB2AF; margin-top: 6px; }
.tl-list .dot.on { background: var(--green); }
.tl-list .line { width: 2px; flex: 1; background: #D9DFDD; }
.tl-list .txt { display: flex; flex-direction: column; padding-bottom: 12px; line-height: 1.4; }
.tl-list .txt span { font-size: calc(15px * var(--k)); color: var(--ink-2); }
.tl-list .txt span.muted { color: var(--muted); }
.ap-foot { margin: 22px 16px 0; font-size: calc(15px * var(--k)); color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
@media print { .no-print, .tabbar, .help-line { display: none !important; } body { background: #fff; } .receipt { margin: 0; box-shadow: none; } }
