/* Schrift Archivo liegt auf unserem eigenen Server (keine Verbindung zu Google). Lizenz: css/fonts/OFL-Archivo.txt */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext.woff2) format("woff2-variations"), url(fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin.woff2) format("woff2-variations"), url(fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- 1. 设计变量（Design Tokens） ---------- */
:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --surface: #F3F4F2;
  --surface-2: #E9EBE7;
  --line: #D9DBD6;
  --ink: #15181B;
  --muted: #5F6560;
  --brand: #0B5D3B;
  --brand-ink: #FFFFFF;
  --brand-soft: #E3F1EA;
  --price: #C8102E;
  --warn: #B35C00;
  --focus: #1F6FEB;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 4px;
  --maxw: 1200px;
  --gutter: 16px;
  --header-h: 60px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #121413; --surface: #1B1E1C; --surface-2: #242826; --line: #2F3431;
    --ink: #ECEDEA; --muted: #A2A8A3; --brand: #4FB387; --brand-ink: #0D1A14;
    --brand-soft: #1C2F26; --price: #F26B6B; --warn: #E6A14A; --focus: #6CA6FF;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121413; --surface: #1B1E1C; --surface-2: #242826; --line: #2F3431;
  --ink: #ECEDEA; --muted: #A2A8A3; --brand: #4FB387; --brand-ink: #0D1A14;
  --brand-soft: #1C2F26; --price: #F26B6B; --warn: #E6A14A; --focus: #6CA6FF;
}
html { scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: inherit; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { margin: 0; line-height: 1.15; font-stretch: 90%; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- 3. 布局 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
.grid { display: grid; gap: var(--gutter); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.section { padding: 40px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head a { color: var(--brand); font-weight: 600; }

/* ---------- 4. 组件 ---------- */
/* 信任条 */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; }
.trust .wrap { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.trust a { padding: 8px 14px 8px 0; margin-right: 14px; border-right: 1px solid var(--line); white-space: nowrap; }
.trust a:last-child { border: 0; }
.trust b { font-weight: 600; }

/* 页头 */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--paper); border-bottom: 1px solid var(--line); }
.header .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; height: var(--header-h); }
.logo { font-weight: 800; font-stretch: 80%; font-size: 24px; letter-spacing: -0.02em; }
.logo small { display: block; font-size: 11px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--muted); margin-top: -4px; }
.search { min-width: 0; display: flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); max-width: 520px; width: 100%; }
.search input { flex: 1; border: 0; background: transparent; padding: 9px 12px; min-width: 0; }
.search button { border: 0; background: var(--surface); padding: 0 14px; border-left: 1px solid var(--line); font-weight: 600; }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 6px 10px; font-weight: 600; font-size: 13px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cartbtn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); padding: 7px 12px; font-weight: 600; }
.cartbtn .ico { width: 20px; height: 20px; display: none; }
.ordersbtn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 7px 12px; font-weight: 600; }
.ordersbtn:hover { text-decoration: none; border-color: var(--ink); }
.ordersbtn.on { border-color: var(--ink); }
.ordersbtn .ico { width: 20px; height: 20px; }
.cartbtn .count { background: var(--brand); color: var(--brand-ink); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }

/* 主导航 */
.nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 12px 14px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { text-decoration: none; background: var(--surface); }
.nav a.on { border-bottom-color: var(--brand); color: var(--brand); }
.nav a.soon { color: var(--muted); font-weight: 500; }
.nav a.soon::after { content: attr(data-soon); font-size: 11px; margin-left: 6px; color: var(--muted); border: 1px solid var(--line); padding: 1px 5px; border-radius: 999px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius); padding: 11px 16px; font-weight: 700; line-height: 1.2; transition: background .12s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--paper); border-color: var(--ink); }
.btn-secondary:hover { background: var(--surface); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 价格 */
.price { font-weight: 800; font-size: 22px; color: var(--ink); }
.price.big { font-size: 34px; }
.unit { color: var(--muted); font-size: 13px; }
.save { color: var(--price); font-weight: 700; font-size: 13px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 3px; background: var(--surface-2); }
.tag-price { background: var(--price); color: #fff; }
.tag-brand { background: var(--brand-soft); color: var(--brand); }

/* 商品视觉（无图占位：品牌 + 包装数） */
.visual { aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-rows: auto 1fr auto; gap: 4px; padding: 12px; overflow: hidden; color: var(--ink); max-width: 100%; }
.visual .v-brand { font-size: 12px; font-weight: 600; color: var(--muted); }
.visual .v-ico { display: grid; place-items: center; min-height: 0; }
.visual .v-ico svg { width: 56%; height: auto; max-height: 100%; }
.visual svg .f { fill: var(--brand-soft); }
.visual svg .a { fill: var(--brand); stroke: none; }
.visual.batterien svg .f { fill: var(--surface-2); }
.visual .v-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); }
.visual .v-n { font-weight: 800; color: var(--ink); white-space: nowrap; }
.visual.lg .v-ico svg { width: 46%; }
.visual.lg .v-foot { font-size: 14px; }

/* 商品卡 */
.card { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--paper); }
.card .name { font-weight: 700; line-height: 1.3; }
.card .name a:hover { text-decoration: underline; }
.card .brand { font-size: 12px; color: var(--muted); }
.card .packs { display: flex; flex-wrap: wrap; gap: 6px; }
.card .packs button { border: 1px solid var(--line); background: var(--paper); border-radius: 3px; padding: 4px 8px; font-size: 12px; font-weight: 600; }
.card .packs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.card .buy { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.card .stock { font-size: 12px; color: var(--brand); font-weight: 600; }

/* 清单模块（Hero） */
.hero { padding: 36px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.hero h1 { margin-bottom: 6px; }
.hero .lead { color: var(--muted); font-size: 17px; max-width: 60ch; margin-bottom: 22px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: grid; gap: 6px; background: var(--paper); }
.tile .t-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.tile .t-name { font-weight: 700; line-height: 1.25; min-height: 2.5em; }
.tile .t-row { display: flex; justify-content: space-between; align-items: center; }
.tile .t-price { font-weight: 800; }
.tile .add { width: 34px; height: 34px; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--paper); font-size: 20px; line-height: 1; display: grid; place-items: center; }
.tile .add:hover { background: var(--ink); color: var(--paper); }
.listbox { position: sticky; top: calc(var(--header-h) + 12px + env(safe-area-inset-top, 0px)); border: 1px solid var(--ink); border-radius: var(--radius); padding: 16px; background: var(--paper); }
.listbox h3 { margin-bottom: 10px; }
.listbox .ship { font-size: 13px; color: var(--muted); margin: 10px 0 6px; }
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .25s; }
.listbox .items { display: grid; gap: 6px; margin: 12px 0; font-size: 13px; max-height: 180px; overflow: auto; }
.listbox .items div { display: flex; justify-content: space-between; gap: 8px; }
.listbox .total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.empty { color: var(--muted); font-size: 13px; }

/* 品类入口 */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 4px; }
.cat:hover { text-decoration: none; border-color: var(--ink); }
.cat b { font-size: 17px; }
.cat span { font-size: 13px; color: var(--muted); }
.cat.soon { color: var(--muted); }


