:root {
  --ink: #1d1d1f; --muted: #55555b; --accent: #0066cc; --accent-soft: #e8f2ff;
  --line: #dcdcdf; --paper: #fff; --bg: #f5f5f7; --radius: 1rem;
  --card-shadow: 0 1.16667rem 2.33333rem -1.66667rem rgb(0 0 0 / 32%), 0 2px 0.41667rem rgb(0 0 0 / 3%);
  --font: "Aptos", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Native sizing at 100% browser zoom; component dimensions follow this rem base. */
html { font-size: 18px; color: var(--ink); background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.65 var(--font); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { outline-offset: 0.33333rem; }
:focus-visible { outline: 2px solid var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; }
h1 { font-size: 2rem; letter-spacing: -.4px; }
h2 { font-size: 1.33333rem; }
.icon { width: 1.66667rem; height: 1.66667rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-library { width: 0; height: 0; position: absolute; overflow: hidden; }
.skip-link { position: fixed; top: -6.66667rem; left: 1.33333rem; z-index: 20; background: white; padding: 1rem; }
.skip-link:focus { top: 0.66667rem; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 0.33333rem 1.33333rem rgb(0 0 0 / 3%); }
.header-inner, .container { max-width: 92rem; margin: auto; padding: 0 2.33333rem; }
.header-inner { height: 5.33333rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.83333rem; font-size: 1.66667rem; font-weight: 700; line-height: 1.25; }
.brand-icon { width: 2.83333rem; height: 2.83333rem; background: var(--ink); color: white; border-radius: 0.75rem; display: grid; place-items: center; }
.brand small { display: block; margin-top: 0.25rem; font-size: 1rem; font-weight: 400; color: var(--muted); }
.desktop-nav { display: flex; gap: 0.66667rem; margin-left: auto; }
.nav-link { border: 0; background: transparent; padding: 0.66667rem 1.16667rem; border-radius: 0.66667rem; color: var(--muted); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.contact-button { display: flex; align-items: center; gap: 0.66667rem; padding: 0.75rem 1.16667rem; border: 1px solid var(--line); background: white; border-radius: 0.75rem; }
.mode-banner { display: flex; align-items: center; gap: 0.66667rem; min-height: 2.66667rem; color: var(--muted); font-size: 1rem; }
.status-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #267347; flex-shrink: 0; }
.mode-banner button { display: flex; align-items: center; border: 0; background: transparent; padding: 0.58333rem; color: var(--muted); }
.mode-banner .icon { width: 1.25rem; height: 1.25rem; }
.store-intro { display: flex; align-items: center; justify-content: space-between; gap: 1.66667rem; padding: 0.66667rem 0 1.33333rem; }
.eyebrow { display: block; font-size: 1rem; font-weight: 500; color: var(--muted); margin-bottom: 0.83333rem; }
.store-intro h1 { font-size: 1.91667rem; margin-bottom: 0.41667rem; font-weight: 700; }
.store-intro p { color: var(--muted); margin: 0; font-size: 1rem; }
.store-notice { display: flex; align-items: center; gap: 0.83333rem; padding: 0.91667rem 1.16667rem; font-size: 1rem; color: #414145; background: #fff; border: 1px solid var(--line); border-radius: 0.66667rem; }
.store-notice .icon { color: var(--muted); width: 1.33333rem; height: 1.33333rem; }
.store-notice p { margin: 0; }
.store-notice button { border: 0; background: transparent; color: var(--accent); margin-left: auto; white-space: nowrap; font-size: 1rem; }
.catalog-section { padding: 1.33333rem 0; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1.66667rem; border-bottom: 1px solid var(--line); padding-bottom: 1.16667rem; }
.category-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.category-tab { border: 1px solid transparent; background: transparent; display: flex; align-items: center; gap: 0.66667rem; padding: 0.75rem 1.25rem; border-radius: 0.75rem; color: var(--muted); white-space: nowrap; }
.category-tab.active { color: var(--ink); background: white; border-color: #bcbcc3; box-shadow: 0 2px 0.41667rem rgb(0 0 0 / 5%); font-weight: 600; }
.category-tab > span { background: #f0f0f2; color: var(--muted); border-radius: 0.41667rem; font-size: 0.83333rem; min-width: 1.5rem; padding: 0 0.33333rem; }
.category-tab.active > span { background: #ededf0; color: var(--ink); }
.search-box { display: flex; align-items: center; gap: 0.66667rem; border: 1px solid var(--line); background: #fff; border-radius: 0.75rem; padding: 0 1rem; width: 20.41667rem; color: var(--muted); }
.search-box input { min-width: 0; width: 100%; background: transparent; border: 0; padding: 0.83333rem 0; color: var(--ink); font-size: 1rem; }
.search-box .icon { width: 1.41667rem; height: 1.41667rem; }
.platform-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.platform-list:empty { display: none; }
.filter-chip { border: 1px solid transparent; background: transparent; padding: 0.33333rem 0.91667rem; border-radius: 0.5rem; font-size: 1rem; color: var(--muted); }
.filter-chip.active { background: #e5e5e9; color: var(--ink); font-weight: 600; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; margin: 1.33333rem 0 1rem; }
.catalog-heading h2 { margin: 0; font-size: 1.33333rem; }
.catalog-heading > span { color: var(--muted); font-size: 1rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.33333rem; }
.product-card { display: flex; flex-direction: column; text-align: left; min-width: 0; padding: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 1.16667rem; overflow: hidden; box-shadow: var(--card-shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 1.5rem 2.66667rem -1.66667rem rgb(0 0 0 / 40%); border-color: #a9a9b1; }
.product-cover { position: relative; width: 100%; aspect-ratio: 1.8; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.41667rem; overflow: hidden; background: #dedee3; color: #242429; border-bottom: 1px solid rgb(0 0 0 / 6%); }
.cover-xxt { background: #bf3c32; color: #fff; }
.cover-zhs { background: #246849; color: #fff; }
.cover-zjy { background: #2453a0; color: #fff; }
.cover-mooc { background: #183f38; color: #fff; }
.cover-sport { background: #dbe8da; color: #20422b; }
.cover-tool { background: #e8e2d8; color: #453d30; }
.cover-document { background: #e0e4ed; color: #303b52; }
.cover-material { background: #dce7e1; color: #2a4a3b; }
.tone-coral { background: #bf3c32; color: #fff; }
.tone-forest { background: #246849; color: #fff; }
.tone-ocean { background: #2453a0; color: #fff; }
.tone-stone { background: #e0e4ed; color: #303b52; }
.tone-sand { background: #e8e2d8; color: #453d30; }
.tone-sage { background: #dce7e1; color: #2a4a3b; }
.cover-art { position: relative; display: grid; place-items: center; width: 5.5rem; height: 5.5rem; }
.cover-art::before, .cover-art::after { content: ''; position: absolute; border: 1px solid currentColor; opacity: .13; border-radius: 1.5rem; inset: -0.66667rem; transform: rotate(14deg); }
.cover-art::after { inset: -1.83333rem; transform: rotate(-14deg); border-radius: 2rem; opacity: .07; }
.cover-glyph { width: 4rem; height: 4rem; }
.cover-monogram { font-size: 2.5rem; font-weight: 700; letter-spacing: -1px; }
.product-price.range-price { font-size: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#account-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
#account-fields:disabled { opacity: .6; }
.variant-panel { margin-bottom: 2rem; }
.variant-panel .eyebrow { margin-bottom: 0.5rem; }
.variant-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(18.33333rem,1fr)); gap: 1rem; }
.variant-option { display: flex; flex-direction: column; text-align: left; min-width: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 0.83333rem; background: #fafafb; }
.variant-option.active { border-color: var(--accent); background: #f1f7ff; box-shadow: inset 0 0 0 1px var(--accent); }
.variant-top { display: flex; align-items: center; gap: 0.66667rem; width: 100%; }
.variant-top strong { font-size: 1.16667rem; overflow-wrap: anywhere; }
.variant-recommend { color: #245b3a; background: #e5f1e8; font-size: 0.83333rem; padding: 1px 0.5rem; border-radius: 0.33333rem; white-space: nowrap; }
.variant-radio { margin-left: auto; width: 1.33333rem; height: 1.33333rem; flex-shrink: 0; border: 1px solid #a6a6ae; border-radius: 50%; }
.variant-option.active .variant-radio { border: 0.41667rem solid var(--accent); background: white; }
.variant-price { font-size: 1.83333rem; font-weight: 700; margin: 1rem 0 0.66667rem; font-variant-numeric: tabular-nums; }
.variant-price small { color: var(--muted); font-size: 1rem; font-weight: 400; }
.variant-description { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.variant-status { margin: 1.16667rem 0 0.33333rem; color: var(--accent); }
.variant-panel > .muted { font-size: 0.91667rem; margin-bottom: 0; }
.selection-summary { padding: 0.66667rem 0.83333rem; background: #f5f5f7; border-radius: 0.5rem; color: var(--muted); }
@media (max-width: 600px) { .variant-options { grid-template-columns: 1fr; } .detail-intro { flex-wrap: wrap; gap: 1.33333rem; } .detail-price-block { width: 100%; border-top: 1px solid var(--line); padding-top: 1rem; } .product-price.range-price { font-size: 1.5rem; } .cover-art { width: 4.5rem; height: 4.5rem; } }
.product-symbol { display: block; font-size: 3.83333rem; line-height: 1.1; font-weight: 750; letter-spacing: -2px; }
.cover-caption { font-size: 1.08333rem; font-weight: 600; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover-category { position: absolute; top: 0.75rem; right: 0.83333rem; padding: 1px 0.66667rem; border-radius: 0.83333rem; font-size: 0.91667rem; color: #fff; background: rgb(0 0 0 / 55%); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 1rem; width: 100%; }
.product-tag { color: var(--muted); font-size: 1rem; margin-bottom: 0.41667rem; }
.product-body > strong { font-size: 1.16667rem; color: var(--ink); font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.product-badges { display: flex; flex-wrap: wrap; gap: 0.41667rem; margin-top: 0.58333rem; }
.product-badges > span { display: inline-block; padding: 1px 0.58333rem; border-radius: 0.41667rem; font-size: 0.91667rem; line-height: 1.6; border: 1px solid #d5d5dc; }
.service-badge { background: #eef5ef; color: #225632; border-color: #c6d9ca !important; }
.billing-badge { background: #f5f5f7; color: #4d4d53; }
.product-excerpt { color: #4b4b51; font-size: 1rem; line-height: 1.65; margin: 0.83333rem 0 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.33333rem; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; gap: 0.66667rem; margin-top: auto; padding-top: 0.83333rem; border-top: 1px solid var(--line); }
.price-caption { display: block; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.product-price { display: block; font-size: 1.66667rem; line-height: 1.3; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.product-price small { font-size: 1.08333rem; margin-right: 0.25rem; }
.product-open { display: grid; place-items: center; width: 2.66667rem; height: 2.66667rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #f5f5f7; color: var(--ink); }
.product-open .icon { width: 1.41667rem; height: 1.41667rem; }
.catalog-status { margin-top: 1.83333rem; color: var(--muted); font-size: 1rem; }
.catalog-empty { grid-column: 1/-1; padding: 5.41667rem 1.66667rem; background: #fff9; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.catalog-empty h3 { margin: 1.16667rem 0 0.66667rem; font-size: 1.41667rem; }
.catalog-empty p { margin: 0; }
.back-link { border: 0; background: transparent; color: var(--muted); padding: 0.83333rem 0 1.83333rem; }
.detail-intro { display: flex; justify-content: space-between; align-items: center; gap: 2.08333rem; margin: 0 0 1.66667rem; background: var(--paper); padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.detail-intro > div { min-width: 0; }
.detail-intro h1 { margin-bottom: 1.16667rem; overflow-wrap: anywhere; }
#product-description { max-width: 57.5rem; color: var(--muted); font-size: 1.08333rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.detail-price-block { flex-shrink: 0; }
.detail-price-block small { display: block; color: var(--muted); margin-bottom: 0.66667rem; }
.detail-price-block strong { color: var(--ink); font-size: 1.66667rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.3fr); gap: 2rem; align-items: start; }
.panel { padding: 1.83333rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; box-shadow: var(--card-shadow); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.66667rem; }
.section-heading h1, .section-heading h2 { margin: 0; }
.section-note { font-size: 1rem; color: var(--muted); }
.segmented { display: flex; background: #f0f0f2; padding: 0.25rem; border-radius: 0.58333rem; }
.segmented button { border: 0; border-radius: 0.41667rem; background: transparent; padding: 0.41667rem 0.75rem; font-size: 0.91667rem; color: var(--muted); }
.segmented button.active { background: white; color: var(--accent); box-shadow: 0 1px 0.33333rem #1f345414; }
.form-field { margin-bottom: 1.41667rem; }
.form-field label { display: block; margin-bottom: 0.58333rem; font-size: 1rem; font-weight: 600; }
.form-field input, .form-field textarea, .order-search input, .order-search select, .modal-input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 0.66667rem; padding: 0.91667rem 1rem; background: #fff; color: var(--ink); }
.form-field textarea { max-width: 100%; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
.form-field small, .muted { color: var(--muted); font-size: 1rem; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 5.41667rem; }
.password-wrap button { position: absolute; top: 0.66667rem; right: 0.66667rem; padding: 0.41667rem 0.66667rem; border: 0; background: transparent; color: var(--muted); font-size: 1rem; }
.school-settings { color: var(--muted); font-size: 1rem; }
summary { cursor: pointer; }
.school-settings .form-field { margin: 1rem 0; }
.privacy-note { display: flex; align-items: flex-start; gap: 0.58333rem; color: var(--muted); font-size: 0.91667rem; margin: 1.58333rem 0; }
.privacy-note .icon { width: 1.25rem; height: 1.25rem; margin-top: 2px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 0.66667rem; border-radius: 0.66667rem; padding: 0.83333rem 1.33333rem; border: 1px solid transparent; font-weight: 500; }
.button.primary { background: var(--accent); color: white; }
.button.secondary { background: white; border-color: var(--line); color: var(--muted); }
.query-button { width: 100%; }
.inline-error, .modal-warning { color: #805018; background: #fff8ed; border: 1px solid #f2dfbe; padding: 1rem; margin-top: 1.25rem; border-radius: 0.66667rem; font-size: 1rem; overflow-wrap: anywhere; }
.count-badge { padding: 0.25rem 0.75rem; background: var(--accent-soft); color: var(--accent); border-radius: 0.41667rem; font-size: 0.91667rem; }
.select-all, .agreement { display: flex; align-items: center; gap: 0.58333rem; font-size: 1rem; color: var(--muted); }
.select-all { margin-bottom: 1.25rem; }
input[type="checkbox"] { accent-color: var(--accent); width: 1.33333rem; height: 1.33333rem; flex-shrink: 0; }
.empty-state { text-align: center; padding: 3rem 1.25rem; color: var(--muted); }
.empty-state > .icon { width: 2.66667rem; height: 2.66667rem; margin-bottom: 0.83333rem; color: var(--muted); }
.empty-state h3 { font-size: 1.33333rem; font-weight: 500; margin-bottom: 0.66667rem; }
.empty-state p { font-size: 1rem; margin-bottom: 0; }
.account-group-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.66667rem; padding: 1rem 0; font-size: 0.91667rem; color: var(--muted); overflow-wrap: anywhere; }
.course-row { display: flex; align-items: center; gap: 0.83333rem; padding: 1.08333rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.course-text { min-width: 0; flex: 1; }
.course-text strong { display: block; font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.course-text small { display: block; margin-top: 0.33333rem; color: var(--muted); font-size: 0.83333rem; }
.course-price { color: var(--accent); font-size: 0.91667rem; white-space: nowrap; }
.checkout { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.66667rem; }
.checkout-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.total-label { font-size: 1rem; margin: 0.33333rem 0 0; }
.total { color: var(--ink); margin-left: 0.75rem; }
.total strong { font-size: 2.08333rem; font-weight: 600; }
.total small { margin-right: 0.25rem; }
.agreement { align-items: flex-start; margin-top: 1.5rem; font-size: 0.91667rem; }
.agreement button { padding: 0; border: 0; background: transparent; color: var(--accent); }
.order-search { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; margin: 1.75rem 0; padding: 1.25rem; border-radius: .83333rem; background: var(--bg); }
.order-search label { display: grid; gap: .5rem; font-size: .91667rem; font-weight: 500; }
.order-search > label { flex: 0 1 15rem; }
.order-search input, .order-search select { width: 100%; min-width: 0; }
.order-search > div { flex: 1 1 20rem; min-width: 0; }
.order-account-fields { display: flex; flex-wrap: wrap; gap: 1rem; }
.order-account-fields label { flex: 1 1 12rem; min-width: 0; }
.order-search .order-search-hint { flex-basis: 100%; margin: 0; font-size: .83333rem; color: var(--muted); }
.order-search input { font-size: 1rem; }
.order-card { border: 1px solid var(--line); padding: 1.66667rem; margin-top: 1.25rem; border-radius: 1rem; }
.order-card-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.83333rem; }
.order-card h3 { margin: 0; font-size: 1.33333rem; }
.order-status { color: var(--accent); font-size: 0.91667rem; }
.order-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); margin: 1.25rem 0; font-size: .91667rem; line-height: 2; overflow-wrap: anywhere; }
.order-meta code, .receipt-heading code { color: var(--ink); font-family: Consolas, monospace; font-size: .91667rem; }
.order-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.order-buttons .button, .receipt-actions .button { min-height: 2.75rem; }
.order-payment { margin: 1.25rem 0; }
.button.compact { font-size: .83333rem; padding: .5rem .75rem; }
.button.text-button { border-color: transparent; background: transparent; color: var(--accent); padding-left: .25rem; padding-right: .25rem; }
.order-progress { padding: 1rem 1.25rem; border-radius: .75rem; background: var(--bg); margin: 1rem 0; }
.order-progress h4 { margin: 0 0 .5rem; font-size: 1rem; }
.progress-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .91667rem; }
.order-card .order-progress p, .order-card .order-card-help { font-size: .83333rem; }
.orders-pagination { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.order-retention { font-size: .83333rem; margin: 1.5rem 0 0; }
.order-card .muted { margin: 1.25rem 0 0; }
.order-card img { max-width: 100%; height: auto; }
.help-panel { max-width: 70.83333rem; margin: auto; }
.help-panel > h1 { margin-bottom: 2.5rem; }
.help-panel details { padding: 1.58333rem 0; border-top: 1px solid var(--line); }
.help-panel summary { font-weight: 500; }
.help-panel p { font-size: 1.08333rem; color: var(--muted); margin: 1.16667rem 0 0; }
.footer { border-top: 1px solid var(--line); margin-top: 2.5rem; padding: 1.83333rem 0 2.5rem; display: flex; align-items: center; gap: 1.33333rem; color: var(--muted); font-size: 1rem; }
.footer-brand { color: var(--muted); font-size: 1.41667rem; font-weight: 600; }
.footer-brand span { font-size: 0.83333rem; font-weight: 400; margin-left: 0.5rem; letter-spacing: 2px; }
.footer p { margin: 0; }
.footer > span { margin-left: auto; }
.mobile-nav { display: none; }
dialog { width: min(47.5rem, calc(100vw - 2.5rem)); max-height: 88dvh; overflow: auto; border: 1px solid var(--line); border-radius: 1.5rem; padding: 2.66667rem; color: var(--ink); box-shadow: 0 2.08333rem 6.66667rem #0a244633; }
dialog::backdrop { background: rgb(0 0 0 / 35%); }
.modal-close { position: absolute; top: 0.83333rem; right: 1.16667rem; border: 0; background: transparent; color: var(--muted); font-size: 2rem; }
.modal-kicker { display: none; }
.modal-title { font-size: 1.83333rem; }
.modal-body { font-size: 1.08333rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.modal-summary { background: #f0f0f2; border: 1px solid var(--line); border-radius: 0.83333rem; padding: 1.5rem; margin: 1.25rem 0; font-size: 1.08333rem; overflow-wrap: anywhere; }
.modal-summary p { margin-bottom: 0.83333rem; }
.modal-summary img { display: block; max-width: 100%; height: auto; margin: 1rem auto; }
.order-receipt { display: block; font-size: 1rem; background: white; padding: 0.83333rem; border-radius: 0.5rem; word-break: break-all; user-select: all; }
.receipt-card { background: var(--bg); padding: 1.25rem; }
.receipt-card .order-card-top { align-items: center; }
.receipt-card .order-card-top > strong { flex: 1 1 15rem; }
.receipt-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 .5rem; }
.receipt-heading > span { display: grid; flex: 1; gap: .25rem; font-size: .83333rem; color: var(--muted); }
.receipt-details { font-size: .83333rem; color: var(--muted); }
.receipt-details summary { cursor: pointer; padding: .5rem 0; }
.receipt-details .order-receipt { margin: .5rem 0; font-size: .83333rem; }
.receipt-tip { font-size: .91667rem; color: var(--muted); margin: 1rem 0 0; }
.receipt-actions { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.25rem; }
.receipt-card .pay-button { width: 100%; justify-content: space-between; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.83333rem; margin-top: 2.08333rem; }
#toast { position: fixed; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 50; max-width: min(90vw,48.33333rem); padding: 1rem 1.66667rem; border-radius: 0.83333rem; color: white; background: #1d1d1f; box-shadow: 0 0.66667rem 2.5rem rgb(0 0 0 / 12%); font-size: 1.08333rem; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr; gap: 1.5rem; } .section-heading { flex-wrap: wrap; } .detail-intro { align-items: flex-start; flex-direction: column; gap: 1.66667rem; } }
@media (max-width: 1000px) {
  html { font-size: 16px; }
  .header-inner, .container { padding: 0 1.33333rem; } .header-inner { height: 5.16667rem; gap: 1.25rem; } .brand { font-size: 1.66667rem; } .brand-icon { width: 2.83333rem; height: 2.83333rem; } .desktop-nav { display: none; } .contact-button { font-size: 1rem; padding: 0.58333rem 0.83333rem; }
  .mode-banner { font-size: 1rem; min-height: 3.5rem; gap: 0.5rem; } .mode-banner > span:nth-child(2) { flex: 1; } .mode-banner button { padding-right: 0; }
  .store-intro { padding: 1rem 0 1.5rem; gap: 1rem; } .store-intro h1 { font-size: 1.91667rem; margin-bottom: 0.41667rem; } .store-intro p { font-size: 1rem; } .store-intro > .button { display: none; }
  .store-notice { align-items: flex-start; gap: 0.66667rem; font-size: 1rem; padding: 0.83333rem 1rem; } .store-notice .icon { margin-top: 2px; } .store-notice button { display: none; }
  .catalog-section { padding-top: 1rem; } .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 1.25rem; padding-bottom: 1.33333rem; } .category-list { justify-content: space-between; } .category-tab { padding: 0.66667rem 1rem; font-size: 1.08333rem; gap: 0.58333rem; } .category-tab .icon { width: 1.41667rem; height: 1.41667rem; } .search-box { width: 100%; } .search-box input { padding: 0.83333rem 0; font-size: 1rem; }
  .platform-list { flex-wrap: nowrap; overflow: auto; padding-bottom: 0.33333rem; gap: 0.41667rem; margin-top: 1.16667rem; } .filter-chip { white-space: nowrap; font-size: 1rem; padding: 0.41667rem 0.83333rem; }
  .catalog-heading { margin: 1.5rem 0 1.16667rem; } .catalog-heading h2 { font-size: 1.33333rem; } .catalog-heading > span { font-size: 1rem; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; } .product-cover { aspect-ratio: 1.25; flex-shrink: 0; } .product-symbol { font-size: 3.33333rem; } .cover-caption { font-size: 1rem; } .cover-category { top: 0.58333rem; right: 0.58333rem; font-size: 0.83333rem; } .product-body { padding: 1rem; } .product-body > strong { font-size: 1.16667rem; } .product-tag { font-size: 1rem; }
  /* Keep summaries close to prices; absorb row-height differences above them. */
  .product-badges { gap: 0.33333rem; margin-bottom: auto; }
  .product-badges > span { padding: 1px 0.41667rem; }
  .product-excerpt { font-size: 1rem; min-height: 0; margin: .625rem 0; }
  .product-bottom { margin-top: 0; padding-top: .625rem; }
  .product-price { font-size: 1.66667rem; min-height: 2.16667rem; }
  .detail-grid { grid-template-columns: 1fr; } .detail-intro { padding: 1.75rem; } .detail-intro h1 { font-size: 2rem; } .detail-price-block { flex-shrink: 1; } .detail-price-block strong { font-size: 1.5rem; } .panel { padding: 1.75rem; } .section-heading h1 { font-size: 2.08333rem; } .section-heading h2 { font-size: 1.41667rem; }
  .order-search { grid-template-columns: minmax(0,1fr) auto; } .order-search select { grid-column: 1/-1; } .order-search .button { font-size: 1rem; padding: 0.75rem 0.91667rem; } .order-card { padding: 1.33333rem; } .help-panel > h1 { font-size: 2.08333rem; }
  .footer { flex-wrap: wrap; gap: 0.66667rem 1.25rem; padding: 2rem 0 calc(7.83333rem + env(safe-area-inset-bottom)); margin-top: 2.33333rem; } .footer > span { width: 100%; margin-left: 0; font-size: 1rem; }
  .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 0.66667rem 0.83333rem calc(0.66667rem + env(safe-area-inset-bottom)); } .mobile-nav button { display: flex; align-items: center; flex-direction: column; gap: 0.25rem; background: transparent; border: 0; color: var(--muted); font-size: 1rem; min-width: 5.83333rem; padding: 0.25rem; } .mobile-nav button.active { color: var(--accent); }
  dialog { padding: 2.16667rem 1.75rem; } .modal-title { font-size: 1.75rem; } #toast { bottom: 7.33333rem; width: max-content; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 700px) and (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .header-inner, .container { padding-left: 1rem; padding-right: 1rem; }
  .header-inner { height: auto; min-height: 4.75rem; padding-top: .75rem; padding-bottom: .75rem; gap: .75rem; }
  .category-tab { padding: .5rem .75rem; gap: .375rem; }
  .category-tab > span { display: none; }
  .catalog-heading { flex-wrap: wrap; gap: .5rem; }
  .product-grid { gap: .75rem; }
  .product-body { padding: .75rem; }
  .product-price { font-size: 1.5rem; min-height: 1.95rem; }
  .product-price.range-price { font-size: 1.125rem; }
  .product-price small { font-size: .75rem; }
  .product-open { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
  .product-bottom { flex-wrap: wrap; }
  .panel, .detail-intro { padding: 1.25rem; }
  .variant-top { flex-wrap: wrap; }
  .checkout-top { flex-wrap: wrap; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .order-search { padding: 1rem; }
  .order-search > label, .order-search > div, .order-search > button { flex-basis: 100%; }
  .order-card { padding: 1rem; }
  .order-buttons > .button:not(.compact):not(.text-button) { width: 100%; }
  .receipt-heading { align-items: flex-start; }
  .receipt-actions { flex-direction: column-reverse; }
  .receipt-actions .button { width: 100%; justify-content: center; }
  dialog { width: calc(100vw - 1.5rem); padding: 2rem 1.25rem 1.25rem; }
  .modal-title { padding-right: 1rem; }
}
.login-captcha { display: grid; gap: .75rem; margin-top: 1rem; min-width: 0; }
.login-captcha label { display: grid; gap: .5rem; font-weight: 600; }
.login-captcha input:not([type="hidden"]) { width: 100%; min-width: 0; padding: .75rem; border: 1px solid var(--line); border-radius: .5rem; background: white; color: var(--ink); font-size: 1rem; }
.captcha-picture { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.captcha-picture img { width: 200px; max-width: 100%; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: .5rem; background: #f8f8f8; }
.captcha-picture .button { font-size: .875rem; }
.captcha-status, .login-security-note { color: var(--muted); font-size: .83333rem; line-height: 1.7; margin: 0; }
