:root {
  color-scheme: light;
  --bg: #F7F7F7;
  --paper: #fff;
  --card: var(--paper);
  --ink: #111111;
  --sub: #525252;
  --line: #e5e5e5;
  --surface: #f2f2f2;
  --hi: #f2f2f2;
  --hi-ink: var(--ink);
  --selected: #111111;
  --on-selected: #fff;
  --red: #E1251B;
  --price: var(--red);
  --brand: var(--red);
  --official: #16A34A;
  --ok: #166534;
  --ok-2: #f0fdf4;
  --warn: #991B1B;
  --warn-2: #FEF2F2;
  --r: 16px;
  --b: 1px solid rgba(0, 0, 0, .05);
  --sh: 0 2px 10px rgba(0, 0, 0, .045);
  --soft: var(--sh);
  --num: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 15px / 1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
:where(a, button, input, select, summary, textarea):focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: var(--b);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.site-header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 11px 24px;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(120px, 400px) minmax(max-content, 1fr);
  gap: 16px;
  align-items: center;
}
.site-brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 750;
  text-decoration: none;
  color: var(--ink);
}
.site-brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  flex: none;
}
.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 0;
  color: var(--sub);
  font: inherit;
  font-size: 13px;
}
.site-search svg { flex: none; }
button.site-search { cursor: pointer; }
.site-search input { flex: 1; width: 0; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); }
.site-search input::-webkit-search-cancel-button { display: none; }
.site-search button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 3px; }
.site-qr {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
}
.site-footer {
  margin-top: 44px;
  padding: 21px 16px 26px;
  border-top: var(--b);
  text-align: center;
  color: #737373;
  font-size: 12px;
}
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.site-footer a { color: inherit; text-decoration: none; white-space: nowrap; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .site-header-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 8px 16px; }
  .site-brand { gap: 6px; font-size: 14px; }
  .site-search, .site-qr { padding-inline: 9px; }
}
@media (max-width: 350px) { .site-qr span { display: none; } }
.brand-icon {
  inline-size: var(--icon-size, 40px);
  block-size: var(--icon-size, 40px);
  display: inline-grid;
  place-items: center;
  flex: none;
  position: relative;
  overflow: hidden;
  border-radius: 23%;
  vertical-align: middle;
  background: var(--surface);
  border: var(--b);
}
.brand-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

}
.brand-icon img.is-loaded { animation: brand-appear 150ms ease-out; }
@keyframes brand-appear { from { opacity: .25; } to { opacity: 1; } }
.brand-icon.has-image { background: var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.brand-icon-letter { font-size: .875rem; font-weight: 750; }
.brand-icon.has-image .brand-icon-letter { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .brand-icon img.is-loaded { animation: none; } }
.sd { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: start; padding: 10vh 16px; background: #0006; }
.sbox { width: min(580px, 100%); padding: 14px; background: var(--paper); border: var(--b); border-radius: var(--r); box-shadow: var(--sh); }
.sbox input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); padding: 10px 14px; font: inherit; }
.sres a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.sres a:hover, .sres a.on { background: var(--surface); }
.qrm { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 16px; background: #0006; }
.qrbox { position: relative; background: var(--paper); color: var(--ink); border: var(--b); border-radius: var(--r); padding: 22px; width: min(360px, 100%); text-align: center; }
.qrbox h3 { margin: 0 0 12px; font-size: 18px; }
.qrbox .qrq { display: block; margin: 0 auto; width: min(220px, 100%); height: auto; background: #fff; border-radius: 8px; }
.qrbox p { color: var(--sub); font-size: 13px; margin: 12px 0; }
.qrbox .qrpc { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 8px 14px; cursor: pointer; color: var(--ink); font: inherit; }
.qrx { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--sub); cursor: pointer; }
.official-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--official); margin-right: 4px; vertical-align: 1px; }
