/* ==========================================================================
   AirsoftPro Asia — 样式
   ========================================================================== */
:root {
  --bg: #0b0f14;
  --bg-2: #0e141c;
  --surface: #121922;
  --surface-2: #17202c;
  --surface-3: #1e2938;
  --border: #243142;
  --border-soft: #1d2837;
  --text: #e8eef6;
  --muted: #93a1b5;
  --muted-2: #6b7a8f;
  --accent: #ff6a00;
  --accent-2: #ff8c2e;
  --accent-soft: rgba(255, 106, 0, 0.14);
  --green: #22c55e;
  --red: #f43f5e;
  --cyan: #38bdf8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --header-h: 64px;
  --maxw: 1240px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }
input, select, textarea { font-family: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #000; padding: 8px 14px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 公告栏 ---------- */
.announcement {
  background: linear-gradient(90deg, #b45309, #ff6a00, #b45309);
  color: #0b0f14;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .4px;
  overflow: hidden;
  white-space: nowrap;
}
.announcement-track {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
  padding: 7px 0;
}
.announcement-track span { padding: 0 42px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14; font-weight: 900; font-size: 18px;
  box-shadow: 0 4px 18px rgba(255, 106, 0, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 17px; letter-spacing: .5px; }
.brand-text small { font-size: 10px; letter-spacing: 2.5px; color: var(--muted); font-weight: 600; }

.search { position: relative; flex: 1; max-width: 480px; }
.search-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted);
}
.search input {
  width: 100%; height: 42px;
  padding: 0 42px 0 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-results {
  position: absolute; top: 50px; left: 0; right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 420px; overflow: auto;
  z-index: 130;
}
.sr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-soft);
}
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: var(--surface-3); }
.sr-thumb { width: 42px; height: 42px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.sr-thumb svg { width: 76%; height: 76%; }
.sr-info { min-width: 0; }
.sr-info b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-info small { color: var(--muted); font-size: 12px; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 11px;
  background: transparent; border: 1px solid transparent;
  color: var(--text); display: grid; place-items: center;
  position: relative; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); }
.icon-btn svg { width: 21px; height: 21px; }
.badge {
  position: absolute; top: 3px; right: 3px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: #0b0f14;
  font-size: 11px; font-weight: 800; line-height: 17px;
  border-radius: 999px; text-align: center;
}
.currency select {
  height: 38px; padding: 0 8px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px;
  font-size: 13px; outline: none;
}
.menu-toggle { display: none; }

/* ---------- 导航 ---------- */
.main-nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 4px;
  padding: 0 12px 8px;
}
.main-nav > .nav-item { position: relative; }
.main-nav > .nav-item > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color .15s, background .15s;
}
.main-nav > .nav-item > a:hover,
.main-nav > .nav-item > a.active { color: var(--text); background: var(--surface-2); }
.caret { font-size: 10px; opacity: .7; }

.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 230px; padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease; z-index: 120;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; font-size: 14px;
}
.dropdown a:hover { background: var(--surface-3); }
.dropdown .dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }

/* ---------- 移动端菜单 ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 160;
  background: var(--bg); padding: 20px; overflow: auto;
}
.mobile-menu .mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mm-group { margin-bottom: 18px; }
.mm-group > b { display: block; font-size: 12px; letter-spacing: 1.5px; color: var(--muted-2); text-transform: uppercase; margin-bottom: 6px; }
.mm-group a {
  display: block; padding: 11px 12px; border-radius: 9px; font-size: 15px;
}
.mm-group a:hover { background: var(--surface-2); }

/* ---------- 通用布局 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 52px 0; }
.section.tight { padding: 34px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: 27px; letter-spacing: -.3px; }
.section-head .eyebrow { color: var(--accent); font-size: 12.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.link-more { color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 10px;
  border: 1px solid transparent; font-size: 15px; font-weight: 700;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #0b0f14; box-shadow: 0 6px 22px rgba(255,106,0,.28); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface-2); }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% 20%, rgba(255,106,0,.16), transparent 60%),
    radial-gradient(700px 500px at 8% 90%, rgba(56,189,248,.12), transparent 60%),
    linear-gradient(180deg, #0d131c, #0b0f14);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .05;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero .wrap {
  position: relative; min-height: 480px;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding-top: 64px; padding-bottom: 64px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(255,106,0,.35);
  padding: 6px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}
.hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02; letter-spacing: -1.5px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 38px; }
.hero-stats .stat b { display: block; font-size: 22px; }
.hero-stats .stat span { color: var(--muted); font-size: 13px; }

.hero-art { position: relative; }
.hero-art .art-ring {
  width: 100%; aspect-ratio: 1; max-width: 420px; margin: 0 auto;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 42%, rgba(56,189,248,.12), transparent 60%),
    linear-gradient(160deg, #16202d, #0e141c);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  padding: 34px;
  box-shadow: var(--shadow);
}
.hero-art svg { width: 78%; color: #c7d2e0; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.hero-chip {
  position: absolute; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
}
.hero-chip b { color: var(--accent); }
.chip-a { top: 8%; right: 2%; }
.chip-b { bottom: 6%; left: 0; }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  padding: 20px 16px 18px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s, border-color .15s;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--muted-2); }
.cat-card .cat-icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2);
}
.cat-card .cat-icon svg { width: 34px; height: 34px; }
.cat-card h3 { margin: 0; font-size: 15.5px; }
.cat-card span { color: var(--muted); font-size: 12.5px; }

/* ---------- 商品网格 ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.products.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--muted-2); box-shadow: var(--shadow); }
.product-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  display: grid; place-items: center; padding: 22px;
}
.product-media .tile {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.05), transparent 55%),
    linear-gradient(160deg, #17222f, #101722);
}
.product-media .tile::after {
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
}
.product-media svg { position: relative; width: 68%; height: auto; color: #c7d2e0; transition: transform .25s; }
.product-card:hover .product-media svg { transform: scale(1.05); }
.badge-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .4px;
}
.badge-new { background: var(--cyan); color: #04222f; }
.badge-sale { background: var(--accent); color: #0b0f14; }
.badge-clearance { background: var(--red); color: #fff; }
.badge-hot { background: #eab308; color: #1f1500; }
.quick-add {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(11,15,20,.85); border: 1px solid var(--border);
  color: var(--text); display: grid; place-items: center;
  opacity: 0; transform: translateY(6px); transition: all .18s;
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.quick-add:hover { background: var(--accent); color: #0b0f14; border-color: var(--accent); }
.quick-add svg { width: 18px; height: 18px; }

.product-body { display: flex; flex-direction: column; gap: 8px; padding: 15px 16px 17px; flex: 1; }
.product-brand { font-size: 11.5px; letter-spacing: 1px; color: var(--muted-2); font-weight: 700; text-transform: uppercase; }
.product-name {
  font-size: 14.5px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.product-sku { font-size: 11.5px; color: var(--muted-2); }
.price-row { display: flex; align-items: baseline; gap: 9px; margin-top: auto; }
.price { font-size: 18px; font-weight: 800; color: var(--text); }
.compare { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }
.save { font-size: 12px; color: var(--green); font-weight: 700; }
.rating { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.stars { color: #f5b50a; letter-spacing: 1px; }

/* ---------- 促销横幅 ---------- */
.promo {
  border-radius: 18px; overflow: hidden; position: relative;
  background:
    radial-gradient(600px 300px at 90% 20%, rgba(255,106,0,.28), transparent 60%),
    linear-gradient(120deg, #1a1207, #120d08);
  border: 1px solid rgba(255,106,0,.35);
  padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.promo h3 { margin: 0; font-size: 30px; }
.promo h3 span { color: var(--accent); }
.promo p { color: var(--muted); margin: 8px 0 0; }

/* ---------- 品牌条 ---------- */
.brand-strip { border-block: 1px solid var(--border); background: var(--bg-2); }
.brand-strip .track { display: flex; gap: 42px; align-items: center; padding: 22px 0; flex-wrap: wrap; }
.brand-strip span { color: var(--muted-2); font-weight: 800; letter-spacing: 1px; font-size: 15px; white-space: nowrap; }

/* ---------- 博客 ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s, border-color .15s;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--muted-2); }
.blog-thumb { height: 150px; position: relative; overflow: hidden; display: grid; place-items: center; }
.blog-thumb svg { width: 70px; height: 70px; color: var(--accent); opacity: .9; }
.blog-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.blog-tag { color: var(--accent); font-size: 12px; font-weight: 800; }
.blog-body h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.blog-body p { margin: 0; color: var(--muted); font-size: 13.5px; }
.blog-date { margin-top: auto; color: var(--muted-2); font-size: 12px; }

/* ---------- 页面头 ---------- */
.page-hero {
  background: radial-gradient(800px 320px at 50% 0%, rgba(255,106,0,.12), transparent 60%), var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 46px 0 38px;
}
.page-hero h1 { margin: 0 0 8px; font-size: 32px; }
.page-hero p { margin: 0; color: var(--muted); }
.breadcrumbs { font-size: 13px; color: var(--muted-2); margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- 商店页 ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filter-panel { position: sticky; top: 110px; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.filter-group > b { display: block; font-size: 13px; margin-bottom: 10px; letter-spacing: .3px; }
.filter-opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.filter-opt:hover { color: var(--text); }
.filter-opt input { accent-color: var(--accent); width: 16px; height: 16px; }
.filter-opt .count { margin-left: auto; font-size: 12px; color: var(--muted-2); }
.filter-clear { color: var(--accent); background: none; border: 0; font-size: 13px; padding: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.toolbar .result-count { color: var(--muted); font-size: 14px; }
.toolbar select {
  height: 40px; padding: 0 12px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px; font-size: 14px; outline: none;
}
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--muted-2); }

/* ---------- 商品详情 ---------- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pd-media {
  position: sticky; top: 110px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 4/3; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.05), transparent 55%),
    linear-gradient(160deg, #17222f, #101722);
}
.pd-media svg { width: 66%; color: #c7d2e0; }
.pd-info h1 { margin: 4px 0 8px; font-size: 28px; line-height: 1.2; }
.pd-brand { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.pd-meta { color: var(--muted); font-size: 13px; }
.pd-price { display: flex; align-items: baseline; gap: 14px; margin: 20px 0 6px; }
.pd-price .price { font-size: 32px; }
.pd-price .compare { font-size: 18px; }
.pd-price .save { font-size: 15px; }
.pd-short { color: var(--muted); margin: 12px 0 20px; }
.pd-actions { display: flex; gap: 12px; margin: 20px 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty button { width: 44px; height: 46px; background: var(--surface-2); border: 0; color: var(--text); font-size: 18px; }
.qty button:hover { background: var(--surface-3); }
.qty input { width: 52px; height: 46px; border: 0; background: transparent; color: var(--text); text-align: center; font-size: 15px; }
.pd-features { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.pd-features li { margin: 4px 0; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 46px 0 20px; }
.tab { padding: 11px 18px; background: none; border: 0; color: var(--muted); font-size: 15px; font-weight: 700; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-color: var(--accent); }
.tabpane { display: none; }
.tabpane.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.spec-table th { width: 180px; color: var(--muted); font-weight: 600; }

/* ---------- 购物车抽屉 ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; z-index: 170;
  background: var(--surface); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; transform: translateX(105%);
  transition: transform .25s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; font-size: 18px; }
.drawer-body { flex: 1; overflow: auto; padding: 12px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.ci { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border-soft); }
.ci-thumb { width: 70px; height: 70px; border-radius: 10px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-2); }
.ci-thumb svg { width: 80%; color: #c7d2e0; }
.ci-info { flex: 1; min-width: 0; }
.ci-info b { display: block; font-size: 13.5px; line-height: 1.35; }
.ci-info small { color: var(--muted-2); font-size: 12px; }
.ci-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ci-qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 7px; }
.ci-qty button { width: 26px; height: 26px; background: var(--surface-2); border: 0; color: var(--text); }
.ci-qty span { width: 30px; text-align: center; font-size: 13px; }
.ci-price { font-weight: 800; font-size: 14px; }
.ci-remove { background: none; border: 0; color: var(--muted-2); font-size: 13px; }
.ci-remove:hover { color: var(--red); }
.totals { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; font-size: 14px; }
.totals > div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 18px; font-weight: 800; border-top: 1px solid var(--border); padding-top: 10px; }
.promo-row { display: flex; gap: 8px; margin-bottom: 12px; }
.promo-row input { flex: 1; height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; color: var(--text); }
.empty-cart { text-align: center; color: var(--muted); padding: 50px 10px; }
.empty-cart svg { width: 60px; height: 60px; margin: 0 auto 14px; color: var(--muted-2); }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 190; display: grid; place-items: center;
  padding: 20px; background: rgba(5, 8, 12, .7); backdrop-filter: blur(4px);
}
.modal-card {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; box-shadow: var(--shadow);
}
.modal-close { position: absolute; top: 16px; right: 16px; }
.modal h2 { margin: 0 0 6px; font-size: 23px; }
.modal .sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  height: 44px; padding: 0 13px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text); font-size: 14px; outline: none;
}
.field textarea { height: 96px; padding: 11px 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .hint { font-size: 11.5px; color: var(--muted-2); }
.order-summary { background: var(--bg); border: 1px solid var(--border); border-radius: 11px; padding: 13px 15px; margin-bottom: 16px; }
.order-summary h4 { margin: 0 0 9px; font-size: 13px; color: var(--muted); }
.os-item { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; }
.os-item span:first-child { color: var(--muted); flex: 1; }
.os-total { display: flex; justify-content: space-between; font-weight: 800; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 9px; }
.contact-options { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-chip { border: 1px solid var(--border); background: var(--bg); border-radius: 9px; padding: 8px 13px; font-size: 13px; color: var(--muted); cursor: pointer; }
.contact-chip.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.form-err { color: var(--red); font-size: 13px; margin: 8px 0 0; }

.success-box { text-align: center; padding: 14px 0 4px; }
.success-box .check {
  width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--green); color: #04210f; display: grid; place-items: center; font-size: 34px;
}
.success-box h2 { margin-bottom: 8px; }
.success-box p { color: var(--muted); }
.success-box .ref { background: var(--bg); border: 1px dashed var(--border); border-radius: 10px; padding: 12px; margin: 16px 0; font-weight: 800; letter-spacing: .5px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 30px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 50px 20px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.footer-about p { color: var(--muted); font-size: 14px; max-width: 340px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.trust span { font-size: 12.5px; color: var(--green); font-weight: 600; }
.footer-col h4 { margin: 0 0 14px; font-size: 14px; letter-spacing: .5px; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 14px; margin: 0 0 9px; line-height: 1.5; }
.footer-col a:hover { color: var(--text); }
.payicons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.payicons span { font-size: 11px; font-weight: 800; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  max-width: var(--maxw); margin: 0 auto; padding: 18px 20px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  color: var(--muted-2); font-size: 12.5px;
}
.footer-bottom p { margin: 0; }

/* ---------- 通用静态页 ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 34px; font-size: 22px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.contact-card svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.contact-card h3 { margin: 0 0 6px; font-size: 16px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text);
  padding: 12px 20px; border-radius: 11px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; z-index: 210;
  display: flex; align-items: center; gap: 9px;
}
.toast .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

.backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(5,8,12,.55); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: grid; }
  .main-nav { display: none; }
  .search { display: none; }
  .brand-text small { display: none; }
  .pd-grid { grid-template-columns: 1fr; gap: 24px; }
  .pd-media { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .promo { flex-direction: column; text-align: center; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-body { padding: 12px; }
  .product-name { font-size: 13px; min-height: 36px; }
  .price { font-size: 15.5px; }
  .section { padding: 36px 0; }
  .hero .wrap { min-height: 0; padding-top: 40px; padding-bottom: 40px; }
}

/* ---------- 辅助 ---------- */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.grid-bg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }

/* ---------- 查询库存加载态 ---------- */
.loading-box { text-align: center; padding: 34px 12px 26px; }
.loading-box h2 { margin: 0 0 8px; font-size: 21px; }
.loading-box p { margin: 0; font-size: 13.5px; }
.spinner {
  width: 56px; height: 56px; margin: 0 auto 22px;
  border: 4px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
