/* ============================================================
   Modern Mart · 现代电商主题
   - 无外部 CDN / 无 Google Fonts
   - CSS Grid + Flexbox + clamp() 响应式
   - 配色：深蓝 #0B1B3B + 主蓝 #2D6BFF + 橙 #FF7A45 + 灰阶
   ============================================================ */

:root {
  /* 主题色 */
  --c-bg:          #ffffff;
  --c-bg-soft:     #f5f7fa;
  --c-bg-dark:     #0b1b3b;
  --c-bg-dark-2:   #16264a;
  --c-text:        #1a2238;
  --c-text-soft:   #6b7280;
  --c-text-inv:    #ffffff;
  --c-primary:     #2d6bff;
  --c-primary-d:   #1d4fd6;
  --c-accent:      #ff7a45;
  --c-accent-d:    #ed5a26;
  --c-success:     #16a34a;
  --c-danger:      #dc2626;
  --c-border:      #e5e7eb;
  --c-card:        #ffffff;

  /* 阴影 */
  --sh-sm: 0 1px 2px rgba(11,27,59,.06), 0 1px 3px rgba(11,27,59,.04);
  --sh-md: 0 4px 10px rgba(11,27,59,.06), 0 2px 6px rgba(11,27,59,.04);
  --sh-lg: 0 12px 32px rgba(11,27,59,.10), 0 4px 10px rgba(11,27,59,.06);
  --sh-xl: 0 24px 64px rgba(11,27,59,.14), 0 8px 18px rgba(11,27,59,.08);

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* 间距 */
  --gap: clamp(12px, 2vw, 24px);
  --wrap: 1280px;

  /* 字体 — 系统字体栈，多语种兼容（繁中/简中/英文） */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
          "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei",
          "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: .01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-primary); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: clamp(28px, 5vw, 64px) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-inv); }
.section__head { text-align: center; margin-bottom: clamp(18px, 3vw, 36px); }
.section__title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--c-text);
  position: relative;
  display: inline-block;
}
.section__title::after {
  content: "";
  display: block;
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  border-radius: 2px;
  margin: 12px auto 0;
}
.section--head--left .section__title::after,
.section__head--row .section__title::after {
  margin-left: 0;
}
.section--dark .section__title { color: #fff; }
.section__sub {
  margin-top: 8px;
  font-size: clamp(14px, 2vw, 17px);
  color: var(--c-text-soft);
}
.section--dark .section__sub { color: rgba(255,255,255,.7); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility .35s ease;
  will-change: opacity;
}
#preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
#preloader.vanished { display: none !important; }
.preloader__ring {
  width: 56px; height: 56px;
  border: 4px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  will-change: transform;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- BackToTop ---------- */
.backtotop {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 48px; height: 48px;
  background: var(--c-primary); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-lg);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.backtotop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.backtotop:hover { background: var(--c-primary-d); }
.backtotop svg { width: 22px; height: 22px; }

/* ---------- Topbar ---------- */
.topbar {
  background: #f0f5ff; color: var(--c-text);
  font-size: 13px; padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar__promo { color: var(--c-text-soft); }
.topbar__promo strong { color: var(--c-accent); }
.topbar__links { display: flex; gap: 18px; }
.topbar__links a { color: var(--c-text-soft); }
.topbar__links a:hover { color: var(--c-primary); }

/* ---------- Header ---------- */
/* 现代化Header & Nav样式在文件下方统一定义 */
/* 下拉菜单 */
.nav__dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(11,27,59,.18);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  border: 1px solid rgba(11,27,59,.06);
}
.nav__list > li:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 14px; color: var(--c-text-soft);
}
.nav__dropdown a:hover { background: var(--c-bg-soft); color: var(--c-primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  /* 极简大气冷调背景：
     - 去掉蓝橙对冲渐变和网点蒙版
     - 改为单一冷色系（浅灰蓝 + 淡青灰）超大尺度柔光
     - 对比度极低，接近 Apple / 高端站 "高级白"
  */
  background:
    radial-gradient(1600px 900px at 90% -10%, rgba(170, 196, 255, 0.22), transparent 60%),
    radial-gradient(1400px 800px at -10% 110%, rgba(165, 220, 230, 0.18), transparent 58%),
    linear-gradient(180deg, #fbfcfe 0%, #f6f8fc 100%);
  color: var(--c-text);
}
.hero::before {
  /* 只保留极淡的柔光光晕层，做微弱层次（不做网点纹理） */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 540px at 100% 0%, rgba(130, 165, 235, 0.10), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(130, 200, 215, 0.08), transparent 60%);
  pointer-events: none;
  opacity: .9;
}
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4.5vw, 72px);
  align-items: center; padding: clamp(48px, 7.5vw, 96px) 0;
  min-height: clamp(360px, 54vh, 520px);
  position: relative; z-index: 2;
}
.hero__inner::before,
.hero__inner::after { display: none; }

