/* ================= 星际优品 GPMALL · 暗色科技风 ================= */
:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --panel: rgba(148, 183, 255, 0.05);
  --panel-strong: rgba(148, 183, 255, 0.09);
  --line: rgba(148, 183, 255, 0.14);
  --line-soft: rgba(148, 183, 255, 0.08);
  --txt: #e8eefc;
  --txt-2: #aab6d3;
  --txt-3: #6b7897;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --grad: linear-gradient(135deg, #22d3ee, #3b82f6);
  --green: #34d399;
  --orange: #fbbf24;
  --red: #f87171;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(2, 8, 20, 0.55);
  --glow: 0 0 24px rgba(34, 211, 238, 0.25);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(59, 130, 246, 0.14), transparent 60%),
    radial-gradient(900px 420px at -10% 12%, rgba(34, 211, 238, 0.10), transparent 55%),
    var(--bg);
  color: var(--txt);
  min-height: 100vh;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: var(--txt); }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

/* ---------- 通用按钮/表单 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #04121f; box-shadow: 0 4px 18px rgba(34, 211, 238, 0.35); }
.btn-primary:hover { box-shadow: 0 6px 26px rgba(34, 211, 238, 0.5); }
.btn-ghost { border-color: var(--line); color: var(--txt); background: var(--panel); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-danger { border-color: rgba(248, 113, 113, 0.4); color: var(--red); background: rgba(248, 113, 113, 0.08); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.16); }
.btn-lg { padding: 13px 34px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  color: var(--txt-3); transition: all 0.15s;
}
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.icon-btn.active { color: var(--red); border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.08); }
.icon-btn.active svg path { fill: currentColor; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--txt-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; font-size: 14px;
  background: rgba(7, 12, 24, 0.6); border: 1px solid var(--line); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--txt-3); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
select option { background: var(--bg-2); }

/* ---------- 头部 ---------- */
.topbar {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.13), rgba(59, 130, 246, 0.11), rgba(34, 211, 238, 0.08));
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 12.5px; color: var(--txt-2); }
.tb-company { font-weight: 700; letter-spacing: 1px; color: var(--txt); display: inline-flex; align-items: center; gap: 7px; }
.tb-company i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 14px; }
.tb-slogan { color: var(--txt-3); white-space: nowrap; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-text { font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.logo-text em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a {
  padding: 8px 14px; border-radius: 9px; color: var(--txt-2); font-weight: 500;
  position: relative; display: flex; align-items: center; gap: 4px; transition: all 0.15s;
}
.main-nav > a:hover, .main-nav > a.active { color: var(--txt); background: var(--panel-strong); }
.main-nav > a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--grad);
}
.cat-link .arr { font-size: 10px; transform: translateY(1px); }
.cat-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 520px; padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  background: rgba(11, 17, 32, 0.97); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all 0.2s;
}
.cat-link:hover .cat-panel, .cat-link:focus-within .cat-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cat-panel a {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px;
  color: var(--txt-2); font-size: 14px; transition: all 0.15s;
}
.cat-panel a:hover { background: var(--panel-strong); color: var(--cyan); }
.cat-panel a span { font-size: 18px; }
.cat-panel::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px;
  background: rgba(11, 17, 32, 0.97); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.header-search {
  flex: 1; max-width: 340px; margin-left: auto; display: flex; align-items: center;
  background: rgba(7, 12, 24, 0.7); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 4px 3px 18px; transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search:focus-within { border-color: var(--cyan); box-shadow: var(--glow); }
.header-search input {
  flex: 1; min-width: 0; background: none; border: none; outline: none; font-size: 13px; color: var(--txt);
}
.header-search input::placeholder { color: var(--txt-3); }
.header-search button {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px; color: #04121f;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
}
.header-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.h-act {
  position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 13px;
  border-radius: 10px; color: var(--txt-2); font-size: 13px; transition: all 0.15s;
}
.h-act:hover { color: var(--cyan); background: var(--panel-strong); }
.cart-count {
  position: absolute; top: 0; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: linear-gradient(135deg, #f472b6, #f87171);
  color: #fff; font-size: 10px; font-weight: 700; font-style: normal;
  display: none; align-items: center; justify-content: center;
}
.avatar-mini {
  width: 24px; height: 24px; border-radius: 999px; background: var(--grad);
  color: #04121f; font-weight: 800; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- 商品卡片 ---------- */
.p-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, 0.4); box-shadow: var(--shadow), var(--glow); }
.p-thumb { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: linear-gradient(160deg, #101a30, #0a0f1e); }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.p-card:hover .p-thumb img { transform: scale(1.06); }
.p-badge {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: #04121f; background: var(--grad);
}
.p-info { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-name {
  font-size: 14px; font-weight: 600; line-height: 1.45; height: 2.9em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-card:hover .p-name { color: var(--cyan); }
.p-sub {
  font-size: 12px; color: var(--txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--txt-3); }
.p-rating { color: var(--orange); }
.p-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.p-price { display: flex; align-items: baseline; gap: 6px; }
.p-price em { font-style: normal; font-size: 19px; font-weight: 800; color: var(--cyan); }
.p-price del { font-size: 12px; color: var(--txt-3); }
.p-acts { display: flex; align-items: center; gap: 7px; }

/* 图片兜底占位 */
.img-fallback {
  background:
    radial-gradient(80px 80px at 30% 30%, rgba(34, 211, 238, 0.25), transparent 70%),
    radial-gradient(120px 120px at 75% 70%, rgba(59, 130, 246, 0.25), transparent 70%),
    linear-gradient(160deg, #101a30, #0a0f1e) !important;
}

/* ---------- 首页 ---------- */
.hero {
  position: relative; border-radius: 18px; overflow: hidden; margin: 18px 0 26px;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow);
}
.hero-track { display: flex; transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1); }
.hero-slide { position: relative; flex: 0 0 100%; aspect-ratio: 21 / 8; min-height: 300px; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 20, 0.82) 8%, rgba(7, 11, 20, 0.25) 55%, transparent);
}
.hero-copy {
  position: absolute; z-index: 2; left: 5.5%; top: 50%; transform: translateY(-50%);
  max-width: 46%;
}
.hero-copy .kicker {
  display: inline-block; padding: 4px 13px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.1);
  margin-bottom: 14px; letter-spacing: 1px;
}
.hero-copy h2 { font-size: clamp(22px, 3.4vw, 40px); line-height: 1.25; font-weight: 800; margin-bottom: 10px; }
.hero-copy h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { font-size: clamp(12px, 1.3vw, 15px); color: var(--txt-2); margin-bottom: 20px; line-height: 1.7; }
.hero-dots { position: absolute; z-index: 3; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 22px; height: 4px; border-radius: 4px; background: rgba(232, 238, 252, 0.28); transition: all 0.25s; }
.hero-dots button.on { width: 34px; background: var(--grad); }
.hero-arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: rgba(7, 11, 20, 0.5); border: 1px solid var(--line); color: var(--txt);
  backdrop-filter: blur(6px); transition: all 0.2s; font-size: 17px;
}
.hero-arrow:hover { border-color: var(--cyan); color: var(--cyan); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 34px 0 16px; }
.sec-head h3 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.sec-head h3::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--grad); }
.sec-head .more { font-size: 13px; color: var(--txt-3); transition: color 0.15s; }
.sec-head .more:hover { color: var(--cyan); }

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-fill { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }

/* 分类快捷入口 */
.cat-quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-quick a {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 8px 16px;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  font-size: 14px; font-weight: 600; color: var(--txt-2); transition: all 0.2s;
}
.cat-quick a i { font-style: normal; font-size: 30px; filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.45)); transition: transform 0.2s; }
.cat-quick a:hover { color: var(--cyan); border-color: rgba(34, 211, 238, 0.4); transform: translateY(-3px); }
.cat-quick a:hover i { transform: scale(1.15); }

/* 分类分区 tabs */
.cat-tabs { display: flex; gap: 8px; }
.cat-tabs button {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--txt-2);
  border: 1px solid var(--line); transition: all 0.15s;
}
.cat-tabs button.on { color: #04121f; font-weight: 700; background: var(--grad); border-color: transparent; }

/* 品牌墙 */
.brand-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-wall div {
  display: flex; align-items: center; justify-content: center; padding: 22px 8px;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  font-size: 17px; font-weight: 800; letter-spacing: 3px; color: var(--txt-3); transition: all 0.2s;
}
.brand-wall div:hover { color: var(--cyan); border-color: rgba(34, 211, 238, 0.4); text-shadow: 0 0 18px rgba(34, 211, 238, 0.6); }

/* ---------- 列表页 ---------- */
.page-wrap { display: flex; gap: 18px; margin: 20px 0 40px; align-items: flex-start; }
.side {
  width: 210px; flex-shrink: 0; background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 14px; position: sticky; top: 86px;
}
.side h4 { font-size: 15px; margin-bottom: 10px; padding-left: 8px; }
.side a.side-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--txt-2); font-size: 14px; margin-bottom: 2px; transition: all 0.15s;
}
.side a.side-item:hover { color: var(--cyan); background: var(--panel-strong); }
.side a.side-item.on { color: #04121f; font-weight: 700; background: var(--grad); }
.list-main { flex: 1; min-width: 0; }
.crumb { font-size: 13px; color: var(--txt-3); margin: 18px 0 12px; }
.crumb a { color: var(--txt-2); }
.crumb a:hover { color: var(--cyan); }
.filter-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 14px;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); flex-wrap: wrap;
}
.filter-bar .f-item {
  padding: 6px 14px; border-radius: 8px; font-size: 13px; color: var(--txt-2); transition: all 0.15s;
}
.filter-bar .f-item:hover { color: var(--cyan); }
.filter-bar .f-item.on { color: #04121f; font-weight: 700; background: var(--grad); }
.filter-bar .f-spacer { flex: 1; }
.filter-bar .result-tip { font-size: 13px; color: var(--txt-3); }
.empty {
  padding: 90px 20px; text-align: center; color: var(--txt-3);
  background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty .ico { font-size: 46px; margin-bottom: 14px; filter: grayscale(0.3); }
.empty p { margin-bottom: 18px; }

/* ---------- 详情页 ---------- */
.detail-top { display: grid; grid-template-columns: 460px 1fr; gap: 34px; margin-top: 20px; }
.d-gallery { position: sticky; top: 86px; }
.d-main-img {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-soft); background: linear-gradient(160deg, #101a30, #0a0f1e);
}
.d-main-img img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.d-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.d-thumbs button {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--line); opacity: 0.6; transition: all 0.2s; padding: 0;
  background: linear-gradient(160deg, #101a30, #0a0f1e);
}
.d-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.d-thumbs button.on { border-color: var(--cyan); opacity: 1; }
.d-info h1 { font-size: 21px; line-height: 1.5; margin-bottom: 8px; }
.d-sub { color: var(--cyan); font-size: 13px; margin-bottom: 14px; }
.d-price-card {
  padding: 18px 20px; border-radius: var(--radius); margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(59, 130, 246, 0.07));
  border: 1px solid rgba(34, 211, 238, 0.25); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.d-price-card .now { font-size: 30px; font-weight: 800; color: var(--cyan); }
.d-price-card .now i { font-style: normal; font-size: 15px; }
.d-price-card del { color: var(--txt-3); }
.d-price-card .tag {
  padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  color: #04121f; background: var(--grad);
}
.d-service { display: flex; gap: 18px; flex-wrap: wrap; padding: 0 2px 16px; font-size: 12.5px; color: var(--txt-2); }
.d-service span { display: flex; align-items: center; gap: 5px; }
.d-service span::before { content: "✓"; color: var(--green); font-weight: 800; }
.d-props { border-top: 1px dashed var(--line); padding-top: 16px; margin-bottom: 18px; }
.d-props .prop { display: flex; align-items: center; font-size: 13px; margin-bottom: 12px; }
.d-props .prop b { width: 60px; flex-shrink: 0; color: var(--txt-3); font-weight: 400; }
.d-props .prop .prop-vals { display: flex; gap: 8px; flex-wrap: wrap; }
.d-props .prop .prop-vals span {
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px;
  color: var(--txt-2); transition: all 0.15s; cursor: pointer;
}
.d-props .prop .prop-vals span.on, .d-props .prop .prop-vals span:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(34, 211, 238, 0.07); }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty-box button { width: 34px; height: 34px; font-size: 16px; color: var(--txt-2); transition: all 0.15s; }
.qty-box button:hover { color: var(--cyan); background: var(--panel-strong); }
.qty-box input { width: 52px; height: 34px; text-align: center; background: none; border: none; outline: none; font-size: 14px; }
.d-acts { display: flex; gap: 12px; margin: 20px 0 16px; }
.d-acts .btn { min-width: 170px; }
.d-fav { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--txt-3); transition: color 0.15s; }
.d-fav:hover, .d-fav.active { color: var(--red); }
.d-warn { font-size: 12px; color: var(--txt-3); }
.d-warn b { color: var(--orange); font-weight: 600; }

