/* 手机版 · 各页面的排布。只排版，颜色字号仍然只用 tokens.css 里的变量。 */

/* ── 首页 ── */
.agent-hero { position: relative; overflow: hidden; display: grid; gap: 12px; margin: 10px 0 var(--s-5); padding: var(--s-4); border-radius: var(--r-xl); background: var(--bg-2); border: 1px solid var(--line-2); }
.agent-hero::before { content: ""; position: absolute; right: -30%; top: -60%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--blue-tint), transparent); pointer-events: none; }
.agent-hero > * { position: relative; }
.ah-top { display: flex; align-items: center; gap: 8px; }
.ask-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 52px; padding: 0 6px 0 18px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card); color: var(--ink-2); font-size: var(--t-body); transition: transform var(--d-fast) var(--ease); }
.ask-bar:active { transform: scale(.985); }
.ask-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.ah-chips { margin: 0 calc(-1 * var(--s-4)); padding: 2px var(--s-4); }
@supports (background: color-mix(in srgb, white 80%, transparent)) {
  .ah-chips .chip { background: color-mix(in srgb, var(--card) 70%, transparent); }
}
.view > .seg { margin-bottom: var(--s-5); }
.resume { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 14px 14px 14px 12px; border-radius: var(--r-lg); background: var(--bg-2); margin-bottom: var(--s-4); transition: transform var(--d-fast) var(--ease); }
.resume:active { transform: scale(.98); }
.resume-ico { width: 44px; height: 44px; display: grid; place-items: center; color: var(--blue); }
.resume-ico .ico { width: 26px; height: 26px; }
.resume-t { display: grid; gap: 2px; min-width: 0; }
.resume-t b { font-size: var(--t-body); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-t small { font-size: var(--t-meta); color: var(--ink-2); }
.resume > .ico { color: var(--ink-3); }

.feature { display: block; margin-bottom: var(--s-6); transition: transform var(--d-fast) var(--ease); }
.feature:active { transform: scale(.985); }
.feature-cover { aspect-ratio: 16 / 11; border-radius: var(--r-xl); }
.feature-t { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 12px 4px 0; }
.feature-t h2 { font-size: var(--t-lead); font-weight: 600; line-height: 1.3; }
.feature-new { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-meta); color: var(--ink-2); white-space: nowrap; padding-bottom: 3px; }
.feature-new .num { font-size: var(--t-body); color: var(--ink); font-weight: 600; }

.ccards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-3); }
.ccard { display: grid; gap: 2px; transition: transform var(--d-fast) var(--ease); }
.ccard:active { transform: scale(.97); }
.ccard .cover { margin-bottom: 8px; }
.ccard b { font-size: var(--t-body); font-weight: 600; padding: 0 2px; }
.ccard small { font-size: var(--t-meta); color: var(--ink-2); padding: 0 2px; }
@media (prefers-reduced-motion: no-preference) {
  .home-arrive { animation: home-arrive var(--d-mid) var(--ease) calc(var(--home-order, 0) * 38ms) both; }
  .page-hidden .home-arrive { animation-play-state: paused; }
  @keyframes home-arrive { from { opacity: .82; transform: translateY(6px); } }
}

.news-note { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; }
.dot-blue, .news-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: inline-block; flex: none; }
.dot-blue, .news-dot.ours { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.dated-heading {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink-2);
  font-size: var(--t-meta);
  font-weight: 600;
  line-height: 1.45;
}
.dated-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dated-group + .dated-group { margin-top: var(--s-3); }
.dated-list .row { min-height: 52px; padding-block: var(--s-3); gap: var(--s-2); }
.dated-list .r-title { font-size: var(--t-body); }
.news .row, .notice-list .row { grid-template-columns: var(--s-2) minmax(0, 1fr) auto; }
.notice-tools { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.notice-tools [data-notice-count] { color: var(--ink); font-weight: 600; }
.notice-tools .btn { min-height: 44px; }
.notice-tools .btn[aria-disabled="true"] { color: var(--ink-2); border-color: transparent; cursor: default; }
.notice-list .r-title { font-size: var(--t-body); line-height: 1.45; overflow-wrap: anywhere; }
.notice-indicator { width: var(--s-2); height: var(--s-2); border: 1px solid var(--ink-3); border-radius: 50%; transition: background var(--d-mid) var(--ease), border-color var(--d-mid) var(--ease); }
.notice-list .unread .notice-indicator { background: var(--red); border-color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .bell-ring > .ico { transform-origin: 50% 20%; animation: bell-ring var(--d-slow) var(--ease); }
  #bell .dot.settled { animation: notice-settle var(--d-mid) var(--ease) both; }
  [data-read-all][aria-disabled="true"] .ico { animation: notice-check var(--d-mid) var(--ease) both; }
  @keyframes bell-ring { 25% { transform: rotate(-12deg); } 50% { transform: rotate(9deg); } 75% { transform: rotate(-4deg); } }
  @keyframes notice-settle { 35% { transform: scale(1.3); } to { opacity: 0; transform: scale(.2); } }
  @keyframes notice-check { from { opacity: 0; transform: translateY(2px) scale(.78); } }
}

/* ── 客户页 ── */
.c-head { margin-bottom: var(--s-4); }
.c-cover { aspect-ratio: 16 / 10; border-radius: var(--r-xl); margin: 4px 0 var(--s-4); }
.c-meta { margin-top: 2px; }
.c-tabs { position: sticky; top: calc(56px + var(--safe-t)); z-index: 10; margin: 0 calc(-1 * var(--gutter)) var(--s-5); padding: 6px var(--gutter) 10px; background: var(--bg); }
.c-tabs::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; background: linear-gradient(var(--bg), transparent); border-top: 1px solid var(--line-2); pointer-events: none; opacity: 0; transform: translateY(-3px); transition: opacity var(--d-mid) var(--ease), transform var(--d-mid) var(--ease); }
.c-tabs.stuck::after { opacity: 1; transform: none; }
.c-body { min-height: 50vh; }
.c-body.in > :nth-child(-n+4) { animation: rise var(--d-mid) var(--ease) both; animation-delay: calc(var(--i, 0) * 34ms); }