/* Eyebrow — 统一冷调，去除蓝橙对冲 */
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(45, 107, 255, 0.07);
  color: #2c54bf;
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  margin-bottom: 20px;
  border: 1px solid rgba(45, 107, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 6px 18px rgba(45,107,255,.04);
}
.hero__eyebrow b { color: #2245b0; letter-spacing: .04em; }
.hero__eyebrow .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: linear-gradient(135deg, #2d6bff, #6fa3ff);
  opacity: .9;
  margin: 0 2px;
}
.hero__spark {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d6bff, #6fa3ff);
  color: #fff;
  box-shadow: 0 6px 14px rgba(45,107,255,.25);
}

/* Title — 强调字改为冷调同色系（深空蓝 → 雾霾蓝 → 清灰蓝） */
.hero__title {
  position: relative;
  font-size: clamp(32px, 5.4vw, 64px); line-height: 1.06;
  font-weight: 900; letter-spacing: -.025em; margin-bottom: 18px;
  color: #0f1c3a;
  display: flex; flex-direction: column; gap: 2px;
}
.hero__title .accent-text {
  background: linear-gradient(135deg, #1f4fd8 0%, #3d77ee 40%, #5d8ff0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  position: relative;
  width: fit-content;
}
.hero__title .accent-text::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(45, 107, 255, 0.18), rgba(110, 165, 250, 0.14));
  z-index: -1;
}
.hero__title .title-line { display: none; }

