:root {
  color-scheme: light;
  --bg: #f2f4f8;
  --glass: rgba(255, 255, 255, .6);
  --glass-2: rgba(255, 255, 255, .76);
  --card: rgba(255, 255, 255, .72);
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --well: #f1f4f7;
  --line: rgba(15, 23, 42, .08);
  --line-2: rgba(15, 23, 42, .15);
  --hair: rgba(15, 23, 42, .07);
  --ink: #0b1220;
  --ink-2: #465063;
  --ink-3: #6d7687;
  --accent: #0a7f70;
  --accent-2: #15b29b;
  --accent-ink: #066055;
  --accent-soft: #e6f5f1;
  --accent-line: rgba(10, 127, 112, .3);
  --accent-glow: rgba(10, 127, 112, .32);
  --blue: #3f86e8;
  --warn: #9a5800;
  --warn-soft: #fff5e3;
  --warn-line: #f1d39c;
  --danger: #be3329;
  --danger-soft: #fff1ef;
  --danger-line: #f4c9c3;
  --r-2xl: 28px;
  --r-xl: 24px;
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  --blur: blur(22px) saturate(170%);
  /* glass = hairline outside, a bright edge and top highlight inside, then soft layered depth */
  --edge: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .5);
  --depth: 0 0 0 1px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -14px rgba(15, 23, 42, .14), 0 34px 70px -38px rgba(28, 62, 98, .26);
  --depth-up: 0 0 0 1px rgba(15, 23, 42, .07), 0 2px 6px rgba(15, 23, 42, .05), 0 20px 40px -16px rgba(15, 23, 42, .22), 0 44px 90px -40px rgba(28, 62, 98, .34);
  --depth-lg: 0 0 0 1px rgba(15, 23, 42, .06), 0 16px 32px -12px rgba(15, 23, 42, .16), 0 48px 100px -30px rgba(15, 23, 42, .36);
  --tint-c: #edf1f6;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --gut: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
kbd { font: 600 12px/1 var(--font); padding: 3px 6px 2px; border-radius: 6px; background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -1.5px 0 var(--line-2); color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-icon] { display: inline-flex; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (hover: hover) and (pointer: fine) { .only-touch { display: none !important; } }
@media (hover: none), (pointer: coarse), (pointer: none) { .only-pointer { display: none !important; } }

/* ---------- background: pastel mesh that drifts very slowly, plus a faint grain ---------- */
.mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #f8fafc, #eff2f7); }
.mesh i { position: absolute; width: 64vmax; height: 64vmax; border-radius: 50%; animation: drift 48s ease-in-out infinite alternate; }
.mesh i:nth-child(1) { left: -20vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(38, 208, 180, .44), rgba(38, 208, 180, 0)); }
.mesh i:nth-child(2) { right: -22vmax; top: -28vmax; background: radial-gradient(closest-side, rgba(92, 156, 255, .38), rgba(92, 156, 255, 0)); animation-duration: 60s; animation-direction: alternate-reverse; }
.mesh i:nth-child(3) { left: 18vw; top: 42vh; width: 58vmax; height: 58vmax; background: radial-gradient(closest-side, rgba(170, 146, 255, .3), rgba(170, 146, 255, 0)); animation-duration: 66s; animation-delay: -24s; }
.mesh i:nth-child(4) { right: -18vmax; bottom: -34vmax; background: radial-gradient(closest-side, rgba(96, 214, 226, .32), rgba(96, 214, 226, 0)); animation-duration: 54s; animation-delay: -12s; animation-direction: alternate-reverse; }
.mesh::after { content: ""; position: absolute; inset: 0; opacity: .5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .14 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(7vmax, 5vmax, 0) scale(1.08); } 100% { transform: translate3d(-5vmax, 8vmax, 0) scale(.94); } }

