:root {
  color-scheme: light;
  --ink: #101d3a;
  --muted: #53637c;
  --line: #dfe6f1;
  --page: #f5f7fb;
  --surface: #fff;
  --blue: #214bbf;
  --blue-deep: #153791;
  --tint: #eaf1ff;
  --green: #137365;
  --red: #a12237;
  --radius: 16px;
  --shadow: 0 6px 24px #172e5510;
  --text-min: max(12px, .75rem);
  --text-small: max(12px, .875rem);
  --text-body: max(12px, 1rem);
  --heading-card: 1.125rem;
  --heading-section: 1.25rem;
  --heading-page: 1.75rem;
  --heading-hero: 2.5rem;
  --weight-regular: 400;
  --weight-medium: 500;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: max(12px, 100%);
  font-weight: var(--weight-regular);
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); min-width: 0; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button:not(:disabled), select, input[type="range"], input[type="checkbox"] { cursor: pointer; }
button:disabled { opacity: .58; }
:focus-visible { outline: 3px solid #3670ed; outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, strong, b { font-weight: var(--weight-medium); }
h1 { font-size: var(--heading-page); line-height: 1.22; }
h2 { font-size: var(--heading-section); line-height: 1.35; }
h3 { font-size: var(--heading-card); line-height: 1.4; }
small { font-size: var(--text-small); }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topbar-inner { max-width: 1200px; min-height: 76px; margin: auto; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: var(--weight-medium); line-height: 1.3; white-space: nowrap; }
.brand small { display: block; color: var(--muted); font-size: var(--text-min); font-weight: var(--weight-regular); margin-top: 3px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: linear-gradient(145deg,#264ac2,#166e9f); border-radius: 12px; font-size: 1.25rem; box-shadow: 0 4px 12px #214bbf30; }
.store-link { display: flex; align-items: center; min-height: 44px; gap: 7px; max-width: 56%; padding: 0 11px; background: var(--page); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: var(--text-small); }
.store-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-link .icon:first-child { color: var(--blue); }
.layout { max-width: 1200px; padding: 26px 24px 48px; display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 28px; margin: 0 auto; }
.navigation { align-self: start; position: sticky; top: 24px; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.navigation a { color: var(--muted); display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 10px; font-size: var(--text-small); font-weight: var(--weight-regular); }
.navigation a[aria-current] { background: var(--tint); color: var(--blue); font-weight: var(--weight-medium); }
.navigation .icon { font-size: 1.18rem; }
main { display: grid; gap: 22px; align-content: start; min-width: 0; }
main:focus { outline: none; }
.hero { display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: 26px; padding: 32px; color: white; background: linear-gradient(125deg,#102454 12%,#143572 70%,#165179); border-radius: 22px; overflow: hidden; }
.hero h1 { font-size: var(--heading-hero); line-height: 1.2; }
.hero-copy > p { color: #e3edff; margin: 12px 0 20px; max-width: 23rem; }
.hero-label { display: block; color: #b6f3e9; font-size: var(--text-small); font-weight: var(--weight-medium); margin-bottom: 10px; }
.comparison { --split: 50%; position: relative; isolation: isolate; aspect-ratio: 16/9; overflow: hidden; border: 1px solid #ffffff70; border-radius: 13px; background: #8e776d; }
.comparison img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.comparison .after { clip-path: inset(0 0 0 var(--split)); }
.comparison .split { position: absolute; inset: 0 auto 0 var(--split); width: 2px; background: white; transform: translateX(-50%); }
.comparison .split span { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: white; color: var(--ink); box-shadow: 0 2px 12px #15285685; }
.comparison label { position: absolute; inset: 0; }
.comparison input { opacity: 0; width: 100%; height: 100%; margin: 0; }
.comparison:focus-within { outline: 3px solid #9bffee; outline-offset: -4px; }
.photo-tag { position: absolute; top: 9px; padding: 3px 7px; color: white; font-size: var(--text-min); font-weight: var(--weight-medium); background: #10203cde; border-radius: 5px; pointer-events: none; }
.photo-tag:first-of-type { left: 9px; }
.photo-tag:last-of-type { right: 9px; }
.hero figure figcaption { margin-top: 6px; text-align: center; font-size: var(--text-min); color: #e3edff; }
.actions, .shortcuts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.shortcut, .row-link { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.shortcut { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 15px; box-shadow: var(--shadow); }
.shortcut .chevron { margin-left: auto; color: var(--muted); }
.shortcut strong, .shortcut small, .row-link small { display: block; }
.shortcut small, small, .muted { color: var(--muted); }
.shortcut small { margin-top: 2px; }
.icon-tile { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; color: var(--blue); background: var(--tint); border-radius: 11px; font-size: 1.15rem; }
.icon-tile.teal { color: var(--green); background: #e2f6f1; }
.icon-tile.amber { color: #795411; background: #fff3d8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--blue); font-weight: var(--weight-regular); text-align: center; line-height: 1.4; }
.primary { background: var(--blue); border-color: var(--blue); color: white; font-weight: var(--weight-medium); }
.hero .primary { background: #fff; color: var(--blue-deep); border-color: #fff; }
.btn.quiet { background: var(--tint); border-color: var(--tint); }
.btn:active, .shortcut:active, .navigation a:active { filter: brightness(.91); }
.section { display: grid; gap: 12px; min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.section-head > a { min-height: 44px; display: inline-flex; align-items: center; font-size: var(--text-small); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stack { display: grid; gap: 12px; }
.empty { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.empty .btn { margin-left: auto; }
.empty > div, .row-link > div { flex: 1 1 120px; min-width: 0; overflow-wrap: anywhere; }
.empty p { margin-top: 3px; font-size: var(--text-small); }
.page-heading { max-width: 48rem; display: grid; gap: 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; width: fit-content; font-weight: var(--weight-medium); font-size: var(--text-small); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,225px),1fr)); gap: 12px; }
.product { overflow: hidden; padding: 0; }
.product > img, .product-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--tint); }
.product-cover { display: grid; place-items: center; color: var(--blue); font-size: 1.7rem; }
.product .stack { padding: 16px; }
.row-link { padding: 12px 0; min-height: 60px; border-bottom: 1px solid var(--line); }
.row-link:last-child { border: 0; }
.pill { color: var(--blue-deep); background: var(--tint); padding: 4px 8px; border-radius: 6px; font-size: var(--text-small); font-weight: var(--weight-medium); overflow-wrap: anywhere; }
.notice { background: var(--tint); padding: 12px 14px; border-radius: 10px; color: var(--blue-deep); overflow-wrap: anywhere; }
.notice.error { background: #fcecef; color: var(--red); }
.notice.success { background: #e2f6f1; color: var(--green); }
.notice:empty { display: none; }
.form-card { max-width: 45rem; }
form, fieldset { min-width: 0; }
form label { display: grid; gap: 5px; font-size: var(--text-small); font-weight: var(--weight-medium); }
input:not([type="checkbox"],[type="range"]), select, textarea { width: 100%; min-width: 0; min-height: 44px; border-radius: 9px; border: 1px solid #a8b8d1; background: var(--surface); padding: 8px 11px; }
input, select, textarea { font-size: var(--text-body); font-weight: var(--weight-regular); }
input::file-selector-button { font: inherit; }
.policy-text { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.policy-text summary { min-height: 44px; padding: 10px 0; color: var(--blue); cursor: pointer; font-weight: var(--weight-medium); }
.policy-text > div { white-space: pre-wrap; overflow-wrap: anywhere; padding: 4px 0 12px; }
.case-row + .case-row { border-top: 1px solid var(--line); padding-top: 12px; }
.case-row p { overflow-wrap: anywhere; }
.account-heading { display: flex; align-items: center; gap: 8px; }
.account-heading .icon { color: var(--blue); }
.account-actions { gap: 8px; font-size: var(--text-small); }
.recovery-section { max-width: 52rem; }
.recovery-toolbar .btn, .recovery-record .btn { font-size: var(--text-small); }
.recovery-record .primary { font-size: var(--text-body); }
.recovery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 14px; }
.recovery-record { align-content: start; gap: 16px; }
.recovery-record-head, .recovery-order { display: flex; align-items: center; gap: 10px; }
.recovery-record-head { justify-content: space-between; flex-wrap: wrap; }
.recovery-order .icon-tile { width: 40px; height: 40px; flex: 0 0 40px; }
.recovery-order p { color: var(--muted); font-size: var(--text-small); }
.recovery-order h3 { font-size: var(--heading-card); line-height: 1.25; font-variant-numeric: tabular-nums; }
.recovery-state { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 9px; border-radius: 999px; background: var(--page); color: var(--muted); font-size: var(--text-small); font-weight: var(--weight-medium); }
.recovery-state[data-state="available"] { color: var(--blue-deep); background: var(--tint); }
.recovery-state[data-state="accepted"] { color: var(--green); background: #e2f6f1; }
.recovery-dates { display: grid; gap: 6px; margin: 0; padding: 11px 12px; background: var(--page); border-radius: 10px; font-size: var(--text-small); }
.recovery-dates > div { display: grid; grid-template-columns: 5.65rem minmax(0,1fr); align-items: baseline; gap: 6px; }
.recovery-dates dt { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.recovery-dates dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.private-photo { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; background: var(--page); }
.private-comparison { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.private-comparison figure { margin: 0; min-width: 0; }
.private-comparison figcaption { margin-bottom: 5px; font-size: var(--text-small); font-weight: var(--weight-medium); }
[data-private-comparison]:empty { display: none; }
[data-result-image][hidden] { display: none; }
.check { display: flex; align-items: center; gap: 8px; font-weight: var(--weight-regular); min-height: 44px; }
.check input { accent-color: var(--blue); width: 20px; height: 20px; flex: 0 0 20px; }
.check a { text-decoration: underline; }
.details { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 5px 14px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.cost { font-size: var(--heading-page); font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.file-list { padding: 0; list-style: none; margin: 0; }
.file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.file-list li img { width: 64px; height: 48px; object-fit: cover; border-radius: 5px; }
.file-list li span { flex: 1 1 100px; overflow-wrap: anywhere; }
progress { accent-color: var(--blue); width: 100%; }
@media (min-width: 900px) {
  .recovery-record:only-child .recovery-dates { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
}
@media (hover: hover) {
  .shortcut:hover, .store-link:hover, .navigation a:hover { background: var(--tint); }
  .btn:hover { border-color: var(--blue); }
  .primary:hover { background: var(--blue-deep); color: white; }
  .hero .primary:hover { background: var(--tint); color: var(--blue-deep); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 132px minmax(0,1fr); gap: 16px; }
  .hero { padding: 24px; gap: 16px; }
  .hero h1 { font-size: 2rem; }
  .shortcut { padding: 12px; gap: 8px; }
  .shortcut .chevron { display: none; }
}
@media (max-width: 720px) {
  .topbar-inner { min-height: 66px; padding-inline: 16px; }
  .layout { display: block; padding: 16px 16px calc(90px + env(safe-area-inset-bottom)); max-width: 560px; }
  main { gap: 18px; }
  .navigation { position: fixed; z-index: 10; inset: auto 0 0; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 6px max(12px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); box-shadow: 0 -5px 22px #172e5511; }
  .navigation a { display: grid; justify-items: center; gap: 2px; padding: 3px 0; }
  .hero { grid-template-columns: 1fr; padding: 20px; border-radius: 18px; }
  .hero-copy > p { margin: 8px 0 14px; }
  .hero-label { margin-bottom: 6px; }
  .shortcuts { gap: 8px; }
  .shortcut { flex-direction: column; text-align: center; padding-inline: 4px; gap: 5px; font-size: var(--text-small); }
  .shortcut small { display: none; }
  .shortcut .icon-tile { height: 35px; width: 35px; flex-basis: auto; }
  .card { padding: 15px; }
  .card.product { padding: 0; }
  .empty { display: grid; grid-template-columns: 43px minmax(0,1fr); align-items: start; }
  .empty .btn { grid-column: 2; justify-self: start; margin-left: 0; }
}
@media (max-width: 360px) {
  .topbar-inner, .layout { padding-inline: 12px; }
  .hero { padding: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .navigation a, .shortcut { transition: background-color .16s ease, filter .16s ease; }
}