/* Description → Perks 卖点徽章 */
.hero__perks {
  list-style: none; padding: 0;
  /* 继续下移：拉开与大标题之间的视觉距离（手机 32px / 桌面 48px 响应式） */
  margin: clamp(32px, 4.5vw, 48px) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  max-width: 560px;
}
.perk {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,27,59,.06);
  box-shadow: 0 10px 24px -14px rgba(11,27,59,.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.perk:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -16px rgba(11,27,59,.22);
}
.perk__ic {
  flex: 0 0 36px; width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.perk__ic svg { width: 18px; height: 18px; }
.perk__txt { min-width: 0; line-height: 1.2; }
.perk__txt b {
  display: block; font-size: 13.5px; font-weight: 800; color: #0f1c3a; letter-spacing: -.01em;
}
.perk__txt em {
  display: block; font-style: normal; font-size: 11.5px; color: #6a7798; font-weight: 600;
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 四色主题（营销款 · 统一冷调，避免蓝橙对冲） */
.perk--fire  .perk__ic { background: rgba(45, 107, 255, 0.12); color: #1f4fd8; }
.perk--fire:hover    { border-color: rgba(45, 107, 255, 0.30); }
.perk--gift  .perk__ic { background: rgba(80, 140, 255, 0.12); color: #3d77ee; }
.perk--gift:hover    { border-color: rgba(80, 140, 255, 0.30); }
.perk--bolt  .perk__ic { background: rgba(110, 165, 250, 0.14); color: #5d8ff0; }
.perk--bolt:hover    { border-color: rgba(110, 165, 250, 0.32); }
.perk--crown .perk__ic { background: rgba(100, 125, 235, 0.12); color: #4a6be0; }
.perk--crown:hover   { border-color: rgba(100, 125, 235, 0.30); }

/* Perks 响应式：大屏改 4 列横向胶囊 */
@media (min-width: 900px) {
  .hero__perks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: 640px;
  }
  .perk { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 14px 12px; }
  .perk__txt em { font-size: 11px; white-space: normal; }
}
@media (max-width: 560px) {
  .hero__perks { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .perk { padding: 8px 10px; gap: 8px; }
  .perk__ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; }
  .perk__ic svg { width: 16px; height: 16px; }
  .perk__txt b { font-size: 12.5px; }
  .perk__txt em { font-size: 10.5px; white-space: normal; line-height: 1.25; }
}

/* CTA */
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__cta .btn--primary {
  background: linear-gradient(135deg, #2d6bff 0%, #4f86ff 60%, #6fa1ff 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(45,107,255,.32), inset 0 -2px 0 rgba(0,0,0,.08);
  padding: 16px 22px;
}
.hero__cta .btn--primary svg { width: 18px; height: 18px; }
.hero__cta .btn--primary svg:last-child { margin-left: 2px; }
.hero__cta .btn--primary:hover {
  box-shadow: 0 16px 36px rgba(45,107,255,.42), inset 0 -2px 0 rgba(0,0,0,.08);
  filter: brightness(1.04);
  transform: translateY(-2px);
}
.hero__cta .btn--ghost {
  background: #ffffff;
  border: 1px solid rgba(11,27,59,.08);
  color: #0f1c3a;
  box-shadow: 0 8px 22px rgba(11,27,59,.05);
  padding: 16px 22px;
}
.hero__cta .btn--ghost svg { width: 18px; height: 18px; color: #2d6bff; }
.hero__cta .btn--ghost:hover {
  border-color: #2d6bff;
  color: #2d6bff;
  box-shadow: 0 10px 26px rgba(45,107,255,.10);
  transform: translateY(-2px);
}

/* Stats */
.hero__stats {
  display: flex; align-items: stretch; gap: 0;
  margin-top: 32px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(11,27,59,.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 14px 36px rgba(11,27,59,.06);
  width: fit-content;
  flex-wrap: nowrap;
}
.hero__stat {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px;
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  min-width: 0;
}
.hero__stat:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 12px 28px -8px rgba(11,27,59,.15);
}
.stat__ic {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 38px;
}
.stat__ic svg { width: 18px; height: 18px; }
.stat__ic--a { background: linear-gradient(135deg, rgba(45,107,255,.12), rgba(45,107,255,.04)); color: #2d6bff; }
.stat__ic--b { background: linear-gradient(135deg, rgba(114,87,255,.12), rgba(114,87,255,.04)); color: #6b54ff; }
.stat__ic--c { background: linear-gradient(135deg, rgba(255,122,69,.14), rgba(255,122,69,.04)); color: #ff7a45; }
.stat__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero__stat strong {
  display: block; font-size: clamp(18px, 2.4vw, 26px); font-weight: 900; line-height: 1.1;
  background: linear-gradient(135deg, #0f1c3a, #3b4a72);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hero__stat span { font-size: 12.5px; color: #6a7798; font-weight: 600; }
.stat__sep {
  width: 1px; align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(11,27,59,.08) 20%, rgba(11,27,59,.08) 80%, transparent);
  margin: 10px 2px;
}

/* Media */
.hero__media {
  position: relative; aspect-ratio: 4/3;
  border-radius: 26px; overflow: hidden;
  /* 图片背景：干净白底，去掉所有蓝橙渐变蒙版 */
  box-shadow:
    0 30px 60px -26px rgba(45, 107, 255, 0.28),
    0 18px 42px -12px rgba(11, 27, 59, 0.10);
  background: #f8fafd;
  border: 1px solid rgba(255,255,255,.8);
}
.hero__media::after {
  /* 轻微暗角，提升图片层次感（不再用蓝橙渐变叠层） */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.16), transparent 40%, rgba(0,0,0,.04));
  pointer-events: none;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transform: scale(1.01);
}
.hero__ring { display: none; } /* 去掉虚线装饰环，避免花哨 */
.hero__badge {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 34px -14px rgba(11, 27, 59, 0.18);
}
.hero__badge svg { width: 18px; height: 18px; color: #4a6be0; }
.hero__badge b {
  display: block; font-size: 14px; font-weight: 900; color: #0f1c3a; line-height: 1.1;
}
.hero__badge em {
  display: block; font-size: 11.5px; font-style: normal; color: #6a7798;
  margin-top: 2px; font-weight: 600;
}
.hero__badge--tl { top: 16px; left: 16px; }
.hero__badge--tl .hb__dot {
  width: 10px; height: 10px; border-radius: 50%;
  /* 统一冷调：HOT 标识改用蓝（不再橙红醒目） */
  background: linear-gradient(135deg, #2d6bff, #6fa3ff);
  box-shadow: 0 0 0 4px rgba(45, 107, 255, 0.16);
  flex: 0 0 10px;
  animation: none;
}
.hero__badge--br {
  bottom: 18px; right: 18px;
  padding-left: 10px;
}
.hero__badge--br svg {
  padding: 6px; width: 30px; height: 30px; border-radius: 10px;
  background: rgba(45, 107, 255, 0.10);
  color: #2d6bff;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--c-primary), #4f86ff);
  color: #fff; box-shadow: 0 8px 24px rgba(45,107,255,.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--c-primary-d), var(--c-primary));
  color: #fff;
  box-shadow: 0 12px 32px rgba(45,107,255,.45);
  filter: brightness(1.05);
}
.btn--accent  {
  background: linear-gradient(135deg, var(--c-accent), #ff9a7b);
  color: #fff; box-shadow: 0 8px 24px rgba(255,122,69,.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn--accent:hover  {
  background: linear-gradient(135deg, var(--c-accent-d), var(--c-accent));
  color: #fff;
  box-shadow: 0 12px 32px rgba(255,122,69,.45);
  filter: brightness(1.05);
}
.btn--ghost   { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 30px; font-size: 16px; }
.btn--sm { padding: 8px 16px; font-size: 13px; min-height: 36px; }

/* ---------- 产品卡片（淘宝风格 · 现代化） ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pc {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  /* 双层边框质感：外层 1.2px 深灰描边（原来太浅 rgba(11,27,59,.06) → 加倍）+ 内层 1px 白边让边界更 crisp */
  border: 1.2px solid rgba(11,27,59,.14);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.96) inset,
    0 6px 18px rgba(11, 27, 59, 0.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.pc:hover {
  transform: translateY(-4px);
  /* Hover 时边框变蓝更明显，投影也更强 */
  border-color: rgba(45, 107, 255, 0.48);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.98) inset,
    0 0 0 3px rgba(45, 107, 255, 0.08),
    0 18px 40px -10px rgba(45, 107, 255, 0.18),
    0 12px 32px -8px rgba(11,27,59,.10);
}
.pc__media {
  position: relative;
  aspect-ratio: 1/1;
  background: #f5f5f5;
  overflow: hidden;
  /* 媒体区底部加 1px 分界线，把图和文字区视觉上隔开 */
  border-bottom: 1px solid rgba(11,27,59,.08);
}
.pc__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.pc:hover .pc__img { transform: scale(1.06); }

.pc-badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600; color: #fff;
  letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.pc-badge--sale { background: var(--c-accent); }
.pc-badge--new  { background: var(--c-primary); }

.pc__body {
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.pc__title {
  font-size: 13px; font-weight: 400; line-height: 1.4;
  color: var(--c-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  min-height: 36px;
  transition: color .2s;
}
.pc:hover .pc__title { color: var(--c-primary); }

.pc__bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px;
}
.pc__bottom.is-sales-hidden {
  justify-content: flex-start;
}
.pc__bottom.is-sales-hidden .pc__price-row {
  flex: 1;
}
.pc__price-row {
  display: flex; align-items: baseline; gap: 4px;
}
.pc-now {
  font-size: 16px; font-weight: 700;
  color: var(--c-accent);
}
.pc-was {
  font-size: 12px; color: #999;
  text-decoration: line-through;
}
.pc__sold {
  font-size: 11px; color: #999;
  white-space: nowrap;
  padding: 2px 6px;
  background: #f5f5f5;
  border-radius: 4px;
}

/* ---------- 横幅长图 ---------- */
.banner {
  border-radius: 18px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid rgba(11, 27, 59, 0.06);
  box-shadow: 0 8px 32px -12px rgba(11, 27, 59, 0.12);
  position: relative;
}
.banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.banner--promo img {
  min-height: 240px;
  object-fit: cover;
}
.banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,27,59,.75) 0%, rgba(11,27,59,.5) 40%, transparent 70%);
  pointer-events: none;
}
.banner__content {
  position: absolute; left: clamp(24px, 5vw, 48px); top: 50%;
  transform: translateY(-50%);
  color: #fff; max-width: 40%;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 2;
}
.banner__tag {
  display: inline-block; padding: 4px 12px;
  background: rgba(255,255,255,.2); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; font-size: 12px; font-weight: 600;
  width: fit-content;
}
.banner__title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.banner__desc {
  font-size: clamp(13px, 1.5vw, 16px);
  opacity: .9; margin: 0;
}
.banner__btn {
  display: inline-block; margin-top: 4px;
  padding: 10px 22px; border-radius: 12px;
  background: var(--c-accent); color: #fff;
  font-weight: 700; font-size: 14px;
  text-decoration: none; width: fit-content;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 20px -6px rgba(255,107,54,.4);
}
.banner__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(255,107,54,.55);
}
@media (max-width: 640px) {
  .banner__content { max-width: 70%; left: 18px; }
  .banner__title { font-size: 20px; }
  .banner--promo img { min-height: 160px; }
}

/* ---------- 商品列表页布局（sidebar + main）---------- */
.pl-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar */
.pl-sidebar {
  position: sticky;
  top: 80px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(11, 27, 59, 0.06);
  box-shadow: 0 2px 12px -4px rgba(11, 27, 59, 0.06);
  padding: 16px 0;
}
.pl-sidebar__block {
  padding: 0 16px;
}
.pl-sidebar__block + .pl-sidebar__block {
  border-top: 1px solid rgba(11, 27, 59, 0.06);
  margin-top: 16px;
  padding-top: 16px;
}
.pl-sidebar__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-soft);
  margin: 0 0 10px;
  padding: 0 4px;
}
.pl-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pl-sidebar__list li {
  margin: 0;
}
.pl-sidebar__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--c-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .18s ease, color .18s ease;
  line-height: 1.3;
}
.pl-sidebar__list a:hover {
  background: rgba(45, 107, 255, 0.06);
  color: var(--c-primary);
}
.pl-sidebar__list li.active a {
  background: rgba(45, 107, 255, 0.1);
  color: var(--c-primary);
  font-weight: 600;
}
.pl-sidebar__item-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-soft);
  background: #f0f3fa;
  padding: 2px 8px;
  border-radius: 10px;
}
.pl-sidebar__list li.active .pl-sidebar__item-count {
  background: rgba(45, 107, 255, 0.15);
  color: var(--c-primary);
}

/* Main content */
.pl-main {
  min-width: 0;
}
.pl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pl-head .section__title {
  font-size: clamp(20px, 2.5vw, 26px);
  margin-bottom: 4px;
}
.pl-head .section__sub {
  font-size: 13px;
}

/* Sort bar */
.pl-sort {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.pl-sort a {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-soft);
  text-decoration: none;
  transition: all .18s ease;
  white-space: nowrap;
}
.pl-sort a:hover {
  color: var(--c-text);
  background: rgba(11, 27, 59, 0.04);
}
.pl-sort a.active {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(45, 107, 255, 0.25);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(11, 27, 59, 0.08);
  color: var(--c-text);
  text-decoration: none;
  transition: all .18s ease;
}
.pg-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.pg-btn svg {
  width: 16px;
  height: 16px;
}
.pg-btn--disabled {
  opacity: 0.35;
  pointer-events: none;
}
.pg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(11, 27, 59, 0.08);
  color: var(--c-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .18s ease;
}
.pg-num:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.pg-num.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(45, 107, 255, 0.25);
}

/* ---------- 文章列表 ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.article-card {
  background: #fff;
  border: 1px solid rgba(11,27,59,.06);
  border-radius: 14px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(11,27,59,.14);
}
.article-card__media { aspect-ratio: 16/9; background: var(--c-bg-soft); overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card__meta { font-size: 12px; color: var(--c-text-soft); }
.article-card__title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.article-card__excerpt { font-size: 14px; color: var(--c-text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card__more { margin-top: auto; color: var(--c-primary); font-weight: 600; font-size: 14px; }

/* ---------- Feature Strip（悬浮卡片） ---------- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: -40px; position: relative; z-index: 5;
}
.feature {
  background: #fff; border-radius: 16px; padding: 22px 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 10px 30px -10px rgba(11,27,59,.12);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(11,27,59,.04);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(11,27,59,.18);
}
.feature__icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px;
  background: linear-gradient(135deg, #eef3ff, #e8f0ff);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
}
.feature:hover .feature__icon {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature__title { font-weight: 700; font-size: 15px; }
.feature__desc { font-size: 13px; color: var(--c-text-soft); margin-top: 2px; }

/* ---------- Footer ---------- */
.footer { background: #f8f9fc; color: var(--c-text-soft); padding: clamp(40px, 6vw, 72px) 0 0; border-top: 1px solid rgba(11,27,59,.06); }
.footer__top {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(11,27,59,.06);
}
.footer__brand .header__logo { color: var(--c-text); margin-bottom: 14px; }
.footer__brand p { font-size: 14px; max-width: 320px; margin-bottom: 18px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: #fff; color: var(--c-text-soft);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  border: 1px solid rgba(11,27,59,.06);
}
.footer__social a:hover {
  background: var(--c-primary); color: #fff;
  transform: translateY(-2px);
}
.footer__social svg { width: 18px; height: 18px; }
.footer__col h4 { color: var(--c-text); font-size: 15px; margin-bottom: 14px; font-weight: 700; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a { font-size: 14px; color: var(--c-text-soft); }
.footer__col ul a:hover { color: var(--c-primary); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 0; font-size: 13px; flex-wrap: wrap;
}
.footer__bottom a { color: var(--c-text-soft); }
.footer__bottom a:hover { color: var(--c-primary); }
.footer__pay { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__pay span {
  background: #fff; padding: 4px 10px; border-radius: 8px;
  font-size: 11px; color: var(--c-text-soft);
  border: 1px solid rgba(11,27,59,.06);
}

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 18px 0; font-size: 13px; color: var(--c-text-soft); }
.breadcrumb ol { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--c-border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a:hover { color: var(--c-primary); }

/* ---------- 产品详情页 ---------- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 50px); align-items: start; }
.pd-gallery__main {
  aspect-ratio: 1/1; background: var(--c-bg-soft); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-md); margin-bottom: 14px;
}
.pd-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-gallery__thumb {
  width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden;
  border: 2px solid var(--c-border); cursor: pointer; transition: border-color .2s ease;
}
.pd-gallery__thumb.active, .pd-gallery__thumb:hover { border-color: var(--c-primary); }
.pd-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info__cat { font-size: 13px; color: var(--c-text-soft); text-transform: uppercase; letter-spacing: .08em; }
.pd-info__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 8px 0 14px; }
.pd-info__rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #f5a623; }
.pd-info__rating .count { color: var(--c-text-soft); font-size: 13px; }
.pd-info__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.pd-info__price .now { font-size: 32px; font-weight: 800; color: var(--c-primary); }
.pd-info__price .was { font-size: 18px; color: var(--c-text-soft); text-decoration: line-through; }
.pd-info__price .off { background: rgba(255,122,69,.12); color: var(--c-accent-d); padding: 4px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; }
.pd-info__desc { color: var(--c-text-soft); margin-bottom: 22px; line-height: 1.7; }
.pd-info__row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pd-info__row .lbl { color: var(--c-text-soft); font-size: 14px; min-width: 80px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-border); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 40px; height: 40px; font-size: 18px; color: var(--c-text); }
.qty button:hover { background: var(--c-bg-soft); }
.qty input { width: 50px; height: 40px; border: 0; text-align: center; background: transparent; }
.pd-info__cta { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.pd-info__cta .btn { flex: 1; min-width: 180px; }
.pd-meta { border-top: 1px solid var(--c-border); padding-top: 18px; margin-top: 18px; }
.pd-meta dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.pd-meta dt { color: var(--c-text-soft); }
.pd-tabs { margin-top: 40px; }
.pd-tabs__head { display: flex; gap: 4px; border-bottom: 1px solid var(--c-border); margin-bottom: 22px; }
.pd-tabs__head button {
  padding: 12px 20px; font-weight: 600; color: var(--c-text-soft);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.pd-tabs__head button.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.pd-tabs__body { color: var(--c-text-soft); line-height: 1.8; }

/* ---------- Empty 状态 ---------- */
.empty {
  text-align: center; padding: 60px 20px; color: var(--c-text-soft);
}
.empty__icon { font-size: 48px; margin-bottom: 14px; opacity: .4; }

/* ---------- Section Header 两端对齐变体 ---------- */
.section__head--row {
  display: flex; justify-content: space-between; align-items: flex-end; text-align: left;
  flex-wrap: wrap; gap: 12px;
}
.section__head--row .more { color: var(--c-primary); font-weight: 600; font-size: 14px; }

/* ============================================================
   响应式断点
   ============================================================ */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-text { max-width: 100px; }
  .header__row { gap: 14px; }
  /* 商品列表页：sidebar 收窄 */
  .pl-layout { grid-template-columns: 180px 1fr; gap: 20px; }
  .pl-sidebar { position: static; }
}

@media (max-width: 768px) {
  /* 商品列表页：sidebar 移到顶部 */
  .pl-layout { grid-template-columns: 1fr; }
  .pl-sidebar { position: static; order: 2; }
  .pl-main { order: 1; }
  .pl-head { flex-direction: column; align-items: flex-start; }
  .pl-sort { flex-wrap: wrap; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }

  /* 分页移动端紧凑 */
  .pg-num, .pg-btn { min-width: 34px; height: 34px; font-size: 13px; }
  .pagination { gap: 6px; }

  /* 横幅长图：移动端圆角略收 */
  .banner { border-radius: 12px; }

  /* Topbar 隐藏次要链接 */
  .topbar__links { display: none; }
  .topbar .wrap { justify-content: center; text-align: center; }

  /* Header：Logo左，汉堡右，搜索框独占下一行 */
  .header__row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }
  .header__search {
    width: 100%;
    order: 3;
  }
  .header__actions {
    margin-left: auto;
  }
  .search-btn { padding: 7px 12px; font-size: 12px; }
  .header__burger {
    display: inline-flex; width: 40px; height: 40px;
    border-radius: 10px; background: var(--c-bg-soft);
    align-items: center; justify-content: center;
  }
  .header__burger svg { width: 20px; height: 20px; }

  /* Nav：折叠成抽屉 */
  .nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: 80%; max-width: 320px;
    background: #fff; box-shadow: 0 24px 64px -12px rgba(11,27,59,.2);
    transform: translateX(-100%); transition: transform .3s ease;
    z-index: 100; padding: 20px 0; overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; padding: 0 12px; }
  .nav__list > li { width: 100%; }
  .nav__list > li > a { padding: 12px 16px; border-radius: 8px; font-size: 15px; }
  .nav__dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding: 4px 8px; background: var(--c-bg-soft); border-radius: 8px;
    margin-top: 2px;
  }
  .nav__dropdown a { padding: 10px 14px; }
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(11,27,59,.5); z-index: 99;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  }
  .nav-overlay.show { opacity: 1; visibility: visible; }

  /* Hero：单列 */
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 16/9; }

  /* 产品网格：手机 2 列 */
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pc__body { padding: 8px 10px 10px; gap: 4px; }
  .pc__title { font-size: 12px; min-height: 32px; }
  .pc-now { font-size: 15px; }
  .pc__sold { font-size: 10px; padding: 1px 4px; }
  .pc__bottom { gap: 4px; }
  .pc:hover { transform: none; box-shadow: none; border-color: rgba(11,27,59,.06); }
  .prod-card__media img.img-hover { display: none; }
  .prod-card__body { padding: 12px; }

  /* 详情页：单列 */
  .pd-grid { grid-template-columns: 1fr; }
  .pd-info__cta .btn { min-width: 0; flex: 1 1 100%; }

  /* Footer：单列 */
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  /* Section 间距收紧 */
  .section { padding: 28px 0; }

  /* BackToTop 更小 */
  .backtotop { width: 42px; height: 42px; right: 14px; bottom: 14px; }

  /* Features 单列 */
  .features { margin-top: -20px; grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero__cta .btn { flex: 1; }
}