/* ---------- top bar: a floating frosted bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; padding: 12px var(--gut) 0; pointer-events: none; }
.topbar-in { pointer-events: auto; max-width: 1360px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 10px; border-radius: 20px; background: rgba(255, 255, 255, .55); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--edge), 0 0 0 1px rgba(15, 23, 42, .05), 0 10px 30px -18px rgba(15, 23, 42, .22); transition: background-color .3s, box-shadow .3s; }
.topbar.scrolled .topbar-in { background: rgba(255, 255, 255, .74); box-shadow: var(--edge), 0 0 0 1px rgba(15, 23, 42, .07), 0 16px 40px -18px rgba(15, 23, 42, .32); }
.logo { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; border-radius: 12px; }
.logo-mark { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #2fd0b4, var(--accent) 58%, #0a6f84); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(0, 0, 0, .14), 0 1px 2px rgba(10, 127, 112, .3), 0 8px 18px -8px rgba(10, 127, 112, .7); transition: transform .4s var(--spring); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.04); }
.logo-mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.logo-frame { opacity: .75; }
.logo-iris { fill: #fff; stroke: none; }
.logo-glint { fill: var(--accent); stroke: none; }
.logo-eye { transform-origin: 12px 12px; }
.logo:hover .logo-eye { animation: blink .5s var(--ease); }
@keyframes blink { 40% { transform: scaleY(.12); } }
.logo-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.logo-text b { font: 700 17.5px/1.2 var(--font-display); letter-spacing: .08em; }
.logo-text small { margin-top: 2px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* segmented controls (top nav, 录入 tabs, preview filter) share a sliding pill that JS moves under the current item */
.nav, .seg { position: relative; display: flex; flex: none; padding: 4px; border-radius: 14px; background: rgba(15, 23, 42, .055); box-shadow: inset 0 1px 2px rgba(15, 23, 42, .06); }
.nav-pill, .seg-pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 .5px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .1), 0 6px 14px -6px rgba(15, 23, 42, .22); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.nav:not(.ready) .nav-pill, .seg:not(.ready) .seg-pill { transition: none; }
.nav a, .seg button { position: relative; z-index: 1; padding: 8px 20px; border: 0; border-radius: 10px; background: none; font-size: 14.5px; font-weight: 550; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.nav a:hover, .seg button:hover { color: var(--ink); }
.nav a[aria-current="page"], .seg button[aria-selected="true"], .seg button[aria-pressed="true"] { color: var(--ink); font-weight: 650; }
.nav a:active, .seg button:active { transform: scale(.97); }

/* ---------- shared pieces ---------- */
.page { max-width: 1440px; margin: 0 auto; padding: 32px var(--gut) 88px; }
.view { animation: view-in .55s var(--ease-out) backwards; }
@keyframes view-in { from { opacity: 0; transform: translateY(12px); } }
.card, .panel { position: relative; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: var(--r-xl); box-shadow: var(--edge), var(--depth); }
.panel { padding: 20px; }
.eyebrow { font-size: 12.5px; font-weight: 650; letter-spacing: .12em; color: var(--accent); }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 14px; border: 0; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background-color .2s, box-shadow .25s, color .2s, transform .25s var(--ease); }
.btn:active:not(:disabled) { transform: scale(.97); transition-duration: .08s; }
.btn .i { font-size: 18px; stroke-width: 2.2; }
.btn-primary { color: #fff; background: linear-gradient(180deg, #19ac96, #0b8473 55%, #097263); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 0 0 1px rgba(6, 96, 85, .55), 0 2px 4px rgba(6, 96, 85, .18), 0 12px 26px -12px rgba(10, 127, 112, .75); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #17a28d, #0a7b6b 55%, #086a5c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 0 0 1px rgba(6, 96, 85, .6), 0 3px 6px rgba(6, 96, 85, .2), 0 18px 34px -14px rgba(10, 127, 112, .85); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink-2); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--line-2), 0 1px 2px rgba(15, 23, 42, .05); }
.btn-ghost:hover:not(:disabled) { background: #fff; color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(15, 23, 42, .2), 0 8px 18px -10px rgba(15, 23, 42, .24); transform: translateY(-1px); }
.btn:disabled { opacity: .45; }
.btn-lg { min-height: 50px; padding: 0 30px; font-size: 16px; }
.icon-btn { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: rgba(15, 23, 42, .04); color: var(--ink-2); font-size: 20px; transition: background-color .15s, color .15s, transform .15s; }
.icon-btn:hover { background: rgba(15, 23, 42, .08); color: var(--ink); }
.icon-btn:active { transform: scale(.92); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 15px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent-line); transition: background-color .15s, transform .15s; animation: pop-in .35s var(--spring) backwards; }
.chip:hover { background: #d9f0ea; }
.chip .i { font-size: 16px; padding: 2px; border-radius: 50%; background: rgba(10, 127, 112, .12); box-sizing: content-box; }

.alert { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 11px 14px; border-radius: var(--r); background: var(--danger-soft); box-shadow: inset 0 0 0 1px var(--danger-line); color: var(--danger); font-size: 13.5px; line-height: 1.5; text-align: left; animation: rise .3s var(--ease-out) backwards; }
.alert .i { font-size: 17px; margin-top: 1px; }
.notice { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--accent-ink); animation: rise .3s var(--ease-out) backwards; }
.notice .i { font-size: 18px; }
.notice.err { color: var(--danger); }
.notice.loading { color: var(--ink-2); }
.spin { width: 16px; height: 16px; flex: none; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
/* keyframes shared by the dealer page and the admin */
@keyframes pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.9); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes scan { to { transform: translateY(240%); } }
@keyframes float { 50% { transform: translateY(-5px); } }
@keyframes halo { 0% { opacity: .9; transform: scale(.94); } 70%, 100% { opacity: 0; transform: scale(1.35); } }

.search { position: relative; display: flex; align-items: center; }
.search > span { position: absolute; left: 14px; color: var(--ink-3); font-size: 18px; display: flex; pointer-events: none; transition: color .15s; }
.search input { width: 100%; height: 44px; padding: 0 16px 0 42px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .72); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--line-2), 0 6px 16px -12px rgba(15, 23, 42, .2); font: 15px var(--font); color: var(--ink); transition: box-shadow .2s, background-color .2s; }
.search input:focus { outline: none; background: #fff; box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px rgba(21, 178, 155, .16); }
.search:focus-within > span { color: var(--accent); }

.well { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.well img { width: 100%; height: 100%; object-fit: contain; }
/* catalog shots sit on a soft tinted backdrop; multiply lets their white background melt into it */
.tinted { background: radial-gradient(120% 100% at 50% 18%, #fff 0%, #fff 34%, var(--tint-c) 100%); isolation: isolate; }
.tinted img { mix-blend-mode: multiply; }
.price { font-weight: 650; font-variant-numeric: tabular-nums; }
.price-none, .none { color: var(--ink-3); font-weight: 400; }
.price-none { display: inline-flex; align-items: center; padding: 0 8px; height: 22px; border-radius: 7px; background: rgba(15, 23, 42, .05); font-size: 12.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  :root { --gut: 24px; }
  .page { padding-top: 26px; }
}

@media (max-width: 760px) {
  :root { --gut: 16px; }
  .mesh i { animation: none; }
  .mesh i:nth-child(1) { left: -40vmax; top: -34vmax; }
  .mesh i:nth-child(2) { right: -40vmax; top: -20vmax; }
  .topbar { padding: 8px 10px 0; }
  .topbar-in { padding: 6px 6px 6px 8px; border-radius: 18px; gap: 10px; }
  .logo { gap: 9px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 11px; }
  .logo-mark svg { width: 22px; height: 22px; }
  .logo-text b { font-size: 16px; letter-spacing: .05em; }
  .logo-text small { font-size: 11px; }
  .logo-text .long { display: none; }
  .nav { padding: 3px; border-radius: 13px; }
  .nav-pill { top: 3px; bottom: 3px; border-radius: 10px; }
  .nav a { padding: 7px 12px; font-size: 14px; }
  .page { padding-top: 18px; padding-bottom: 56px; }
  .panel { padding: 16px; border-radius: var(--r-lg); }
}

/* a tap leaves :hover on the element; keep cards from staying lifted on touch screens */
@media (hover: none) {
  .btn:hover:not(:disabled) { transform: none; }
}

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

/* =====================================================================
   查款页 (index.html + dealer.js), phone first. Builds on the shared base at the top
   (tokens, .mesh, .topbar, .logo, .btn, .alert, .spin, .well, .tinted, keyframes); admin.css holds the 后台 views.
   ===================================================================== */
.dealer .topbar-in { max-width: calc(1120px - 2 * var(--gut)); }
.d-next { min-height: 44px; padding: 0 16px 0 13px; border-radius: 13px; font-size: 14.5px; gap: 6px; }
.dealer:not([data-state="result"]) .d-next { display: none; }
.d-page { max-width: 1120px; margin: 0 auto; padding: 28px var(--gut) calc(64px + env(safe-area-inset-bottom)); }
.d-page > section:not([hidden]) { animation: rise .5s var(--ease-out) backwards; }
.d-page [tabindex="-1"]:focus { outline: none; }

/* empty: one big target */
.d-empty { max-width: 760px; margin: 0 auto; padding-top: clamp(4px, 4vh, 44px); text-align: center; }
.d-eyebrow { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 15px 0 13px; border-radius: 999px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(10, 127, 112, .16), 0 6px 16px -10px rgba(10, 127, 112, .4); color: var(--accent-ink); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.d-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px rgba(21, 178, 155, .2); }
.d-empty h1 { margin-top: 20px; font: 700 clamp(34px, 4.2vw, 56px)/1.12 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
.d-empty h1 em { font-style: normal; background: linear-gradient(100deg, #0c9a85 8%, #1aa8a0 40%, #3f7fe6 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d-lede { max-width: 560px; margin: 16px auto 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); text-wrap: balance; }
.d-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(24px, 4vh, 40px); padding: clamp(36px, 6vh, 58px) 24px; border-radius: 32px; background: linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .54)); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--edge), var(--depth); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .25s, box-shadow .3s; }
.d-drop::before { content: ""; position: absolute; inset: 12px; border-radius: 22px; border: 1.5px dashed rgba(10, 127, 112, .28); pointer-events: none; transition: border-color .25s, inset .3s var(--ease-out); }
.d-drop:hover::before, .dragging .d-drop::before { inset: 9px; border-color: var(--accent); }
.d-drop:hover, .dragging .d-drop { background: linear-gradient(180deg, rgba(240, 251, 248, .92), rgba(230, 245, 241, .62)); }
.d-drop:active { transform: scale(.992); }
.d-drop-icon { position: relative; width: 80px; height: 80px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 26px; color: #fff; font-size: 36px; background: linear-gradient(145deg, #34d3b8, var(--accent) 55%, #2f78d6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .1), 0 18px 36px -14px rgba(10, 127, 112, .7), 0 0 0 10px rgba(255, 255, 255, .55); transition: transform .4s var(--spring); }
.d-drop-icon .i { stroke-width: 1.9; }
.d-drop-icon::after { content: ""; position: absolute; inset: -10px; border-radius: 34px; box-shadow: 0 0 0 1.5px rgba(21, 178, 155, .45); animation: halo 3s var(--ease-out) infinite; pointer-events: none; }
.d-drop:hover .d-drop-icon { transform: translateY(-4px) scale(1.03); }
.d-drop-title { font: 650 23px/1.3 var(--font-display); letter-spacing: -.01em; }
.d-drop-title kbd { font-size: 15px; padding: 4px 8px 3px; border-radius: 8px; vertical-align: 2px; }
.d-drop-sub { font-size: 14.5px; color: var(--ink-3); }
.d-empty .alert { justify-content: center; margin-top: 16px; }
.d-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.d-steps li { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 18px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.d-steps b { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; box-shadow: inset 0 0 0 1px rgba(10, 127, 112, .16); }

/* crop: the picture on a frosted canvas, the box drawn on top */
.d-crop { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "canvas head" "canvas ctrl"; gap: 0 28px; align-items: start; }
.d-crop-head { grid-area: head; padding-top: 10px; }
.d-crop-head h1 { font: 700 30px/1.2 var(--font-display); letter-spacing: -.02em; }
.d-crop-head p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.d-crop-head p span { display: inline-block; }
[data-preview="none"] .d-crop-head p { display: none; }
.d-canvas { --stage-h: min(66vh, 620px); grid-area: canvas; position: relative; display: grid; place-items: center; min-height: 300px; padding: 22px; border-radius: var(--r-2xl); background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .45)); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--edge), var(--depth); }
.d-stage { position: relative; display: inline-block; max-width: 100%; vertical-align: top; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.d-stage img { display: block; max-width: 100%; max-height: var(--stage-h); border-radius: 6px; box-shadow: 0 0 0 1px var(--hair), 0 18px 40px -22px rgba(15, 23, 42, .5); -webkit-user-drag: none; }
.d-shade { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; pointer-events: none; }
.d-shade i { position: absolute; box-shadow: 0 0 0 200vmax rgba(9, 15, 26, .5); }
.d-box { position: absolute; touch-action: none; cursor: move; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 0 0 3px rgba(9, 15, 26, .16); }
/* thirds, only while dragging */
.d-box::after { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .2s; background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, .6) calc(33.33% + .5px), transparent 0, transparent calc(66.67% - .5px), rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, .6) calc(66.67% + .5px), transparent 0), linear-gradient(180deg, transparent calc(33.33% - .5px), rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, .6) calc(33.33% + .5px), transparent 0, transparent calc(66.67% - .5px), rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, .6) calc(66.67% + .5px), transparent 0); }
.moving .d-box::after { opacity: 1; }
/* 44 px touch target per corner, mostly inside the box; the visible bracket sits on the corner */
.d-h { position: absolute; z-index: 1; width: 44px; height: 44px; touch-action: none; }
.d-h::before { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid #fff; filter: drop-shadow(0 1px 2px rgba(9, 15, 26, .5)); transition: transform .25s var(--spring); }
.d-h[data-h="nw"] { left: -16px; top: -16px; cursor: nwse-resize; }
.d-h[data-h="ne"] { right: -16px; top: -16px; cursor: nesw-resize; }
.d-h[data-h="sw"] { left: -16px; bottom: -16px; cursor: nesw-resize; }
.d-h[data-h="se"] { right: -16px; bottom: -16px; cursor: nwse-resize; }
.d-h[data-h="nw"]::before { left: 12px; top: 12px; border-width: 4px 0 0 4px; border-top-left-radius: 7px; transform-origin: 0 0; }
.d-h[data-h="ne"]::before { right: 12px; top: 12px; border-width: 4px 4px 0 0; border-top-right-radius: 7px; transform-origin: 100% 0; }
.d-h[data-h="sw"]::before { left: 12px; bottom: 12px; border-width: 0 0 4px 4px; border-bottom-left-radius: 7px; transform-origin: 0 100%; }
.d-h[data-h="se"]::before { right: 12px; bottom: 12px; border-width: 0 4px 4px 0; border-bottom-right-radius: 7px; transform-origin: 100% 100%; }
.d-h.on::before { transform: scale(1.2); }
.hint .d-h::before { animation: nudge 1s var(--ease) .35s 2; }
@keyframes nudge { 50% { transform: scale(1.28); } }
.d-noprev { display: none; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; text-align: center; }
.d-noprev-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 18px; background: #fff; color: var(--ink-3); font-size: 26px; box-shadow: var(--edge), var(--depth); }
.d-noprev b { font-size: 16px; }
.d-noprev small { font-size: 13.5px; color: var(--ink-3); }
[data-preview="none"] .d-stage { display: none; }
[data-preview="none"] .d-noprev { display: flex; }
[data-preview="loading"] .d-stage { visibility: hidden; }

.d-ctrl { grid-area: ctrl; display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.d-ctrl .alert { margin: 0; }
.d-tools { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 0 0 -12px; }
.d-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--accent); font-size: 14.5px; font-weight: 600; transition: background-color .15s; }
.d-link:hover { background: rgba(10, 127, 112, .08); }
.d-link .i { font-size: 18px; }
.d-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.d-chips-label { width: 100%; font-size: 13px; font-weight: 650; letter-spacing: .04em; color: var(--ink-3); }
.d-chip { height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .66); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 550; color: var(--ink-2); white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.d-chip:hover { background: #fff; color: var(--ink); }
.d-chip:active { transform: scale(.96); }
.d-chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(11, 18, 32, .7); }
.d-go { width: 100%; min-height: 56px; border-radius: 16px; font-size: 17px; }
.d-go .i { font-size: 20px; }
.alert .d-retry { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; margin: -6px -6px -6px auto; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; color: var(--danger); font-size: 13.5px; font-weight: 650; box-shadow: 0 0 0 1px var(--danger-line); }
.alert .d-retry .i { font-size: 15px; margin: 0; }

