:root {
  --red: #E6312C;
  --black: #111111;
  --white: #FFFFFF;
  --line: rgba(17, 17, 17, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --muted: rgba(17, 17, 17, 0.58);
  --muted-light: rgba(255, 255, 255, 0.66);
  --font: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 48px, var(--container)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- announcement ---------- */
.announcement {
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  letter-spacing: .3px;
  text-align: center;
  padding: 9px 16px;
  font-weight: 600;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; object-fit: contain; }
.brand-en {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.25;
}
.brand-en sup { font-size: 9px; top: -.6em; position: relative; }
.brand-en .reg-mark { position: relative; top: -0.2em; font-size: .72em; margin-left: .05em; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; flex: 1; }
.main-nav a { position: relative; padding: 28px 0; }
.main-nav a:after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px;
  background: var(--red); transition: right .25s ease;
}
.main-nav a:hover:after, .main-nav a.active:after { right: 0; }
/* 分类导航：悬停浮出子分类 */
.nav-cat { position: relative; display: flex; align-items: center; }
.nav-cat > a { display: inline-flex; align-items: center; gap: 3px; }
.nav-caret { font-size: 9px; color: var(--muted); line-height: 1; transition: transform .2s; }
.nav-cat:hover .nav-caret { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 150px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.10); padding: 8px 0; border-radius: 4px;
  display: flex; flex-direction: column; opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.nav-cat:hover .nav-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-sub a { position: static; display: flex; align-items: center; justify-content: center; padding: 9px 18px; font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.nav-sub a:hover, .nav-sub a.active { background: rgba(230,49,44,.08); color: var(--red); font-weight: 700; }
.nav-sub a:after { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 600; }
.icon-btn {
  width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white);
  display: inline-grid; place-items: center; position: relative; transition: .2s;
}
.icon-btn:hover { border-color: var(--red); background: var(--red); color: var(--white); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--red); color: var(--white); border-radius: 20px; font-size: 11px;
  display: grid; place-items: center; font-weight: 700;
}
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border: 1px solid var(--black);
  background: var(--black); color: var(--white); font-size: 14px; font-weight: 700;
  letter-spacing: .4px; transition: .2s; white-space: nowrap;
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn-primary { background: var(--red); border-color: var(--red); }
.btn-primary:hover { background: var(--black); border-color: var(--black); }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  min-height: 620px;
  gap: 40px;
  padding: 70px 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: normal; color: var(--red);
  text-transform: uppercase; margin-bottom: 24px;
}
.eyebrow:before { content: ''; width: 28px; height: 2px; background: var(--red); }
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -1.5px;
}
.hero h1 .accent { color: var(--red); display: block; }
.hero p { color: var(--muted-light); font-size: 17px; line-height: 1.8; max-width: 520px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: 2px; }
.hero-stats {
  position: absolute; left: -20px; bottom: -24px; background: var(--red); color: var(--white);
  padding: 22px 28px; display: flex; gap: 34px;
}
.hero-stats strong { display: block; font-size: 30px; line-height: 1; font-weight: 900; }
.hero-stats span { font-size: 11px; opacity: .9; letter-spacing: 1px; }