/* 防止图文比例失衡 */
img { background: var(--c-bg-soft); }

/* 打印 */
@media print {
  .topbar, .nav, .backtotop, #preloader, .hero__media { display: none; }
  body { color: #000; background: #fff; }
}

/* 可访问性：尊重用户减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
  .preloader__ring { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   全局美化补丁 · Polish Layer
   ============================================================ */

/* Section header 精致化 */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 32px;
}
.section-head__title {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800; letter-spacing: -.02em;
  color: var(--c-bg-dark);
  position: relative;
  padding-left: 18px;
}
.section-head__title::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 28px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--c-primary), var(--c-accent));
}
.section-head__desc {
  font-size: 14px; color: var(--c-text-soft); margin-top: 4px;
}
.section-head__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px;
  color: var(--c-primary);
  transition: gap .2s ease;
}
.section-head__more:hover { gap: 10px; }

/* Badge / tag 精致化 */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  border-radius: 10px;
  text-transform: uppercase;
}
.badge--new    { background: linear-gradient(135deg, #00c9a7, #00b38f); color: #fff; }
.badge--sale   { background: linear-gradient(135deg, #ff6b6b, #ee5a5a); color: #fff; }
.badge--hot    { background: linear-gradient(135deg, #f7971e, #ffd200); color: #1a2238; }
.badge--free   { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }

/* Newsletter 精致化 */
.newsletter {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 20% 50%, rgba(102,126,234,.25), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(240,147,251,.2), transparent 50%),
    linear-gradient(135deg, #1a2a5e, #2d1b69);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
  color: #fff;
  text-align: center;
}
.newsletter h3 {
  font-size: clamp(22px, 3vw, 32px); font-weight: 800;
  margin-bottom: 10px;
}
.newsletter p {
  color: rgba(255,255,255,.78); margin-bottom: 24px;
  font-size: 15px;
}
.newsletter__form {
  display: flex; gap: 10px; max-width: 460px; margin: 0 auto;
}
.newsletter__form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.55); }
.newsletter__form input:focus {
  outline: none;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.16);
}
.newsletter__form button {
  padding: 14px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 24px rgba(102,126,234,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.newsletter__form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(102,126,234,.5);
}
.newsletter__form button:active { transform: translateY(0); }

/* Article card 精致化 */
.article-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(11,27,59,.06);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -18px rgba(11,27,59,.22);
}
.article-card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff, #fef0eb);
}
.article-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card__cat {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #eef3ff, #fef0eb);
  color: var(--c-primary);
  font-size: 12px; font-weight: 700;
  border-radius: 10px;
  align-self: flex-start;
}
.article-card__title {
  font-size: 17px; font-weight: 700; line-height: 1.45;
  color: var(--c-bg-dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__meta {
  display: flex; gap: 14px;
  font-size: 13px; color: var(--c-text-soft);
  margin-top: 2px;
}

/* 产品详情页精致化 */
.pd-gallery__thumbs {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.pd-gallery__thumb {
  width: 80px; height: 80px; border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--c-border);
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
  background: var(--c-bg-soft);
}
.pd-gallery__thumb:hover { transform: scale(1.05); }
.pd-gallery__thumb.is-active {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(45,107,255,.15);
}
.pd-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Header / Nav 现代化 */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(11,27,59,.04);
}
.header__row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}
.header__logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--c-text);
  flex-shrink: 0;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary), #4f86ff);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 4px 12px rgba(45,107,255,.25);
  transition: transform .25s ease;
}
.header__logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-text {
  font-size: 15px; font-weight: 600;
  color: var(--c-text);
  letter-spacing: -.01em;
  max-width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header__search {
  flex: 0 1 auto;
  width: min(560px, 52vw);
  margin-left: auto;
  position: relative; display: flex; align-items: center;
  background: var(--c-bg-soft);
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: all .2s ease;
  padding: 0 4px 0 44px;
  height: 44px;
  min-width: 0;
}
.header__search:focus-within {
  background: #fff;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(45,107,255,.1);
}
.header__search input {
  flex: 1;
  border: none; background: transparent;
  height: 100%;
  font-size: 14px; color: var(--c-text);
  outline: none;
}
.header__search input::placeholder { color: #b0b7c3; }
.header__search .ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #9ba3af;
  pointer-events: none;
}
.search-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--c-primary);
  color: #fff;
  font-size: 13px; font-weight: 600;
  transition: background .18s, transform .18s;
}
.search-btn:hover { background: var(--c-primary-d); transform: scale(1.03); }
.search-btn:active { transform: scale(.97); }

