:root {
  --ink: #1f2328;
  --ink-2: #4a4a4a;
  --ink-3: #8c8c8c;
  --paper: #ffffff;
  --card: #ffffff;
  --line: #e5e7eb;
  --line-2: #f1f2f4;
  --brand: #de0000;
  --brand-2: #b60000;
  --brand-soft: #fff2f2;
  --accent: #0c2028;
  --accent-soft: #f4f6f7;
  --ok: #1f7a55;
  --warn: #f39c12;
  --bad: #de0000;
  --radius: 4px;
  --radius-sm: 3px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .07);
  --font: "Helvetica Neue", Arial, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
::selection { background: #d8e8ea; }

.container { width: min(1180px, 100% - 48px); margin: 0 auto; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.hide { display: none !important; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 26px 0; }
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--ink);
  color: #cfd8dd;
  font-size: 12.5px;
  letter-spacing: .04em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.topbar a:hover { color: #fff; }
.topbar .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 2px; }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .container { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; max-width: 160px; border-radius: 10px; object-fit: contain; background: #fff; }
.brand-name { font-size: 17px; font-weight: 650; letter-spacing: .01em; line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--ink-3); letter-spacing: .16em; text-transform: uppercase; }

nav.main { display: flex; gap: 4px; align-items: center; }
nav.main a {
  padding: 9px 13px; border-radius: 8px; font-size: 14px; color: var(--ink-2);
  transition: .15s;
}
nav.main a:hover { background: var(--brand-soft); color: var(--brand); }
nav.main a.on { color: var(--brand); font-weight: 600; }

.head-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 7px 14px; width: 220px;
}
.search-box input { border: 0; outline: 0; width: 100%; background: transparent; font-size: 13.5px; }
.search-box svg { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; display: grid; place-items: center;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px;
  border: 1px solid transparent; background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .16s;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #a96a1c; }
.btn.line { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn.line:hover { background: var(--brand-soft); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.btn.xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; font-weight: 500; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-danger { background: #fff; color: var(--bad); border-color: #eccfc9; }
.btn-danger:hover { background: #fbeeeb; color: var(--bad); }

/* ---------- 首屏 ---------- */
.hero { padding: 62px 0 18px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 6px 12px; border-radius: 999px; font-weight: 600;
}
.hero h1 {
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.14; margin: 20px 0 0;
  letter-spacing: -.025em; font-weight: 650;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 16.5px; color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-art {
  position: relative; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 110% at 80% 10%, #17596b 0%, #0d3d4a 55%, #0a2f39 100%);
  aspect-ratio: 4 / 4.4; display: grid; place-items: center;
  box-shadow: 0 30px 60px -40px rgba(12, 40, 50, .8);
}
.hero-art .ring { position: absolute; inset: 0; background-image: radial-gradient(circle at 25% 20%, rgba(255,255,255,.09) 0 1px, transparent 1px); background-size: 22px 22px; }
.hero-art .float-card {
  position: absolute; background: rgba(251, 250, 247, .96); border-radius: 12px; padding: 11px 14px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5); font-size: 12.5px;
}
.hero-art .fc1 { top: 16%; left: 8%; }
.hero-art .fc2 { bottom: 14%; right: 7%; }
.hero-art .big { position: relative; color: #f6efe3; text-align: center; z-index: 2; }
.hero-art .big .n { font-size: clamp(34px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.hero-art .big .l { font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: #a9c4cc; margin-top: 10px; }
.hero-art svg.crest { width: 92px; height: 92px; opacity: .95; margin: 0 auto 22px; }

.stat-strip {
  margin-top: 46px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-strip .item { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat-strip .item:last-child { border-right: 0; }
.stat-strip .k { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.stat-strip .v { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 分区 ---------- */
section.block { padding: 62px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.sec-head h2 { font-size: 25px; letter-spacing: -.015em; }
.sec-head .sub { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; max-width: 46em; }
.sec-num { font-size: 11.5px; letter-spacing: .2em; color: var(--accent); font-weight: 600; text-transform: uppercase; margin-bottom: 10px; }

/* ---------- 分类卡 ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cat-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 30px; overflow: hidden; transition: .18s; cursor: pointer;
  display: flex; flex-direction: column; gap: 14px;
}
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card h3 { font-size: 20px; }
.cat-card .desc { color: var(--ink-2); font-size: 14px; }
.cat-card .count { font-size: 12.5px; color: var(--ink-3); }
.cat-card .go { margin-top: auto; font-size: 13px; color: var(--brand); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.cat-card .art { position: absolute; right: -18px; bottom: -26px; width: 168px; opacity: .13; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-grid.grid4 { grid-template-columns: repeat(4, 1fr); }
.ovgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 1000px) {
  .grid4, .cat-grid.grid4 { grid-template-columns: repeat(2, 1fr); }
  .ovgrid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid4, .cat-grid.grid4 { grid-template-columns: 1fr; }
}

/* ---------- 商品网格 ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; cursor: pointer; transition: .15s; color: var(--ink-2);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .18s;
}
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d8d0c2; }
.pcard .thumb {
  aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative;
  background: var(--paper); border-bottom: 1px solid var(--line-2);
}
.pcard .thumb svg { width: 58%; }
.pcard .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .badge-cat {
  position: absolute; top: 10px; left: 10px; font-size: 11px; letter-spacing: .04em;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px; color: var(--ink-2);
}
.pcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .sku { font-size: 11px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.pcard .name { font-size: 15px; font-weight: 600; line-height: 1.4; }
.pcard .foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 8px; }
.price { font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.price small { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.wsline { font-size: 11.5px; color: var(--accent); margin-top: 1px; }

/* ---------- 商品详情 ---------- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; padding-top: 34px; }
.pd-art {
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  aspect-ratio: 1 / .92; display: grid; place-items: center; position: relative; overflow: hidden;
}
.pd-art svg { width: 62%; }
.pd-art .pd-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pd-art .tag {
  position: absolute; bottom: 16px; left: 16px; font-size: 12px;
  background: var(--brand-soft); color: var(--brand); padding: 5px 12px; border-radius: 8px;
}
.pd-info h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; margin-top: 12px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 6px; }
.pd-price .price { font-size: 28px; }
.pd-desc { color: var(--ink-2); margin-top: 16px; }
.spec-table { margin-top: 24px; border-top: 1px solid var(--line); }
.spec-table .r { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.spec-table .r .k { width: 88px; color: var(--ink-3); flex-shrink: 0; }

.buybox { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { width: 36px; height: 40px; border: 0; background: #fff; cursor: pointer; font-size: 16px; color: var(--ink-2); }
.qty button:hover { background: var(--brand-soft); }
.qty input { width: 54px; height: 40px; border: 0; text-align: center; outline: 0; font-size: 14px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px;
  font-size: 13px; line-height: 1.6;
}
.notice.info { background: var(--brand-soft); color: #14505e; }
.notice.warn { background: var(--accent-soft); color: #8a5a12; }
.notice.bad { background: #fbeeeb; color: #93362c; }
.notice.ok { background: #eaf5ee; color: #1a6647; }
.notice svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }

/* ---------- 购物车 / 结算 ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: start; }
.line-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.line-item .li-thumb { width: 100px; height: 100px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.line-item .li-thumb svg { width: 60%; }
.line-item .li-thumb { overflow: hidden; }
.line-item .li-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; box-sizing: border-box; }
.line-item h4 { font-size: 14.5px; font-weight: 600; }
.co-thumb { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; object-fit: contain; padding: 2px; flex: 0 0 auto; }
.summary {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 22px; position: sticky; top: 96px;
}
.summary h3 { font-size: 16px; margin-bottom: 16px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 7px 0; color: var(--ink-2); }
.sum-line.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 18px; font-weight: 650; color: var(--ink); }

.steps { display: flex; gap: 0; margin: 10px 0 30px; border-bottom: 1px solid var(--line); }
.step { display: flex; align-items: center; gap: 9px; padding: 0 26px 14px 0; font-size: 13.5px; color: var(--ink-3); }
.step .n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11.5px; background: #fff; }
.step.on { color: var(--brand); font-weight: 600; }
.step.on .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.done .n { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

form .field { margin-bottom: 16px; }
form label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .01em; }
form .req { color: var(--accent); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; outline: 0; transition: .15s; font-size: 14px;
}
textarea { height: auto; padding: 10px 13px; resize: vertical; min-height: 76px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 76, 92, .09); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.radio-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; margin-bottom: 10px;
}
.radio-card:hover { border-color: #cfc6b6; }
.radio-card.on { border-color: var(--brand); background: var(--brand-soft); }
.radio-card input { margin-top: 4px; accent-color: var(--brand); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); }

/* ---------- 状态 ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.gray { background: #f2efea; color: #6b6257; }
.pill.amber { background: var(--accent-soft); color: #8a5a12; }
.pill.blue { background: var(--brand-soft); color: var(--brand); }
.pill.green { background: #eaf5ee; color: var(--ok); }
.pill.red { background: #fbeeeb; color: var(--bad); }

.timeline { border-left: 2px solid var(--line); padding-left: 20px; margin-top: 18px; }
.timeline .t { position: relative; padding-bottom: 20px; }
.timeline .t:last-child { padding-bottom: 0; }
.timeline .t::before {
  content: ""; position: absolute; left: -27px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 2px solid var(--brand);
}
.timeline .t .txt { font-size: 13.5px; }
.timeline .t .at { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 空态 ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--ink-3); }
.empty svg { width: 46px; height: 46px; margin: 0 auto 16px; opacity: .4; }
.empty h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }

/* ---------- 页脚 ---------- */
footer.site { margin-top: 40px; background: var(--ink); color: #9fb0b8; padding: 56px 0 34px; }
footer.site .fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
footer.site h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #e8eef0; margin-bottom: 14px; }
footer.site p, footer.site a { font-size: 13px; line-height: 1.9; display: block; }
footer.site a:hover { color: #fff; }
footer.site .bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 10px; }

/* ---------- 后台 ---------- */
body.admin { background: #f6f5f1; }
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #b9c7ce; padding: 26px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand-name { color: #fff; }
.side nav { margin-top: 30px; display: flex; flex-direction: column; gap: 3px; }
.side nav a { padding: 9px 13px; border-radius: 8px; font-size: 13.5px; display: flex; align-items: center; gap: 9px; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.admin-main { padding: 26px 32px 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.admin-head h1 { font-size: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.kpi .k { font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.kpi .v { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.kpi .hint { font-size: 11.5px; color: var(--accent); margin-top: 2px; }

table.dt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.dt th {
  text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); padding: 0 12px 10px; border-bottom: 1px solid var(--line);
}
table.dt td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.dt tr:hover td { background: #fcfbf8; }
table.dt .num { text-align: right; font-variant-numeric: tabular-nums; }

/* 提示条 */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 13.5px; z-index: 200; opacity: 0; pointer-events: none; transition: .22s;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }
.toast.ok { background: var(--ok); }

/* 移动菜单 */
.mobile-nav { display: none; }

@media (max-width: 1060px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .pd-grid { gap: 34px; }
  .checkout-grid { grid-template-columns: 1fr 340px; gap: 26px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 420px; }
  .search-box { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side nav { flex-direction: row; overflow-x: auto; gap: 6px; }
  .side nav a { white-space: nowrap; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  footer.site .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  header.site .container { height: 62px; gap: 12px; }
  nav.main { display: none; }
  .mobile-nav { display: flex; gap: 4px; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-grid, .pd-grid, .checkout-grid, .f2 { grid-template-columns: 1fr; }
  .summary { position: static; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip .item { border-bottom: 1px solid var(--line); }
  .line-item { grid-template-columns: 60px 1fr; }
  .line-item .li-thumb { width: 84px; height: 84px; }
  .pcard .body { padding: 12px 13px 14px; }
  .hero { padding: 34px 0 8px; }
  section.block { padding: 40px 0; }
  .admin-main { padding: 18px 16px 40px; }
}
@media (max-width: 460px) {
  .grid-products { grid-template-columns: 1fr; }
  .pcard .thumb { aspect-ratio: 4 / 3; }
}


/* ============ SiteGiant 风格覆盖（2026-11-23） ============ */
body { background: #fff; color: #4a4a4a; }

.topbar { background: #0c2028; color: #d7dee2; font-size: 12px; letter-spacing: .02em; }
.topbar .dot { background: var(--brand); }

.header { background: #fff; border-bottom: 1px solid var(--line); }
.nav-link { color: #4a4a4a; font-size: 13.5px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.nav-link.on, .nav-link:hover { color: var(--brand); }
.brand-name { font-size: 19px; letter-spacing: .06em; text-transform: uppercase; color: #0c2028; }
.brand-logo { height: 38px; border-radius: 0; }
.search { border: 1px solid var(--line); border-radius: 28px; }
.cart-btn { border: 1px solid var(--line); border-radius: 50%; }

.btn { border-radius: 3px; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; font-weight: 700; box-shadow: none; }
.btn:hover { transform: none; background: var(--brand-2); }
.btn.ghost { background: #fff; border: 1px solid var(--line); color: #4a4a4a; text-transform: none; letter-spacing: .02em; font-weight: 600; }
.btn.ghost:hover { color: var(--brand); border-color: var(--brand); }

.hero { padding: 0 0 10px; }
.hero-grid { gap: 40px; padding: 34px 0 10px; border-bottom: 1px solid var(--line); }
.hero .eyebrow { background: var(--brand-soft); color: var(--brand); border-radius: 2px; letter-spacing: .16em; font-size: 11px; font-weight: 700; }
.hero h1 { font-size: clamp(30px, 3.8vw, 44px); color: #0c2028; font-weight: 700; letter-spacing: -.01em; }
.hero h1 em { color: var(--brand); }
.hero .lead { color: #6a6a6a; font-size: 15px; }
.hero-art {
  background: linear-gradient(140deg, #0c2028 0%, #24343c 100%);
  border-radius: 3px; box-shadow: none;
}
.hero-art .big .l { color: #b9c6cc; }

.stat-strip { border-top: 0; border-bottom: 1px solid var(--line); background: #fff; border-radius: 0; box-shadow: none; }
.stat-strip .k { color: #0c2028; font-size: 21px; }
.stat-strip .v { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }

.sec-num { color: var(--brand); }
.sec-head h2 { text-transform: uppercase; font-size: 21px; letter-spacing: .06em; color: #0c2028; }

.cat-card { border-radius: 3px; box-shadow: none; background: #fff; }
.cat-card:hover { transform: none; border-color: var(--brand); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.cat-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: #1f2328; }
.cat-card .go { color: var(--brand); text-transform: uppercase; font-size: 11.5px; letter-spacing: .08em; }

.filters { border-radius: 3px; }
.chip { border-radius: 2px; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.pcard { border-radius: 3px; box-shadow: none; background: #fff; border: 1px solid var(--line); }
.pcard:hover { transform: none; box-shadow: 0 3px 14px rgba(0,0,0,.08); border-color: #d8dade; }
.pcard .thumb { background: #fafafa; border-bottom: 1px solid var(--line-2); }
.pcard .badge-cat { background: #fff; border: 1px solid var(--line); color: #6a6a6a; border-radius: 2px; text-transform: uppercase; font-size: 9.5px; letter-spacing: .08em; }
.pcard .name { text-transform: uppercase; font-size: 13px; letter-spacing: .02em; color: #1f2328; line-height: 1.45; }
.pcard .sku { font-size: 10.5px; letter-spacing: .06em; }
.price { color: var(--brand); font-size: 17px; font-weight: 700; }

.pd-title { text-transform: uppercase; color: #0c2028; }
.pd-price { color: var(--brand); }
.spec-table .r, .spec-table tr { border-color: var(--line-2) !important; }
.card { border-radius: 3px; box-shadow: none; }

.footer { background: #0c2028; color: #c3cdd3; }
.footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; }
.notice { border-radius: 3px; }
.pill { border-radius: 2px; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }


/* 红色促销横幅风格的 hero 图块 */
.hero-art {
  background: linear-gradient(140deg, #de0000 0%, #a40000 100%) !important;
}
.hero-art .ring { background-image: radial-gradient(circle at 25% 20%, rgba(255,255,255,.16) 0 1px, transparent 1px); }
.hero-art .big .l { color: #ffd6d6; }
.hero-art svg.crest { stroke: #fff; }


/* 导航栏紧凑化：不换行 */
nav.main { gap: 13px !important; }
nav.main a { white-space: nowrap; font-size: 11.5px; letter-spacing: .03em; padding: 0 2px; }
.head-tools .search-box { max-width: 210px; }
@media (max-width: 1180px) {
  .brand-sub { display: none; }
  nav.main { gap: 10px !important; }
  nav.main a { font-size: 11px; }
  .head-tools .search-box { max-width: 170px; }
}


/* 头部紧凑：品牌区不挤压搜索框 */
header.site .container { gap: 16px; }
.brand-sub { display: none; }
.brand-name { font-size: 16px; }
.head-tools { flex-shrink: 0; }
.head-tools .search-box { width: 190px; min-width: 150px; }