/* 面包屑 / 筛选 */
.crumbs { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
.toolbar .spacer { flex: 1; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.select { border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 10px; background: var(--paper); }
.count { color: var(--muted); font-size: 13px; }

/* 商品页 */
.pdp { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; padding: 20px 0 40px; align-items: start; }
.pdp .media { grid-column: 1; grid-row: 1; }
.pdp-buy { grid-column: 2; grid-row: 1; min-width: 0; }
.pdp-facts { grid-column: 1; grid-row: 2; min-width: 0; }
.pdp .fbt { grid-column: 2; grid-row: 2; margin-top: 0; }
.pdp-reviews { grid-column: 1 / -1; }
.pdp:not(:has(.fbt)) .pdp-facts { grid-column: 1 / -1; }
.pdp .brandline { color: var(--brand); font-weight: 700; font-size: 13px; }
.pdp h1 { margin: 4px 0 10px; }
.pdp .sub { color: var(--muted); margin-bottom: 18px; }
.buybox { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 16px; }
.pricerow { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.variants { display: grid; gap: 8px; }
.variants .label { font-size: 13px; font-weight: 600; }
.vlist { display: flex; flex-wrap: wrap; gap: 8px; }
.vlist button { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 8px 12px; display: grid; text-align: left; min-width: 110px; }
.vlist button b { font-size: 15px; }
.vlist button span { font-size: 12px; color: var(--muted); }
.vlist button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.vlist .best { font-size: 11px; color: var(--brand); font-weight: 700; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button { border: 0; background: var(--paper); padding: 10px; font-weight: 600; text-align: left; display: grid; }
.seg button span { font-size: 12px; color: var(--muted); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }
.seg button[aria-pressed="true"] span { color: var(--brand); }
.interval { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.qtyrow { display: flex; gap: 10px; align-items: stretch; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty button { border: 0; background: var(--surface); width: 40px; font-size: 18px; }
.qty input { width: 48px; border: 0; text-align: center; background: var(--paper); }
.deliver { display: grid; gap: 4px; font-size: 13px; }
.deliver b { color: var(--brand); }
.deliver .muted { color: var(--muted); }
.glance { margin: 0 0 24px; }
.pdp-specs { margin-top: 24px; }
.glance ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.compat { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.compat span { border: 1px solid var(--line); border-radius: 3px; padding: 2px 8px; font-size: 13px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--muted); width: 40%; }

/* 购物车抽屉 */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 20; display: none; }
.scrim.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 21; transform: translateX(100%); transition: transform .2s ease; display: grid; grid-template-rows: auto 1fr auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: -8px 0 24px rgba(0,0,0,.12); }
.drawer.open { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer .lines { overflow: auto; padding: 8px 16px; display: grid; gap: 0; align-content: start; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line .visual { padding: 6px; grid-template-rows: 1fr; }
.line .visual .v-brand, .line .visual .v-foot { display: none; }
.line .visual .v-ico svg { width: 82%; }
.line .l-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.line .l-meta { font-size: 12px; color: var(--muted); }
.line .l-right { text-align: right; display: grid; gap: 6px; justify-items: end; }
.line .qty button { width: 30px; }
.line .qty input { width: 36px; }
.line .rm { border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }
.drawer footer { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sumrow { display: flex; justify-content: space-between; font-size: 14px; }
.sumrow.total { font-weight: 800; font-size: 18px; }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay span { border: 1px solid var(--line); border-radius: 3px; padding: 2px 8px; font-size: 12px; font-weight: 600; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; font-size: 14px; }
.footer > .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding: 36px var(--gutter); }
.footer h3, .footer details.f-col > summary { font-size: 14px; margin-bottom: 10px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.f-about { margin-top: 8px; }
.f-legal-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer details.f-col { min-width: 0; }
.footer details.f-col > summary { list-style: none; cursor: default; color: inherit; }
.footer details.f-col > summary::-webkit-details-marker,
.footer details.f-col > summary::marker { display: none; content: none; }
.footer .legal { border-top: 1px solid var(--line); }
.footer a.logo:hover, .footer a.pay:hover { text-decoration: none; }
.footer a.pay { margin-top: 12px; }
.footer a.muted { color: var(--muted); }
.footer .f-contact { font-style: normal; margin-top: 12px; line-height: 1.6; }
.footer .f-contact a { color: inherit; text-decoration: underline; }
.co-trust { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.co-trust li { padding-left: 22px; position: relative; }
.co-trust li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 11px; height: 6px; border-left: 2px solid var(--ok, #12804A); border-bottom: 2px solid var(--ok, #12804A); transform: rotate(-45deg); }
.totop { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.lnk { color: var(--brand); text-decoration: underline; }
.footer .legal .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px var(--gutter); color: var(--muted); font-size: 13px; }

/* 静态页 / 提示 */
.page { max-width: 72ch; padding: 20px 0 40px; }
.page h1 { margin-bottom: 16px; }
.page h2 { margin: 24px 0 8px; font-size: 18px; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; opacity: 0; transition: .2s; z-index: 30; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 6. 响应式 ---------- */
@media (max-width: 1024px) {
  .ordersbtn { padding: 0; min-width: 38px; min-height: 36px; justify-content: center; }
  .ordersbtn .orderslabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header .wrap { gap: 14px; }
  .logo small { display: none; }
  .cartbtn .cartlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cartbtn .ico { display: block; }
  .cols-4 { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
  .listbox { position: static; }
  .pdp { grid-template-columns: 1fr; }
  .pdp .media, .pdp-buy, .pdp-facts, .pdp .fbt, .pdp-reviews { grid-column: auto; grid-row: auto; }
  .pdp .fbt { margin-top: 20px; }
  .footer > .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header .wrap { grid-template-columns: 1fr auto; grid-template-rows: auto auto; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo small { display: none; }
  .search { grid-column: 1 / -1; max-width: none; }
  .hdr-actions { grid-column: 2; grid-row: 1; }
  .nav .wrap { padding: 0 8px; }
  .cols-4, .cols-3, .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .price.big { font-size: 28px; }
  .seg { grid-template-columns: 1fr; }
}

/* ---------- 7. iPhone / 触屏适配 ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, input, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }   /* 去掉点击灰块和双击缩放延迟 */
.drawer .lines { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* 底部购物车条（默认隐藏，只在窄屏出现） */
.mbar { display: none; }

/* 触屏没有真正的 hover：避免点完后按钮一直保持悬停样式 */
@media (hover: none) {
  a:hover { text-decoration: none; }
  .tile .add:hover { background: var(--paper); color: var(--ink); }
  .nav a:hover, .btn-secondary:hover { background: transparent; }
  .btn-primary:hover { filter: none; }
  .btn:active, .add:active, .chip:active, .qty button:active, .cartbtn:active, .mbar button:active { opacity: .7; }
}

@media (max-width: 720px) {
  /* iOS：输入框字号小于 16px 时，点进去整页会自动放大 */
  input, select, textarea, .search input, .qty input, .select { font-size: 16px; }

  /* 页头：Logo + 语言 + 购物车图标一行，搜索框单独一行 */
  .header .wrap { gap: 8px 10px; }
  .logo { font-size: 21px; }
  .search input { padding: 10px 12px; }
  .search button { padding: 0 16px; }
  .lang button { padding: 0 10px; min-height: 40px; min-width: 40px; }
  .cartbtn { padding: 0 12px; min-height: 40px; }
  .cartbtn .cartlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cartbtn .ico { display: block; }
  .ordersbtn { padding: 0; min-height: 40px; min-width: 40px; justify-content: center; }
  .ordersbtn .orderslabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  /* 页头一行放下：Logo + 语言 + 订单 + 购物车（375px 宽也不溢出） */
  .header .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 6px; }
  .hdr-actions { gap: 6px; }
  .logo { font-size: 19px; }
  .lang button { min-width: 34px; padding: 0 6px; font-size: 12px; }
  .cartbtn { padding: 0 10px; gap: 6px; }
  .trust a { padding: 10px 14px 10px 0; }
  .nav a { padding: 13px 12px; }

  /* 触控目标至少约 44px */
  .tile .add { width: 44px; height: 44px; }
  .card .packs button { padding: 8px 10px; min-height: 36px; }
  .chip { padding: 9px 14px; }
  .qty button { width: 44px; min-height: 44px; }
  .line .qty button { width: 38px; min-height: 38px; }
  .line .rm { padding: 8px 0; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }

  /* 商品卡：两列时价格和按钮上下排，按钮占满一行 */
  .card { padding: 10px; gap: 8px; }
  .card .buy { flex-direction: column; align-items: stretch; }
  .card .buy .btn { width: 100%; }
  .price { font-size: 19px; }
  .tile .t-name { font-size: 14px; }

  .hero { padding: 20px 0 28px; }
  .hero .lead { font-size: 15px; margin-bottom: 16px; }
  .section { padding: 28px 0; }

  /* 品类页：品牌筛选横向滑动，排序单独一行 */
  .toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .toolbar::-webkit-scrollbar, .nav .wrap::-webkit-scrollbar, .trust .wrap::-webkit-scrollbar { display: none; }
  .toolbar .chip { flex: none; }
  .toolbar .spacer { flex: 0 0 8px; }
  .toolbar .select { flex: none; min-height: 40px; }

  /* 商品页 */
  .pdp { gap: 16px; padding-top: 12px; }
  .visual.lg { aspect-ratio: 4 / 3; }
  .buybox { padding: 14px; }
  .vlist button { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .interval { flex-wrap: wrap; }

  /* 购物车抽屉：全屏，关闭按钮更好点 */
  .drawer { width: 100%; box-shadow: none; }
  .drawer header { padding: 12px 16px; }
  .drawer footer { padding-bottom: 12px; }

  /* 页脚：简介在上，三组链接手风琴折叠，避免两列挤换行 */
  .footer { margin-top: 0; }
  .footer > .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 24px; padding-bottom: 8px; }
  .footer .f-brand { padding-bottom: 18px; }
  .f-about { font-size: 13.5px; line-height: 1.45; }
  .footer details.f-col { border-top: 1px solid rgba(255,255,255,.14); }
  .footer details.f-col > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0; min-height: 48px; padding: 12px 0; font-size: 15px; cursor: pointer;
  }
  .footer details.f-col > summary::after {
    content: ""; width: 10px; height: 10px; flex: none;
    border-right: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(45deg); opacity: .85; margin-top: -4px; transition: transform .15s;
  }
  .footer details.f-col[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
  .footer ul { gap: 0; }
  .footer details.f-col > ul { padding: 0 0 10px; }
  .footer ul a, .footer ul .linkbtn { display: flex; align-items: center; box-sizing: border-box; padding: 10px 0; min-height: 44px; width: 100%; }
  .footer .legal .wrap { display: grid; grid-template-columns: 1fr; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .f-legal-meta { width: 100%; justify-content: space-between; }
  .totop { min-height: 40px; }

  /* 底部购物车条 */
  .mbar:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--paper); border-top: 1px solid var(--line);
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
  .mbar button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: transparent; padding: 0; text-align: left; }
  .mbar .m-info { display: grid; line-height: 1.3; min-width: 0; }
  .mbar .m-info small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar .m-cta { flex: none; background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); padding: 12px 18px; font-weight: 700; }
  body.has-mbar .footer .legal { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  html:has(body.has-mbar) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }   /* 滚动定位时不被底部购物车条挡住 */   /* 给底部购物车条留位置，避免挡住页尾 */
  body.has-mbar .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 400px) {
  .logo { font-size: 16px; letter-spacing: -0.03em; }
  .lang button { min-width: 28px; padding: 0 3px; }
  .hdr-actions { gap: 4px; }
  .ordersbtn { min-width: 36px; }
  .cartbtn { padding: 0 8px; gap: 4px; }
  .cartbtn .count { min-width: 20px; height: 20px; }
}
/* 小屏 iPhone（SE / mini，宽 375px 及以下） */
@media (max-width: 380px) {
  :root { --gutter: 12px; }
  .grid, .tiles { gap: 8px; }
  .logo { font-size: 19px; }
  .lang button { min-width: 36px; padding: 0 8px; }
  .tile { padding: 8px; }
}

/* ---------- 8. 结算页 / 凑单推荐 ---------- */
.co-h1 { margin: 8px 0 20px; }
.co { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 48px; }
.co-main { display: grid; gap: 20px; min-width: 0; }
.co fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.co legend { font-weight: 700; font-size: 16px; padding: 0 6px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; }
.field input { border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; background: var(--paper); width: 100%; min-width: 0; }
.field input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field.invalid input { border-color: var(--price); }
.ferr { color: var(--price); font-size: 13px; font-weight: 600; min-height: 0; }
.ferr:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rowzip { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.country { font-size: 13px; color: var(--muted); }
.payopts { display: grid; gap: 8px; }
.payopt { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; }
.payopt input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.payopt span { display: grid; }
.payopt small { color: var(--muted); font-size: 12px; }
.payopt:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }
.co-sum { position: sticky; top: calc(var(--header-h) + 12px + env(safe-area-inset-top, 0px)); border: 1px solid var(--ink); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; min-width: 0; }
.co-items, .thanks .co-items { display: grid; gap: 8px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.co-items > div { display: flex; justify-content: space-between; gap: 12px; }
.co-items > div > span:last-child { white-space: nowrap; }
.co-items small { display: block; color: var(--muted); font-size: 12px; }
.co-sum .sumrow.total small, .thanks .sumrow.total small { font-weight: 500; color: var(--muted); font-size: 12px; }
.co-deliver { font-size: 13px; color: var(--brand); font-weight: 600; }
.agb { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; cursor: pointer; }
.agb input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.agb a { color: var(--brand); text-decoration: underline; }
.co-back { border: 0; background: transparent; color: var(--muted); text-decoration: underline; font-size: 13px; padding: 6px 0; justify-self: center; }
.thanks { display: grid; gap: 12px; }
.thanks .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.thanks .tick svg { width: 30px; height: 30px; }
.thanks .btn { justify-self: start; }
.upsell { margin-top: 12px; border: 1px dashed var(--brand); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; background: var(--brand-soft); }
.u-title { font-size: 13px; font-weight: 700; color: var(--brand); }
.u-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.u-name { font-size: 13px; font-weight: 600; min-width: 0; }
.u-name small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.u-row .btn { flex: none; background: var(--paper); }
@media (max-width: 860px) {
  .co { grid-template-columns: 1fr; gap: 20px; }
  .co-sum { position: static; }
}
@media (max-width: 420px) {
  .row2 { grid-template-columns: 1fr; }
  .rowzip { grid-template-columns: 96px 1fr; }
}

/* ---------- 9. Apple Pay 结算 ---------- */
.co.co-ap { grid-template-columns: minmax(0, 560px); justify-content: center; }
.co-ap .co-sum { position: static; }
.ap-hint { font-size: 13px; color: var(--muted); margin: 0; }
.ap-devices { margin: 0; padding: 12px 14px; font-size: 15px; font-weight: 650; line-height: 1.4; color: var(--ink); background: var(--brand-soft); border-radius: var(--radius); text-align: left; }
/* 苹果官方 <apple-pay-button>；脚本没加载时用  Pay 后备按钮 */
.ap-btnwrap { width: 100%; min-height: 48px; }
.ap-btnwrap.busy { opacity: .55; pointer-events: none; cursor: progress; }
apple-pay-button {
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 48px;
  --apple-pay-button-border-radius: 8px;
  --apple-pay-button-padding: 0px;
  --apple-pay-button-box-sizing: border-box;
  display: inline-block; width: 100%; height: 48px;
}
apple-pay-button:not(:defined) { display: none; }
apple-pay-button[hidden] { display: inline-block !important; }
apple-pay-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.applepay-fallback { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; height: 48px; border: 0; border-radius: 8px; background: #000; color: #fff; cursor: pointer; }
.applepay-fallback:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
apple-pay-button:defined + .applepay-fallback { display: none; }
.applepay-fallback .ap-logo { width: 18px; height: 22px; display: block; }
.applepay-fallback .ap-pay { font: 560 22px/1 -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.03em; }

/* ---------- 10. 我的订单 ---------- */
.orders { max-width: 720px; padding: 20px 0 48px; display: grid; gap: 16px; }
.orders > p { margin: 0; }
.order { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.order header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order header > div { display: grid; gap: 2px; }
.order header .muted { font-size: 13px; color: var(--muted); }
.pill-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.o-eta { font-size: 14px; font-weight: 600; color: var(--brand); }
.order .co-items a:hover { text-decoration: underline; }
.order .btn { justify-self: start; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) { .order .btn { justify-self: stretch; } }

/* ---------- 11. 账户：登录 / 注册 / 我的账户 ---------- */
.auth { max-width: 460px; padding: 20px 0 48px; display: grid; gap: 16px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tabs a { text-align: center; padding: 12px; font-weight: 700; color: var(--muted); }
.tabs a:hover { text-decoration: none; }
.tabs a.on { background: var(--ink); color: var(--paper); }
.authform { display: grid; gap: 12px; }
.fhint { color: var(--muted); font-size: 12px; }
.forgot { justify-self: start; font-size: 13px; }
.fine { font-size: 12px; color: var(--muted); margin: 0; }
.auth-alt { margin: 0; font-size: 14px; }
.auth-guest { margin: 0; font-size: 13px; color: var(--muted); }
.notice.ok { border-left-color: var(--brand); }
.co-login { font-size: 14px; padding: 12px 14px; background: var(--surface); border-radius: var(--radius); }
.co-login a { color: var(--brand); text-decoration: underline; font-weight: 600; }
.account { max-width: 720px; padding: 20px 0 48px; display: grid; gap: 20px; }
.acc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.acc-head p { margin: 4px 0 0; }
.acc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.acc-card h2 { font-size: 18px; }
.acc-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.acc-card-head a { white-space: nowrap; flex: none; }
.acc-last { display: grid; gap: 4px; }
.acc-last .btn { justify-self: start; margin-top: 8px; }
.acctbtn.in .ico { color: var(--brand); }
@media (max-width: 720px) { .acc-last .btn { justify-self: stretch; } }

/* 静态页里的分点说明（如支付方式页） */
.page .point { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.page .point h2 { font-size: 17px; margin: 0 0 6px; }
.page .point p { margin: 0 0 12px; }
.page .point + .btn, .page .point:last-of-type { margin-bottom: 16px; }

/* ---------- 12. 促销风主题（参考瑞士配件店 Apfelkiste / Revendo）----------
   瑞士红 = 价格和主按钮；黄色 = 价签贴纸；深蓝 = 信任条和页脚；每个品类一种浅底色。
   这一节放在最后，覆盖前面的旧样式。 */
:root {
  --paper: #FFFFFF; --surface: #F3F4F7; --surface-2: #E7E9EF; --line: #DDE0E7;
  --ink: #16181D; --muted: #5B6170;
  --brand: #E30613; --brand-ink: #FFFFFF; --brand-soft: #FDE6E7; --price: #E30613;
  --navy: #16203A; --sun: #FFD400; --ok: #12804A; --warn: #B35C00;
  --t-ladegeraete: #FFE9D9; --t-kabel: #DDEBFF; --t-powerbanks: #DCF4E2; --t-schutz: #ECE4FF; --t-tracker: #D6F3F1; --t-batterien: #FFF2BF; --t-halterungen: #FFE0EC; --t-watch: #E4ECF2;
  --r-card: 14px; --r-btn: 10px; --radius: 10px;
}
body { background: var(--surface); }
body::before { background: var(--navy); }
main { background: var(--paper); }

/* 信任条：深蓝细条 */
.trust { background: var(--navy); color: #fff; border: 0; font-size: 12.5px; }
.trust a { border-right-color: rgba(255,255,255,.18); }
.trust b { font-weight: 700; color: var(--sun); }

/* 页头：红色字标 + 大圆角搜索框 */
.header { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.logo { color: var(--brand); font-stretch: 75%; font-size: 27px; font-weight: 800; letter-spacing: -0.01em; }
.logo small { color: var(--muted); }
.search { border: 0; background: var(--surface); border-radius: 999px; max-width: 620px; padding: 4px; }
.search input { padding: 8px 14px; }
.search button { border: 0; background: var(--brand); color: #fff; border-radius: 999px; width: 40px; height: 36px; padding: 0; display: grid; place-items: center; flex: none; }
.search button svg { width: 20px; height: 20px; }
.lang { border-radius: 999px; }
.ordersbtn, .cartbtn { border-radius: 999px; border-color: var(--line); }
.cartbtn { background: var(--paper); border-color: var(--line); }
.cartbtn .count { background: var(--brand); color: #fff; font-weight: 800; }

/* 品类导航：胶囊按钮，可横滑 */
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.nav a { border: 0; border-radius: 999px; background: var(--surface); padding: 8px 14px; font-size: 14px; }
.nav a:hover { background: var(--surface-2); }
.nav a.on { background: var(--brand); color: #fff; }

/* 按钮 */
.btn { border-radius: var(--r-btn); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { border-color: var(--ink); }
.chip { border-radius: 999px; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); }

/* 大图轮播 */
.promo { position: relative; background: var(--paper); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; color: #fff; overflow: hidden; }
.slide .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 24px; min-height: 300px; padding-top: 36px; padding-bottom: 48px; }
.slide.red { background: var(--brand); }
.slide.yellow { background: var(--sun); color: var(--navy); }
.slide.navy { background: var(--navy); }
.s-title { font-size: clamp(34px, 6.4vw, 64px); font-weight: 800; font-stretch: 75%; line-height: .98; letter-spacing: -0.01em; margin-bottom: 12px; text-wrap: balance; }
.s-copy p { font-size: 17px; max-width: 46ch; margin-bottom: 20px; opacity: .92; }
.s-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font-weight: 800; font-size: 16px; }
.s-cta:hover { text-decoration: none; filter: brightness(.96); }
.slide.yellow .s-cta { background: var(--navy); color: #fff; }
.slide.navy .s-cta { background: var(--sun); color: var(--navy); }
.s-art { justify-self: center; width: min(260px, 100%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); transform: rotate(-8deg); }
.slide.yellow .s-art { background: rgba(255,255,255,.5); }
.s-art svg { width: 70%; stroke-width: 2.6; }
.s-art svg .f { fill: rgba(255,255,255,.22); }
.slide.yellow .s-art svg .f { fill: #fff; }
.s-art svg .a { fill: var(--sun); stroke: none; }
.slide.yellow .s-art svg .a { fill: var(--brand); }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; }
.dots button { width: 28px; height: 24px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; opacity: .45; color: #fff; transition: width .2s, opacity .2s; }
.dots button[aria-current="true"]::before { width: 22px; opacity: 1; }

/* 服务卖点条 */
.usp { background: var(--paper); border-bottom: 1px solid var(--line); }
.usp .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.usp div { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; line-height: 1.25; }
.usp svg { width: 30px; height: 30px; flex: none; color: var(--brand); background: var(--brand-soft); border-radius: 50%; padding: 6px; }

/* 区块 */
.section { border-top: 0; background: var(--paper); padding: 32px 0 8px; }
.section-head { align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { font-stretch: 80%; font-weight: 800; font-size: clamp(22px, 3vw, 30px); }
.section-head a { color: var(--brand); font-weight: 700; }
.cutoff { margin: 0; font-size: 14px; color: var(--ink); background: var(--sun); border-radius: 999px; padding: 6px 14px; }
.cutoff .clock { font-variant-numeric: tabular-nums; color: var(--brand); }
.deals { background: linear-gradient(var(--brand-soft), var(--paper) 70%); padding-top: 28px; }

/* 横滑商品条 */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 20px; }
.rail::-webkit-scrollbar { display: none; }
.rail > .card { scroll-snap-align: start; }

/* 商品卡 */
.card { position: relative; grid-template-rows: auto 1fr auto auto; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 10px 12px; background: var(--paper); }
.card:hover { border-color: var(--surface-2); box-shadow: 0 6px 18px rgba(22,32,58,.08); }
.card .c-img { position: relative; display: block; }
.card .c-img:hover { text-decoration: none; }
.card .brand { font-size: 12px; font-weight: 700; color: var(--muted); }
.card .name { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .packs { margin-top: 8px; }
.card .packs button { border-radius: 999px; }
.card .packs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); }
.card .buy { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.pricetag { color: var(--price); font-weight: 800; font-stretch: 75%; font-size: 30px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.pricetag small { font-size: 14px; font-stretch: 90%; margin-right: 3px; vertical-align: 2px; }
.addbtn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(227,6,19,.3); }
.addbtn svg { width: 22px; height: 22px; }
.addbtn:hover { filter: brightness(1.08); }
.c-foot { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.card .stock { color: var(--ok); font-weight: 700; font-size: 12px; }
.card .stock::before { content: "● "; font-size: 9px; vertical-align: 1px; }
.card .stock.low { color: var(--warn); }
.sticker { position: absolute; top: 8px; right: 8px; background: var(--sun); color: var(--navy); font-weight: 800; font-size: 12px; padding: 4px 8px; border-radius: 6px; transform: rotate(4deg); box-shadow: 0 2px 0 rgba(22,32,58,.18); }

/* 商品占位图：按品类换浅底色 */
.visual { border: 0; border-radius: 10px; background: var(--surface); }
.visual.ladegeraete { background: var(--t-ladegeraete); }
.visual.kabel { background: var(--t-kabel); }
.visual.powerbanks { background: var(--t-powerbanks); }
.visual.schutz { background: var(--t-schutz); }
.visual.tracker { background: var(--t-tracker); }
.visual.batterien { background: var(--t-batterien); }
.visual.halterungen { background: var(--t-halterungen); } .visual.watch { background: var(--t-watch); }
.visual svg .f, .visual.batterien svg .f { fill: #fff; }
.visual svg .a { fill: var(--brand); }
.visual .v-brand { color: var(--ink); opacity: .6; }
.visual .v-foot { color: var(--ink); opacity: .75; }

/* 按机型选购 */
.models { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 16px; }
.models::-webkit-scrollbar { display: none; }
.model { flex: none; width: 104px; display: grid; justify-items: center; gap: 2px; text-align: center; }
.model:hover { text-decoration: none; }
.model:hover .m-ph { box-shadow: 0 0 0 3px var(--brand); }
.m-ph { width: 84px; height: 84px; border-radius: 50%; background: var(--t-schutz); display: grid; place-items: center; margin-bottom: 6px; transition: box-shadow .15s; }
.m-ph.pro { background: var(--t-kabel); }
.m-ph.max { background: #FFE0E2; }
.m-ph i { width: 30px; height: 56px; border-radius: 8px; background: var(--navy); position: relative; box-shadow: inset 0 0 0 3px #3A4666; }
.m-ph i::before { content: ""; position: absolute; top: 5px; left: 5px; width: 12px; height: 12px; border-radius: 4px; background: #3A4666; }
.m-ph.pro i::before, .m-ph.max i::before { width: 14px; height: 14px; box-shadow: inset 0 0 0 2px #59658A; }
.m-ph.max i { width: 34px; height: 60px; }
.model b { font-size: 14px; }
.model small { font-size: 12px; color: var(--muted); }

/* 品类方块 */
.cats { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat { border: 0; border-radius: var(--r-card); padding: 14px; gap: 2px; align-content: start; min-height: 150px; }
.cat:hover { text-decoration: none; box-shadow: inset 0 0 0 2px var(--ink); }
.cat svg { width: 56px; height: 56px; margin-bottom: 8px; }
.cat svg .f { fill: #fff; }
.cat svg .a { fill: var(--brand); stroke: none; }
.cat b { font-size: 16px; line-height: 1.2; }
.cat span { color: var(--ink); opacity: .7; font-size: 12.5px; }
.cat.ladegeraete { background: var(--t-ladegeraete); } .cat.kabel { background: var(--t-kabel); } .cat.powerbanks { background: var(--t-powerbanks); }
.cat.schutz { background: var(--t-schutz); } .cat.tracker { background: var(--t-tracker); } .cat.batterien { background: var(--t-batterien); } .cat.halterungen { background: var(--t-halterungen); } .cat.watch { background: var(--t-watch); }

/* 商品页：价格也用大号红色 */
.price { color: var(--price); font-stretch: 75%; }
.price.big { font-size: 46px; line-height: 1; }
.buybox { border-radius: var(--r-card); }
.deliver b { color: var(--ok); }
.vlist button { border-radius: var(--r-btn); }
.vlist button[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.vlist .best { color: var(--brand); }
.bar i { background: var(--brand); }

/* 页脚：深蓝 */
.footer { background: var(--navy); color: #fff; border-top: 0; margin-top: 0; }
.footer .logo { color: #fff; }
.footer p, .footer .legal .wrap, .footer a.muted { color: rgba(255,255,255,.72); }
.footer .legal { border-top-color: rgba(255,255,255,.14); }
.footer .pay span { border-color: rgba(255,255,255,.35); }
.footer .totop { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.footer h3, .footer details.f-col > summary { color: var(--sun); }

@media (min-width: 721px) {
  .footer details.f-col > ul { display: grid !important; }
  .footer details.f-col > summary { pointer-events: none; }
}

.mbar .m-cta { background: var(--brand); border-radius: 999px; }

@media (max-width: 1024px) {
  .rail { grid-auto-columns: calc((100% - 3 * 14px) / 3.4); }
  .cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .logo { font-size: 24px; }
  .nav .wrap { padding: 8px var(--gutter); }
  .nav a { padding: 9px 14px; }
  .slide .wrap { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; min-height: 0; padding-top: 22px; padding-bottom: 44px; align-items: end; }
  .s-copy p { font-size: 14.5px; margin-bottom: 16px; }
  .s-title { font-size: clamp(32px, 10vw, 44px); }
  .s-art { width: 96px; align-self: start; margin-top: 4px; }
  .usp .wrap { grid-template-columns: 1fr 1fr; gap: 10px 12px; padding-top: 12px; padding-bottom: 12px; }
  .usp div { font-size: 12.5px; gap: 8px; }
  .usp svg { width: 28px; height: 28px; }
  .section { padding: 24px 0 4px; }
  .section-head { gap: 8px; }
  .cutoff { font-size: 13px; width: 100%; }
  /* 横滑：一屏 2 张多一点，提示可以继续滑；滑到屏幕边缘 */
  .rail { grid-auto-columns: 44%; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scroll-padding: 0 var(--gutter); }
  .card { padding: 8px 8px 10px; gap: 6px; }
  .card .buy { flex-direction: row; align-items: center; }
  .pricetag { font-size: 26px; }
  .pricetag small { font-size: 12px; }
  .models { margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); gap: 6px; }
  .model { width: 88px; }
  .m-ph { width: 72px; height: 72px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat { min-height: 0; padding: 12px 8px; justify-items: center; text-align: center; }
  .cat svg { width: 44px; height: 44px; margin-bottom: 4px; }
  .cat b { font-size: 13.5px; }
  .cat span { display: none; }
  .price.big { font-size: 40px; }
}
@media (max-width: 380px) {
  .rail { grid-auto-columns: 46%; }
  .pricetag { font-size: 23px; }
  .addbtn { width: 40px; height: 40px; }
  .s-art { width: 76px; }
  .slide .wrap { grid-template-columns: minmax(0, 1fr) 76px; }
}
@media (hover: none) {
  .card:hover { box-shadow: none; border-color: var(--line); }
  .addbtn:active, .s-cta:active, .model:active, .cat:active { opacity: .75; }
}
/* 细节：卡片里品牌只显示一次；规格按钮紧凑；标题和“全部”同一行 */
.card .visual .v-brand { visibility: hidden; }
.section-head h2 { flex: 1 1 auto; min-width: 0; }
.section-head > a { flex: none; }
@media (max-width: 720px) {
  .card .packs { gap: 4px; }
  .card .packs button { padding: 5px 9px; min-height: 34px; font-size: 12px; }
  .visual.lg { aspect-ratio: 16 / 9; }
  .pdp h1 { font-size: 26px; }
}

/* ---------- 13. Cookie 横幅 ----------
   “全部接受”和“只用必要的”一样大、一样醒目（瑞士 EDÖB 要求能轻松拒绝） */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; background: var(--paper); border-top: 4px solid var(--brand);
  box-shadow: 0 -10px 30px rgba(22,32,58,.18); padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px)); max-height: 85vh; overflow: auto; overscroll-behavior: contain; }
.consent .wrap { max-width: 880px; }
.consent h2 { font-size: 20px; font-stretch: 85%; margin-bottom: 6px; }
.consent p { font-size: 14px; color: var(--muted); margin-bottom: 14px; max-width: 72ch; }
.ck-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ck-btns .btn { min-width: 180px; min-height: 46px; border-radius: 999px; }
.ck-yes { background: var(--brand); color: #fff; }
.ck-no { background: var(--navy); color: #fff; }
.ck-yes:hover, .ck-no:hover { filter: brightness(1.1); }
.ck-more { border: 0; background: transparent; padding: 10px 6px; font-weight: 700; text-decoration: underline; color: var(--ink); }
.ck-rows { display: grid; gap: 8px; margin-bottom: 14px; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border-radius: var(--r-btn); padding: 12px 14px; cursor: pointer; }
.ck-row span:first-child { display: grid; gap: 2px; }
.ck-row small { color: var(--muted); font-size: 13px; }
.ck-always { flex: none; font-size: 13px; font-weight: 700; color: var(--ok); }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch:checked { background: var(--ok); box-shadow: none; }
.switch:checked::after { transform: translateX(20px); }
.linkbtn { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
body.has-consent .mbar { display: none !important; }
/* Cookie 横幅显示时，「已加入购物车」提示移到页面上方，不盖住横幅的按钮；购物车打开时同理，不盖住合计和「去结账」 */
body.has-consent .toast, body:has(.drawer.open) .toast { bottom: auto; top: calc(76px + env(safe-area-inset-top, 0px)); }
@media (max-width: 720px) {
  .consent { padding-top: 14px; border-radius: 16px 16px 0 0; border-top-width: 0; }
  .consent h2 { font-size: 18px; }
  .consent p { font-size: 13px; margin-bottom: 12px; }
  .ck-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ck-btns .btn { min-width: 0; padding: 10px 8px; font-size: 14px; }
  .ck-btns > .ck-more { grid-column: 1 / -1; justify-self: center; }
  .ck-btns > .btn-secondary { grid-column: 1 / -1; }
  .footer ul .linkbtn { display: block; padding: 8px 0; width: 100%; }
}
/* 小屏：Logo 缩小，避免和语言按钮重叠；Cookie 设置里按钮固定在底部 */
@media (max-width: 400px) { .logo { font-size: 19px; } }
@media (max-width: 360px) { .logo { font-size: 15px; } }
.consent .ck-rows + .ck-btns { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom, 0px)); background: var(--paper); padding: 10px 0 calc(4px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 360px) {
  .lang button { min-width: 26px; padding: 0 2px; font-size: 11px; }
  .hdr-actions { gap: 3px; }
  .ordersbtn { min-width: 34px; }
  .cartbtn { padding: 0 6px; }
}

/* ---------- 14. 优惠码 / 经常一起买 / 订阅 / 退货 / 404 ---------- */
.promo summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink); list-style: none; padding: 4px 0; }
.promo summary::-webkit-details-marker { display: none; }
.promo summary::before { content: "+ "; color: var(--brand); font-weight: 800; }
.promo[open] summary::before { content: "− "; }
.promo-form { display: flex; gap: 8px; margin-top: 8px; }
.promo-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 9px 12px; text-transform: uppercase; background: var(--paper); }
.promo-form .btn { flex: none; }
.promo .ferr { margin-top: 6px; }
.promo-on { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.promo-on .linkbtn { color: var(--muted); text-decoration: underline; font-size: 13px; }
.promo-chip { display: inline-block; background: var(--sun); color: var(--navy); font-weight: 800; padding: 3px 10px; border-radius: 6px; letter-spacing: .03em; }
.promo-chip.big { font-size: 20px; padding: 6px 14px; }
.promo-note { font-size: 13px; color: var(--warn); }
.sumrow.disc { color: var(--brand); font-weight: 700; }
.o-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.order .o-actions .btn { justify-self: auto; }

/* 经常一起买 */
.fbt { border: 2px solid var(--sun); border-radius: var(--r-card); padding: 16px; margin-top: 20px; display: grid; gap: 12px; background: #FFFBEA; }
.fbt h3 { font-stretch: 85%; font-size: 19px; }
.fbt-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.fbt-item { display: grid; gap: 6px; align-content: start; min-width: 0; }
.fbt-item:hover { text-decoration: none; }
a.fbt-item:hover .fbt-name { text-decoration: underline; }
.fbt-item .visual { aspect-ratio: 4 / 3; padding: 8px; }
.fbt-item .visual .v-brand, .fbt-item .visual .v-foot { display: none; }
.fbt-item .visual .v-ico svg { width: 46%; }
.fbt-name { font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fbt-price { color: var(--price); font-size: 14px; }
.fbt-plus { font-size: 28px; font-weight: 800; color: var(--brand); }
.fbt-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fbt-buy .pricetag { font-size: 26px; margin-left: 4px; }
.fbt-buy .btn { border-radius: 999px; }
.fbt-set { display: inline-block; width: fit-content; justify-self: start; align-self: start; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 14px; }
.fbt-was { color: var(--muted); font-size: 14px; margin-left: 6px; }

/* 订阅条 */
.nl { background: var(--brand); color: #fff; }
.nl[hidden] { display: none; }
.nl .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.nl h2 { font-stretch: 80%; font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.05; margin-bottom: 6px; }
.nl p { margin: 0; font-size: 14px; opacity: .92; max-width: 60ch; }
.nl-form { display: flex; flex-wrap: wrap; gap: 8px; background: #fff; border-radius: 999px; padding: 5px; }
.nl-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 14px; color: var(--ink); }
.nl-form input:focus { outline: none; }
.nl-form:focus-within { box-shadow: 0 0 0 3px var(--sun); }
.nl-form .btn { border-radius: 999px; background: var(--navy); color: #fff; padding: 10px 20px; }
.nl-form .ferr { flex-basis: 100%; color: var(--navy); background: var(--sun); border-radius: 8px; padding: 0 10px; font-weight: 700; }
.nl-form .ferr:empty { display: none; }
.nl-done { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 700; }
.nl-done .btn { background: var(--navy); border-radius: 999px; }

/* 页脚上方：店铺评语（单行横滑） */
.reviews { background: var(--surface); padding: 40px 0 44px; }
.reviews[hidden] { display: none; }
.reviews:not([hidden]) + .footer { margin-top: 0; }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.reviews-copy { min-width: 0; }
.reviews-head h2 { font-stretch: 80%; font-weight: 800; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; margin: 0 0 6px; }
.reviews-lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.reviews-nav { display: flex; gap: 8px; flex: none; }
.reviews-nav button { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; }
.reviews-nav button:hover { background: var(--surface-2); }
.reviews-nav button:disabled { opacity: .35; cursor: default; }
.reviews-nav svg { width: 18px; height: 18px; }
.reviews-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; width: 100%; min-width: 0; padding-bottom: 2px; }
.reviews-track::-webkit-scrollbar { display: none; }
.rv-card { flex: none; width: calc((100% - 28px) / 3); scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rv-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rv-user { display: grid; gap: 2px; min-width: 0; }
.rv-who { font-weight: 700; font-size: 14px; color: var(--brand, #0b57d0); }
.rv-when { font-size: 12px; color: var(--muted); }
.rv-help { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rv-stars { letter-spacing: 1px; color: var(--ink); font-size: 14px; line-height: 1; }
.rv-stars.lg { font-size: 18px; }
.rv-stars-empty { color: #d0ccc6; }
.rv-title { margin: 0; font-size: 16px; font-weight: 750; line-height: 1.25; }
.rv-body { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.rv-pc { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.rv-pc li { display: flex; gap: 8px; align-items: flex-start; }
.rv-pm { color: #1a7f37; font-weight: 800; }
.rv-cm { color: #b42318; font-weight: 800; }
.rv-shot { width: 100%; max-height: 220px; object-fit: contain; background: var(--surface); border-radius: 8px; }
.rv-prod { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-prod a { color: inherit; }
.pdp-rating { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 15px; }
.pdp-rating span { color: var(--brand, #0b57d0); font-weight: 650; }
.pdp-reviews { margin-top: 28px; }
.pdp-reviews h3 { margin: 0 0 14px; }
.rv-summary { display: grid; gap: 16px; grid-template-columns: auto 1fr; align-items: start; padding: 14px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.rv-avg { display: grid; gap: 6px; justify-items: start; min-width: 7.5rem; }
.rv-avg b { font-size: 40px; line-height: 1; font-stretch: 80%; font-weight: 800; }
.rv-count { font-size: 14px; font-weight: 650; }
.rv-based { font-size: 12px; color: var(--muted); }
.rv-dist { display: grid; gap: 6px; min-width: 0; }
.rv-bar-row { display: grid; grid-template-columns: 2rem 1fr 2.5rem; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.rv-bar { height: 8px; background: var(--surface-2, #eee); border-radius: 99px; overflow: hidden; }
.rv-bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.rv-kw { grid-column: 1 / -1; display: grid; gap: 10px; }
.rv-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rv-tags-l { font-size: 13px; font-weight: 700; margin-right: 4px; }
.rv-tag { border: 1px solid var(--brand, #0b57d0); color: var(--brand, #0b57d0); border-radius: 6px; padding: 4px 10px; font-size: 13px; }
.rv-list-head { font-size: 14px; font-weight: 650; margin: 4px 0 10px; }
.pdp-reviews .rv-list { display: grid; gap: 0; }
.pdp-reviews .rv-card { width: auto; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 16px 0; background: transparent; }
.pdp-reviews .rv-list:not(:has(+ .rv-more)) .rv-card:last-child { border-bottom: 0; }
.rv-more { display: block; width: 100%; margin: 8px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.rv-more:hover { background: var(--surface-2, #f4f3f0); }

@media (max-width: 1024px) {
  .rv-card { width: calc((100% - 14px) / 2); }
  .rv-summary { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .reviews { padding: 28px 0 32px; }
  .rv-card { width: 85%; }
}

/* 退货 */
.page textarea, .page .field select { border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; background: var(--paper); width: 100%; font: inherit; }
.field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field.invalid textarea { border-color: var(--price); }
.ct-form { display: grid; gap: 14px; max-width: 36rem; margin: 8px 0 28px; }
.ct-form .btn { justify-self: start; min-height: 44px; padding: 12px 20px; }
.ct-hint { margin: 0; font-size: 13px; color: var(--muted); }
.ct-ok { padding: 16px 18px; border: 1px solid var(--ok, #1a7f37); background: #DCF4E2; border-radius: var(--radius); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rt-items { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; display: grid; gap: 6px; margin: 0; }
.rt-items legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.rt-item { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 36px; }
.rt-item input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }

/* 404 */
.nf { text-align: left; }
.nf-code { display: block; font-size: 96px; font-weight: 800; font-stretch: 75%; line-height: 1; color: var(--brand); }

@media (max-width: 720px) {
  .nl .wrap { grid-template-columns: 1fr; gap: 14px; padding-top: 24px; padding-bottom: 24px; }
  .nl-form input { font-size: 16px; }
  .fbt { padding: 12px; }
  .fbt-buy { flex-direction: column; align-items: stretch; }
  .fbt-buy .btn { width: 100%; }
  .page textarea { font-size: 16px; }
  .o-actions .btn { flex: 1 1 auto; }
}

/* ---------- 15. 订单状态 ---------- */
.pill-status.s-shipped { background: #DCF4E2; color: var(--ok); }
.pill-status.s-paid { background: #FFF2BF; color: var(--warn); }
.pill-status.s-cancelled, .pill-status.s-refunded { background: var(--surface-2); color: var(--muted); }
.pill-status.s-pending { background: var(--brand-soft); color: var(--brand); }

/* ---------- 16. 商品实拍图（后台上传后自动替换插画） ---------- */
.visual.has-img { position: relative; padding: 0; background: #fff; border: 1px solid var(--line); display: block; }
.visual.has-img img { display: block; width: 100%; height: 100%; object-fit: contain; aspect-ratio: 1; }
.visual.has-img .v-n { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.92); border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 800; color: var(--ink); }
.visual.lg.has-img img { aspect-ratio: 4 / 3; }
.line .visual.has-img img, .fbt-item .visual.has-img img { aspect-ratio: 1; }

/* ---------- 17. 商品视频 ---------- */
.media { display: grid; gap: 10px; align-content: start; }
.media-main .pvideo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #000; border-radius: 10px; }
.media-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.media-thumbs::-webkit-scrollbar { display: none; }
.media-thumbs button { flex: none; width: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; overflow: hidden; }
.media-thumbs button[aria-selected="true"] { border-color: var(--brand); }
.media-thumbs .visual { padding: 6px; border-radius: 8px; }
.media-thumbs .visual .v-brand, .media-thumbs .visual .v-foot, .media-thumbs .visual .v-n { display: none; }
.media-thumbs .visual .v-ico svg { width: 70%; }
.vthumb { position: relative; display: block; }
.vthumb i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 20px; background: rgba(22,32,58,.45); }
.vbadge { position: absolute; left: 8px; bottom: 8px; background: rgba(22,32,58,.85); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
@media (max-width: 720px) { .media-main .pvideo { aspect-ratio: 1; max-height: 70vh; } }
.promo-note.auto { margin: 4px 0 6px; padding: 6px 10px; border-radius: 8px; background: #FFF4C2; color: #6B4A00; font-weight: 600; }

/* 21. 首页用真实商品图（机型圆圈、品类卡片、轮播横幅） */
.m-ph.has-img { overflow: hidden; }
.m-ph.has-img img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.cat .c-img { width: 84px; height: 84px; object-fit: contain; mix-blend-mode: multiply; margin: -4px 0 6px -4px; }
.slide .s-art.pics, .slide .s-art.banner { position: relative; background: none; transform: none; border-radius: 0; width: min(340px, 100%); }
.s-art.pics img { position: absolute; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 22px; padding: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.s-art.pics img:nth-child(1) { width: 62%; left: 19%; top: 19%; z-index: 3; transform: rotate(-4deg); }
.s-art.pics img:nth-child(2) { width: 40%; right: -2%; top: -2%; z-index: 2; transform: rotate(9deg); }
.s-art.pics img:nth-child(3) { width: 40%; left: -4%; top: 60%; z-index: 4; transform: rotate(-11deg); }
.s-art.pics.n1 img { width: 70%; left: 15%; top: 15%; }
.s-art.banner img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
@media (max-width: 720px) {
  .slide .s-art.pics, .slide .s-art.banner { width: 104px; }
  .s-art.pics img, .s-art.pics.n1 img { width: 100%; padding: 8px; border-radius: 16px; }
  .s-art.pics img:nth-child(1) { width: 100%; left: 0; top: 0; transform: rotate(-4deg); }
  .s-art.pics img:nth-child(n+2) { display: none; }
  .cat .c-img { width: 64px; height: 64px; }
}

/* 22. 颜色 / 尺码选项（商品页圆点按钮、商品卡上的色点） */
.olist { display: flex; flex-wrap: wrap; gap: 8px; }
.olist button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.olist button:not(:has(i)) { padding-left: 14px; }
.olist button i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: none; }
.olist button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700; }
.olist button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.variants.opts .label b { font-weight: 700; }
.c-opts { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.c-opts .c-dots { display: inline-flex; }
.c-opts .c-dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff, inset 0 0 0 1px rgba(0,0,0,.18); margin-right: -3px; }
.c-opts .c-dots i:last-child { margin-right: 3px; }
.l-opt { font-weight: 600; color: var(--ink); }

/* 23. 库存提示：有货（绿）/ 只剩几件（橙）/ 缺货（灰，按钮不可点） */
.card .stock.out, .deliver .stock.out { color: var(--muted); }
.deliver .stock.low { color: var(--warn); }
.addbtn:disabled, .qtyrow .btn:disabled { opacity: .35; cursor: not-allowed; }

/* 24. 对比价：别家最低价 / 原价划线 + 便宜几 % */
.cmp { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); line-height: 1.2; }
.card .cmp { margin: 2px 0 -2px; }
.cmp s { text-decoration-thickness: 1.5px; }
.cmp .off { background: var(--brand); color: #fff; font-weight: 800; font-size: 11.5px; padding: 2px 6px; border-radius: 6px; letter-spacing: .01em; }
.cmp.big { font-size: 14px; margin-top: 6px; }
.cmp.big .off { font-size: 13px; padding: 3px 8px; }
.cmp-note { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }

/* 25. 新顾客折扣：顶部条第一项、首页第一张大图、商品页提示、购物车说明 */
.trust a.tr-first { color: var(--sun); font-weight: 800; }
.slide .s-art.pct { background: var(--brand); }
.s-art.pct span { color: #fff; font-weight: 800; font-stretch: 75%; font-size: clamp(26px, 8.5vw, 104px); letter-spacing: -0.02em; line-height: 1; }
.first-pdp { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: #FFF6CC; color: var(--navy); font-size: 14px; line-height: 1.35; }
.first-pdp b { color: var(--price); font-weight: 800; }
.promo-note.first { margin-top: -2px; }

/* 26. 帮助和常见问题：点问题展开回答 */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 500; line-height: 1; color: var(--muted); }
.faq[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.faq p { margin: -4px 0 16px; max-width: 68ch; }
.faq-more { margin-top: 20px; }