.nav__list { display: flex; gap: 2px; align-items: center; padding: 6px 0; }
.nav__list > li { position: relative; }
.nav__list > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 16px; font-weight: 500; font-size: 14px;
  color: var(--c-text-soft);
  border-radius: 8px;
  transition: all .18s ease;
  white-space: nowrap;
}
.nav__list > li > a:hover {
  color: var(--c-text);
  background: var(--c-bg-soft);
}
.nav__list > li.active > a,
.nav__list > li > a.is-active {
  color: var(--c-primary);
  background: rgba(45,107,255,.08);
  font-weight: 600;
}
.nav__list .caret { width: 12px; height: 12px; opacity: .5; transition: transform .18s; }
.nav__list > li:hover .caret { transform: rotate(180deg); opacity: .7; }

.header__actions {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.header__burger { display: none; }
.iconbtn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text-soft);
  background: transparent;
  transition: all .18s ease;
}
.iconbtn:hover {
  background: var(--c-bg-soft);
  color: var(--c-primary);
}
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn--cart:hover { background: rgba(255,122,69,.1); color: var(--c-accent); }
.iconbtn .badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--c-accent); color: #fff;
  border-radius: 8px;
  font-size: 10px; line-height: 17px; font-weight: 700;
  text-align: center;
  border: 1.5px solid #fff;
}