/* loading: one line of progress above the shape of the result */
.d-prog { display: flex; align-items: center; gap: 10px; min-height: 52px; margin-bottom: 14px; padding: 0 18px; border-radius: 18px; background: var(--glass-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--edge), var(--depth); }
.d-prog b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--accent-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-prog-bar { display: grid; grid-template-columns: repeat(4, 22px); gap: 4px; flex: none; }
.d-prog-bar i { position: relative; height: 5px; border-radius: 3px; background: rgba(15, 23, 42, .08); overflow: hidden; }
.d-prog-bar i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #2fd0b4, var(--accent) 70%, var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.d-prog-bar i[data-s="done"]::after { transform: none; }
.d-prog-bar i[data-s="run"]::after { animation: d-run 1.1s var(--ease) infinite; }
@keyframes d-run { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.d-scan { isolation: isolate; }
.d-scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 42%; background: linear-gradient(180deg, rgba(47, 208, 180, 0), rgba(47, 208, 180, .07) 55%, rgba(63, 134, 232, .18) 92%, rgba(255, 255, 255, .95) 98%, rgba(47, 208, 180, 0)); transform: translateY(-100%); animation: scan 2.2s cubic-bezier(.45, 0, .3, 1) infinite; pointer-events: none; }
.d-scan.is-cut img { padding: 6%; animation: pop .5s var(--spring); }
.d-wait { position: relative; display: grid; place-items: center; width: 100%; height: 100%; color: rgba(10, 127, 112, .45); font-size: 48px; }
.d-wait .i { stroke-width: 1.2; animation: float 2.6s ease-in-out infinite; }
.d-sk { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, rgba(15, 23, 42, .05) 25%, rgba(255, 255, 255, .75) 50%, rgba(15, 23, 42, .05) 75%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.d-sk-btn { width: 100%; height: 60px; margin-top: auto; border-radius: 16px; }

/* result */
.d-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 14px; margin: 2px 2px 14px; }
.d-head h1 { font: 700 28px/1.2 var(--font-display); letter-spacing: -.02em; }
.d-head p { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.d-low { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; padding: 12px 15px; border-radius: var(--r); background: rgba(255, 245, 227, .9); box-shadow: inset 0 0 0 1px var(--warn-line); color: var(--warn); font-size: 14px; line-height: 1.6; animation: rise .45s var(--ease-out) backwards; }
.d-low .i { flex: none; font-size: 17px; margin-top: 3px; }
.d-low button { padding: 0; border: 0; background: none; color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* the big view: your picture next to the picked SKU; its 同系列 under the pictures, facts and contact beside them */
.d-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "media info" "series info"; scroll-margin-top: 84px; border-radius: var(--r-2xl); background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--edge), var(--depth); animation: rise .55s var(--ease-out) .05s backwards; }
.d-media { grid-area: media; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 16px; }
.d-pane { position: relative; min-width: 0; }
.d-pane .well { border-radius: 20px; }
.d-tag { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--hair), 0 4px 12px -4px rgba(15, 23, 42, .18); font-size: 12.5px; font-weight: 650; color: var(--ink-2); pointer-events: none; }
.d-eq { position: absolute; left: 50%; top: 50%; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--accent); font: 600 20px/1 var(--font-display); box-shadow: var(--edge), var(--depth); transform: translate(-50%, -50%); pointer-events: none; }
.d-slides { position: relative; }
.d-track { display: flex; aspect-ratio: 1; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--hair); }
.d-track::-webkit-scrollbar { display: none; }
.d-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; }
.d-slide img { width: 100%; height: 100%; padding: 6%; object-fit: contain; }
.d-count { position: absolute; right: 10px; bottom: 10px; height: 24px; padding: 0 9px; display: flex; align-items: center; gap: 3px; border-radius: 999px; background: rgba(15, 20, 30, .58); color: rgba(255, 255, 255, .8); font-size: 12px; font-variant-numeric: tabular-nums; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; }
.d-count b { color: #fff; font-weight: 650; }
.d-nav { position: absolute; top: 50%; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink-2); font-size: 18px; box-shadow: var(--edge), var(--depth); opacity: 0; transform: translateY(-50%) scale(.9); transition: opacity .2s, transform .2s var(--ease), color .15s; }
.d-nav[data-step="-1"] { left: 8px; }
.d-nav[data-step="1"] { right: 8px; }
.d-slides:hover .d-nav, .d-nav:focus-visible { opacity: 1; transform: translateY(-50%); }
.d-nav:hover { color: var(--accent); }
.d-nav .i { stroke-width: 2.2; }

