/* ============================================
   自营商城 — 科技感 · 全站样式
   设计语言：深空渐变 + 静态氛围光 + 玻璃拟态 + 辉光描边
   动效原则：只保留 hover 等用户触发的轻反馈，无常驻循环动画
   ============================================ */
:root {
  --primary: #2b5cff;
  --primary-dark: #1e46d4;
  --primary-light: #eef3ff;
  --cyan: #00d4ff;
  --violet: #7b5cff;
  --grad-brand: linear-gradient(120deg, #2b5cff 0%, #4f7bff 45%, #00d4ff 100%);
  --grad-dark: linear-gradient(120deg, #0b1230 0%, #141f4d 55%, #1b2f7a 100%);
  --accent: #ff6a2b;
  --grad-accent: linear-gradient(90deg, #ff6a2b, #ff9d4d);
  --glow-brand: 0 0 0 1px rgba(43, 92, 255, .12), 0 12px 32px rgba(43, 92, 255, .18);
  --glow-cyan: 0 0 22px rgba(0, 212, 255, .35);
  --text-1: #171c2e;
  --text-2: #5a6072;
  --text-3: #9aa0ae;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --line: #e8eaf1;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(20, 28, 60, .06);
  --shadow-md: 0 8px 24px rgba(20, 28, 60, .10);
  --shadow-lg: 0 16px 40px rgba(20, 28, 60, .14);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-1);
  background:
    radial-gradient(900px 420px at 85% -60px, rgba(0, 212, 255, .07), transparent 60%),
    radial-gradient(700px 380px at -60px 180px, rgba(123, 92, 255, .06), transparent 60%),
    var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; outline: none; }
ul, ol { list-style: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: var(--grad-dark);
  color: #cfd8ef;
  font-size: 12px;
  height: 32px;
  position: relative;
  overflow: hidden;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a[href="admin.html"] { color: #55e6ff; }

/* ---------- Header ---------- */
.header {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(43, 92, 255, .08);
}
.header-inner { display: flex; align-items: center; gap: 40px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad-brand);
  color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 900;
  box-shadow: 0 4px 14px rgba(43, 92, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.logo em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--primary);
}

.search-box {
  flex: 1; max-width: 520px; display: flex; height: 42px; border-radius: 21px;
  background: #fff; position: relative; overflow: hidden; z-index: 0;
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--grad-brand);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.search-box:focus-within { box-shadow: var(--glow-cyan); }
.search-box input { flex: 1; border: none; padding: 0 20px; font-size: 14px; background: transparent; }
.search-box button { width: 92px; background: var(--grad-brand); color: #fff; font-size: 14px; font-weight: 600; transition: filter .2s; }
.search-box button:hover { filter: brightness(1.12); }
.search-hot { max-width: 520px; margin-top: 6px; font-size: 12px; color: var(--text-3); display: flex; gap: 12px; }
.search-hot a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.h-action { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); position: relative; transition: color .2s; }
.h-action:hover { color: var(--primary); }
.h-action .badge {
  position: absolute; top: -8px; left: 18px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--grad-accent); color: #fff; border-radius: 9px; font-size: 11px;
  display: grid; place-items: center; font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 106, 43, .45);
}
.btn-login {
  padding: 8px 22px; border-radius: 20px; font-weight: 600; font-size: 13px;
  color: var(--primary); position: relative; background: #fff;
  background-image: linear-gradient(#fff, #fff), var(--grad-brand);
  background-origin: border-box; background-clip: padding-box, border-box;
  border: 1.5px solid transparent; transition: all .25s;
}
.btn-login:hover { background-image: var(--grad-brand), var(--grad-brand); color: #fff; box-shadow: var(--glow-cyan); }

/* ---------- 导航 ---------- */
.nav { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; height: 46px; gap: 36px; }
.nav-cat {
  display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
  color: var(--primary); cursor: pointer;
}
.nav-links { display: flex; gap: 32px; font-size: 15px; }
.nav-links a { color: var(--text-1); position: relative; padding: 12px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px;
  border-radius: 2px; background: var(--grad-brand);
  box-shadow: 0 0 8px rgba(0, 212, 255, .8);
}

/* ---------- Hero：深空科技主视觉 ---------- */
.hero { padding: 24px 0 0; }
.hero-banner {
  position: relative; height: 400px; border-radius: 20px; overflow: hidden;
  background: var(--grad-dark);
  color: #fff; display: flex; align-items: center;
  box-shadow: 0 20px 50px rgba(11, 18, 48, .35);
  isolation: isolate;
}
/* 科技网格 */
.hero-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(90, 140, 255, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 140, 255, .10) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 75% 90% at 60% 45%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 60% 45%, #000 30%, transparent 78%);
}
/* 极光光斑（静态氛围光，不做漂移动效） */
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; opacity: .5; }
.hero-blob.b1 { width: 460px; height: 460px; right: -60px; top: -180px; background: radial-gradient(circle, #2b5cff, transparent 65%); }
.hero-blob.b2 { width: 340px; height: 340px; right: 300px; bottom: -170px; background: radial-gradient(circle, #00d4ff, transparent 65%); }
.hero-blob.b3 { width: 260px; height: 260px; left: 34%; top: -110px; background: radial-gradient(circle, #7b5cff, transparent 65%); }
.hero-copy { position: relative; z-index: 2; padding: 0 72px; max-width: 660px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px; border-radius: 14px; font-size: 13px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(120, 180, 255, .35);
  backdrop-filter: blur(6px); margin-bottom: 18px; letter-spacing: 2px;
}
.hero-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #00d4ff; box-shadow: 0 0 8px #00d4ff; }
.hero-copy h1 { font-size: 44px; line-height: 1.24; font-weight: 800; letter-spacing: 1px; }
.hero-copy h1 span {
  background: linear-gradient(90deg, #ffd28a, #ff9d6b, #ffd28a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-copy p { margin-top: 14px; font-size: 16px; color: #b9c6ec; }
.hero-cta { margin-top: 28px; display: flex; gap: 16px; }
.hero-cta .btn-main {
  padding: 13px 38px; border-radius: 26px; color: #0b1230; font-weight: 700; font-size: 15px;
  background: linear-gradient(90deg, #7de9ff, #4f9bff);
  box-shadow: 0 8px 24px rgba(0, 212, 255, .4);
  transition: transform .2s, box-shadow .2s;
}
.hero-cta .btn-main:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 212, 255, .55); }
.hero-cta .btn-ghost {
  padding: 13px 38px; border-radius: 26px; border: 1.5px solid rgba(140, 190, 255, .55);
  color: #fff; font-weight: 600; font-size: 15px; transition: all .2s;
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px);
}
.hero-cta .btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: #7de9ff; }
.hero-visual {
  position: absolute; right: 96px; top: 50%; transform: translateY(-50%);
  width: 250px; height: 250px; border-radius: 36px; z-index: 2;
  background: linear-gradient(145deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .05));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center; font-size: 104px;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 24px 48px rgba(0, 0, 0, .35);
}

/* ---------- 金刚区 ---------- */
.quick-nav { margin-top: 28px; }
.qn-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px;
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(8px);
  border: 1px solid rgba(43, 92, 255, .10);
  border-radius: var(--radius-lg); padding: 26px 20px;
  box-shadow: var(--shadow-sm);
}
.qn-item { display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: transform .2s; }
.qn-item:hover { transform: translateY(-4px); }
.qn-item:hover .qn-name { color: var(--primary); }
.qn-icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  font-size: 26px; transition: box-shadow .25s, transform .25s;
  border: 1px solid rgba(255, 255, 255, .7);
}
.qn-item:hover .qn-icon { transform: scale(1.08); box-shadow: var(--glow-brand); }
.qn-name { font-size: 14px; color: var(--text-2); transition: color .2s; }

/* ---------- 区块通用 ---------- */
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-head h2::before {
  content: ""; width: 5px; height: 22px; border-radius: 3px;
  background: var(--grad-brand); box-shadow: 0 0 10px rgba(0, 212, 255, .7);
}
.section-head .more { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.section-head .more:hover { color: var(--primary); }

/* ---------- 秒杀 ---------- */
.flash {
  background: var(--surface); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm); display: flex; gap: 28px; position: relative; overflow: hidden;
}
.flash::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-accent);
}
.flash-side {
  width: 190px; flex-shrink: 0; border-radius: var(--radius); padding: 24px 20px;
  background: linear-gradient(160deg, #ff6a2b, #ff9046, #ffb56b);
  color: #fff; display: flex; flex-direction: column;
  box-shadow: 0 10px 26px rgba(255, 106, 43, .35);
}
.flash-side h3 { font-size: 24px; font-weight: 800; letter-spacing: 2px; }
.flash-side p { font-size: 13px; opacity: .9; margin-top: 6px; }
.flash-timer { margin-top: auto; display: flex; gap: 6px; align-items: center; font-size: 13px; }
.flash-timer b {
  background: rgba(0, 0, 0, .30); border-radius: 6px; padding: 3px 7px;
  font-variant-numeric: tabular-nums; font-size: 15px;
}
.flash-list { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flash-card { cursor: pointer; transition: transform .2s; }
.flash-card:hover { transform: translateY(-4px); }
.flash-thumb { height: 150px; border-radius: var(--radius); display: grid; place-items: center; font-size: 56px; position: relative; overflow: hidden; }
.flash-thumb .tag {
  position: absolute; top: 10px; left: 10px; background: var(--grad-accent); color: #fff;
  font-size: 11px; padding: 2px 9px; border-radius: 4px; font-weight: 600;
  box-shadow: 0 3px 10px rgba(255, 106, 43, .45);
}
.flash-card h4 { font-size: 14px; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flash-price { margin-top: 4px; display: flex; align-items: baseline; gap: 8px; }
.flash-price .now {
  color: var(--accent); font-size: 20px; font-weight: 800;
  background: linear-gradient(90deg, #ff6a2b, #ff9d2b);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.flash-price .now small { font-size: 12px; font-weight: 600; }
.flash-price .was { color: var(--text-3); font-size: 12px; text-decoration: line-through; }

/* ---------- 商品网格 ---------- */
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.goods-card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer; border: 1px solid transparent;
}
.goods-card:hover { transform: translateY(-6px); box-shadow: var(--glow-brand); border-color: rgba(43, 92, 255, .22); }
.goods-thumb { height: 210px; display: grid; place-items: center; font-size: 72px; position: relative; overflow: hidden; }
.goods-thumb >:first-child { transition: transform .3s; }
.goods-card:hover .goods-thumb >:first-child { transform: scale(1.05); }
.goods-thumb .tag {
  position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 6px;
  font-size: 12px; color: #fff; font-weight: 600;
}
.goods-info { padding: 14px 16px 18px; }
.goods-info h4 { font-size: 15px; font-weight: 600; height: 44px; line-height: 22px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.goods-meta { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.goods-meta .price {
  color: var(--accent); font-size: 22px; font-weight: 800;
  background: linear-gradient(90deg, #ff6a2b, #ff9d2b);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.goods-meta .price small { font-size: 13px; font-weight: 600; }
.goods-meta .orig { color: var(--text-3); font-size: 12px; text-decoration: line-through; }
.goods-sub { margin-top: 6px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.goods-sub .sales b { color: var(--text-2); }
.rate { color: #ff9d2b; }

/* ---------- 楼层 Tabs ---------- */
.floor-tabs { display: flex; gap: 10px; }
.floor-tab {
  padding: 7px 20px; border-radius: 18px; font-size: 14px; color: var(--text-2);
  background: var(--surface); transition: all .2s; border: 1px solid var(--line);
}
.floor-tab.active, .floor-tab:hover {
  background: var(--grad-brand); color: #fff; font-weight: 600; border-color: transparent;
  box-shadow: 0 6px 16px rgba(43, 92, 255, .35);
}

/* ---------- 服务保障 ---------- */
.services { margin-top: 48px; }
.services .container {
  background: var(--grad-dark); border-radius: var(--radius-lg); padding: 30px 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  position: relative; overflow: hidden;
}
.services .container::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(90, 140, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 140, 255, .07) 1px, transparent 1px);
  background-size: 36px 36px;
}
.service { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.service .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(120, 180, 255, .3);
  backdrop-filter: blur(4px);
}
.service b { font-size: 15px; display: block; color: #fff; }
.service span { font-size: 12px; color: #8ea3d8; }

/* ---------- Footer ---------- */
.footer { margin-top: 56px; background: #0d1428; color: #97a0b8; padding: 52px 0 0; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad-brand); opacity: .8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h5 { color: #dfe4f2; font-size: 15px; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; font-size: 13px; }
.footer a:hover { color: #55e6ff; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; text-align: center; font-size: 12px; color: #6b7490; }

/* ---------- 列表页 ---------- */
.page-head { padding: 22px 0 0; }
.breadcrumb { font-size: 13px; color: var(--text-3); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb b { color: var(--text-1); font-weight: 600; }

.list-layout { display: flex; gap: 20px; margin-top: 18px; align-items: flex-start; }
.filters {
  width: 230px; flex-shrink: 0; background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px);
  border: 1px solid rgba(43, 92, 255, .10);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.filter-group { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group h5 { font-size: 15px; margin-bottom: 14px; }
.filter-opts { display: flex; flex-direction: column; gap: 10px; }
.filter-opt { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); cursor: pointer; transition: color .2s; }
.filter-opt:hover { color: var(--primary); }
.filter-opt input { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }

.list-main { flex: 1; min-width: 0; }
.toolbar {
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px);
  border: 1px solid rgba(43, 92, 255, .10);
  border-radius: var(--radius); padding: 12px 20px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.sort-btn { padding: 7px 16px; border-radius: 8px; font-size: 14px; color: var(--text-2); transition: all .2s; }
.sort-btn.active { background: var(--grad-brand); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(43, 92, 255, .3); }
.sort-btn:hover:not(.active) { color: var(--primary); }
.toolbar .result { margin-left: auto; font-size: 13px; color: var(--text-3); }
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.pagination { margin: 34px 0 8px; display: flex; justify-content: center; gap: 8px; }
.page-btn {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px; background: var(--surface);
  color: var(--text-2); font-size: 14px; box-shadow: var(--shadow-sm); transition: all .2s;
}
.page-btn:hover:not(:disabled):not(.active) { color: var(--primary); }
.page-btn.active { background: var(--grad-brand); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(43, 92, 255, .3); }
.page-btn:disabled { opacity: .4; cursor: default; }

/* ---------- 详情页 ---------- */
.detail-layout {
  display: flex; gap: 44px; margin-top: 20px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px);
  border: 1px solid rgba(43, 92, 255, .10);
  border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm);
}
.gallery { width: 420px; flex-shrink: 0; }
.gallery-main {
  height: 420px; border-radius: var(--radius-lg); display: grid; place-items: center;
  font-size: 150px; position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .6);
}
.gallery-main .badge-off {
  position: absolute; top: 18px; left: 18px; background: var(--grad-accent); color: #fff;
  padding: 5px 13px; border-radius: 8px; font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 106, 43, .5);
}
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.gallery-thumbs button {
  width: 76px; height: 76px; border-radius: 12px; font-size: 34px; display: grid; place-items: center;
  border: 2px solid transparent; transition: all .2s;
}
.gallery-thumbs button.active { border-color: var(--primary); box-shadow: 0 0 12px rgba(43, 92, 255, .35); }

.detail-info { flex: 1; min-width: 0; }
.detail-info h1 { font-size: 24px; line-height: 1.4; font-weight: 700; }
.detail-slogan { margin-top: 8px; color: var(--accent); font-size: 13px; }
.price-panel {
  margin-top: 20px; border-radius: var(--radius); padding: 18px 22px;
  background: linear-gradient(120deg, #fff3ec, #fff8f3);
  border: 1px solid rgba(255, 106, 43, .18);
  display: flex; align-items: baseline; gap: 14px;
}
.price-panel .now { color: var(--accent); font-size: 34px; font-weight: 800; }
.price-panel .now small { font-size: 16px; }
.price-panel .was { color: var(--text-3); text-decoration: line-through; font-size: 15px; }
.price-panel .cut { margin-left: auto; background: var(--grad-accent); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 6px; font-weight: 600; }

.spec-group { margin-top: 22px; }
.spec-group h5 { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.spec-group h5 b { color: var(--text-1); }
.spec-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-opt {
  padding: 8px 20px; border-radius: 9px; border: 1.5px solid var(--line);
  font-size: 14px; color: var(--text-2); background: #fff; transition: all .15s;
}
.spec-opt:hover { border-color: var(--primary); color: var(--primary); }
.spec-opt.active {
  border-color: var(--primary); color: var(--primary); background: var(--primary-light); font-weight: 600;
  box-shadow: 0 0 10px rgba(43, 92, 255, .22);
}

.qty-row { margin-top: 24px; display: flex; align-items: center; gap: 18px; }
.qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty-stepper button { width: 38px; height: 38px; font-size: 18px; color: var(--text-2); transition: background .15s; }
.qty-stepper button:hover { background: var(--primary-light); color: var(--primary); }
.qty-stepper input { width: 52px; height: 38px; border: none; text-align: center; font-size: 15px; font-weight: 600; }
.stock { font-size: 13px; color: var(--text-3); }

.detail-btns { margin-top: 28px; display: flex; gap: 16px; }
.btn-cart {
  flex: 1; height: 52px; border-radius: 26px; font-size: 16px; font-weight: 700; background: #fff;
  color: var(--primary); border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--grad-brand);
  background-origin: border-box; background-clip: padding-box, border-box;
  transition: all .2s;
}
.btn-cart:hover { background-image: var(--grad-brand), var(--grad-brand); color: #fff; box-shadow: var(--glow-cyan); }
.btn-buy {
  flex: 1.4; height: 52px; border-radius: 26px; background: var(--grad-accent);
  color: #fff; font-size: 16px; font-weight: 700; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 20px rgba(255, 106, 43, .3);
}
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 106, 43, .45); }

.detail-services { margin-top: 22px; display: flex; gap: 22px; font-size: 13px; color: var(--text-2); }
.detail-services span { display: flex; align-items: center; gap: 6px; }
.detail-services .dot { color: var(--primary); font-weight: 800; }

/* 详情 Tabs */
.detail-tabs {
  margin-top: 20px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px);
  border: 1px solid rgba(43, 92, 255, .10);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.dt-nav { display: flex; border-bottom: 1px solid var(--line); }
.dt-nav button { padding: 16px 34px; font-size: 15px; color: var(--text-2); position: relative; }
.dt-nav button.active { color: var(--primary); font-weight: 700; }
.dt-nav button.active::after {
  content: ""; position: absolute; left: 34px; right: 34px; bottom: -1px; height: 3px;
  background: var(--grad-brand); border-radius: 2px; box-shadow: 0 0 8px rgba(0, 212, 255, .7);
}
.dt-panel { padding: 34px; display: none; }
.dt-panel.active { display: block; }
.dt-panel h4 { font-size: 16px; margin: 22px 0 10px; }
.dt-panel h4:first-child { margin-top: 0; }
.dt-panel p { color: var(--text-2); line-height: 1.9; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { width: 180px; color: var(--text-3); font-weight: 500; background: #fafbfd; }
.review { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: none; }
.review-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.review-head .name { font-weight: 600; font-size: 14px; }
.review-head .time { font-size: 12px; color: var(--text-3); }
.review-head .rate { margin-left: auto; }
.review p { margin-top: 10px; color: var(--text-2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%) translateY(24px);
  background: rgba(13, 20, 40, .94); color: #fff; padding: 12px 26px; border-radius: 24px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 999;
  border: 1px solid rgba(0, 212, 255, .35); box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
/* 平板横屏 / 小屏笔记本 */
@media (max-width: 1024px) {
  .qn-grid { grid-template-columns: repeat(4, 1fr); }
  .goods-grid { grid-template-columns: repeat(3, 1fr); }
  .flash-list { grid-template-columns: repeat(2, 1fr); }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { display: none; }
  .hero-banner { height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .detail-layout { flex-direction: column; gap: 28px; }
  .gallery { width: 100%; }
  .filters { width: 200px; }
}
/* 平板竖屏 / 折叠态 */
@media (max-width: 860px) {
  .header-inner { gap: 20px; }
  .hero-banner { height: 320px; }
  .hero-copy { padding: 0 44px; }
  .hero-copy h1 { font-size: 34px; }
  .list-layout { flex-direction: column; }
  .filters { display: none; }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { padding: 24px 20px; }
  .gallery-main { height: 360px; font-size: 120px; }
  .dt-panel { padding: 26px 22px; }
  .services .container { flex-wrap: wrap; gap: 22px; }
}
/* 手机 */
@media (max-width: 640px) {
  .container { width: 94%; }
  /* 顶栏与头部：Logo/操作一行，搜索框独占一行 */
  .topbar .container { justify-content: center; }
  .topbar-links { display: none; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 10px; }
  .logo { font-size: 19px; }
  .logo-mark { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
  .header-actions { gap: 14px; }
  .h-action { font-size: 13px; }
  .btn-login { padding: 6px 14px; font-size: 12px; }
  .header-inner > div { order: 3; flex: 1 1 100% !important; max-width: 100% !important; }
  .search-box { height: 40px; }
  .search-box button { width: 78px; }
  /* 导航横向滑动，不换行不截断 */
  .nav-inner { gap: 18px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav-links { gap: 18px; flex-shrink: 0; }
  .nav-links a { white-space: nowrap; }
  /* Hero 收紧 */
  .hero-banner { height: auto; padding: 40px 0 44px; }
  .hero-copy { padding: 0 24px; }
  .hero-copy h1 { font-size: 26px; }
  .hero-copy p { font-size: 14px; margin-top: 10px; }
  .hero-cta { margin-top: 20px; gap: 10px; }
  .hero-cta .btn-main, .hero-cta .btn-ghost { padding: 11px 24px; font-size: 14px; }
  .hero-blob { filter: blur(48px); opacity: .4; }
  /* 楼层与商品 */
  .section { margin-top: 34px; }
  .section-head h2 { font-size: 19px; }
  .qn-grid { grid-template-columns: repeat(4, 1fr); padding: 18px 10px; gap: 10px; }
  .qn-icon { width: 48px; height: 48px; font-size: 22px; border-radius: 14px; }
  .qn-name { font-size: 12px; }
  .flash { flex-direction: column; padding: 18px; }
  .flash-side { width: 100%; padding: 18px; }
  .flash-thumb { height: 120px; font-size: 44px; }
  .goods-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .goods-thumb { height: 165px; font-size: 56px; }
  .goods-info { padding: 12px 12px 14px; }
  .goods-info h4 { font-size: 14px; height: 40px; line-height: 20px; }
  .goods-meta .price { font-size: 19px; }
  .list-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .toolbar { flex-wrap: wrap; }
  .floor-tabs { flex-wrap: wrap; }
  .floor-tab { padding: 6px 14px; font-size: 13px; }
  .pagination { gap: 6px; }
  .page-btn { min-width: 34px; height: 34px; font-size: 13px; }
  /* 详情页 */
  .detail-layout { padding: 18px 14px; gap: 20px; }
  .detail-info h1 { font-size: 19px; }
  .gallery-main { height: 300px; font-size: 96px; }
  .gallery-thumbs button { width: 58px; height: 58px; font-size: 26px; }
  .price-panel { padding: 14px 16px; gap: 10px; }
  .price-panel .now { font-size: 27px; }
  .detail-btns { gap: 10px; }
  .btn-cart, .btn-buy { height: 46px; font-size: 15px; border-radius: 23px; }
  .detail-services { flex-wrap: wrap; gap: 12px; }
  .dt-nav button { padding: 13px 18px; font-size: 14px; }
  .dt-nav button.active::after { left: 18px; right: 18px; }
  .dt-panel { padding: 20px 16px; }
  .spec-table th { width: 96px; }
  .spec-table th, .spec-table td { padding: 10px 12px; }
  .review p { font-size: 13px; }
  /* 服务与页脚 */
  .services .container { padding: 22px 18px; gap: 16px; }
  .footer { padding-top: 36px; margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 领券中心 ---------- */
.coupon-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.coupon-card { display: flex; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid rgba(255, 106, 43, .15); }
.coupon-card.got { opacity: .68; }
.c-left { width: 108px; flex-shrink: 0; background: linear-gradient(150deg, #ff6a2b, #ff9d4d); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 18px 8px; }
.c-val { font-size: 26px; font-weight: 800; line-height: 1.1; }
.c-val small { font-size: 13px; font-weight: 600; }
.c-cond { font-size: 11px; opacity: .92; }
.c-right { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.c-right b { font-size: 14px; }
.c-right > span { font-size: 12px; color: var(--text-3); }
.c-btn { margin-top: auto; align-self: flex-start; padding: 5px 16px; border-radius: 15px; background: var(--grad-accent); color: #fff; font-size: 12px; font-weight: 600; transition: filter .2s; }
.c-btn:hover:not(:disabled) { filter: brightness(1.1); }
.c-btn:disabled { background: #d9dde5; color: #8a90a0; cursor: default; }

/* ---------- 拼团专区 ---------- */
.group-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.group-card { display: flex; gap: 14px; background: var(--surface); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); border: 1px solid rgba(43, 92, 255, .10); transition: transform .25s, box-shadow .25s; }
.group-card:hover { transform: translateY(-4px); box-shadow: var(--glow-brand); }
.g-thumb { width: 110px; height: 110px; border-radius: var(--radius); display: grid; place-items: center; font-size: 52px; position: relative; flex-shrink: 0; }
.g-size { position: absolute; top: 8px; left: 8px; background: #e5484d; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.g-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.g-info h4 { font-size: 14px; line-height: 20px; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.g-price { margin-top: 4px; display: flex; align-items: baseline; }
.g-price b { color: #e5484d; font-size: 20px; font-weight: 800; }
.g-price b small { font-size: 12px; font-weight: 600; }
.g-price span { color: var(--text-3); font-size: 12px; text-decoration: line-through; margin-left: 8px; }
.g-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.g-go { margin-top: auto; align-self: flex-start; background: #e5484d; color: #fff; font-size: 12px; font-weight: 600; padding: 6px 16px; border-radius: 15px; }

/* ---------- 详情页拼团条 ---------- */
.group-bar { margin-top: 18px; display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg, #fff1f0, #fff8f7); border: 1px dashed #e5484d; border-radius: var(--radius); padding: 12px 18px; }
.gb-badge { background: #e5484d; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 5px; flex-shrink: 0; }
.gb-price { color: #e5484d; flex-shrink: 0; }
.gb-price b { font-size: 24px; font-weight: 800; }
.gb-price small { font-size: 13px; }
.gb-info { font-size: 13px; color: var(--text-2); flex: 1; min-width: 0; }
.gb-btn { background: #e5484d; color: #fff; font-weight: 700; padding: 10px 26px; border-radius: 20px; font-size: 14px; flex-shrink: 0; transition: filter .2s; }
.gb-btn:hover { filter: brightness(1.08); }

/* ---------- 收银台券选择 ---------- */
.coupon-sel { flex: 1; max-width: 260px; margin-left: auto; height: 34px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 13px; color: var(--text-1); background: #fff; }
.g-tag { display: inline-block; background: #e5484d; color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; }

/* ---------- 营销模块响应式 ---------- */
@media (max-width: 1024px) {
  .coupon-list { grid-template-columns: repeat(2, 1fr); }
  .group-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .coupon-list { grid-template-columns: 1fr; }
  .group-list { grid-template-columns: 1fr; }
  .coupon-card { max-width: 420px; }
  .gb-info { font-size: 12px; }
  .gb-btn { padding: 9px 18px; }
  .coupon-sel { max-width: 170px; }
}