.d-tabs { margin: 26px 0 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.d-tab-head { display: flex; border-bottom: 1px solid var(--line-soft); }
.d-tab-head button {
  padding: 15px 30px; font-size: 15px; font-weight: 600; color: var(--txt-3); position: relative; transition: color 0.15s;
  white-space: nowrap;
}
.d-tab-head button.on { color: var(--cyan); }
.d-tab-head button.on::after {
  content: ""; position: absolute; left: 25%; right: 25%; bottom: -1px; height: 2px; background: var(--grad);
}
.d-tab-body { padding: 26px 28px; }
.d-tab-pane { display: none; line-height: 1.9; color: var(--txt-2); font-size: 14px; }
.d-tab-pane.on { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.spec-table th { width: 130px; color: var(--txt-3); font-weight: 400; }
.spec-table tr:hover { background: var(--panel-strong); }

/* ---------- 购物车 ---------- */
.cart-table { margin-top: 18px; }
.cart-head {
  display: grid; grid-template-columns: 70px 1fr 150px 110px 90px 70px;
  padding: 13px 18px; font-size: 13px; color: var(--txt-3);
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px 12px 0 0;
}
.cart-row {
  display: grid; grid-template-columns: 70px 1fr 150px 110px 90px 70px; align-items: center;
  padding: 16px 18px; background: rgba(148, 183, 255, 0.03);
  border: 1px solid var(--line-soft); border-top: none; transition: background 0.15s;
}
.cart-row:hover { background: var(--panel-strong); }
.cart-row:last-of-type { border-radius: 0 0 12px 12px; }
.check-box {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: transparent; font-size: 12px; font-weight: 800; transition: all 0.15s; flex-shrink: 0;
}
.check-box.on { background: var(--grad); border-color: transparent; color: #04121f; }
.check-all-bar { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.cart-g { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cart-g img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-soft); flex-shrink: 0; }
.cart-g .t { font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-g .t:hover { color: var(--cyan); }
.cart-price em { font-style: normal; font-weight: 700; color: var(--cyan); }
.cart-line-total { font-weight: 700; color: var(--cyan); font-size: 15px; }
.cart-del { color: var(--txt-3); font-size: 12.5px; transition: color 0.15s; }
.cart-del:hover { color: var(--red); }
.cart-footer {
  position: sticky; bottom: 12px; margin-top: 16px; display: flex; align-items: center; gap: 22px;
  padding: 15px 22px; border-radius: var(--radius);
  background: rgba(11, 17, 32, 0.92); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.cart-footer .sum { margin-left: auto; font-size: 14px; color: var(--txt-2); }
.cart-footer .sum em { font-style: normal; font-size: 24px; font-weight: 800; color: var(--cyan); margin: 0 4px; }

/* ---------- 结算 ---------- */
.co-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 16px;
}
.co-card h3 { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.co-card h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--grad); }
.addr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.addr-card {
  position: relative; padding: 15px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  cursor: pointer; transition: all 0.15s; font-size: 13px; line-height: 1.75; color: var(--txt-2);
}
.addr-card:hover { border-color: rgba(34, 211, 238, 0.5); }
.addr-card.on { border-color: var(--cyan); background: rgba(34, 211, 238, 0.06); }
.addr-card .nm { color: var(--txt); font-weight: 700; font-size: 14px; }
.addr-card .tel { color: var(--txt-3); margin-left: 8px; font-weight: 400; font-size: 12.5px; }
.addr-card .def-tag {
  position: absolute; top: -1px; right: -1px; padding: 2px 9px; border-radius: 0 10px 0 10px;
  font-size: 11px; background: var(--grad); color: #04121f; font-weight: 700;
}
.addr-card .ops { position: absolute; bottom: 10px; right: 12px; display: none; gap: 10px; font-size: 12px; }
.addr-card:hover .ops { display: flex; }
.addr-card .ops a:hover { color: var(--cyan); }
.addr-card .ops a.del:hover { color: var(--red); }
.addr-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px dashed var(--line); border-radius: 12px; color: var(--txt-3); cursor: pointer;
  min-height: 108px; transition: all 0.15s; font-size: 13px;
}
.addr-add:hover { border-color: var(--cyan); color: var(--cyan); }
.co-items { font-size: 13.5px; }
.co-items .ci { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.co-items .ci:last-child { border-bottom: none; }
.co-items img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; }
.co-items .ci .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-items .ci .q { color: var(--txt-3); }
.ship-options { display: flex; gap: 10px; flex-wrap: wrap; }
.ship-opt {
  padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer;
  font-size: 13px; color: var(--txt-2); transition: all 0.15s;
}
.ship-opt small { display: block; color: var(--txt-3); margin-top: 2px; }
.ship-opt.on { border-color: var(--cyan); background: rgba(34, 211, 238, 0.06); color: var(--cyan); }
.ship-opt.on small { color: var(--cyan); opacity: 0.75; }
.co-summary { margin-left: auto; }
.co-summary .row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--txt-2); margin-bottom: 10px; }
.co-summary .row.total { font-size: 15px; color: var(--txt); }
.co-summary .row.total em { font-style: normal; font-size: 24px; font-weight: 800; color: var(--cyan); }
.co-submit-bar {
  position: sticky; bottom: 12px; display: flex; align-items: center; gap: 18px;
  padding: 15px 22px; border-radius: var(--radius); background: rgba(11, 17, 32, 0.92);
  border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(14px);
}
.co-submit-bar .sum em { font-style: normal; font-size: 24px; font-weight: 800; color: var(--cyan); margin: 0 3px; }

