/* ============================================
   OBSIDIAN MART · 黑曜商城 v2.0.0
   Dark Mode Multivendor E-Commerce Theme
   ============================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.5; background: #0A0A0A; color: #F8FAFC; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; outline: none; border: none; }

:root {
  /* Palette - Obsidian Dark with Blue accents */
  --bg: #0A0A0A;
  --bg-elev: #111317;
  --bg-card: #15181C;
  --bg-soft: #1A1F26;
  --bg-muted: #222831;
  --border: #2A313C;
  --border-soft: #1F242C;
  --text: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;

  /* Brand */
  --primary: #1E5BFF;
  --primary-hover: #3B75FF;
  --primary-dark: #1849D1;
  --primary-600: rgba(30, 91, 255, 0.6);
  --primary-100: rgba(30, 91, 255, 0.12);

  /* Status */
  --accent: #F97316;       /* Orange HOT/PROMO */
  --accent-hover: #FB923C;
  --success: #10B981;
  --danger: #EF4444;

  /* Layout */
  --container: 1280px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 999px;
  --shadow: 0 1px 2px rgba(0,0,0,.6), 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
  --dur: .2s;
  --ease: cubic-bezier(.2,.7,.2,1);
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(30px, 4.5vw, 52px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.01em; }
h3 { font-size: clamp(15px, 1.8vw, 18px); }
h4 { font-size: 15px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== TOP ANNOUNCEMENT BAR ===== */
.announce-bar {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.announce-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.announce-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.announce-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.announce-right a {
  opacity: 0.9;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.announce-right a:hover { opacity: 1; }

/* ===== HEADER MAIN ===== */
.site-header {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(30,91,255,0.35);
}
.brand-text { color: var(--text); }
.brand-text span { color: var(--primary); }

/* Search */
.search-wrap {
  position: relative;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}
.search-box {
  display: flex;
  align-items: stretch;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}
.search-input {
  flex: 1;
  padding: 0 18px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  width: 0;
}
.search-input::placeholder { color: var(--text-faint); }
.search-cat {
  padding: 0 14px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  min-width: 130px;
  cursor: pointer;
  appearance: none;
  color-scheme: dark;
}
.search-btn {
  width: 52px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
}
.search-btn:hover { background: var(--primary-hover); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.haction {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  min-width: 46px;
  color: var(--text-secondary);
  border-radius: var(--r);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  position: relative;
}
.haction:hover { color: var(--primary); background: var(--bg-soft); }
.haction-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.haction-label {
  font-size: 10px;
  margin-top: 2px;
  white-space: nowrap;
  color: var(--text-muted);
}
.haction-text {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  min-width: auto;
}
.haction-text:hover { background: var(--bg-soft); color: var(--primary); }
.haction-greet {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.haction-greet span:first-child {
  font-size: 11px;
  color: var(--text-muted);
}
.haction-greet span:last-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ===== NAV BAR ===== */
.nav-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 46px;
  gap: 28px;
}

.browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  min-width: 210px;
  cursor: pointer;
  position: relative;
}
.browse-btn:hover { background: var(--primary-hover); }
.browse-menu {
  width: 4px;
  height: 14px;
  position: relative;
}
.browse-menu::before, .browse-menu::after {
  content: '';
  position: absolute;
  left: 0;
  width: 14px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  top: 0;
}
.browse-menu::after { top: 6px; width: 10px; }
.browse-chev { transition: transform var(--dur) var(--ease); margin-left: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--bg-soft); }
.nav-link.active { color: var(--primary); background: var(--primary-100); }

.nav-promo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--accent), #FB923C);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav-promo svg { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CATEGORY MEGAMENU ===== */
.cat-menu {
  position: absolute;
  top: 46px;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: all .25s var(--ease);
}
.browse-wrap.open .cat-menu {
  max-height: 600px;
  opacity: 1;
  pointer-events: auto;
}
.browse-wrap { position: relative; height: 100%; }
.cat-list { padding: 8px; }
.cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  color: var(--text-secondary);
  position: relative;
}
.cat-item:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.cat-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.cat-name { font-size: 13px; font-weight: 500; flex: 1; }
.cat-badge {
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.cat-arrow { color: var(--text-faint); opacity: 0.6; }
.cat-all {
  border-top: 1px solid var(--border-soft);
  padding: 12px 14px;
  margin: 4px 8px;
}
.cat-all a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}
.cat-all a:hover { color: var(--primary-hover); }

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(180deg, #0E1014 0%, var(--bg) 100%);
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--border-soft);
}
.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}
.hero-cats {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px;
  overflow: hidden;
}
.hero-cats .cat-item { padding: 10px 12px; }
.hero-cats .cat-item + .cat-item { margin-top: 2px; }