.chap { padding: var(--s-5) 0 var(--s-6); border-bottom: 1px solid var(--line); }
.chap:first-child { padding-top: 0; }
.chap:last-of-type { border-bottom: 0; }
.chap-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.chap-no { font-size: var(--t-meta); color: var(--blue); font-weight: 600; letter-spacing: .04em; }
.chap-name { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-meta); color: var(--ink-2); }
.chap-title { font-size: var(--t-lead); font-weight: 600; line-height: 1.38; letter-spacing: -.005em; margin-bottom: var(--s-4); }
.chap-img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.chap-sites { margin-top: 10px; }
.chap-sites .tag { gap: 4px; }
.chap-nums { margin-top: var(--s-4); }
.chap-nums button { min-width: 0; }
.chap-nums b { display: flex; align-items: baseline; }
.chap-text { margin-top: var(--s-4); color: var(--ink-2); font-size: var(--t-body); line-height: 1.7; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.chap-src { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-top: var(--s-4); padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); font-size: var(--t-meta); color: var(--ink-2); text-align: left; }
.chap-src > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chap-by { margin-bottom: 10px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-key { display: flex; align-items: center; gap: 6px; font-size: var(--t-meta); color: var(--ink-2); margin-top: 8px; }
.chart-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-key i.ln { height: 2px; width: 14px; border-radius: 1px; margin-left: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .plot-on .revenue-bar { animation: bar-up var(--d-mid) var(--ease) var(--bar-delay) both; }
  .plot-on .profit-line { animation: profit-draw var(--d-mid) var(--ease) 220ms both; }
  .plot-on .profit-points { animation: fade var(--d-fast) var(--ease) 320ms both; }
  .plot-on .profit-value { animation: fade var(--d-fast) var(--ease) var(--d-slow) both; }
  .bar-stack.plot-on { transform-origin: left center; animation: bar-share var(--d-slow) var(--ease) both; }
  @keyframes bar-up { from { transform: scaleY(0); } }
  @keyframes profit-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes bar-share { from { transform: scaleX(0); } }
}
.prod-rows .row { grid-template-columns: 1fr auto; padding: 12px 0; }
.dig-rows .row { grid-template-columns: 10px 1fr; padding: 12px 0; }
.dots { margin-top: var(--s-4); }
.dots canvas { display: block; width: 100%; }
.staff-legend .dm-key { grid-template-columns: 0 1fr; }
.dig-more summary { min-height: 44px; padding: var(--s-3) 0; color: var(--blue-ink); font-size: var(--t-meta); cursor: pointer; }
.foot-note { text-align: center; margin: var(--s-6) 0 0; color: var(--ink-2); }

.stats-card { padding: var(--s-4) var(--s-4); }
.stats-card .stats b { font-size: var(--t-head); }
.lead-card h3 { font-size: var(--t-title); font-weight: 600; line-height: 1.4; }
.lead-card p { margin-top: 6px; }
.lead-card footer { display: flex; gap: 8px; margin-top: 12px; }

.timeline { margin-top: var(--s-3); }
.tl-m { font-size: var(--t-meta); color: var(--ink-2); font-weight: 400; margin: var(--s-4) 0 4px; }
.tl-row { display: grid; grid-template-columns: 24px 10px 1fr; align-items: start; gap: 10px; width: 100%; padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line-2); }
.tl-d { font-size: var(--t-body); color: var(--ink-2); padding-top: 1px; }
.tl-row .news-dot { margin-top: 8px; }
.tl-t { display: grid; gap: 2px; min-width: 0; }
.tl-t b { font-weight: 400; font-size: var(--t-body); line-height: 1.45; overflow-wrap: anywhere; }
.tl-t small { font-size: var(--t-meta); color: var(--ink-2); }
.timeline.in .tl-row { animation: rise var(--d-mid) var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms); }

.opp-list { margin-top: var(--s-4); }
.opp { display: grid; gap: 10px; }
.opp-top { display: flex; align-items: center; gap: 8px; }
.opp-top .grow { flex: 1; }
.opp-amt { font-size: var(--t-meta); color: var(--ink-2); }
.opp-amt b { font-size: var(--t-title); color: var(--blue); font-weight: 600; }
.opp h3 { font-size: var(--t-title); font-weight: 600; line-height: 1.4; }
.opp-next { display: flex; align-items: center; gap: 4px; font-size: var(--t-meta); color: var(--ink-2); padding-top: 2px; }
.opp-next .ico { color: var(--blue); }

.sh-h { font-size: var(--t-meta); color: var(--ink-2); font-weight: 600; margin: var(--s-5) 0 var(--s-2); }
.sh-h:first-child { margin-top: 0; }
.chain { display: grid; gap: 0; position: relative; }
.chain li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 0 10px 20px; position: relative; font-size: var(--t-body); }
.chain li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.chain li.guess::before { background: none; box-shadow: 0 0 0 1.5px var(--gold) inset; }
.chain li + li::after { content: ""; position: absolute; left: 7.5px; top: -6px; height: 22px; width: 1px; background: var(--line); }
.chain li.guess { color: var(--gold); }
.chain-end { display: flex; align-items: center; gap: 10px; font-size: var(--t-meta); }
.asks { display: grid; gap: 8px; }
.asks li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: var(--t-body); }
.asks .num { width: 22px; height: 22px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; font-size: var(--t-meta); color: var(--ink-2); }
.sh-actions { display: grid; gap: 10px; margin-top: var(--s-6); }

.plan-note { margin-bottom: var(--s-4); }
.site-card { padding: 0; overflow: hidden; }
.site-thumb { height: 168px; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.site-t { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: var(--s-4) var(--s-4) 0; }
.site-t h3 { font-size: var(--t-title); font-weight: 600; }
.site-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: var(--s-3) var(--s-4) var(--s-4); }