/* ---------- trust strip ---------- */
.trust-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { padding: 28px 24px; display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 32px; height: 32px; stroke: var(--red); fill: none; stroke-width: 1.6; flex-shrink: 0; }
.trust-item div strong { display: block; font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.trust-item div span { font-size: 13px; color: var(--muted); }

/* ---------- section ---------- */
.section { padding: 92px 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(30px, 3.2vw, 44px); font-weight: 900; letter-spacing: -.5px; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }
.section-dark .section-head p { color: var(--muted-light); }
.section-link { font-size: 14px; font-weight: 700; border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.section-dark .section-link { color: var(--white); }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  position: relative; padding: 34px 26px 30px; min-height: 176px; overflow: hidden;
  background: var(--black); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:nth-child(even) { background: var(--red); }
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(17,17,17,.2); }
.cat-card .cat-num { position: absolute; top: 14px; right: 18px; font-size: 62px; font-weight: 900; opacity: .12; }
.cat-card h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.cat-card p { margin: 0; font-size: 12px; opacity: .78; }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { position: relative; background: var(--white); border: 1px solid var(--line); transition: .25s; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(17,17,17,.1); }
.product-media { position: relative; aspect-ratio: 1 / 1; background: var(--black); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { background: var(--red); color: var(--white); font-size: 10px; font-weight: 800; padding: 5px 9px; letter-spacing: .5px; }
.badge.alt { background: var(--white); color: var(--black); }
.quick-add {
  margin: 14px 20px 20px; background: var(--white); color: var(--black);
  border: 1px solid var(--black); min-height: 42px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: .2s;
}
.quick-add:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.product-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-meta { font-size: 11px; color: var(--muted); letter-spacing: 1px; font-weight: 700; margin-bottom: 8px; }
.product-info h3 { font-size: 15px; line-height: 1.5; margin: 0 0 8px; font-weight: 700; }
.product-info p { margin: 0 0 14px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 20px; font-weight: 900; color: var(--red); }
.price small { font-size: 13px; }
.price del { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 6px; }
.stock-note { font-size: 11px; color: var(--muted); }

/* ---------- editorial ---------- */
.editorial { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.editorial-media { background: var(--red); position: relative; overflow: hidden; display: grid; place-items: center; }
.editorial-media img { width: 78%; }
.editorial-body { background: var(--white); padding: 80px clamp(32px, 5vw, 84px); display: flex; flex-direction: column; justify-content: center; }
.editorial-body h2 { font-size: clamp(30px, 3vw, 44px); margin: 0 0 18px; font-weight: 900; line-height: 1.2; }
.editorial-body p { color: var(--muted); line-height: 1.9; font-size: 15px; margin: 0 0 26px; }
.value-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; font-weight: 600; }
.value-list span { width: 26px; height: 26px; background: var(--black); color: var(--white); display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding: 76px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 50px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { height: 46px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted-light); font-size: 13px; line-height: 1.9; max-width: 300px; }
.footer-col h4 { font-size: 13px; letter-spacing: 1.4px; margin: 0 0 20px; }
.footer-col a, .footer-col p { display: block; color: var(--muted-light); font-size: 13px; margin: 0 0 12px; line-height: 1.5; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted-light); }
.footer-bottom a { color: var(--white); }
.pay-badges { display: flex; gap: 8px; }
.pay-badge { border: 1px solid var(--line-dark); padding: 6px 12px; font-size: 11px; font-weight: 700; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: 12px; color: var(--muted-light); }
.footer-legal a { color: var(--muted-light); text-decoration: none; }
.footer-legal a:hover { color: var(--white); }
@media (max-width: 720px) { .footer-bottom { flex-direction: column; } .footer-legal { flex-direction: column; gap: 6px; } }

/* ---------- page head ---------- */
.page-head { background: var(--black); color: var(--white); padding: 60px 0 56px; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(34px, 4vw, 52px); font-weight: 900; }
.page-head p { margin: 0; color: var(--muted-light); font-size: 14px; }
.crumb { font-size: 12px; color: var(--muted-light); margin-bottom: 20px; }
.crumb a:hover { color: var(--red); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--white); padding: 8px 14px; font-size: 12px; font-weight: 600; }
.chip.active, .chip:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.filters select, .filters input {
  min-height: 38px; border: 1px solid var(--line); padding: 0 12px; background: var(--white); font-size: 13px;
}
.filters .search { flex: 1; min-width: 200px; }
.result-count { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ---------- product detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px 0 90px; }
.detail-media { background: var(--black); aspect-ratio: 1/1; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.3; margin: 0 0 12px; font-weight: 900; }
.detail-sub { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.detail-price .price { font-size: 34px; }
.detail-row { display: flex; gap: 20px; margin-bottom: 18px; font-size: 13px; }
.detail-row strong { min-width: 68px; color: var(--muted); font-weight: 600; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); }
.qty-control button { width: 42px; height: 46px; border: 0; background: var(--white); font-size: 18px; }
.qty-control button:hover { background: var(--black); color: var(--white); }
.qty-control input { width: 58px; height: 46px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 15px; font-weight: 700; }
.detail-actions { display: flex; gap: 12px; margin-bottom: 30px; }
.spec-table { border-top: 1px solid var(--line); }
.spec-row { display: flex; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.spec-row span:first-child { color: var(--muted); min-width: 90px; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 56px 0 90px; }
.cart-list { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 110px; height: 110px; object-fit: cover; background: var(--black); }
.cart-item h3 { font-size: 15px; margin: 0 0 6px; }
.cart-item .meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cart-item .price { font-size: 17px; }
.cart-item .remove { background: none; border: 0; font-size: 12px; color: var(--muted); text-decoration: underline; }
.summary-card { background: var(--black); color: var(--white); padding: 30px; position: sticky; top: 110px; }
.summary-card h3 { font-size: 18px; margin: 0 0 24px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 14px; color: var(--muted-light); }
.summary-row.total { border-top: 1px solid var(--line-dark); padding-top: 18px; margin-top: 18px; color: var(--white); font-size: 20px; font-weight: 900; }
.summary-row.total b { color: var(--red); }
.empty-state { text-align: center; padding: 100px 20px; }
.empty-state h2 { font-size: 28px; margin: 0 0 12px; }
.empty-state p { color: var(--muted); margin-bottom: 28px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 46px; border: 1px solid var(--line); padding: 10px 14px; background: var(--white); font-size: 14px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--red); outline-offset: -1px; }
.region-row { flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: center; }
.region-row > label { width: 100%; }
.region-row select { flex: 1 1 150px; width: auto; min-width: 120px; }
.region-row select:disabled { background: #f5f5f5; color: var(--muted); cursor: not-allowed; }
.form-section { margin-bottom: 36px; }
.form-section h2 { font-size: 19px; margin: 0 0 4px; }
.form-section .hint { font-size: 12px; color: var(--muted); margin: 0 0 20px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-method { border: 1px solid var(--line); padding: 20px; display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 15px; }
.pay-method.active { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.pay-method .dot { width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%; }
.pay-method.active .dot { border: 5px solid var(--red); }
.pay-method .tag { margin-left: auto; font-size: 10px; background: var(--black); color: var(--white); padding: 4px 7px; }

/* ---------- order result / pay ---------- */
.result-card { max-width: 760px; margin: 70px auto 100px; text-align: center; }
.result-icon { width: 76px; height: 76px; margin: 0 auto 24px; display: grid; place-items: center; background: var(--red); color: var(--white); font-size: 36px; font-weight: 900; }
.result-card h1 { font-size: 34px; margin: 0 0 10px; }
.result-card p { color: var(--muted); margin: 0 0 30px; }
.order-box { background: var(--white); border: 1px solid var(--line); text-align: left; padding: 28px; margin-bottom: 26px; }
.order-box h3 { margin: 0 0 18px; font-size: 16px; }
.order-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.qr-wrap { display: inline-grid; place-items: center; border: 1px solid var(--line); padding: 20px; background: var(--white); }
.qr-wrap svg, .qr-wrap img { width: 260px; height: 260px; }

/* ---------- admin ---------- */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: #F7F7F7; }
.admin-side { background: var(--black); color: var(--white); padding: 26px 0; position: sticky; top: 0; height: 100vh; }
.admin-brand { padding: 0 24px 28px; border-bottom: 1px solid var(--line-dark); margin-bottom: 20px; }
.admin-brand img { height: 36px; }
.admin-brand small { display: block; font-size: 10px; letter-spacing: 1.6px; color: var(--muted-light); margin-top: 8px; }
.admin-nav { padding: 0 12px; }
.admin-nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px;
  background: transparent; border: 0; color: var(--muted-light); font-size: 14px; font-weight: 600;
}
.admin-nav button:hover, .admin-nav button.active { background: var(--red); color: var(--white); }
.admin-side .side-foot { position: absolute; bottom: 26px; left: 24px; right: 24px; font-size: 11px; color: var(--muted-light); }
.admin-main { padding: 34px 40px 70px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-top h1 { font-size: 26px; margin: 0; font-weight: 900; }
.admin-top .user { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.stat-card { background: var(--white); border: 1px solid var(--line); padding: 22px; }
.stat-card span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.stat-card strong { font-size: 30px; font-weight: 900; }
.stat-card.accent strong { color: var(--red); }
.panel { background: var(--white); border: 1px solid var(--line); padding: 26px; margin-bottom: 24px; }
.panel h2 { font-size: 17px; margin: 0 0 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; letter-spacing: .6px; color: var(--muted); padding: 12px 10px; border-bottom: 1px solid var(--line); }
td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: rgba(230,49,44,.03); }
.pill { display: inline-block; padding: 4px 9px; font-size: 11px; font-weight: 700; background: var(--black); color: var(--white); }
.pill.red { background: var(--red); }
.pill.gray { background: rgba(17,17,17,.08); color: var(--muted); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(17,17,17,.6); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: var(--white); width: min(100%, 680px); max-height: 86vh; overflow-y: auto; padding: 30px; }
.modal h2 { margin: 0 0 22px; font-size: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.upload-box { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px dashed rgba(17,17,17,.18); }
.upload-box img { width: 76px; height: 76px; object-fit: cover; border: 1px solid var(--line); background: #fafafa; flex-shrink: 0; }
.upload-controls { flex: 1; }

/* ---------- 用户中心 ---------- */
.auth-wrap { min-height: calc(100vh - 340px); display: grid; place-items: center; padding: 64px 20px; }
.auth-card { width: min(100%, 420px); background: var(--white); border: 1px solid var(--line); padding: 40px; }
.auth-logo { height: 46px; width: auto; object-fit: contain; display: block; margin: 0 auto 28px; }
.auth-card h1 { font-size: 26px; margin: 0 0 8px; text-align: center; letter-spacing: -.5px; }
.auth-card > p { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 28px; line-height: 1.7; }
.auth-card .field { margin-bottom: 16px; }
.auth-card .error-msg { margin: 6px 0 12px; }

.account-page { max-width: 1080px; }
.account-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.account-head h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.5px; }
.account-head p { color: var(--muted); margin: 0; font-size: 14px; }
.account-grid { display: grid; gap: 24px; }
.addr-card { border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 12px; background: var(--white); }
.addr-card.default { border-color: var(--red); }
.addr-top { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.addr-top .pill { padding: 2px 8px; font-size: 11px; }
.addr-detail { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.addr-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.addr-actions { display: flex; gap: 8px; margin-top: 12px; }
.addr-picker { display: flex; flex-direction: column; gap: 8px; }
.addr-pick { text-align: left; border: 1px solid var(--line); background: var(--white); padding: 12px 14px; cursor: pointer; font-size: 14px; }
.addr-pick:hover, .addr-pick.active { border-color: var(--red); background: #fff6f5; }
.addr-pick strong { margin-right: 10px; }
.addr-pick span { color: var(--muted); font-size: 13px; }
.addr-pick em { font-style: normal; font-size: 11px; color: var(--red); border: 1px solid var(--red); padding: 1px 6px; margin-left: 8px; }
.addr-pick small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.addr-pick-new { border-style: dashed; color: var(--red); }
.addr-pick-new small { color: var(--muted); }
.user-entry { display: inline-flex; }
[data-nav-categories] { display: inline-flex; gap: 26px; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--black); }
.login-card { background: var(--white); width: min(100% - 40px, 420px); padding: 46px; }
.login-card img { height: 42px; margin-bottom: 26px; }
.login-card h1 { font-size: 24px; margin: 0 0 8px; }
.login-card p { color: var(--muted); font-size: 13px; margin: 0 0 26px; }
.notice { background: rgba(230,49,44,.07); border-left: 3px solid var(--red); padding: 14px 16px; font-size: 12px; line-height: 1.7; margin-bottom: 20px; }
.error-msg { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .product-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 210px 1fr; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  /* 移动端菜单：整块下拉面板，避免撑破视口 */
  .main-nav.nav-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(0,0,0,.10);
    max-height: calc(100vh - 66px); overflow-y: auto; overscroll-behavior: contain;
  }
  .main-nav.nav-open > a, .main-nav.nav-open .nav-cat > a {
    padding: 12px 0; border-bottom: 1px solid rgba(17,17,17,.08); font-size: 14px;
  }
  .nav-cat { display: block; width: 100%; }
  .nav-cat > a { padding: 12px 0 !important; }
  .nav-sub {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; padding: 0 0 6px 12px; margin: 0 0 4px; min-width: 0;
    display: flex; flex-direction: column; align-items: stretch;
  }
  .nav-sub a { justify-content: flex-start; padding: 8px 0; font-size: 13px; }
  .nav-cat:hover .nav-sub { transform: none; }
  .nav-caret { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-inner { height: 66px; }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0; min-height: auto; }
  .hero-media { margin-top: 20px; }
  .hero-stats { position: static; margin-top: 18px; }
  .detail-grid, .cart-layout, .editorial { grid-template-columns: 1fr; gap: 32px; }
  .summary-card { position: static; }
  .section { padding: 64px 0; }
  .admin-main { padding: 24px 18px 60px; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--container)); }
  .header-inner { gap: 10px; }
  .brand img { height: 32px; }
  .site-header .brand-en { display: none; }
  .header-actions { gap: 8px; }
  .icon-btn { width: 36px; height: 36px; }
  .announcement { font-size: 12px; padding: 7px 12px; }
  .chart-foot { grid-template-columns: 1fr; gap: 8px; }
  .chart-foot .chart-now, .chart-floor { align-items: flex-start; text-align: left; }
  .product-grid, .cat-grid, .trust-inner, .footer-top, .form-grid, .pay-methods { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; gap: 14px; }
  .cart-item img { width: 80px; height: 80px; }
  .cart-item .qty-control { grid-column: 1 / 2; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-nav { display: flex; flex-wrap: wrap; }
  .admin-nav button { width: auto; }
  .admin-side .side-foot { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* 商品上下架开关 */
.switch { position: relative; width: 42px; height: 24px; border-radius: 14px; border: 0; background: #cfd3d8; cursor: pointer; transition: background .2s; vertical-align: middle; padding: 0; }
.switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch.on { background: var(--red, #E6312C); }
.switch.on span { transform: translateX(18px); }
.switch:disabled { opacity: .5; cursor: wait; }

/* 后台轻提示 */
.admin-toast { position: fixed; right: 24px; bottom: 24px; background: #111; color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 14px; z-index: 9999; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.admin-toast.show { opacity: 1; transform: translateY(0); }

/* ============ 荷兰拍 ============ */
.auction-page-head { background: #111; color: #fff; }
.auction-page-head .crumb a { color: rgba(255,255,255,.7); }
.auction-page-head h1 { color: #fff; }
.auction-page-head p { color: rgba(255,255,255,.7); }
.auction-head-tag { font-size: 12px; letter-spacing: 2px; color: var(--red); border: 1px solid var(--red); padding: 3px 10px; border-radius: 3px; vertical-align: middle; margin-left: 10px; font-weight: 700; }

.auction-rule-strip { background: #fff; border-bottom: 1px solid rgba(17,17,17,.08); }
.auction-rule-strip .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.auction-rule-strip > .container > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.auction-rule-strip .num { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; margin-bottom: 4px; }
.auction-rule-strip strong { font-size: 14px; }
.auction-rule-strip p { margin: 0; font-size: 12px; color: var(--muted); }

.auction-list-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.auction-list-head h2 { margin: 0; font-size: 24px; }
.auction-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.auction-card { background: #fff; border: 1px solid rgba(17,17,17,.1); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.auction-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.1); transform: translateY(-2px); }
.auction-media { position: relative; display: block; aspect-ratio: 1.15; background: #f4f4f4; overflow: hidden; }
.auction-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auction-status { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 3px; background: #111; color: #fff; }
.auction-status.live { background: var(--red); color: #fff; }
.auction-status.gray { background: rgba(17,17,17,.62); }
.auction-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.auction-meta { font-size: 11px; color: var(--muted); letter-spacing: .3px; }
.auction-tag { display: inline-block; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; margin-right: 4px; }
.auction-info h3 { margin: 0; font-size: 15px; line-height: 1.5; }
.auction-info h3 a { color: var(--ink); text-decoration: none; }
.auction-info h3 a:hover { color: var(--red); }
.auction-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.auction-price-row .auction-price { font-size: 22px; font-weight: 800; color: var(--red); }
.auction-price-row del { color: var(--muted); font-size: 12px; margin-left: 6px; }
.auction-drop { font-size: 11px; color: var(--muted); white-space: nowrap; }
.auction-timer { font-size: 12px; color: var(--ink); background: rgba(230,49,44,.06); padding: 6px 10px; border-radius: 4px; }
.auction-timer strong { color: var(--red); font-variant-numeric: tabular-nums; }
.auction-stock { font-size: 12px; color: var(--muted); }
.auction-stock strong { color: var(--ink); }
.auction-card .btn { margin-top: auto; }

/* 拍卖详情 */
.auction-detail-wrap { padding-top: 30px; padding-bottom: 50px; }
.auction-detail-head { margin-bottom: 24px; }
.auction-detail-head h1 { font-size: 30px; margin: 8px 0; }
.auction-detail-head .detail-sub { color: var(--muted); font-size: 14px; margin: 0; }
.auction-detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; }
.auction-detail-media img { width: 100%; border-radius: 8px; border: 1px solid rgba(17,17,17,.08); display: block; }
.auction-buy-box { background: #fff; border: 1px solid rgba(17,17,17,.1); border-radius: 8px; padding: 24px; }
.auction-live-bar { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ink); background: #f4f4f4; padding: 5px 11px; border-radius: 20px; margin-bottom: 18px; }
.auction-live-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(17,17,17,.3); }
.auction-live-bar .dot.live { background: var(--red); box-shadow: 0 0 0 4px rgba(230,49,44,.15); animation: auPulse 1.6s infinite; }
@keyframes auPulse { 0%,100% { box-shadow: 0 0 0 4px rgba(230,49,44,.15);} 50% { box-shadow: 0 0 0 7px rgba(230,49,44,.05);} }
.auction-current-label { font-size: 12px; color: var(--muted); }
.auction-current-price { font-size: 46px; font-weight: 800; color: var(--red); line-height: 1.1; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.auction-price-lines { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid rgba(17,17,17,.08); }
.auction-price-lines b { color: var(--ink); }
.auction-next-drop { margin: 16px 0 8px; font-size: 13px; background: #111; color: #fff; padding: 11px 14px; border-radius: 5px; display: flex; justify-content: space-between; align-items: center; }
.auction-next-drop strong { color: #fff; font-size: 18px; font-variant-numeric: tabular-nums; }
.auction-stock-line { font-size: 13px; color: var(--muted); margin: 14px 0; }
.auction-stock-line strong { color: var(--red); }
.auction-buy-box .qty-row { justify-content: space-between; align-items: center; margin: 16px 0; }
.auction-buy-box .btn-block { width: 100%; }
.auction-live-note { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 14px 0 0; }
.price-drop-chart { background: #fff; border: 1px solid rgba(17,17,17,.1); border-radius: 8px; padding: 22px 26px 20px; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.chart-head h3 { margin: 0; font-size: 18px; }
.chart-head span { font-size: 12px; color: var(--muted); }
.price-drop-chart svg { display: block; width: 100%; height: auto; }
.chart-foot { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; border-top: 1px solid rgba(17,17,17,.08); padding-top: 14px; }
.chart-foot div { display: flex; flex-direction: column; gap: 3px; }
.chart-foot small { font-size: 11px; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.chart-foot strong { font-size: 18px; }
.chart-foot .chart-now { align-items: center; }
.chart-foot .chart-now strong { color: var(--red); }
.chart-floor { text-align: right; }
.auction-price-chart { margin-top: 18px; }
.auction-price-chart .price-drop-chart { padding: 14px 16px 12px; border-radius: 6px; }
.auction-price-chart .chart-head { margin-bottom: 6px; }
.auction-price-chart .chart-head h3 { font-size: 14px; }
.auction-price-chart .chart-head span { font-size: 11px; }
.auction-price-chart .chart-foot { padding-top: 10px; }
.auction-price-chart .chart-foot strong { font-size: 14px; }
.auction-price-chart .chart-foot small { font-size: 10px; }
.auction-detail-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.auction-detail-body .panel h2 { font-size: 18px; margin: 0 0 14px; }
.auction-rules { margin: 0; padding-left: 20px; font-size: 14px; line-height: 2; color: rgba(17,17,17,.72); }
.auction-rules li { margin-bottom: 4px; }
.auction-rules strong { color: var(--ink); }

/* 购物车拍卖品 */
.cart-auction .auction-tag { font-size: 10px; }

@media (max-width: 1000px) {
  .auction-grid { grid-template-columns: repeat(2, 1fr); }
  .auction-detail-grid { grid-template-columns: 1fr; gap: 22px; }
  .auction-detail-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .auction-grid { grid-template-columns: 1fr; }
  .auction-rule-strip .container { grid-template-columns: repeat(2,1fr); gap: 18px 10px; }
  .auction-current-price { font-size: 38px; }
}

/* 拍卖导航突出 + 竞价占位 */
.nav-auction > a { color: var(--red); font-weight: 700; }
.nav-sub a.nav-soon { color: var(--muted); cursor: not-allowed; display: flex; justify-content: center; gap: 6px; }
.nav-sub a.nav-soon em { font-size: 10px; font-style: normal; color: var(--red); background: rgba(230,49,44,.08); padding: 1px 5px; border-radius: 3px; }