/* ---------- 支付页 ---------- */
.pay-wrap { max-width: 880px; margin: 26px auto 50px; }
.pay-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 18px 24px; border-radius: var(--radius); margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.pay-head .amt em { font-style: normal; font-size: 30px; font-weight: 800; color: var(--cyan); margin-left: 6px; }
.pay-head .cd { text-align: right; font-size: 13px; color: var(--txt-2); }
.pay-head .cd b { display: block; font-size: 22px; color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.pay-body { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.pay-channels { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px 16px; }
.pay-ch { display: flex; align-items: center; gap: 14px; padding: 16px 10px; border-bottom: 1px dashed var(--line-soft); cursor: pointer; border-radius: 10px; transition: background 0.15s; }
.pay-ch:last-child { border-bottom: none; }
.pay-ch:hover { background: var(--panel-strong); }
.pay-ch .radio {
  width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid var(--line); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.pay-ch .radio::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--grad); transform: scale(0); transition: transform 0.15s; }
.pay-ch.on .radio { border-color: var(--cyan); }
.pay-ch.on .radio::after { transform: scale(1); }
.pay-ch .ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; color: #fff; flex-shrink: 0; }
.pay-ch .ico.alipay { background: linear-gradient(135deg, #1677ff, #4c9bff); }
.pay-ch .ico.wechat { background: linear-gradient(135deg, #07c160, #4ad584); }
.pay-ch .ico.union { background: linear-gradient(135deg, #b8860b, #e0a82e); }
.pay-ch .nm { font-size: 14.5px; font-weight: 600; }
.pay-ch .desc { font-size: 12px; color: var(--txt-3); margin-top: 3px; }
.pay-qr-panel {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.pay-qr-panel h4 { font-size: 15px; margin-bottom: 4px; }
.pay-qr-panel .qr-tip { font-size: 12px; color: var(--txt-3); margin-bottom: 14px; }
.qr-box {
  width: 200px; height: 200px; margin: 0 auto 16px; padding: 10px; border-radius: 14px;
  background: #fff; position: relative;
}
.qr-box canvas { width: 100%; height: 100%; }
.qr-box .qr-scan-line {
  position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  box-shadow: 0 0 12px #22d3ee; animation: scan 2.2s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 12px; } 50% { top: calc(100% - 14px); } }
.qr-status { font-size: 12.5px; color: var(--txt-2); line-height: 1.7; }
.qr-status .ok-ico { font-size: 34px; display: block; margin-bottom: 8px; }
.pay-success-view { text-align: center; padding: 40px 20px 10px; }
.pay-success-view .big-ok {
  width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 999px;
  background: rgba(52, 211, 153, 0.12); border: 2px solid rgba(52, 211, 153, 0.5);
  display: flex; align-items: center; justify-content: center; font-size: 38px; color: var(--green);
  animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes pop { 0% { transform: scale(0.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pay-success-view h2 { font-size: 22px; margin-bottom: 8px; }
.pay-success-view p { color: var(--txt-3); font-size: 13.5px; margin-bottom: 22px; }
.pay-success-view .acts { display: flex; gap: 12px; justify-content: center; }

/* ---------- 登录/注册 ---------- */
.auth-wrap { max-width: 430px; margin: 48px auto 70px; }
.auth-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 18px; padding: 34px 32px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 23px; text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; font-size: 13px; color: var(--txt-3); margin-bottom: 26px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--txt-3); margin-top: 18px; }
.auth-switch a { color: var(--cyan); font-weight: 600; }
.auth-agree { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--txt-3); margin: 14px 0 18px; line-height: 1.6; }
.auth-agree a { color: var(--cyan); }

/* ---------- 个人中心 ---------- */
.user-layout { display: flex; gap: 18px; margin: 22px 0 50px; align-items: flex-start; }
.user-side {
  width: 220px; flex-shrink: 0; background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 20px 14px; position: sticky; top: 86px;
}
.user-side .u-head { text-align: center; padding-bottom: 18px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.user-side .avatar {
  width: 66px; height: 66px; margin: 0 auto 10px; border-radius: 999px;
  background: var(--grad); color: #04121f; font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--glow);
}
.user-side .u-name { font-weight: 700; font-size: 15px; }
.user-side .u-level {
  display: inline-block; margin-top: 7px; padding: 2px 11px; border-radius: 999px; font-size: 11.5px;
  color: var(--orange); border: 1px solid rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08);
}
.user-side .u-points { font-size: 12px; color: var(--txt-3); margin-top: 7px; }
.user-side nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px;
  color: var(--txt-2); font-size: 14px; margin-bottom: 2px; transition: all 0.15s;
}
.user-side nav a i { font-style: normal; font-size: 16px; }
.user-side nav a:hover { color: var(--cyan); background: var(--panel-strong); }
.user-side nav a.on { color: #04121f; font-weight: 700; background: var(--grad); }
.user-main { flex: 1; min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.panel h3 { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.panel h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--grad); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-cards .sc {
  padding: 17px 18px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line-soft); transition: all 0.2s;
}
.stat-cards .sc:hover { border-color: rgba(34, 211, 238, 0.4); transform: translateY(-2px); }
.stat-cards .sc b { font-size: 24px; font-weight: 800; color: var(--cyan); display: block; }
.stat-cards .sc span { font-size: 12.5px; color: var(--txt-3); }

.order-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; flex-wrap: wrap; }
.order-tabs button {
  padding: 11px 18px; font-size: 14px; color: var(--txt-3); position: relative; transition: color 0.15s;
}
.order-tabs button.on { color: var(--cyan); font-weight: 700; }
.order-tabs button.on::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: -1px; height: 2px; background: var(--grad); }
.order-card { border: 1px solid var(--line-soft); border-radius: 12px; margin-top: 14px; overflow: hidden; }
.order-card .oc-head {
  display: flex; align-items: center; gap: 16px; padding: 12px 18px; font-size: 13px;
  background: var(--panel-strong); color: var(--txt-3); flex-wrap: wrap;
}
.order-card .oc-head .st { margin-left: auto; font-weight: 700; }
.order-card .oc-head .st.unpaid { color: var(--red); }
.order-card .oc-head .st.processing { color: var(--orange); }
.order-card .oc-head .st.shipped { color: var(--cyan); }
.order-card .oc-head .st.done { color: var(--green); }
.order-card .oc-items { padding: 6px 18px; }
.order-card .oci { display: flex; align-items: center; gap: 13px; padding: 9px 0; cursor: pointer; }
.order-card .oci img { width: 58px; height: 58px; border-radius: 9px; object-fit: cover; }
.order-card .oci .n { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card .oci .n:hover { color: var(--cyan); }
.order-card .oci .p { font-size: 13px; color: var(--txt-3); white-space: nowrap; }
.order-card .oci .p em { font-style: normal; color: var(--cyan); font-weight: 700; }
.order-card .oc-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 12px 18px;
  border-top: 1px dashed var(--line-soft); font-size: 13px;
}
.order-card .oc-foot .total em { font-style: normal; font-size: 17px; font-weight: 800; color: var(--cyan); }
.order-card .oc-foot .btns { display: flex; gap: 10px; }

.addr-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.addr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.addr-row { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.8; color: var(--txt-2); }
.addr-row .nm { color: var(--txt); font-weight: 700; }
.addr-row .def-tag { position: absolute; top: -1px; right: -1px; padding: 2px 9px; border-radius: 0 10px 0 10px; font-size: 11px; background: var(--grad); color: #04121f; font-weight: 700; }
.addr-row .ops { margin-top: 6px; display: flex; gap: 14px; font-size: 12.5px; }
.addr-row .ops a:hover { color: var(--cyan); }
.addr-row .ops a.del:hover { color: var(--red); }
.inline-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--txt-2); margin-bottom: 16px; cursor: pointer; }
.fav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ---------- 吐司 ---------- */
#gpm-toast { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  padding: 11px 24px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: rgba(11, 17, 32, 0.95); border: 1px solid var(--line); color: var(--txt);
  box-shadow: var(--shadow); opacity: 0; transform: translateY(-12px); transition: all 0.3s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.warn { border-color: rgba(251, 191, 36, 0.5); color: var(--orange); }
.toast.err { border-color: rgba(248, 113, 113, 0.5); color: var(--red); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 500; background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  width: min(560px, 100%); max-height: 88vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px;
  box-shadow: var(--shadow); animation: pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.modal h3 { font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; }
.modal h3 .close { margin-left: auto; font-size: 20px; color: var(--txt-3); transition: color 0.15s; }
.modal h3 .close:hover { color: var(--red); }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line-soft); background: rgba(7, 11, 20, 0.6); }
.foot-services {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding: 26px 0; border-bottom: 1px dashed var(--line-soft);
}
.foot-services .fs { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.foot-services .fs b { font-size: 21px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-services .fs span { font-size: 13px; color: var(--txt-3); }
.foot-links { display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 14px; padding: 28px 0; }
.foot-links dt { font-size: 14.5px; font-weight: 700; margin-bottom: 12px; }
.foot-links dd { margin-bottom: 9px; }
.foot-links dd a { font-size: 13px; color: var(--txt-3); transition: color 0.15s; }
.foot-links dd a:hover { color: var(--cyan); }
.foot-service-qq { text-align: center; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-soft); }
.foot-service-qq p { font-size: 12px; color: var(--txt-3); }
.foot-service-qq strong { display: block; font-size: 21px; color: var(--cyan); margin: 4px 0; }
.foot-copy { padding: 16px 0 22px; text-align: center; font-size: 12px; color: var(--txt-3); border-top: 1px dashed var(--line-soft); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .detail-top { grid-template-columns: 1fr; }
  .d-gallery { position: static; }
  .pay-body { grid-template-columns: 1fr; }
  .brand-wall { grid-template-columns: repeat(3, 1fr); }
  .foot-links { grid-template-columns: repeat(2, 1fr); }
  .foot-service-qq { grid-column: span 2; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 8px; }
  .header-search { order: 5; max-width: none; flex-basis: 100%; }
  .main-nav { display: none; }
  .h-act .h-act-txt { display: none; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .cat-quick { grid-template-columns: repeat(3, 1fr); }
  .hero-slide { aspect-ratio: 16 / 10; }
  .hero-copy { max-width: 72%; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tb-slogan { display: none; }
  .topbar-inner { justify-content: center; padding: 6px 0; }
  .cat-tabs { flex-wrap: wrap; }
  .d-tab-head button { padding: 12px 14px; font-size: 14px; }
  .co-hint { display: none; }
  .p-price del { display: none; }
  .p-price em { font-size: 17px; }
  .p-acts { gap: 5px; }
  .p-acts .btn-sm { padding: 5px 8px; font-size: 11px; }
  .page-wrap, .user-layout { flex-direction: column; }
  .side, .user-side { width: 100%; position: static; }
  .side nav, .user-side nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 30px 1fr; grid-template-rows: auto auto; row-gap: 10px; }
  .cart-row > * { grid-column: 2; }
  .cart-row .check-box { grid-column: 1; grid-row: 1; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .addr-grid, .addr-list, .fav-grid { grid-template-columns: 1fr; }
  .field-row, .addr-form-grid { flex-direction: column; gap: 0; display: block; }
  .d-acts { flex-wrap: wrap; }
  .d-acts .btn { min-width: 46%; flex: 1; }
  .cart-footer { flex-wrap: wrap; gap: 10px; }
  .foot-services { grid-template-columns: repeat(2, 1fr); }
  .foot-services .fs { justify-content: flex-start; }
}