.galaxy-card { position: relative; padding: 0; overflow: hidden; background: #1b1a17; border-color: #26241f; }
.galaxy { display: block; width: 100%; height: 230px; }
.galaxy-cap { position: absolute; left: 16px; bottom: 12px; display: flex; align-items: baseline; gap: 6px; color: #b3ad9f; font-size: var(--t-meta); }
.galaxy-cap b { color: #f4f1e8; font-size: var(--t-lead); font-weight: 600; }
.galaxy-labels { position: absolute; inset: 0; pointer-events: none; }
.galaxy-waves { position: absolute; inset: 0; pointer-events: none; }
.galaxy-waves i { position: absolute; width: 14px; height: 14px; margin: -7px; border: 1.5px solid var(--blue); border-radius: 50%; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .galaxy-waves i { animation: galaxy-ripple var(--d-slow) var(--ease) var(--d-fast) both; }
  @keyframes galaxy-ripple { from { transform: scale(.8); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
}
.galaxy-labels span {
  position: absolute; padding: 2px var(--s-2); border-radius: var(--r-sm); white-space: nowrap;
  color: var(--galaxy-label-ink); background: var(--galaxy-label-bg); font-size: var(--t-meta); line-height: 1.25;
}
.galaxy-actions .row, .galaxy-results .row { grid-template-columns: minmax(0, 1fr) auto; }
.galaxy-results .r-sub { display: block; overflow-wrap: anywhere; }

/* ── 现场方案 ── */
.st-head { margin: 4px 0 var(--s-4); }
.st-title { font-size: var(--t-head); font-weight: 600; line-height: 1.25; }
.seg button .ico { vertical-align: -3px; margin-right: 4px; }
.st-map-board {
  margin-inline: calc(-1 * var(--s-2));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--card);
}
.st-map-tools { padding: var(--s-2); }
.stage { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; background: var(--bg-2); scroll-margin-top: calc(56px + var(--safe-t) + var(--s-2)); }
.stage:focus-visible { outline-offset: -3px; }
.stage canvas { display: block; width: 100%; }
.st-map-readout { padding: 0 var(--s-3) var(--s-3); }
.st-impact-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--blue-ink); }
.st-impact-layer[data-impact="loss"] { color: var(--red); }
.st-impact-fill { fill: currentColor; opacity: .12; }
.st-impact-edge { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.st-impact-summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); background: var(--bg-2); }
.st-impact-summary p { color: var(--ink); flex: 1; }
.st-impact-summary button { flex: none; }
.split { position: absolute; top: 36px; bottom: 0; left: 0; width: 0; pointer-events: none; }
.split::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--ink); opacity: .85; }
.split-knob { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-float); display: flex; align-items: center; justify-content: center; color: var(--ink); pointer-events: auto; cursor: ew-resize; }
.split-knob .ico { width: 14px; height: 14px; margin: 0 -2px; }
.stage.drag .split-knob { box-shadow: 0 0 0 2px var(--blue-tint), var(--shadow-float); }
.st-tag { position: absolute; top: 10px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); display: inline-flex; align-items: center; font-size: var(--t-meta); font-weight: 600; transition: opacity var(--d-mid); background: var(--card); }
.st-tag.l { left: 12px; color: var(--red); }
.st-tag.r { right: 12px; color: var(--blue); }
.st-scale { position: absolute; top: var(--s-2); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; color: var(--ink-2); font-size: var(--t-meta); pointer-events: none; }
.st-scale i { height: var(--s-1); border: 1px solid currentColor; border-top: 0; }
.st-busy { position: absolute; top: 10px; left: 12px; min-height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--r-pill); background: var(--card); color: var(--ink-2); font-size: var(--t-meta); pointer-events: none; }
.st-busy:empty, .stage.calculating .st-tag { visibility: hidden; }
.st-scan { position: absolute; left: -16%; top: 36px; bottom: 0; width: 16%; pointer-events: none; visibility: hidden; background: linear-gradient(90deg, transparent, var(--blue-tint)); border-inline-end: 1px solid var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .stage.calculating:not(.offscreen) .st-scan { visibility: visible; animation: floor-scan 580ms linear infinite; }
  .st-impact-layer.tracing .st-impact-edge { animation: st-impact-mark var(--d-slow) var(--ease); }
  @keyframes floor-scan { to { transform: translateX(725%); } }
  @keyframes st-impact-mark { 25% { stroke-width: 3.5; } }
}
.st-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-2); border-top: 1px solid var(--line-2); padding-block: var(--s-2); font-size: var(--t-meta); color: var(--ink-2); }
.st-legend span { display: inline-flex; align-items: center; gap: var(--s-1); white-space: nowrap; }
.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg.bad { background: var(--red-wash); }
.lg.ok { background: var(--blue-wash); }
.lg.dev { border-radius: 50%; width: 9px; height: 9px; background: var(--blue); box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--blue-tint); }
.lg.old { border-radius: 50%; width: 9px; height: 9px; background: var(--card); box-shadow: 0 0 0 1.3px var(--ink-2) inset; }
.st-kpi { display: grid; gap: var(--s-2); }
.st-coverage, .st-quote { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); border-top: 1px solid var(--line-2); padding-top: var(--s-2); }
.kpi-nums { display: flex; align-items: center; flex: none; gap: var(--s-2); }
.kpi-nums .ico { color: var(--ink-3); }
.kpi-a { font-size: var(--t-title); color: var(--red); font-weight: 600; }
.kpi-b { font-size: var(--t-head); color: var(--blue-ink); font-weight: 600; line-height: 1.1; }
.st-price { flex: 1; grid-auto-columns: minmax(0, 1fr); }
.st-price > * { padding-inline: var(--s-2); }
.st-price b { font-size: var(--t-title); }
.st-price strong { color: var(--ink); font-weight: 600; }
.st-quote > .btn { flex: none; min-height: 44px; padding-inline: var(--s-3); }
@media (max-width: 360px) {
  .st-head { margin-block: 0 var(--s-2); }
  .st-map-tools { padding-block: var(--s-1); }
}
.acts { display: grid; }
.act { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); transition: opacity var(--d-mid); }
.act.off .act-main b, .act.off .act-gain { color: var(--ink-2); }
.act-main { display: grid; gap: 3px; min-width: 0; }
.act-main b { font-size: var(--t-body); font-weight: 600; }
.act-main small { font-size: var(--t-meta); color: var(--ink-2); line-height: 1.5; }
.act-end { display: flex; align-items: center; gap: 10px; }
.act-gain { font-size: var(--t-meta); color: var(--blue); font-weight: 600; }
.act-impact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-1) var(--s-2); border-radius: var(--r-md); background: var(--bg-2); }
.act-impact p { color: var(--ink); }
.st-cta { position: sticky; bottom: calc(var(--tabbar-h) + var(--tabbar-gap) + var(--safe-b) + 10px); margin-top: var(--s-6); z-index: 5; }
.st-cta .btn { box-shadow: var(--shadow-float); height: 52px; }