/* Top bar 精致化 */
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar a:hover { color: var(--c-primary); }
.topbar select {
  background: transparent; border: none; color: var(--c-text-soft);
  font-size: 13px; cursor: pointer;
}
.topbar select option { color: var(--c-text); }

/* Breadcrumb 精致化 */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--c-text-soft);
}
.breadcrumb ol { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb li::after {
  content: "›";
  margin-left: 8px;
  color: var(--c-text-soft);
  font-weight: 400;
}
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--c-text-soft); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb li:last-child { color: var(--c-text); font-weight: 500; }

/* Category page 侧边栏 */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(11,27,59,.06);
  padding: 24px;
}
.widget__title {
  font-size: 16px; font-weight: 700;
  color: var(--c-bg-dark);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
.widget__title::after {
  content: "";
  position: absolute; bottom: -1px; left: 0;
  width: 32px; height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  border-radius: 2px;
}
.widget-list { display: flex; flex-direction: column; gap: 2px; }
.widget-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px; color: var(--c-text);
  transition: background .2s ease, color .2s ease;
}
.widget-list a:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.widget-list .count {
  background: var(--c-bg-soft);
  color: var(--c-text-soft);
  font-size: 12px; font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
}
.widget-list a:hover .count {
  background: var(--c-primary);
  color: #fff;
}
.price-range {
  display: flex; flex-direction: column; gap: 12px;
}
.price-range input[type="range"] {
  width: 100%;
  accent-color: var(--c-primary);
}
.price-range__labels {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--c-text-soft);
}