.d-info { grid-area: info; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 24px 26px 26px 12px; }
.d-info-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.d-rank.is-alt { background: rgba(15, 23, 42, .06); color: var(--ink-2); letter-spacing: .03em; }
.d-rank.is-alt .i { stroke-width: 2; }
.d-back { display: inline-flex; align-items: center; gap: 3px; min-height: 36px; margin: -4px -10px -4px 0; padding: 0 12px 0 6px; border: 0; border-radius: 10px; background: none; color: var(--accent); font-size: 14px; font-weight: 650; white-space: nowrap; transition: background-color .15s; }
.d-back:hover { background: rgba(10, 127, 112, .08); }
.d-back .i { font-size: 17px; stroke-width: 2.2; }
.swap { animation: d-swap .45s var(--ease-out); }
@keyframes d-swap { from { opacity: .3; transform: translateY(6px); } }
.d-hero .well[data-zoom], #hero-pick .d-slide { cursor: zoom-in; }
.d-zoom-btn { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--hair), 0 4px 12px -4px rgba(15, 23, 42, .22); color: var(--ink-2); font-size: 12.5px; font-weight: 650; transition: color .15s, background-color .15s; }
.d-zoom-btn:hover { background: #fff; color: var(--accent); }
.d-zoom-btn .i { font-size: 15px; stroke-width: 2.1; }

/* 同系列: thumbnails with the model under each; the one in the big view is ringed */
.d-series { grid-area: series; align-self: start; min-width: 0; margin: 0 16px 16px; padding: 12px 14px 14px; border-radius: 20px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px var(--hair); }
.d-series-head { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 10px; }
.d-series-head b { font-size: 14px; font-weight: 700; }
.d-series-head span { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.d-sibs { display: flex; flex-wrap: wrap; gap: 10px; }
/* a tile is as wide as its picture or its model, whichever is wider: models are never cut short */
.d-sib { --sib: 72px; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: var(--sib); padding: 0; border: 0; background: none; color: var(--ink-2); -webkit-tap-highlight-color: transparent; }
.d-sib-img { position: relative; display: block; width: var(--sib); aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .2s, transform .25s var(--ease); }
.d-sib-img img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.d-sib-code { font-size: 12.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.d-sib:hover .d-sib-img { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 16px -10px rgba(15, 23, 42, .35); }
.d-sib:active .d-sib-img { transform: scale(.95); }
.d-sib[aria-current="true"] .d-sib-img { box-shadow: inset 0 0 0 2px var(--accent), 0 6px 14px -8px var(--accent-glow); }
.d-sib[aria-current="true"] .d-sib-code { color: var(--accent-ink); font-weight: 700; }
.d-sibs.is-mini { gap: 8px; }
.d-sibs.is-mini .d-sib { --sib: 54px; gap: 4px; }
.d-sibs.is-mini .d-sib-img { border-radius: 11px; }
.d-sibs.is-mini .d-sib-img img { padding: 3px; }
.d-sibs.is-mini .d-sib-code { font-size: 11.5px; }
.d-rank { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; height: 26px; padding: 0 11px 0 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(47, 208, 180, .2), rgba(63, 134, 232, .14)); color: var(--accent-ink); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.d-rank .i { font-size: 15px; stroke-width: 2.6; }
.d-factory { font: 750 32px/1.18 var(--font-display); letter-spacing: -.025em; overflow-wrap: anywhere; text-wrap: balance; }
.d-city { display: inline-flex; align-items: center; height: 24px; margin-left: 10px; padding: 0 9px; border-radius: 8px; background: rgba(15, 23, 42, .055); color: var(--ink-2); font: 600 13px/1 var(--font); letter-spacing: 0; vertical-align: 5px; }
.d-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
.d-facts div { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 9px 0; border-top: 1px solid var(--hair); }
.d-facts dt { font-size: 12.5px; color: var(--ink-3); }
.d-facts dd { margin: 0; font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.d-acts { display: flex; gap: 10px; margin-top: auto; padding-top: 4px; }
.d-act { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 14px 8px 10px; border: 0; border-radius: 17px; font: inherit; text-align: left; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: box-shadow .25s, transform .25s var(--ease), filter .2s; }
.d-act:hover { transform: translateY(-1px); filter: brightness(1.03); }
.d-act:active { transform: scale(.97); transition-duration: .08s; }
.d-act-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; font-size: 22px; }
.d-act-ic .i { stroke-width: 2; }
.d-act-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.d-act-tx b { font-size: 16.5px; font-weight: 700; letter-spacing: .02em; }
.d-act-tx small { font-size: 12.5px; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.d-call { color: #fff; background: linear-gradient(180deg, #19ac96, #0b8473 55%, #097263); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 0 0 1px rgba(6, 96, 85, .55), 0 2px 4px rgba(6, 96, 85, .18), 0 14px 28px -12px rgba(10, 127, 112, .75); }
.d-call .d-act-ic { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.d-wx { color: #066b3a; background: linear-gradient(180deg, #f3fcf6, #e6f8ec); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(7, 160, 80, .3), 0 10px 24px -14px rgba(7, 120, 60, .55); }
.d-wx .d-act-ic { background: linear-gradient(145deg, #2bd27a, #07b356); color: #fff; box-shadow: 0 6px 12px -6px rgba(7, 150, 70, .7); }
.d-nocontact { display: flex; align-items: center; gap: 8px; min-height: 56px; margin-top: auto; padding: 0 16px; border-radius: 16px; background: rgba(15, 23, 42, .04); color: var(--ink-3); font-size: 14.5px; }
.d-nocontact .i { font-size: 17px; }
.d-hint { display: flex; align-items: center; gap: 8px; margin: 14px 4px 0; font-size: 13.5px; color: var(--ink-3); animation: fade .5s var(--ease) .2s backwards; }
.d-hint .i { flex: none; font-size: 16px; color: var(--accent); }

/* 这家厂的其他相近款: a card per series, its 同系列 under it */
.d-alts { margin-top: 32px; }
.d-alt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.d-alt { display: flex; flex-direction: column; min-width: 0; padding: 8px 8px 10px; border-radius: 22px; background: var(--card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--edge), var(--depth); animation: rise .5s var(--ease-out) backwards; animation-delay: calc(140ms + var(--d) * 60ms); }
.d-alt-main { display: flex; flex-direction: column; gap: 9px; width: 100%; padding: 0; border: 0; border-radius: 16px; background: none; text-align: left; -webkit-tap-highlight-color: transparent; }
.d-alt-img { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .2s, transform .25s var(--ease); }
.d-alt-img img { width: 100%; height: 100%; padding: 8%; object-fit: contain; transition: transform .4s var(--ease); }
.d-alt-main:hover .d-alt-img img { transform: scale(1.04); }
.d-alt-main:active .d-alt-img { transform: scale(.98); }
.d-alt-main[aria-current="true"] .d-alt-img { box-shadow: inset 0 0 0 2px var(--accent); }
.d-alt-main[aria-current="true"] .d-alt-img::after { content: "在看"; position: absolute; top: 8px; left: 8px; display: flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 650; letter-spacing: .04em; box-shadow: 0 4px 10px -4px var(--accent-glow); }
.d-alt-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 0 6px; }
.d-alt-tx b { font: 700 17px/1.25 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.d-alt-tx small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.d-alt-sibs { margin: 10px 6px 0; padding-top: 10px; border-top: 1px solid var(--hair); }
.d-alt-sibs > span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 650; letter-spacing: .04em; color: var(--ink-3); }

.d-others { margin-top: 32px; }
.d-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 2px 12px; }
.d-sec-head h2 { font: 700 19px/1.25 var(--font-display); letter-spacing: -.01em; }
.d-sec-head small { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.d-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.d-row { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 10px 12px 10px 10px; border-radius: 20px; background: var(--card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--edge), var(--depth); animation: rise .5s var(--ease-out) backwards; animation-delay: calc(180ms + var(--d) * 60ms); }
.d-thumb { width: 64px; height: 64px; flex: none; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); }
.d-thumb img { width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.d-row-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 0; border: 0; border-radius: 14px; background: none; text-align: left; -webkit-tap-highlight-color: transparent; }
.d-row-pick .d-thumb { transition: box-shadow .2s; }
.d-row-pick:hover .d-row-main b { color: var(--accent-ink); }
.d-row-pick[aria-current="true"] .d-thumb { box-shadow: inset 0 0 0 2px var(--accent); }
.d-row:has(.d-row-pick[aria-current="true"]) { box-shadow: var(--edge), 0 0 0 1.5px var(--accent-line), var(--depth); }
.d-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.d-row-main b { font-size: 15.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row-main small { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row-acts { display: flex; gap: 8px; flex: none; }
.d-ib { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 14px; font-size: 21px; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ease), filter .2s; }
.d-ib .i { stroke-width: 2; }
.d-ib:active { transform: scale(.92); }
.d-ib.d-wx { color: #07a04f; }
.d-row .d-nocontact { flex: none; min-height: 0; margin: 0; padding: 0 4px; background: none; font-size: 12.5px; }

.d-miss { margin-top: 28px; animation: rise .5s var(--ease-out) .3s backwards; }
.d-miss-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 0 18px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1.5px rgba(15, 23, 42, .12); color: var(--ink-2); font-size: 15.5px; font-weight: 600; transition: background-color .2s, color .2s, box-shadow .2s; }
.d-miss-open:hover { background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.d-miss-open .i { font-size: 18px; color: var(--accent); }
.d-miss-form { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-xl); background: var(--glass-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--edge), var(--depth); animation: rise .35s var(--ease-out) backwards; }
.d-miss-form label { display: flex; flex-direction: column; gap: 3px; }
.d-miss-form label b { font-size: 16.5px; }
.d-miss-form label span { font-size: 13.5px; color: var(--ink-2); }
.d-miss-row { display: flex; gap: 10px; }
.d-miss-row input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--line-2); font: 16px var(--font); color: var(--ink); transition: box-shadow .2s, background-color .2s; }
.d-miss-row input::placeholder { color: var(--ink-3); }
.d-miss-row input:focus { outline: none; background: #fff; box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px rgba(21, 178, 155, .16); }
.d-miss-row .btn { min-height: 52px; padding: 0 22px; }
.d-miss-row .spin { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.d-miss-err { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--danger); }
.d-miss-err .i { flex: none; font-size: 16px; }
.d-miss-done { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-radius: 18px; background: linear-gradient(90deg, rgba(47, 208, 180, .16), rgba(63, 134, 232, .1)); box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--accent-ink); font-size: 15.5px; font-weight: 650; animation: rise .4s var(--ease-out) backwards; }
.d-done-mark { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #2fd0b4, var(--accent) 60%, #2b7fd4); color: #fff; font-size: 19px; box-shadow: 0 6px 14px -5px var(--accent-glow); animation: pop .5s var(--spring); }
.d-done-mark .i { stroke-width: 2.6; }

/* 放大对比: your picture and the picked SKU's, as large as the screen allows; steps through every SKU on the page */
.d-zoom { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.d-zoom::backdrop { background: rgba(7, 11, 19, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.d-zoom-in { display: flex; flex-direction: column; gap: 14px; height: 100%; max-width: 1280px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) var(--gut) max(18px, env(safe-area-inset-bottom)); animation: fade .25s var(--ease); }
.d-zoom-head { display: flex; align-items: flex-start; gap: 12px; }
.d-zoom-title { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.d-zoom-title h2 { min-width: 0; font: 750 26px/1.2 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.d-zoom-title small { width: 100%; font-size: 13.5px; color: rgba(255, 255, 255, .66); }
.d-zoom .d-rank { background: rgba(47, 208, 180, .2); color: #7fe9d4; }
.d-zoom .d-rank.is-alt { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }
.d-zoom-x { width: 46px; height: 46px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; transition: background-color .15s; }
.d-zoom-x:hover, .d-zoom-step:hover { background: rgba(255, 255, 255, .2); }
.d-zoom-x .i { stroke-width: 2.2; }
.d-zoom-body { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.d-zoom-pane { position: relative; min-width: 0; min-height: 0; }
.d-zoom-pane .well, .d-zoom-pane .d-slides, .d-zoom-pane .d-track { height: 100%; aspect-ratio: auto; border-radius: 22px; }
.d-zoom-pane .well img, .d-zoom-pane .d-slide img { padding: 4%; }
.d-zoom .d-nav { width: 44px; height: 44px; opacity: 1; transform: translateY(-50%); }
.d-zoom-foot { display: flex; align-items: center; justify-content: center; gap: 14px; }
.d-zoom-step { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 15px; font-weight: 600; transition: background-color .15s; }
.d-zoom-step .i { font-size: 18px; stroke-width: 2.2; }
.d-zoom-pos { min-width: 64px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .66); font-variant-numeric: tabular-nums; }
.d-zoom-pos b { color: #fff; font-weight: 650; }

.d-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px 12px 14px; border-radius: 16px; background: rgba(15, 20, 30, .88); color: #fff; font-size: 14.5px; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .5); transform: translateX(-50%); animation: d-toast .35s var(--ease-out); }
.d-toast .i { flex: none; font-size: 18px; color: #4fe0c4; stroke-width: 2.4; }
@keyframes d-toast { from { opacity: 0; transform: translate(-50%, 12px); } }

@media (max-width: 900px) {
  .d-crop { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "canvas" "ctrl"; }
  .d-crop-head { padding-top: 0; margin-bottom: 14px; }
  .d-canvas { --stage-h: max(220px, calc(100vh - 360px)); --stage-h: max(220px, calc(100svh - 360px)); }
  .d-ctrl { margin-top: 16px; }
  .d-hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "media" "series" "info"; }
  .d-info { padding: 6px 20px 20px; }
}

@media (max-width: 760px) {
  .d-next { min-height: 44px; padding: 0 12px 0 10px; font-size: 14px; border-radius: 12px; }
  .d-page { padding-top: 16px; }
  .d-empty { padding-top: 10px; }
  .d-eyebrow { height: 28px; font-size: 12px; }
  .d-empty h1 { margin-top: 14px; font-size: 32px; line-height: 1.18; }
  .d-empty h1 em { display: block; }
  .d-lede { margin-top: 10px; font-size: 15px; }
  .d-drop { margin-top: 22px; padding: 34px 18px 32px; border-radius: 26px; gap: 8px; }
  .d-drop::before { inset: 10px; border-radius: 18px; }
  .d-drop-icon { width: 68px; height: 68px; border-radius: 22px; font-size: 30px; margin-bottom: 10px; }
  .d-drop-icon::after { border-radius: 30px; }
  .d-drop-title { font-size: 20px; }
  .d-drop-sub { font-size: 13.5px; }
  .d-steps { gap: 8px; margin-top: 16px; }
  .d-steps li { flex-direction: column; gap: 4px; min-height: 0; padding: 10px 4px; border-radius: 16px; font-size: 13px; }

  .d-crop-head { margin-bottom: 12px; }
  .d-crop-head h1 { font-size: 23px; }
  .d-crop-head p { margin-top: 4px; font-size: 13.5px; }
  .d-canvas { padding: 16px; border-radius: 22px; min-height: 220px; }
  .d-ctrl { gap: 12px; margin-top: 12px; }
  .d-tools { margin-top: -4px; }
  .d-chips { flex-wrap: nowrap; overflow-x: auto; margin: -6px -16px -16px; padding: 6px 16px 16px; scrollbar-width: none; } /* room for the pressed chip's shadow */
  .d-chips::-webkit-scrollbar { display: none; }
  .d-chips-label { display: none; }
  .d-chip { flex: none; padding: 0 16px; font-size: 14.5px; }

  .d-prog { min-height: 48px; padding: 0 14px; border-radius: 16px; }
  .d-prog b { font-size: 14.5px; }
  .d-prog-bar { grid-template-columns: repeat(4, 16px); gap: 3px; }
  .d-head { margin-bottom: 12px; }
  .d-head h1 { font-size: 23px; }
  .d-head p { font-size: 12.5px; }
  .d-low { font-size: 13.5px; padding: 11px 13px; }
  .d-hero { border-radius: 24px; }
  .d-media { gap: 8px; padding: 10px; }
  .d-pane .well, .d-track { border-radius: 16px; }
  .d-tag { top: 7px; left: 7px; height: 24px; padding: 0 9px; font-size: 11.5px; }
  .d-eq { width: 32px; height: 32px; font-size: 16px; }
  .d-count { right: 7px; bottom: 7px; height: 22px; padding: 0 8px; font-size: 11.5px; }
  .d-info { gap: 12px; padding: 6px 16px 16px; }
  .d-hero { scroll-margin-top: 66px; }
  .d-zoom-btn { left: 7px; bottom: 7px; height: 28px; padding: 0 10px 0 8px; font-size: 11.5px; }
  .d-series { margin: 0 10px 8px; padding: 10px 10px 12px; border-radius: 16px; }
  .d-series-head { margin-bottom: 8px; }
  .d-sibs { gap: 8px; }
  .d-sib { --sib: 64px; }
  .d-sib-img { border-radius: 12px; }
  .d-alts { margin-top: 26px; }
  .d-alt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .d-alt { padding: 6px 6px 9px; border-radius: 19px; }
  .d-alt-img { border-radius: 14px; }
  .d-alt-main { gap: 7px; }
  .d-alt-tx { padding: 0 5px; }
  .d-alt-tx b { font-size: 16px; }
  .d-alt-tx small { font-size: 12px; }
  .d-alt-sibs { margin: 8px 5px 0; padding-top: 8px; }
  .d-alt-sibs > span { margin-bottom: 6px; font-size: 11.5px; }
  .d-sibs.is-mini { gap: 6px; }
  .d-sibs.is-mini .d-sib { --sib: 44px; }
  .d-sibs.is-mini .d-sib-img { border-radius: 10px; }
  .d-sibs.is-mini .d-sib-code { font-size: 11px; }
  .d-row-pick { gap: 12px; }
  .d-zoom-in { gap: 10px; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .d-zoom-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .d-zoom-pane .well, .d-zoom-pane .d-slides, .d-zoom-pane .d-track { border-radius: 18px; }
  .d-zoom-title h2 { font-size: 21px; }
  .d-zoom-title small { font-size: 12.5px; }
  .d-zoom-x { width: 44px; height: 44px; border-radius: 13px; }
  .d-zoom-step { min-height: 44px; padding: 0 14px; font-size: 14.5px; }
  .d-factory { font-size: 26px; }
  .d-city { height: 22px; margin-left: 8px; font-size: 12px; vertical-align: 4px; }
  .d-facts { gap: 0 14px; }
  .d-facts div { padding: 8px 0; }
  .d-facts dd { font-size: 15px; }
  .d-acts { gap: 8px; }
  .d-act { gap: 10px; min-height: 60px; padding: 8px 10px 8px 8px; border-radius: 16px; }
  .d-act-ic { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; }
  .d-act-tx b { font-size: 16px; }
  .d-act-tx small { font-size: 12px; }
  .d-hint { align-items: flex-start; margin-top: 12px; font-size: 13px; }
  .d-hint .i { margin-top: 2px; }
  .d-others { margin-top: 26px; }
  .d-sec-head h2 { font-size: 17.5px; }
  .d-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .d-row { gap: 12px; padding: 8px 10px 8px 8px; border-radius: 18px; }
  .d-thumb { width: 60px; height: 60px; border-radius: 13px; }
  .d-row-main b { font-size: 15px; }
  .d-row-main small { font-size: 12.5px; }
  .d-miss { margin-top: 22px; }
  .d-miss-form { padding: 16px; border-radius: 20px; }
  .d-miss-row .btn { padding: 0 18px; }
}

@media (hover: none) {
  .d-drop:hover .d-drop-icon, .d-act:hover, .d-sib:hover .d-sib-img, .d-alt-main:hover .d-alt-img img { transform: none; }
  .d-act:hover { filter: none; }
}