/* ── 产品 ── */
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); margin-top: var(--s-3); }
.pcard { display: grid; gap: var(--s-2); align-content: start; transition: transform var(--d-fast) var(--ease); }
.pcard:active { transform: scale(.97); }
.pcard-img { aspect-ratio: 1.55; border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; }
:root[data-theme="dark"] :is(.pd-fig img, .book-cover img) { filter: brightness(.82) contrast(1.04); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.pd-fig img, .book-cover img) { filter: brightness(.82) contrast(1.04); } }
.pcard-t { display: grid; gap: var(--s-1); padding: 0 var(--s-1); }
.pcard-t b { font-size: var(--t-title); font-weight: 600; }
.pcard-t small { font-size: var(--t-meta); color: var(--ink-2); }
.pcard[data-product="compute"] {
  grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
}
.pcard[data-product="compute"] .pcard-t { grid-row: 1; grid-column: 1; padding-left: var(--s-1); }
.pcard[data-product="compute"] .pcard-img { grid-row: 1; grid-column: 2; }
@supports (background: color-mix(in srgb, white 80%, transparent)) and ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .st-tag { background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.product-view > .pd-chapters {
  margin: var(--s-1) 0 var(--s-3);
  --fade-start: 0px;
  --fade-end: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) var(--fade-start), var(--ink) var(--fade-end), transparent);
  mask-image: linear-gradient(90deg, transparent, var(--ink) var(--fade-start), var(--ink) var(--fade-end), transparent);
}
.product-view > .pd-chapters[data-before] { --fade-start: var(--s-4); }
.product-view > .pd-chapters[data-after] { --fade-end: calc(100% - var(--s-4)); }
.pd-chapters.scroll button { flex: 1 0 auto; padding-inline: var(--s-2); font-size: var(--t-meta); }
.pd-chapters .thumb, .pd-controls .seg .thumb { border: 1px solid var(--line); }

.pd-fig { margin: 0 calc(-1 * var(--gutter)); background-color: var(--bg-2); touch-action: pan-y; }
.pd-inspection { display: grid; align-items: center; grid-template-columns: minmax(44px, 1fr) minmax(0, 236px) minmax(44px, 1fr); padding: var(--s-2) var(--gutter) 0; }
.pd-reset { display: inline-flex; justify-self: start; align-items: center; gap: var(--s-1); min-height: 44px; min-width: 44px; color: var(--blue-ink); font-size: var(--t-meta); }
.pd-reset:disabled { visibility: hidden; }
.pd-pager { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; }
.pd-pager .icon-btn { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pd-pager .icon-btn:active { background: var(--raised); }
.pd-pager .icon-btn:disabled { opacity: .45; }
.pd-part-title { display: grid; justify-items: center; text-align: center; padding-inline: var(--s-1); line-height: 1.2; }
.pd-part-title b { font-size: var(--t-body); font-weight: 600; }
.pd-part-title small { font-size: var(--t-meta); color: var(--ink-2); margin-top: var(--s-1); }
.pd-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 10; touch-action: pan-y; }
.pd-stage:focus-visible { outline-offset: -2px; }
.pd-stage[data-render="live"] { cursor: grab; }
.pd-stage[data-render="live"]:active { cursor: grabbing; }
.pd-stage .lab-poster, .pd-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pd-stage[data-motion] :is(.lab-poster, .lab-pins) { visibility: hidden; }
.pd-stage .pd-motion-canvas { pointer-events: none; }
.pd-stage .lab-pins { position: absolute; inset: 0; pointer-events: none; }
.pd-stage .lab-pins button { position: absolute; min-height: 44px; min-width: 44px; padding: 0 var(--s-2); pointer-events: auto; border-radius: var(--r-pill); color: var(--blue-ink); background: var(--card); font-size: var(--t-meta); box-shadow: var(--shadow-card); }
.pd-tools { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 44px; padding: 0 var(--gutter); }
.pd-tool-buttons { display: flex; gap: var(--s-1); }
.pd-tool-buttons button { min-width: 44px; min-height: 44px; padding: 0 var(--s-1); color: var(--blue-ink); font-size: var(--t-meta); }
.pd-controls { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.pd-controls:empty { margin: 0; }
.pd-controls .seg { grid-auto-columns: minmax(0, 1fr); }
.pd-controls .seg button { padding: var(--s-1) var(--s-2); white-space: normal; }
.pd-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--s-2); width: 100%; min-height: 44px; padding: 0 var(--s-3); text-align: left; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink-2); font-size: var(--t-meta); }
.pd-picker b { color: var(--ink); font-weight: 600; }
.pd-action { justify-self: start; }
.pd-reading { margin: var(--s-4) 0 var(--s-3); touch-action: pan-y; }
.pd-title { font-size: var(--t-lead); font-weight: 600; line-height: 1.32; }
.pd-reading p, .pd-outline-body p { margin-top: var(--s-1); color: var(--ink-2); font-size: var(--t-body); line-height: 1.6; }
.pd-option-list .row { grid-template-columns: minmax(0, 1fr) auto; min-height: 44px; text-align: left; }

.pd-outline { border-block: 1px solid var(--line); }
.pd-outline summary, .pd-price-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  min-height: 44px; width: 100%; color: var(--ink); font-size: var(--t-body); text-align: left;
}
.pd-outline summary { cursor: pointer; list-style: none; }
.pd-outline summary::-webkit-details-marker { display: none; }
.pd-outline[open] summary .ico { transform: rotate(180deg); }
.pd-outline-body { padding-bottom: var(--s-3); }
.pd-nums { margin-top: var(--s-3); }
.pd-nums > div b { font-size: var(--t-lead); }
.pd-price-row { border-bottom: 1px solid var(--line); }
.pd-price-row small { margin-inline-start: var(--s-1); color: var(--ink-2); font-size: var(--t-meta); }
.pd-questions { margin-top: var(--s-4); border-bottom: 1px solid var(--line); }
.pd-questions h2 { font-size: var(--t-title); font-weight: 600; }
.pd-questions .ask-row { min-height: 44px; padding: var(--s-2) 0; border-radius: 0; background: transparent; }
.pd-questions .ask-row + .ask-row { border-top: 1px solid var(--line-2); }
.ask-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-2); text-align: left; font-size: var(--t-body); transition: transform var(--d-fast) var(--ease), background var(--d-fast); }
.ask-row:active { transform: scale(.98); background: var(--raised); }
.ask-row .ico { color: var(--blue); }
.pd-nav { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); }
.pd-nav .btn { flex: 1; }
.pd-nav .btn.ghost { flex: none; padding: 0 var(--s-4); }