/* Pagination 精致化 */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 40px;
}
.pagination a, .pagination span {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-border);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pagination a:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.pagination .is-current {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.pagination .is-disabled {
  opacity: .4; pointer-events: none;
}

/* Back to top */
.backtotop {
  position: fixed; right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--c-bg-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(11,27,59,.3);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .2s ease;
  z-index: 90;
}
.backtotop.is-visible {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.backtotop:hover { background: var(--c-primary); }
.backtotop svg { width: 22px; height: 22px; }

/* 全局按钮精致化 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 14px;
  font-weight: 600; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--c-primary), #4f86ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(45,107,255,.3);
}
.btn--primary:hover {
  box-shadow: 0 12px 28px rgba(45,107,255,.45);
  transform: translateY(-2px);
}
.btn--accent {
  background: linear-gradient(135deg, var(--c-accent), #ff9a6b);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,122,69,.3);
}
.btn--accent:hover {
  box-shadow: 0 12px 28px rgba(255,122,69,.45);
  transform: translateY(-2px);
}
.btn--ghost {
  background: #fff;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn--ghost:hover {
  background: var(--c-bg-soft);
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 16px; min-height: 52px; }
.btn--sm { padding: 10px 18px; font-size: 14px; min-height: 38px; border-radius: 12px; }

/* 动画：产品卡片入场 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.pc {
  animation: fadeInUp .5s ease backwards;
}
.pc:nth-child(1) { animation-delay: 0s; }
.pc:nth-child(2) { animation-delay: .05s; }
.pc:nth-child(3) { animation-delay: .1s; }
.pc:nth-child(4) { animation-delay: .15s; }
.pc:nth-child(5) { animation-delay: .2s; }
.pc:nth-child(6) { animation-delay: .25s; }
.pc:nth-child(7) { animation-delay: .3s; }
.pc:nth-child(8) { animation-delay: .35s; }

/* ---------- BackToTop ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--c-primary), #4f86ff);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--c-primary-d), var(--c-primary));
}

/* 选中文本颜色 */
::selection {
  background: rgba(45,107,255,.18);
  color: var(--c-bg-dark);
}

/* Mobile menu 精致化 */
.nav-toggle {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: none;
  align-items: center; justify-content: center;
  background: var(--c-bg-soft);
  color: var(--c-text);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Category page ---------- */
.cat-hero {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
  border-radius: 22px;
  /* 统一冷调大气：去掉蓝橙对冲 + 极低对比度 */
  background:
    radial-gradient(700px 360px at 0% 0%, rgba(110, 165, 250, 0.16), transparent 62%),
    radial-gradient(700px 360px at 100% 100%, rgba(150, 190, 235, 0.12), transparent 62%),
    linear-gradient(135deg, #ffffff 0%, #f5f8fd 100%);
  border: 1px solid rgba(11,27,59,.06);
  box-shadow: 0 20px 40px -26px rgba(45, 107, 255, 0.16), 0 10px 24px rgba(11,27,59,.04);
  margin-bottom: 20px;
}
.cat-hero__icon {
  width: 84px; height: 84px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(45, 107, 255, 0.10);
  color: #2d6bff;
  flex: 0 0 84px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
  overflow: hidden;
}
.cat-hero__icon svg { width: 44px; height: 44px; }
.cat-hero__emoji { font-size: 40px; line-height: 1; }
.cat-hero__eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: #2d6bff;
  background: rgba(45,107,255,.1);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 8px;
}
.cat-hero__title {
  margin: 0 0 6px; font-size: clamp(22px, 3vw, 32px);
  font-weight: 900; color: #0f1c3a; letter-spacing: -.02em;
}
.cat-hero__desc {
  margin: 0; font-size: 14px; line-height: 1.7; color: #4b5777;
  max-width: 640px;
}
.cat-hero__meta {
  display: flex; gap: 20px; margin-top: 14px; flex-wrap: wrap;
}
.cat-hero__meta .cm {
  display: flex; align-items: baseline; gap: 6px;
}
.cat-hero__meta .cm b { font-size: 18px; font-weight: 900; color: #0f1c3a; background: linear-gradient(135deg, #1f4fd8, #5d8ff0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cat-hero__meta .cm em { font-style: normal; font-size: 12.5px; color: #6a7798; font-weight: 600; }
.cat-hero__btn { align-self: center; white-space: nowrap; }
.cat-hero__btn svg { width: 18px; height: 18px; }

/* Chips */
.cat-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(11,27,59,.06);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 10px;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(11,27,59,.06);
  color: #4b5777;
  font-size: 13.5px; font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}
.cat-chip em {
  font-style: normal; font-size: 11px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(11,27,59,.05); color: #6a7798;
}
.cat-chip:hover {
  border-color: #2d6bff; color: #2d6bff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(45,107,255,.35);
}
.cat-chip:hover em { background: rgba(45,107,255,.1); color: #2d6bff; }
.cat-chip.is-active {
  background: linear-gradient(135deg, #2d6bff, #4f86ff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px -10px rgba(45,107,255,.55);
}
.cat-chip.is-active em { background: rgba(255,255,255,.2); color: #fff; }

/* Sort toolbar */
.sort {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(11,27,59,.06);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(11,27,59,.04);
}
.sort__item {
  padding: 8px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  color: #4b5777; text-decoration: none;
  transition: all .2s ease;
}
.sort__item:hover { color: #2d6bff; background: rgba(45,107,255,.06); }
.sort__item:last-child { border-right: none; }

/* Category grid cards */
.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  padding: 26px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(11,27,59,.06);
  color: inherit; text-decoration: none;
  transition: all .25s ease;
  position: relative; overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,107,255,.06), transparent 60%);
  opacity: 0; transition: opacity .25s ease;
}
.cat-card:hover,
.cat-card.is-active {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 20px 40px -16px rgba(45,107,255,.25), 0 10px 20px rgba(11,27,59,.07);
}
.cat-card:hover::before,
.cat-card.is-active::before { opacity: 1; }
.cat-card__icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(45,107,255,.10), rgba(255,122,69,.10));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; line-height: 1;
  color: #2d6bff;
  position: relative; z-index: 1;
}
.cat-card__name {
  font-size: 15px; font-weight: 800; color: #0f1c3a;
  position: relative; z-index: 1;
}
.cat-card__count {
  font-size: 12px; font-weight: 600; color: #6a7798;
  position: relative; z-index: 1;
}
.cat-card.is-active::after {
  content: "";
  position: absolute; right: 12px; top: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, #2d6bff, #ff7a45);
  box-shadow: 0 0 0 4px rgba(45,107,255,.14);
}

/* Breadcrumb active color */
.breadcrumb ol li.active { color: #2d6bff; font-weight: 700; }

/* Category page responsive */
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .cat-hero { grid-template-columns: auto 1fr; }
  .cat-hero__btn { grid-column: 1 / -1; justify-self: start; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cat-hero { grid-template-columns: 1fr; padding: 20px; text-align: left; }
  .cat-hero__icon { width: 64px; height: 64px; flex: 0 0 64px; }
  .cat-hero__icon svg { width: 34px; height: 34px; }
  .cat-hero__emoji { font-size: 32px; }
  .cat-hero__btn { justify-self: stretch; justify-content: center; text-align: center; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 18px 10px; }
  .cat-card__icon { width: 52px; height: 52px; font-size: 26px; }
  .sort { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .sort__item { white-space: nowrap; }
}

/* 响应式 refinement */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 280px; max-width: 85vw;
    background: #fff;
    box-shadow: -20px 0 60px rgba(11,27,59,.2);
    padding: 80px 24px 24px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 200;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__list > li > a { padding: 12px 16px; font-size: 16px; }
  .nav__list > li:hover .nav__dropdown {
    opacity: 1; visibility: visible; transform: none;
    position: static; box-shadow: none;
    padding: 4px 0 8px 16px;
  }
  .nav__overlay {
    position: fixed; inset: 0;
    background: rgba(11,27,59,.45);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 150;
  }
  .nav__overlay.is-visible { opacity: 1; visibility: visible; }
}