.hero-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
.hero-main::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(30,91,255,0.2) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-main::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.hero-kicker svg { width: 14px; height: 14px; }

.hero-title { margin-bottom: 12px; }
.hero-title .hl-1 { color: var(--text); }
.hero-title .hl-2 { color: var(--accent); }
.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.hero-price {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero-price strong {
  color: var(--accent);
  font-weight: 700;
  font-size: 20px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r-full);
  box-shadow: 0 6px 20px rgba(30,91,255,0.35);
  transition: all var(--dur) var(--ease);
}
.hero-cta:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(30,91,255,0.45); }

.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; min-height: 320px; }
.hero-model-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-full);
  background: radial-gradient(circle at 30% 30%, var(--primary-100) 0%, transparent 55%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-model-placeholder {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-muted), var(--bg-soft));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-faint);
  gap: 8px;
  position: relative;
}
.hero-model-placeholder svg { width: 64px; height: 64px; opacity: 0.4; }
.hero-model-placeholder span { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }

/* Hotspots */
.hotspot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(249,115,22,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}
.hotspot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.4;
  animation: hotspotPulse 2s ease-out infinite;
}
@keyframes hotspotPulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
.hs-1 { top: 10%; left: 22%; }
.hs-2 { top: 35%; left: 8%; }
.hs-3 { bottom: 12%; left: 20%; }
.hs-4 { bottom: 25%; right: 12%; }

/* ===== SECTION TITLES ===== */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.section-head-left { display: flex; flex-direction: column; gap: 6px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-title { font-size: 22px; }
.section-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.view-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.view-more:hover { color: var(--primary-hover); }

/* ===== DEALS SECTION ===== */
.deals-section {
  background: var(--bg-elev);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.deals-head {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.deals-head-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.deals-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.deals-title svg { color: var(--accent); width: 26px; height: 26px; }
.deals-timer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.timer-label { font-size: 12px; color: var(--text-muted); }
.timer-units { display: inline-flex; gap: 4px; }
.timer-unit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
.timer-sep {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  line-height: 1;
}

/* ===== PRODUCT CARD ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--primary-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.p-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease);
}
.product-card:hover .p-img img { transform: scale(1.06); }
.p-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-muted));
  flex-direction: column;
  gap: 8px;
}
.p-img-placeholder svg { width: 40px; height: 40px; opacity: 0.5; }
.p-img-placeholder span { font-size: 11px; font-weight: 600; opacity: 0.6; letter-spacing: 0.08em; }

.p-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--r-sm);
  z-index: 2;
}
.p-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-full);
  z-index: 2;
}

.p-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: 11px; font-weight: 600; color: var(--primary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.p-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.p-name:hover { color: var(--primary); }
.p-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.p-orders {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.p-rating { color: var(--accent); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }

.p-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}
.p-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
.p-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
}
.p-btn:hover { background: var(--primary); color: #fff; }

/* ===== TWO COL GRID (Top Selection + New Arrivals) ===== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.col-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}
.col-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.col-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}
.col-block-title svg { width: 20px; height: 20px; color: var(--primary); }
.col-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.col-products .product-card { border-radius: var(--r); }
.col-products .p-body { padding: 10px 12px 12px; }
.col-products .p-name { font-size: 12.5px; min-height: 34px; }
.col-products .p-price { font-size: 14px; }

/* ===== FEATURES BAR ===== */
.features-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 32px 0;
}
.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: var(--primary-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-body { display: flex; flex-direction: column; }
.feature-title { font-size: 14px; font-weight: 700; color: var(--text); }
.feature-sub { font-size: 12px; color: var(--text-muted); }

/* ===== CATEGORIES SECTION ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.cat-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: all var(--dur) var(--ease);
}
.cat-tile:hover {
  border-color: var(--primary-600);
  transform: translateY(-3px);
  background: var(--bg-soft);
}
.cat-tile-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-tile-title { font-size: 14px; font-weight: 700; color: var(--text); }
.cat-tile-count { font-size: 12px; color: var(--text-muted); }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-600);
  box-shadow: var(--shadow);
}
.blog-card-cover {
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease);
}
.blog-card:hover .blog-card-cover img { transform: scale(1.06); }
.blog-card-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-faint);
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-muted));
}
.blog-card-ph svg { width: 40px; height: 40px; opacity: 0.5; }
.blog-card-ph span { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.blog-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-full);
}
.blog-card-body { padding: 18px 20px 22px; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.blog-card-title:hover { color: var(--primary); }
.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.blog-read:hover { color: var(--primary-hover); }

/* ===== EMPTY STATE ===== */
.empty-block {
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 18px;
}
.empty-block h3 { font-size: 18px; margin-bottom: 8px; }
.empty-block p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.empty-block .btn { display: inline-flex; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 13px;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg { padding: 14px 30px; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary-600);
}
.btn-outline:hover { background: var(--primary-100); }

.section-footer { text-align: center; margin-top: 36px; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--dur) var(--ease);
}
.contact-card:hover { border-color: var(--primary-600); transform: translateY(-3px); }
.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p, .contact-card a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-card a:hover { color: var(--primary); }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--dur) var(--ease);
}
.socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover { color: var(--primary); }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-contact svg { flex-shrink: 0; color: var(--primary); }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; align-items: center; gap: 16px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }

/* ===== BACK TO TOP ===== */
.b2t {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(30,91,255,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur) var(--ease);
  z-index: 90;
  cursor: pointer;
}
.b2t.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.b2t:hover { background: var(--primary-hover); transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cats { display: none; }
  .features-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .two-col-grid { grid-template-columns: 1fr; }
  .col-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .announce-right { display: none; }
  .header-main { grid-template-columns: auto 1fr; }
  .header-actions .haction-text { display: none; }
  .hero-main { grid-template-columns: 1fr; padding: 32px 28px; gap: 32px; min-height: auto; }
  .browse-btn { min-width: 160px; }
  .nav-links .nav-link { display: none; }
  .nav-links .nav-link:nth-child(-n+3) { display: inline-flex; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .header-main { grid-template-columns: 1fr auto; gap: 16px; }
  .search-wrap { display: none; }
  .hero-cta { width: 100%; justify-content: center; }
  .col-products { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .deals-head { padding: 14px 16px; }
  .deals-title { font-size: 18px; }
  .timer-unit { min-width: 36px; font-size: 14px; }
}
@media (max-width: 480px) {
  .nav-promo { display: none; }
  .browse-btn { min-width: 130px; padding: 0 12px; font-size: 12px; }
  .browse-btn span:nth-child(3) { display: none; }
  .haction-label { display: none; }
  .haction { min-width: auto; padding: 6px 8px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .col-products { grid-template-columns: 1fr 1fr; }
  .features-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .b2t { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============================================
   OBSIDIAN MART v2.0.0 — 真數據改版補充樣式
   商品/分類/文章/抽屜/LINE 彈窗/暗色元件
   ============================================ */

/* ===== 公告列補充 ===== */
.announce-inner { gap: 12px; }
.announce-left { min-width: 0; }
.ann-loc { display: inline-flex; align-items: center; gap: 6px; opacity: .95; font-weight: 600; white-space: nowrap; }
.ann-text { opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-hotline { font-weight: 600; }

/* ===== 頁首補充 ===== */
.brand-logo { height: 38px; width: auto; max-width: 170px; object-fit: contain; border-radius: var(--r-sm); }
.search-wrap {
  display: flex;
  align-items: stretch;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.search-btn {
  width: auto;
  height: 100%;
  padding: 0 20px;
  gap: 7px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
}
.search-btn-icon { display: inline-flex; }
.search-btn-icon svg { width: 16px; height: 16px; }
.haction-line { flex-direction: row; gap: 8px; padding: 9px 14px; min-width: auto; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--bg-card); color: var(--text-secondary); }
.haction-line:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-soft); }
.haction-line .haction-icon { display: inline-flex; }
.haction-line .haction-icon svg { width: 19px; height: 19px; }
.haction-line .haction-label { margin: 0; font-size: 13px; font-weight: 600; color: inherit; }

/* ===== 導覽列 / 全部分類 mega menu ===== */
.nav-toggle { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-card); color: var(--text); }
.nav-toggle svg { width: 20px; height: 20px; }
.browse-grid { display: inline-flex; }
.browse-grid svg { width: 16px; height: 16px; }
.browse-wrap.open .browse-chev, .browse-wrap:hover .browse-chev { transform: rotate(180deg); }
.browse-wrap .cat-menu {
  top: 46px;
  left: 0;
  width: 288px;
  max-width: 84vw;
  max-height: 72vh;
  overflow-y: auto;
  padding: 8px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.browse-wrap:hover .cat-menu,
.browse-wrap:focus-within .cat-menu { max-height: 72vh; opacity: 1; pointer-events: auto; }
.cat-group { border-radius: var(--r); }
.cat-group:hover { background: var(--bg-soft); }
.cat-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--text); font-size: 13px; font-weight: 600; }
.cat-link:hover { color: var(--primary); }
.cat-link .cat-name { flex: 1; }
.cat-count { font-size: 10px; font-weight: 700; color: var(--text-muted); background: var(--bg-muted); border-radius: var(--r-full); padding: 2px 8px; }
.cat-arrow { display: inline-flex; color: var(--text-faint); }
.cat-arrow svg { width: 13px; height: 13px; }
.cat-subs { display: flex; flex-direction: column; gap: 2px; padding: 0 12px 8px 26px; }
.cat-subs a { font-size: 12px; color: var(--text-muted); padding: 5px 8px; border-radius: var(--r-sm); }
.cat-subs a:hover { color: var(--primary); background: var(--bg-muted); }
.cat-empty { display: block; padding: 12px; font-size: 13px; font-weight: 600; color: var(--primary); }

/* ===== HERO v2 ===== */
.hero-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: stretch; }
.hero-main { padding: 44px 48px; min-height: 400px; }
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.hero-glow-blue { top: -90px; right: -70px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(30,91,255,.22) 0%, transparent 65%); }
.hero-glow-orange { bottom: -120px; left: -70px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(249,115,22,.14) 0%, transparent 70%); }
.hero-title .hl-1, .hero-title .hl-2 { display: block; }
.hero-title .hl-1 { color: var(--text); }
.hero-title .hl-2 { color: var(--accent); }
.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero-cta:hover { transform: none; box-shadow: none; background: transparent; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.3);
  color: #34D399;
  font-size: 12.5px;
  font-weight: 600;
}
.hero-check {
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--success); color: #06281C;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
}
.hero-mark {
  position: absolute;
  right: 36px; top: 50%; transform: translateY(-50%);
  font-size: 200px; font-weight: 800; line-height: 1;
  background: linear-gradient(145deg, rgba(30,91,255,.18), rgba(249,115,22,.10));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none; z-index: 0;
  user-select: none;
}
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side-card {
  position: relative;
  flex: 1;
  min-height: 122px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  transition: all .25s var(--ease);
}
.hero-side-card:hover { border-color: var(--primary-600); transform: translateY(-2px); }
.hero-side-card.has-img { padding: 0; align-items: flex-end; min-height: 150px; }
.hero-side-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-side-mask {
  position: relative; z-index: 1;
  width: 100%;
  padding: 16px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(5,7,10,.92) 100%);
  display: flex; flex-direction: column; gap: 3px;
}
.hero-side-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: var(--r);
  background: var(--primary-100);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-side-icon svg { width: 23px; height: 23px; }