.pd-diagram {
  padding: var(--s-2) var(--s-1);
  background-color: var(--bg);
  --plane-top: var(--card);
  --plane-front: var(--raised);
  --plane-side: var(--line);
}
:root[data-theme="dark"] .pd-diagram { --plane-top: var(--line); --plane-side: var(--bg-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pd-diagram { --plane-top: var(--line); --plane-side: var(--bg-2); }
}
.product-flow { display: block; width: 100%; max-width: 420px; margin-inline: auto; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.scene-floor-under { fill: var(--raised); stroke: var(--line); stroke-width: .85; }
.scene-floor-top { fill: var(--bg-2); stroke: var(--line); stroke-width: .85; }
.scene-floor-joint { stroke: var(--line); stroke-width: .65; opacity: .65; }
.scene-zone { fill: var(--card); stroke: var(--line); stroke-width: .8; }
.scene-perimeter { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.scene-corner-wall { stroke: var(--raised); stroke-width: 3; }
.scene-object { stroke: var(--ink-2); stroke-width: .74; }
.scene-contact { fill: var(--ink); stroke: none; opacity: .09; }
.scene-side { fill: var(--plane-side); }
.scene-front { fill: var(--plane-front); }
.scene-top { fill: var(--plane-top); }
.scene-inlay { fill: var(--raised); stroke: var(--ink-3); stroke-width: .48; }
.scene-slot { fill: var(--ink-2); stroke: none; opacity: .74; }
.scene-pin { fill: var(--ink-2); stroke: none; opacity: .72; }
.scene-display, .scene-terminal { fill: var(--line); stroke: var(--ink-3); stroke-width: .5; }
.scene-steel { stroke-width: 1.15; }
.scene-seam { stroke-width: .5; }
.scene-led { fill: var(--ink-3); stroke: none; transition: fill var(--d-mid) var(--ease); }
.scene-radio { opacity: .39; stroke: var(--ink-3); stroke-width: .9; transition: stroke var(--d-mid), opacity var(--d-mid); }
.flow-point.is-on :is(.scene-led, .scene-display, .scene-terminal) { fill: var(--blue-ink); }
.flow-point.is-on .scene-display { opacity: .52; }
.flow-point.is-on .scene-radio { stroke: var(--blue-ink); opacity: .72; }
.flow-road-edge { stroke: var(--line); stroke-width: 16; }
.flow-road { stroke: var(--card); stroke-width: 14; }
.flow-track { stroke: var(--ink-2); stroke-width: 1.35; stroke-dasharray: 3 4; transition: stroke var(--d-mid); }
.flow-wire.is-on .flow-track { stroke: var(--blue-ink); stroke-width: 2.3; stroke-dasharray: none; }
.flow-channel, .flow-travel, .flow-direction { opacity: 0; transition: opacity var(--d-mid) var(--ease); }
.flow-channel { stroke: var(--blue); stroke-width: 8; }
.flow-travel { stroke: var(--blue); stroke-width: 4; stroke-dasharray: 6 32; }
.flow-direction { stroke: var(--blue-ink); stroke-width: 1.8; }
.flow-wire.is-on .flow-channel { opacity: .12; }
.flow-wire.is-on .flow-travel { opacity: .67; }
.flow-wire.is-on .flow-direction { opacity: 1; }
.pd-diagram[data-in-view] .flow-wire.is-on .flow-travel { animation: pd-packet 2.6s linear infinite; }
@keyframes pd-packet { to { stroke-dashoffset: -38; } }
@media (prefers-reduced-motion: reduce) {
  .pd-diagram[data-in-view] .flow-wire.is-on .flow-travel { animation: none; }
  .flow-wire.is-on .flow-travel { opacity: 0; }
}
.flow-point text, .flow-annotation { font-size: var(--t-meta); fill: var(--ink-2); stroke: var(--bg-2); stroke-width: 2.4; paint-order: stroke; }
.flow-point.is-on text { fill: var(--blue-ink); font-weight: 600; }
.pd-diagram[data-structure] .flow-point text { font-size: var(--t-body); }
.pd-diagram[data-structure] .flow-travel { display: none; }
.flow-fault { stroke: var(--red); stroke-width: 1.8; }
.flow-fault circle { fill: var(--card); }

.pd-diagram--line { padding: 0; }
.line-views { position: relative; z-index: 1; }
.line-diorama { position: relative; aspect-ratio: 360 / 202; margin-top: calc(-1 * var(--s-2)); }
.line-diorama :is(.line-photo, .line-map) { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.line-photo { object-fit: contain; visibility: hidden; }
.line-diorama[data-view="model"] .line-photo { visibility: visible; }
.line-map .flow-travel { display: none; }
.line-map[data-playable]:not([data-run="idle"]) .flow-wire.is-on :is(.flow-track, .flow-direction) { opacity: .32; }
.line-map :is(.line-endpoint, .line-road-label) {
  fill: var(--ink); stroke: var(--bg); stroke-width: 3.2; paint-order: stroke;
  font-size: var(--t-meta); font-weight: 600;
}
.line-map .line-road-label { fill: var(--ink-2); font-weight: 400; }
.line-map [data-line-lane] { visibility: hidden; }
.line-map [data-line-lane][data-active] { visibility: visible; }
.line-track { stroke: var(--blue-ink); stroke-width: 2.1; opacity: 0; transition: opacity var(--d-mid) var(--ease); }
.line-wire.is-on .line-track { opacity: .76; }
.line-map:not([data-run="idle"]) .line-wire.is-on .line-track { opacity: .27; }
.line-map [data-wire="test"] .line-track { stroke-dasharray: 3 3; }
.line-trail { stroke: var(--blue); stroke-width: 3.1; }
.line-station, .line-fixed-node { fill: var(--card); stroke: var(--blue-ink); stroke-width: 1.3; }
.line-station.is-current { fill: var(--blue); }
.line-fixed-node { opacity: 0; }
.line-map:not([data-playable]) .line-fixed-node.is-on { opacity: 1; }
.line-packet circle { fill: var(--blue); opacity: .24; }
.line-packet rect { fill: var(--blue-ink); stroke: var(--card); stroke-width: 1.2; }
.line-packet path { stroke: var(--card); stroke-width: 1; }
.line-demonstration { margin: calc(-1 * var(--s-2)) var(--gutter) var(--s-2); position: relative; }
.line-ledger { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
.line-ledger li { position: relative; display: grid; justify-items: center; gap: var(--s-1); color: var(--ink-2); text-align: center; font-size: var(--t-meta); }
.line-ledger li::before { content: ""; z-index: 1; width: var(--s-2); height: var(--s-2); border: 1px solid var(--line); background: var(--card); border-radius: 50%; }
.line-ledger li:not(:last-child)::after { content: ""; position: absolute; top: var(--s-1); left: 50%; width: calc(100% + var(--s-1)); border-top: 1px solid var(--line); }
.line-ledger li[data-passed]::before, .line-ledger li[data-passed]::after { border-color: var(--blue-ink); }
.line-ledger li[aria-current] { color: var(--blue-ink); font-weight: 600; }
.line-ledger li[aria-current]::before { background: var(--blue); border-color: var(--blue-ink); }
.line-actions { display: flex; gap: var(--s-3); align-items: center; margin-top: var(--s-2); }
.line-send { min-height: 44px; min-width: 10em; padding-inline: var(--s-3); flex: none; }
.line-status { min-width: 0; color: var(--ink-2); font-size: var(--t-meta); }

.pd-diagram--fiveg { padding: 0; }
.fiveg-scene { max-width: 420px; margin-inline: auto; }
:is(.fiveg-views, .line-views) { display: flex; gap: var(--s-1); justify-content: flex-end; padding-inline: var(--gutter); }
:is(.fiveg-views, .line-views) button { min-height: 44px; padding-inline: var(--s-3); border: 1px solid transparent; border-radius: var(--r-pill); font-size: var(--t-meta); color: var(--ink-2); }
:is(.fiveg-views, .line-views) button:disabled { opacity: .48; }
:is(.fiveg-views, .line-views) [aria-pressed="true"] { background: var(--blue-tint); border-color: var(--blue-wash); color: var(--blue-ink); font-weight: 600; }
.fiveg-stage { position: relative; aspect-ratio: 360 / 184; width: calc(100% - var(--s-3)); margin: calc(-1 * var(--s-2)) auto 0; }
.fiveg-stage :is(.fiveg-photo, .fiveg-map) { position: absolute; inset: 0; width: 100%; height: 100%; }
.fiveg-photo, .fiveg-scene[data-view="model"][data-model-ready] .fiveg-symbol { opacity: 0; visibility: hidden; }
.fiveg-scene[data-view="model"][data-model-ready] .fiveg-photo { opacity: 1; visibility: visible; }
.fiveg-zone { stroke-width: 1; }
.fiveg-zone--park { fill: var(--bg-2); stroke: var(--ink-3); stroke-dasharray: 3 4; }
.fiveg-scene[data-view="model"][data-model-ready] .fiveg-zone { fill-opacity: 0; }
.fiveg-zone-label { fill: var(--ink-2); font-size: var(--t-meta); }
.fiveg-map .fiveg-point text { fill: var(--ink); stroke: none; font-size: var(--t-body); }
.fiveg-map .fiveg-point.is-on text { font-weight: 600; }
.fiveg-map .fiveg-point.is-current text { fill: var(--blue-ink); }
.fiveg-label-base { opacity: 0; visibility: hidden; fill: var(--card); stroke: var(--line); stroke-width: .75; }
.fiveg-scene[data-view="model"][data-model-ready] .fiveg-label-base { opacity: 1; visibility: visible; }
.fiveg-point.is-current .fiveg-label-base { stroke: var(--blue-ink); }
.fiveg-symbol { stroke: var(--ink-2); stroke-width: 1.45; }
.fiveg-node-box { fill: var(--card); stroke: var(--line); }
.fiveg-point.is-on .fiveg-symbol { stroke: var(--blue-ink); }
.fiveg-point.is-on .fiveg-node-box { fill: var(--blue-tint); stroke: var(--blue-ink); stroke-width: .9; }
.fiveg-point.is-current .fiveg-node-box { stroke-width: 2; }
.fiveg-node-done { opacity: 0; }
.fiveg-point.is-passed .fiveg-node-done { opacity: 1; }
.fiveg-map[data-traffic="branch"] [data-point="upf"] .fiveg-node-box { stroke-width: 2; }
.fiveg-wire-under { stroke: var(--bg); stroke-width: 5.5; }
.fiveg-wire .flow-track { stroke-width: 1.55; }
.fiveg-wire.is-on .flow-track { stroke-width: 2.8; }
@media (prefers-reduced-motion: no-preference) {
  .fiveg-photo, .fiveg-label-base { transition: opacity var(--d-mid) var(--ease), visibility 0s linear var(--d-mid); }
  .fiveg-symbol, .fiveg-scene[data-view="model"][data-model-ready] :is(.fiveg-photo, .fiveg-label-base) { transition: opacity var(--d-mid) var(--ease), visibility 0s; }
  .fiveg-scene[data-view="model"][data-model-ready] .fiveg-symbol { transition-delay: 0s, var(--d-mid); }
  .fiveg-zone { transition: fill-opacity var(--d-mid) var(--ease), stroke-opacity var(--d-mid) var(--ease); }
}
.fiveg-packet[hidden] { display: none; }
.fiveg-packet circle { fill: var(--blue); opacity: .22; }
.fiveg-packet rect { fill: var(--blue-ink); stroke: var(--bg); stroke-width: 1.3; }
.fiveg-packet path { stroke: var(--bg); stroke-width: 1.1; }
.fiveg-traffic, .fiveg-caption { display: flex; align-items: center; gap: var(--s-2); }
.fiveg-play { flex: 1; min-width: 0; min-height: 44px; padding-inline: var(--s-2); }
.fiveg-play .ico { fill: currentColor; stroke: none; }
.fiveg-play[aria-pressed="true"] { color: var(--blue-ink); border-color: var(--blue-ink); background: var(--blue-tint); }
.fiveg-caption { justify-content: space-between; }
.fiveg-caption button { flex: none; min-height: 44px; min-width: 44px; font-size: var(--t-meta); color: var(--blue-ink); }
.fiveg-caption button[aria-pressed="true"] { font-weight: 600; }
.fiveg-status { color: var(--ink-2); font-size: var(--t-meta); }
.fiveg-controls + .pd-reading { margin-top: var(--s-1); }

/* ── Agent ── */
.view.agent-view { padding-bottom: calc(var(--tabbar-h) + var(--tabbar-gap) + var(--safe-b) + var(--dock-height, 110px) + 28px); }
.agent-history-list .row { grid-template-columns: minmax(0, 1fr) auto; min-height: 60px; }
.agent-history-list .r-title { font-size: var(--t-body); font-weight: 600; }
.agent-history-list .r-sub { white-space: nowrap; display: block; overflow: hidden; text-overflow: ellipsis; }
.agent-history-list time { font-variant-numeric: tabular-nums; }
.agent-history-list [aria-current="true"] .r-end { color: var(--blue-ink); }
.msg-ai[data-restored] :is(.ai-phrase, .ai-srcs button, .ai-follow, .agent-tick) { animation: none; }
.agent-dock { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + var(--tabbar-gap) + var(--safe-b) + 10px + var(--kb, 0px)); display: grid; gap: 8px; transition: bottom var(--d-slow) var(--ease); }
body.nav-hidden .agent-dock { bottom: calc(var(--safe-b) + 10px + var(--kb, 0px)); }
@media (min-width: 640px) { .agent-dock { max-width: 406px; margin: 0 auto; } }
.ctx-pill { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; max-width: 100%; padding: 0 4px 0 12px; border-radius: var(--r-pill); background: var(--blue-tint); color: var(--blue-ink); font-size: var(--t-meta); }
.ctx-pill > span { min-width: 0; padding-block: var(--s-1); overflow-wrap: anywhere; }
.ctx-pill button { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; color: inherit; }
.agent-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: var(--s-6) 0 0; }
.agent-empty h1 { font-size: var(--t-lead); font-weight: 600; margin-top: var(--s-3); }
.big-orb { width: 72px; height: 72px; border-radius: 50%; border: 6px solid var(--blue-tint); position: relative; display: grid; place-items: center; color: var(--blue-ink); box-shadow: 0 12px 40px -12px var(--blue-wash); }
.big-orb .orb-arc { position: absolute; inset: -6px; width: 72px; height: 72px; fill: none; stroke: var(--blue); stroke-width: 5px; stroke-linecap: round; stroke-dasharray: 18 82; opacity: .75; }
.big-orb .agent-glyph { width: 30px; height: 30px; }
.ah-top .agent-glyph { color: var(--blue-ink); }
@media (prefers-reduced-motion: no-preference) {
  .ctx-enter { animation: ctx-arrive var(--d-slow) var(--ease) 80ms both; }
  .big-orb.motion-visible .orb-arc { animation: spin 9s linear infinite; }
  .page-hidden .big-orb .orb-arc { animation-play-state: paused; }
  @keyframes ctx-arrive { from { opacity: 0; transform: translate(var(--ctx-x), -16px); } }
}
.agent-asks { width: 100%; margin-top: var(--s-5); text-align: left; }
.can { width: 100%; display: grid; gap: 10px; margin-top: var(--s-5); text-align: left; }
.can-row { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: center; width: 100%; padding: 14px; border-radius: var(--r-lg); background: var(--bg-2); text-align: left; transition: transform var(--d-fast) var(--ease); }
.can-row:active { transform: scale(.98); }
.can-ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); color: var(--blue); }
.can-t { display: grid; gap: 1px; min-width: 0; }
.can-t b { font-size: var(--t-body); font-weight: 600; }
.can-t small { font-size: var(--t-meta); color: var(--ink-2); }
.can-q { grid-column: 2; font-size: var(--t-meta); color: var(--blue-ink); margin-top: 4px; }
.can-q::before { content: "试试："; color: var(--ink-2); }
.agent-view .thread { padding-top: var(--s-2); }

/* ── 沟通 ── */
.chat-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.chat-home-head .meta { display: inline-flex; align-items: center; gap: var(--s-1); }
.chat-home-stats { border-block: 1px solid var(--line); padding-block: var(--s-3); }
.chat-home-stats b { font-size: var(--t-lead); }
.chat-followups { margin-top: var(--s-5); }
.follow-rows .row { grid-template-columns: minmax(0, 1fr) auto; }
.follow-kind { font-weight: 600; }
.follow-kind.ours { color: var(--blue-ink); }
.tl-more { margin-top: var(--s-4); }
.sess-rows { margin-top: var(--s-3); --row-indent: 56px; }
.sess-rows.in .row { animation: rise var(--d-mid) var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: var(--t-meta); font-weight: 600; background: var(--raised); color: var(--ink-2); }
.avatar.customer { background: var(--blue-tint); color: var(--blue-ink); }
.avatar.field { background: var(--green-tint); color: var(--ink); }
.sess-head { margin: 4px 0 var(--s-4); }
.ins-card .row { min-height: 44px; grid-template-columns: auto 1fr; text-align: left; align-items: start; padding: 10px 0; }
.ins-card .tag { margin-top: 1px; }
.chat-record-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-3); min-height: 66px; margin-bottom: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-card); transition: transform var(--d-fast) var(--ease); }
.chat-record-link:active { transform: scale(.98); }
.chat-record-link strong, .chat-record-link small { display: block; }
.chat-record-link small, .chat-record-link > .ico { color: var(--ink-2); }
.chat-record-icon { flex: none; width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--raised); color: var(--ink); }
.view.chat-records { display: flex; flex-direction: column; padding: 0; min-height: 0; height: calc(100vh - 56px - var(--safe-t)); height: calc(var(--chat-viewport-height, 100dvh) - 56px - var(--safe-t)); overflow: hidden; }
.chat-tools { z-index: 1; flex: none; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0 var(--gutter) var(--s-3); }
.chat-tools-title { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-2); }
.chat-tools-title strong { color: var(--ink); font-weight: 600; }
.chat-search { min-height: 48px; display: flex; align-items: center; gap: var(--s-1); padding-left: var(--s-1); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-card); }
.chat-search:focus-within { border-color: var(--blue-ink); box-shadow: 0 0 0 1px var(--blue-ink); }
.chat-search .chat-record-icon { background: transparent; color: var(--ink-2); }
.chat-search input { appearance: none; width: 100%; min-width: 0; padding: 0 var(--s-2) 0 0; min-height: 44px; border: 0; border-radius: var(--r-pill); background: transparent; font-size: var(--t-title); outline: none; }
.chat-search input::placeholder { color: var(--ink-2); }
.chat-search input::-webkit-search-cancel-button { display: none; }
.chat-search .icon-btn, .chat-search-controls .icon-btn { color: var(--ink-2); }
.chat-search-controls { display: flex; align-items: center; margin-bottom: calc(-1 * var(--s-2)); }
.chat-search-controls p { flex: 1; }
.chat-search-controls button:disabled { opacity: .36; cursor: default; }
.chat-search-controls .ico { width: 20px; height: 20px; }
.chat-search-up { transform: rotate(180deg); }
.chat-viewport { position: relative; display: flex; flex: 1; min-height: 0; background: var(--bg-2); }
.chat-log { width: 100%; min-width: 0; overflow: auto; overscroll-behavior-y: contain; padding: var(--s-3) var(--gutter) calc(var(--safe-b) + var(--s-5)); }
.chat-log:focus-visible { outline-offset: -2px; }
.chat-messages { display: grid; align-content: start; }
.chat-day { margin: var(--s-4) 0 var(--s-2); text-align: center; color: var(--ink-2); font: 400 var(--t-meta)/1.4 var(--f-num); }
.chat-day time { display: inline-block; padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); background: var(--raised); }
.chat-message { max-width: 89%; justify-self: start; margin-top: var(--s-3); }
.chat-message.joined { margin-top: var(--s-1); }
.chat-message.mine { justify-self: end; }
.chat-bubble { border: 1px solid var(--line); padding: var(--s-2) var(--s-3); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--s-1); background: var(--card); }
.chat-message.mine .chat-bubble { background: var(--blue-tint); border-color: var(--blue-tint); border-radius: var(--r-lg) var(--r-lg) var(--s-1) var(--r-lg); }
.chat-message.joined .chat-bubble { border-radius: var(--r-lg); }
.chat-sender { display: block; font-size: var(--t-meta); font-weight: 600; color: var(--ink-2); margin-bottom: var(--s-1); }
.chat-bubble p { font-size: var(--t-body); line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-bubble time { color: var(--ink-2); font-size: var(--t-meta); display: block; text-align: right; margin-top: var(--s-1); }
.chat-bubble mark { color: var(--ink); background: var(--active); text-decoration: underline; text-underline-offset: .19em; border-radius: var(--s-1); }
.chat-message.located .chat-bubble { border-color: var(--blue-ink); box-shadow: 0 0 0 1px var(--blue-ink); }
.chat-message.located mark { color: var(--card); background: var(--ink); font-weight: 600; }
.chat-load { display: block; min-height: 44px; margin: var(--s-1) auto; padding: 0 var(--s-3); color: var(--ink-2); font-size: var(--t-meta); text-decoration: underline; text-underline-offset: .24em; }
.chat-latest.btn { position: absolute; right: var(--gutter); bottom: calc(var(--safe-b) + var(--s-3)); min-height: 44px; background: var(--card); box-shadow: var(--shadow-float); }
@media (prefers-reduced-motion: no-preference) {
  :root.vt-chat-records .chat-record-icon { view-transition-name: chat-records-icon; }
  :root.vt-chat-records::view-transition-group(chat-records-icon) { animation-duration: var(--d-slow); animation-timing-function: var(--ease); }
  [data-chat-clear]:not([hidden]) { animation: fade var(--d-fast) var(--ease) both; }
  .chat-message.located .chat-bubble { animation: chat-locate var(--d-slow) var(--ease); }
  @keyframes chat-locate { from { box-shadow: 0 0 0 5px var(--blue-wash); } to { box-shadow: 0 0 0 1px var(--blue-ink); } }
}

/* ── 教程 ── */
.books { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-3); }
.book-card { display: grid; gap: 3px; }
.book-cover { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); margin-bottom: 6px; border: 1px solid var(--line-2); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.book-card b { font-size: var(--t-body); font-weight: 600; line-height: 1.4; }
.book-card small { font-size: var(--t-meta); color: var(--ink-2); }
.how h3 { font-size: var(--t-title); font-weight: 600; margin-bottom: 10px; }
.how-steps { display: grid; gap: 10px; }
.how-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: center; font-size: var(--t-body); }
.how-steps .num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-size: var(--t-meta); }
.steps { display: grid; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.step-no { font-size: var(--t-body); font-weight: 600; color: var(--blue); padding-top: 1px; }
.step-t h3 { font-size: var(--t-title); font-weight: 600; margin-bottom: 4px; }
.step-t p { color: var(--ink-2); line-height: 1.75; }

/* ── 我 ── */
.me-card { display: grid; gap: var(--s-5); margin-top: 4px; }
.me-row { display: flex; align-items: center; gap: 14px; }
.me-row h2 { font-size: var(--t-lead); font-weight: 600; }
.me-ava { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--blue); box-shadow: var(--shadow-card); }
.me-stats { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.me-about { line-height: 1.75; }
.me-marks { display: grid; gap: 8px; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line-2); }
.me-marks li { display: grid; grid-template-columns: 76px 1fr; font-size: var(--t-meta); color: var(--ink-2); align-items: center; }
.card.me-share { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.me-share > span:first-child { color: var(--blue); }
.me-share b { display: block; font-size: var(--t-body); font-weight: 600; }
.me-share small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.news-filter { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.news-filter select { min-height: 44px; max-width: 70%; padding: 0 var(--s-2); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--ink); }
.visit-card { margin-bottom: var(--s-4); }
.visit-card > .btn { margin-top: var(--s-4); }
.pd-related { margin-top: var(--s-4); }
.chat-customers .row { grid-template-columns: minmax(0, 1fr) auto; }
.chat-rhythm { margin-bottom: var(--s-4); }
.rhythm-total { color: var(--ink-2); font-size: var(--t-meta); margin-bottom: var(--s-3); }
.rhythm-total b { color: var(--ink); font-size: var(--t-lead); font-weight: 600; }
.rhythm-bars { height: 68px; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; align-items: end; border-bottom: 1px solid var(--line); }
.rhythm-bars span { height: max(2px, calc(100% * var(--level))); background: var(--ink-2); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.rhythm-axis { display: flex; justify-content: space-between; margin: var(--s-1) 0 var(--s-2); }
.chat-rhythm .btn { min-height: 44px; }