.hero-side-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-side-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.hero-side-mask .hero-side-title { color: #fff; }
.hero-side-sub { font-size: 12.5px; color: var(--text-muted); }
.hero-side-mask .hero-side-sub { color: #CBD5E1; }

/* ===== 推廣卡 ===== */
.promo-section { padding-top: 40px; }
.promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 168px;
  border-radius: var(--r-lg);
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #16203A 0%, #1B2745 55%, #241A12 100%);
  transition: all .25s var(--ease);
}
.promo-card:hover { transform: translateY(-3px); border-color: var(--primary-600); box-shadow: var(--shadow-lg); }
.promo-card.has-img { padding: 0; background: var(--bg-card); justify-content: stretch; }
.promo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-mask {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  min-height: 168px;
  padding: 20px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 5px;
  background: linear-gradient(180deg, rgba(6,8,12,.08) 0%, rgba(6,8,12,.92) 100%);
}
.promo-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 5px; }
.promo-badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
}
.promo-title { font-size: 19px; font-weight: 800; color: #fff; line-height: 1.25; }
.promo-body .promo-title { color: var(--text); }
.promo-subtitle { font-size: 12.5px; color: #CBD5E1; }
.promo-body .promo-subtitle { color: var(--text-muted); }

/* ===== 商品卡補充 ===== */
.product-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p-sales { font-size: 11px; color: var(--text-muted); }
.p-tag-new { background: var(--primary); }

/* ===== 區塊變體 ===== */
.section-muted { background: var(--bg-elev); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head-center { justify-content: center; text-align: center; }
.section-head-center .section-head-left { align-items: center; }
.contact-title { display: block; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; word-break: break-all; }
.contact-sub { display: block; font-size: 12.5px; color: var(--text-muted); }
.contact-card-line { width: 100%; font: inherit; }
.contact-card-line .contact-icon { color: #06C755; background: rgba(6,199,85,.12); }

/* ===== 麵包屑 / 通用版面 ===== */
.page-wrap { padding: 22px 0 56px; }
.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.crumb a:hover { color: var(--primary); }
.crumb-sep { color: var(--text-faint); }
.crumb-cur { color: var(--text-secondary); }
.page-layout { display: grid; grid-template-columns: 248px minmax(0,1fr); gap: 26px; align-items: start; }
.page-main { min-width: 0; }
.art-date { color: inherit; }
.browse-text { white-space: nowrap; }
.pd-specs, .pd-tags { min-width: 0; }
.page-sidebar { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 18px; }
.side-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.side-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.cattree { display: flex; flex-direction: column; gap: 2px; }
.cattree li { display: block; }
.cattree > li > a, .cattree-all {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.cattree a:hover { color: var(--primary); background: var(--bg-soft); }
.cattree a.active { color: var(--primary); background: var(--primary-100); }
.cattree-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cattree-count { font-style: normal; font-size: 10.5px; color: var(--text-muted); background: var(--bg-muted); border-radius: var(--r-full); padding: 1px 7px; }
.cattree-sub { padding-left: 14px; display: flex; flex-direction: column; }
.cattree-sub a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: var(--r-sm);
  font-size: 12.5px; color: var(--text-muted);
}
.side-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.side-keywords a { font-size: 12px; padding: 4px 11px; border-radius: var(--r-full); border: 1px solid var(--border); color: var(--text-muted); }
.side-keywords a:hover { border-color: var(--primary); color: var(--primary); }
.side-line { text-align: center; }
.side-line-icon { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background: rgba(6,199,85,.12); color: #06C755; display: flex; align-items: center; justify-content: center; }
.side-line-icon svg { width: 23px; height: 23px; }
.side-line-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.side-line-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.pg-title { font-size: 20px; font-weight: 800; }
.page-head-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pg-count { font-size: 12.5px; color: var(--text-muted); }
.toolbar { display: inline-flex; align-items: center; gap: 8px; }
.toolbar-label { font-size: 12.5px; color: var(--text-muted); }
.toolbar select {
  height: 36px; padding: 0 32px 0 12px;
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid var(--border); border-radius: var(--r-full);
  color: var(--text); font-size: 12.5px;
  appearance: none; -webkit-appearance: none; cursor: pointer; color-scheme: dark;
}
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; }
.pager-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--bg-card);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  transition: all var(--dur) var(--ease);
}
.pager-btn:hover { border-color: var(--primary); color: var(--primary); }
.pager-btn.is-disabled { opacity: .4; pointer-events: none; }
.pager-info { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ===== 按鈕（LINE）===== */
.btn-line-inquiry { background: #06C755; color: #052013; font-weight: 700; }
.btn-line-inquiry:hover { background: #08D45D; color: #052013; }
.btn-line-inquiry svg { width: 17px; height: 17px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== 商品詳情 ===== */
.pdetail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  margin-bottom: 44px;
}
.pd-gallery { min-width: 0; }
.pd-main-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pd-main-img img { width: 100%; height: 100%; object-fit: contain; }
.pd-noimg { border-radius: var(--r-lg); }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.pd-thumb {
  aspect-ratio: 1/1; border-radius: var(--r); overflow: hidden;
  border: 2px solid var(--border); background: var(--bg-soft); padding: 0;
  transition: border-color var(--dur) var(--ease);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { border-color: var(--primary-600); }
.pd-thumb.active { border-color: var(--primary); }
.pd-info { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pd-cat { align-self: flex-start; margin-bottom: 0; }
.pd-title { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.01em; }
.pd-price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pd-price { font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: -.01em; }
.pd-stock { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: var(--r-full); }
.pd-stock.is-ok { color: #34D399; background: rgba(16,185,129,.12); }
.pd-stock.is-out { color: #F87171; background: rgba(239,68,68,.12); }
.pd-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }
.pd-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.pd-meta-item svg { width: 15px; height: 15px; color: var(--accent); }
.pd-meta-item:nth-child(2) svg { color: var(--primary); }
.pd-block-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.pd-spec-chips { display: flex; flex-direction: column; gap: 8px; }
.sp-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: var(--r);
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  font-size: 13px; color: var(--text-secondary);
}
.sp-chip em { font-style: normal; font-weight: 700; color: var(--primary); font-size: 12.5px; }
.sp-chip em.sp-ok { color: var(--success); }
.sp-chip em.sp-out { color: var(--danger); }
.pd-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-tag { font-size: 12px; padding: 4px 12px; border-radius: var(--r-full); background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-muted); }
.sp-tag:hover { border-color: var(--primary); color: var(--primary); }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-actions .btn { flex: 0 0 auto; }
.pd-desc-box { border-top: 1px solid var(--border-soft); padding-top: 16px; }
/* 硬性要求：商品描述固定高度內滾動，禁止長描述撐長頁面 */
.pd-desc {
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  padding-right: 8px;
}
.pd-desc::-webkit-scrollbar { width: 6px; }
.pd-desc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== 文章雜誌 ===== */
.blog-mag-head { margin-bottom: 24px; }
.blog-mag-head .pg-title { font-size: 24px; }
.blog-mag-sub { margin-top: 8px; font-size: 13.5px; color: var(--text-muted); }
.blog-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #16203A 0%, #1B2745 55%, #241A12 100%);
  padding: 28px;
  margin-bottom: 26px;
  transition: all .25s var(--ease);
}
.blog-hero:hover { border-color: var(--primary-600); transform: translateY(-2px); }
.blog-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,8,12,.15) 0%, rgba(6,8,12,.92) 100%); }
.blog-hero-body { position: relative; z-index: 1; max-width: 760px; display: flex; flex-direction: column; gap: 9px; }
.blog-hero-body .blog-tag { position: static; align-self: flex-start; }
.blog-hero-title { font-size: clamp(22px, 3vw, 30px); line-height: 1.3; color: #fff; }
.blog-hero-excerpt { font-size: 13.5px; color: #CBD5E1; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-hero-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #94A3B8; }
.blog-hero-meta .art-avatar { width: 26px; height: 26px; font-size: 12px; }
.blog-hero-badge {
  position: absolute; z-index: 1; top: 20px; right: 20px;
  padding: 6px 14px; border-radius: var(--r-full);
  background: rgba(30,91,255,.85); color: #fff;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.blog-hero-arrow {
  position: absolute; z-index: 1; right: 26px; bottom: 26px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: #fff; backdrop-filter: blur(6px);
  transition: all var(--dur) var(--ease);
}
.blog-hero:hover .blog-hero-arrow { background: var(--primary); border-color: var(--primary); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-chip {
  padding: 7px 16px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--bg-card);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.blog-date { color: var(--text-muted); }
.blog-views { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); }
.blog-views svg { width: 13px; height: 13px; }
.blog-card-meta { justify-content: space-between; }

/* 文章詳情 */
.art-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px clamp(20px, 4vw, 52px);
  margin-bottom: 44px;
}
.art-head { margin-bottom: 26px; }
.art-cat { position: static; display: inline-block; margin-bottom: 14px; }
.art-title { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.01em; margin-bottom: 16px; }
.art-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }
.art-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.art-avatar-sm { width: 26px; height: 26px; font-size: 12px; }
.art-author { font-weight: 700; color: var(--text-secondary); }
.art-dot { color: var(--text-faint); }
.art-views { display: inline-flex; align-items: center; gap: 5px; }
.art-views svg { width: 14px; height: 14px; color: var(--primary); }
.art-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 28px; border: 1px solid var(--border-soft); }
.art-cover img { width: 100%; }
.art-body { font-size: 15px; line-height: 1.85; color: var(--text-secondary); }
.art-body p { margin: 0 0 18px; }
.art-body h2, .art-body h3, .art-body h4 { color: var(--text); margin: 30px 0 14px; }
.art-body h2 { font-size: 22px; }
.art-body h3 { font-size: 18px; }
.art-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.art-body ul, .art-body ol { margin: 0 0 18px; padding-left: 22px; }
.art-body ul { list-style: disc; }
.art-body ol { list-style: decimal; }
.art-body li { margin-bottom: 8px; }
.art-body img { border-radius: var(--r); margin: 18px 0; max-width: 100%; height: auto; }
.art-body blockquote { border-left: 3px solid var(--primary); background: var(--bg-soft); padding: 12px 18px; border-radius: 0 var(--r) var(--r) 0; margin: 0 0 18px; color: var(--text-muted); }
.art-body pre { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; overflow-x: auto; margin: 0 0 18px; font-size: 13px; }
.art-body code { background: var(--bg-muted); padding: 2px 7px; border-radius: 5px; font-size: 13px; }
.art-body pre code { background: none; padding: 0; }
.art-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 13.5px; display: block; overflow-x: auto; }
.art-body th, .art-body td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.art-body th { background: var(--bg-soft); color: var(--text); }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; padding-top: 22px; border-top: 1px solid var(--border-soft); }
.art-tag-chip { font-size: 12px; padding: 5px 13px; border-radius: var(--r-full); background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-muted); }
.art-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.art-nav-card {
  display: flex; flex-direction: column; gap: 6px; justify-content: center;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 18px;
  color: var(--text); transition: all var(--dur) var(--ease);
  min-width: 0;
}
a.art-nav-card:hover { border-color: var(--primary); }
.art-nav-card b { font-size: 13px; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-nav-next { text-align: right; }
.art-nav-label { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.art-nav-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px; border-radius: var(--r-full);
  border: 1px solid var(--border); color: var(--text-secondary);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  align-self: center;
}
.art-nav-back svg { width: 15px; height: 15px; }
.art-nav-back:hover { border-color: var(--primary); color: var(--primary); }

/* ===== 頁尾補充 ===== */
.footer-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.footer-logo img { max-height: 42px; width: auto; }
.footer-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.footer-ic { flex-shrink: 0; display: inline-flex; color: var(--primary); }
.footer-ic svg { width: 15px; height: 15px; }
.footer-row a:hover { color: var(--primary); }
.footer-line-btn { padding: 0; font-size: 13px; color: var(--text-muted); text-align: left; }
.footer-line-btn:hover { color: #06C755; }
.footer-bottom-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: var(--primary); }

/* ===== FAB LINE 浮鈕 ===== */
.fab-chat {
  position: fixed; left: 28px; bottom: 28px;
  width: 52px; height: 52px; border-radius: 50%;
  background: #06C755; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(6,199,85,.4);
  z-index: 88;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fab-chat svg { width: 26px; height: 26px; }
.fab-chat:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px rgba(6,199,85,.5); color: #fff; }

/* ===== LINE QR 彈窗 ===== */
.line-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .25s var(--ease); }
.line-modal.is-open { visibility: visible; opacity: 1; }
.line-modal-mask { position: absolute; inset: 0; background: rgba(3,5,9,.72); backdrop-filter: blur(3px); }
.line-modal-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 380px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 30px 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98);
  transition: transform .25s var(--ease);
}
.line-modal.is-open .line-modal-card { transform: none; }
.line-modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); background: var(--bg-soft); }
.line-modal-close svg { width: 17px; height: 17px; }
.line-modal-close:hover { color: var(--text); }
.line-modal-badge {
  display: inline-block; padding: 5px 16px; border-radius: var(--r-full);
  background: rgba(6,199,85,.14); color: #06C755;
  font-size: 13px; font-weight: 800; letter-spacing: .06em;
  margin-bottom: 14px;
}
.line-modal-header h3 { font-size: 19px; margin-bottom: 6px; }
.line-modal-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.line-modal-qr {
  width: 190px; height: 190px; margin: 0 auto 14px;
  background: #fff; border-radius: var(--r-lg); padding: 12px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.line-modal-qr img { width: 100%; height: 100%; object-fit: contain; }
.line-qr-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #64748B; }
.line-qr-placeholder svg { width: 56px; height: 56px; }
.line-qr-placeholder span { font-size: 11px; }
.line-modal-scan-tip { font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }
.line-modal-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; border-radius: var(--r-full);
  background: #06C755; color: #052013; font-weight: 700; font-size: 14px;
  margin-bottom: 12px;
}
.line-modal-btn:hover { background: #08D45D; color: #052013; }
.line-modal-btn svg { width: 19px; height: 19px; }
.line-modal-footer { font-size: 11.5px; color: var(--text-faint); }

/* ===== 手機抽屜選單 ===== */
.drawer-mask {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(3,5,9,.6);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease);
}
.drawer-mask.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 304px; max-width: 84vw;
  background: var(--bg-elev); border-right: 1px solid var(--border);
  z-index: 200;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s var(--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-soft); }
.drawer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; min-width: 0; }
.drawer-brand img { max-height: 30px; width: auto; }
.drawer-brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
.drawer-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-close { width: 34px; height: 34px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); }
.drawer-close svg { width: 17px; height: 17px; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.drawer-link { display: block; padding: 12px 14px; border-radius: var(--r); font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.drawer-link:hover { background: var(--bg-soft); color: var(--primary); }
.drawer-group { border-radius: var(--r); overflow: hidden; }
.drawer-group-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--text-secondary);
}
.drawer-group-head:hover { background: var(--bg-soft); }
.drawer-caret { transition: transform .2s var(--ease); color: var(--text-faint); }
.drawer-caret svg { width: 16px; height: 16px; }
.drawer-group.open .drawer-caret { transform: rotate(180deg); }
.drawer-sub { display: none; flex-direction: column; padding: 2px 0 6px 12px; }
.drawer-group.open .drawer-sub { display: flex; }
.drawer-sub a { padding: 10px 14px; font-size: 13px; color: var(--text-muted); border-radius: var(--r-sm); }
.drawer-sub a:hover { color: var(--primary); background: var(--bg-soft); }
.drawer-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-soft); }

/* ===== 滾動淡入 ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== v2 響應式（覆蓋舊斷點）===== */
@media (max-width: 1100px) {
  .product-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pdetail { grid-template-columns: 1fr; gap: 26px; }
  .pd-main-img { max-width: 460px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .browse-wrap { display: none; }
  .nav-links { display: none; }
  .nav-inner { gap: 12px; }
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .hero-side-card { min-width: 240px; flex: 0 0 auto; }
  .promo-row { grid-template-columns: 1fr; }
  .hero-mark { font-size: 130px; right: 18px; }
  .art-nav { grid-template-columns: 1fr; }
  .art-nav-back { order: -1; align-self: flex-start; padding: 10px 18px; }
  .art-nav-next { text-align: left; }
}
@media (max-width: 768px) {
  .header-main { grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; padding: 12px 0; }
  .search-wrap { display: flex; }
  .search-btn { padding: 0 14px; }
  .haction-line { padding: 9px 10px; }
  .haction-line .haction-label { display: none; }
  .pdetail { padding: 18px; gap: 20px; }
  .art-detail { padding: 24px 18px; }
  .blog-hero { min-height: 240px; padding: 20px; }
  .blog-hero-arrow { width: 36px; height: 36px; right: 16px; bottom: 16px; }
  .blog-card-meta { flex-wrap: wrap; gap: 8px; }
  .fab-chat { left: 16px; bottom: 16px; width: 46px; height: 46px; }
  .footer-links { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .ann-text { display: none; }
  .search-btn-text { display: none; }
  .search-btn { padding: 0 16px; }
  .hero-main { padding: 30px 24px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .pd-actions .btn { width: 100%; }
  .product-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pd-price { font-size: 25px; }
  .line-modal-card { padding: 26px 20px 20px; }
}
