/* ═══════════════════════════════════════════════════════════════
   Kawaii Fashion Shop — Winter Snow theme
   Design laws applied:
     · OKLCH colors, no pure black/white, neutrals tinted to brand hue
     · No gradient text (was: logo / h1 em / footer logo)
     · No decorative glassmorphism
     · Motion uses ease-out-quint, never animates layout properties
     · Type hierarchy via scale + weight (≥1.25 ratio between steps)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Winter Snow palette, OKLCH ─────────────────────── */
  --moonlight: #efece3;
  --moonlight: oklch(94.2% 0.012 92);    /* #F0ECDD 暖米白 */
  --frost: #899ec0;
  --frost:     oklch(69.5% 0.055 259);   /* #8BA3C5 雾蓝 */
  --steel: #425877;
  --steel:     oklch(45.5% 0.058 258);   /* #495B7D 钢青 */
  --storm: #1c2e43;
  --storm:     oklch(29.5% 0.045 254);   /* #23354D 深靛 */
  --oxford: #07142d;
  --oxford:    oklch(19.5% 0.055 262);   /* #02122F 牛津蓝 */

  /* 衍生调：中性色全部染色，不出现 #fff / #000 */
  --bg: #f1f5f9;
  --bg:        oklch(96.9% 0.007 250);
  --surface: #fbfdfe;
  --surface:   oklch(99.2% 0.003 250);
  --surface-2: #f3f7fc;
  --surface-2: oklch(97.5% 0.008 250);
  --tint: #e1eaf6;
  --tint:      oklch(93.5% 0.019 256);
  --tint-warm: #f4f0e6;
  --tint-warm: oklch(95.6% 0.014 92);
  --line: #dae0e8;
  --line:      oklch(90.5% 0.013 254);
  --line-soft: #e7ecf2;
  --line-soft: oklch(94.0% 0.010 254);
  --muted: #6a798d;
  --muted:     oklch(57.0% 0.036 256);
  --body: #304054;
  --body:      oklch(36.5% 0.041 255);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --ease:      cubic-bezier(.22, 1, .36, 1);   /* ease-out-quint */
  --ease-soft: cubic-bezier(.33, 1, .68, 1);   /* ease-out-cubic */
  --shadow: 0 1px 2px rgba(7, 20, 45, 0.05),
               0 6px 20px rgba(7, 20, 45, 0.06);
  --shadow:    0 1px 2px oklch(19.5% 0.055 262 / .05),
               0 6px 20px oklch(19.5% 0.055 262 / .06);
  --shadow-lg: 0 2px 4px rgba(7, 20, 45, 0.05),
               0 18px 46px rgba(7, 20, 45, 0.15);
  --shadow-lg: 0 2px 4px oklch(19.5% 0.055 262 / .05),
               0 18px 46px oklch(19.5% 0.055 262 / .15);

  --shell: 1240px;

  /* 兼容旧变量名 */
  --pink: var(--frost);
  --pink-dark: var(--steel);
  --pink-soft: var(--tint);
  --lilac: var(--frost);
  --ink: var(--body);
  --card: var(--surface);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

::selection { background: rgba(137, 158, 192, 0.28);
 background: oklch(69.5% 0.055 259 / .28); }

/* ─────────────── 顶栏 ─────────────── */
.topbar {
  background: var(--oxford);
  color: #cfd9e5;
  color: oklch(88% 0.020 254);
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 16px;
}

/* ─────────────── 导航 ─────────────── */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 245, 249, 0.88);
  background: oklch(96.9% 0.007 250 / .88);
  /* glassmorphism 只用于 sticky 导航：功能性，不是装饰 */
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--oxford);           /* 纯色，无渐变文字 */
  white-space: nowrap;
}
.logo .mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--oxford);
  color: var(--moonlight);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
}
.logo .thin { font-weight: 500; color: var(--steel); }

.nav-links { display: flex; gap: 4px; font-size: 14px; }
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--oxford);
  cursor: pointer;
}
.nav-links a {
  font-weight: 600;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: var(--radius-xs);
  transition: color .18s var(--ease-soft), background-color .18s var(--ease-soft);
}
.nav-links a:hover { color: var(--oxford); background: var(--tint); }

.search-box { margin-left: auto; }
.search-box input {
  width: 210px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--body);
  outline: none;
  transition: width .28s var(--ease), border-color .18s var(--ease-soft);
}
.search-box input::placeholder { color: var(--muted); opacity: .8; }
.search-box input:focus { border-color: var(--frost); width: 250px; }

/* ═══════════════ Hero ═══════════════ */
/* 场景：清晨雪后的窗边，阳光斜射在结霜的玻璃上 —— 冷调底 + 一道暖光 */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 24px 100px;
  background: var(--oxford);
  color: var(--moonlight);
  isolation: isolate;
}

/* 极光：一道暖光斜穿冷底（低饱和，不抢正文） */
.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 120%;
  background: radial-gradient(58% 68% at 22% 8%, rgba(131, 168, 207, 0.55) 0%, transparent 62%),
    radial-gradient(46% 54% at 82% 92%, rgba(196, 183, 144, 0.22) 0%, transparent 60%);
  background:
    radial-gradient(58% 68% at 22% 8%, oklch(72% 0.070 250 / .55) 0%, transparent 62%),
    radial-gradient(46% 54% at 82% 92%, oklch(78% 0.055 92 / .22) 0%, transparent 60%);
  z-index: -1;
}
/* 细雪纹理 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image: radial-gradient(1.6px 1.6px at 12% 22%, rgba(252, 252, 252, 0.55), transparent),
    radial-gradient(1.4px 1.4px at 38% 62%, rgba(252, 252, 252, 0.4), transparent),
    radial-gradient(1.8px 1.8px at 67% 18%, rgba(252, 252, 252, 0.5), transparent),
    radial-gradient(1.3px 1.3px at 86% 72%, rgba(252, 252, 252, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 54% 88%, rgba(252, 252, 252, 0.4), transparent);
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, oklch(99% 0 0 / .55), transparent),
    radial-gradient(1.4px 1.4px at 38% 62%, oklch(99% 0 0 / .40), transparent),
    radial-gradient(1.8px 1.8px at 67% 18%, oklch(99% 0 0 / .50), transparent),
    radial-gradient(1.3px 1.3px at 86% 72%, oklch(99% 0 0 / .35), transparent),
    radial-gradient(1.5px 1.5px at 54% 88%, oklch(99% 0 0 / .40), transparent);
}

.hero-inner { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }

.hero .eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--frost);
  border: 1px solid rgba(137, 158, 192, 0.38);
  border: 1px solid oklch(69.5% 0.055 259 / .38);
  border-radius: 999px;
  padding: 6px 15px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--moonlight);
}
.hero h1 .accent {
  color: var(--frost);          /* 纯色强调，非渐变文字 */
  font-style: italic;
  font-weight: 700;
}

.hero p {
  font-size: 16.5px;
  line-height: 1.65;
  color: #b3bfcd;
  color: oklch(80% 0.024 252);
  margin: 0 auto 36px;
  max-width: 56ch;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─────────────── 按钮 ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), box-shadow .24s var(--ease),
              background-color .2s var(--ease-soft), border-color .2s var(--ease-soft);
  will-change: transform;
}
.btn:active { transform: translateY(0) scale(.985); }

.btn-primary {
  background: var(--moonlight);
  color: var(--oxford);
  box-shadow: 0 10px 30px rgba(7, 20, 45, 0.35);
  box-shadow: 0 10px 30px oklch(19.5% 0.055 262 / .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(7, 20, 45, 0.45);
 box-shadow: 0 16px 40px oklch(19.5% 0.055 262 / .45); }

.btn-ghost {
  background: transparent;
  color: var(--moonlight);
  border-color: rgba(238, 235, 226, 0.3);
  border-color: oklch(94% 0.012 92 / .30);
}
.btn-ghost:hover { border-color: rgba(238, 235, 226, 0.7);
 border-color: oklch(94% 0.012 92 / .70); background: rgba(238, 235, 226, 0.08);
 background: oklch(94% 0.012 92 / .08); }

/* 浅底上的 ghost 按钮 */
.btn-ghost-light {
  background: var(--surface);
  color: var(--body);
  border-color: var(--line);
}
.btn-ghost-light:hover { border-color: var(--frost); color: var(--oxford); }

/* ═══════════════ 容器 ═══════════════ */
.container { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

.section { padding: 64px 0; }
.section + .section { padding-top: 8px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.section-head h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--oxford);
  margin: 0;
  line-height: 1.2;
}
.section-head h2 small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 7px;
}
.link-more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--steel);
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s var(--ease-soft), color .2s var(--ease-soft);
}
.link-more:hover { color: var(--oxford); border-color: var(--frost); }

/* ═══════════════ 分类条（重做：隐藏滚动条 + 边缘渐隐 + 拖拽）═══════════════ */
.cats-wrap {
  position: relative;
  margin-bottom: 24px;
}
/* 左右渐隐遮罩，暗示"还有内容" */
.cats-wrap::before,
.cats-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 56px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .25s var(--ease-soft);
}
.cats-wrap::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.cats-wrap::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.cats-wrap.can-left::before  { opacity: 1; }
.cats-wrap.can-right::after  { opacity: 1; }

.cats {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  cursor: grab;
  /* 彻底隐藏滚动条 */
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.cats::-webkit-scrollbar { display: none; height: 0; width: 0; }
.cats.dragging { cursor: grabbing; scroll-snap-type: none; }
.cats.dragging .chip { pointer-events: none; }

.chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--steel);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s var(--ease-soft), color .2s var(--ease-soft),
              border-color .2s var(--ease-soft), transform .2s var(--ease);
}
.chip .n {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color .2s var(--ease-soft);
}
.chip:hover { border-color: var(--frost); color: var(--oxford); transform: translateY(-1px); }
.chip:hover .n { color: var(--steel); }
.chip.active {
  background: var(--oxford);
  border-color: var(--oxford);
  color: var(--moonlight);
}
.chip.active .n { color: #b3bfcd;
 color: oklch(80% 0.024 252); }

/* ═══════════════ 商品网格 ═══════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 26px 22px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease-soft);
  will-change: transform;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}

.card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--tint);
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card-img img { transform: scale(1.06); }

/* 分类标签：底部渐变压暗，比悬浮胶囊更干净 */
.card-cat {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 13px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--moonlight);
  background: linear-gradient(180deg, transparent, rgba(7, 20, 45, 0.72));
  background: linear-gradient(180deg, transparent, oklch(19.5% 0.055 262 / .72));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .28s var(--ease-soft), transform .28s var(--ease);
}
.card:hover .card-cat { opacity: 1; transform: translateY(0); }

.card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.42;
  color: var(--body);
  margin: 0 0 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 41px;
  transition: color .2s var(--ease-soft);
}
.card:hover .card-title { color: var(--oxford); }

.card-price {
  margin-top: auto;
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--oxford);
  font-variant-numeric: tabular-nums;
}
.card-price::before {
  content: '$';
  font-size: 12px;
  font-weight: 700;
  vertical-align: super;
  margin-right: 1.5px;
  color: var(--steel);
}

/* ═══════════════ 分页 ═══════════════ */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 48px 0 8px;
  flex-wrap: wrap;
}
.pager button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--steel);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background-color .18s var(--ease-soft), color .18s var(--ease-soft),
              border-color .18s var(--ease-soft), transform .18s var(--ease);
}
.pager button:hover:not(:disabled):not(.active) {
  border-color: var(--frost); color: var(--oxford); transform: translateY(-1px);
}
.pager button.active {
  background: var(--oxford);
  border-color: var(--oxford);
  color: var(--moonlight);
}
.pager button:disabled { opacity: .32; cursor: not-allowed; }

/* ═══════════════ 工具条 ═══════════════ */
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.toolbar select {
  padding: 10px 15px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--steel);
  cursor: pointer;
  outline: none;
  transition: border-color .18s var(--ease-soft);
}
.toolbar select:focus { border-color: var(--frost); }
.result-count {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════ 商品详情 ═══════════════ */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}
@media (max-width: 880px) { .detail { grid-template-columns: 1fr; gap: 30px; } }

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-soft);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding: 3px 2px 8px;
  scrollbar-width: none;
}
.thumbs::-webkit-scrollbar { display: none; }
.thumbs img {
  width: 76px; height: 76px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  outline: 1px solid var(--line-soft);
  transition: border-color .2s var(--ease-soft);
}
.thumbs img:hover { border-color: var(--frost); }
.thumbs img.active { border-color: var(--oxford); }

.detail h1 {
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.03em;
  color: var(--oxford);
  margin: 0 0 16px;
}
.detail .price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--oxford);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.detail .price::before {
  content: '$';
  font-size: 19px; font-weight: 700;
  vertical-align: super; margin-right: 2px;
  color: var(--steel);
}

.meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tag {
  background: var(--tint);
  color: var(--steel);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 12px;
  border-radius: 999px;
}
.sku {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 26px;
  font-variant-numeric: tabular-nums;
}
.desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 62ch;
}

/* ═══════════════ 状态 / 加载 ═══════════════ */
.state { text-align: center; padding: 76px 20px; color: var(--muted); }
.state .big { font-size: 44px; margin-bottom: 12px; line-height: 1; }
.spinner {
  width: 32px; height: 32px;
  margin: 0 auto 14px;
  border: 3px solid var(--line);
  border-top-color: var(--steel);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════ 页脚 ═══════════════ */
footer {
  margin-top: 72px;
  padding: 52px 24px 34px;
  background: var(--oxford);
  color: #aeb9c5;
  color: oklch(78% 0.022 252);
  text-align: center;
}
footer .f-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--moonlight);            /* 纯色，非渐变文字 */
  margin-bottom: 12px;
}
footer .f-logo .mark {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--moonlight);
  color: var(--oxford);
  border-radius: 7px;
  font-size: 13px;
}
footer p { margin: 6px 0; font-size: 13.5px; color: #95a0ac;
 color: oklch(70% 0.022 252); }
footer .links {
  margin: 24px 0 6px;
  display: flex; gap: 8px;
  justify-content: center; flex-wrap: wrap;
}
footer .links a {
  font-size: 13.5px;
  font-weight: 600;
  color: #aeb9c5;
  color: oklch(78% 0.022 252);
  padding: 7px 15px;
  border-radius: 999px;
  transition: background-color .2s var(--ease-soft), color .2s var(--ease-soft);
}
footer .links a:hover { background: rgba(252, 252, 252, 0.1);
 background: oklch(99% 0 0 / .10); color: var(--moonlight); }
footer .fine {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(252, 252, 252, 0.1);
  border-top: 1px solid oklch(99% 0 0 / .10);
  font-size: 12.5px;
  color: #7e8792;
  color: oklch(62% 0.020 252);
}

/* ═══════════════ 面包屑 ═══════════════ */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 28px 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { transition: color .18s var(--ease-soft); }
.breadcrumb a:hover { color: var(--steel); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb strong { color: var(--body); font-weight: 650; }

/* ═══════════════ 响应式 ═══════════════ */
@media (max-width: 860px) {
  .nav-inner { position: relative; gap: 12px; padding: 12px 16px; }
  .nav-toggle { display: inline-flex; }
  /* 移动端：导航变成下拉面板（汉堡按钮控制） */
  .nav-links {
    position: absolute;
    top: 100%; left: 12px; right: 12px;
    flex-direction: column;
    gap: 2px;
    display: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 15px; border-radius: var(--radius-xs); }
  .logo { font-size: 17px; }
  .search-box { margin-left: auto; flex: 1 1 auto; min-width: 0; }
  .search-box input, .search-box input:focus { width: 100%; min-width: 0; font-size: 16px; }  /* iOS: <16px 聚焦会自动放大页面 */
  .hero { padding: 62px 20px 72px; }
  .section { padding: 46px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 16px 13px; }
  .card-body { padding: 12px 13px 14px; }
  .card-title { font-size: 13px; min-height: 37px; }
  .card-price { font-size: 15.5px; }
  .section-head h2 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════ 静态页正文 (.prose) ═══════════════ */
.prose {
  max-width: 780px;
  padding: 8px 0 30px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--body);
}
.prose h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--oxford);
  margin: 6px 0 22px;
  line-height: 1.18;
}
.prose h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; color: var(--oxford); margin: 34px 0 12px; }
.prose h3 { font-size: 18.5px; font-weight: 750; color: var(--storm); margin: 26px 0 10px; }
.prose h4, .prose h5 { font-size: 15.5px; font-weight: 750; color: var(--steel); margin: 20px 0 8px; text-transform: none; }
.prose h4 + p, .prose h5 + p { margin-top: 4px; }
.prose p { margin: 0 0 15px; }
.prose a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--frost); transition: color .18s var(--ease-soft); }
.prose a:hover { color: var(--oxford); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--frost); font-weight: 700; }
.prose strong { color: var(--storm); font-weight: 750; }
.prose blockquote {
  margin: 18px 0; padding: 12px 18px;
  border-left: 3px solid var(--frost);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--storm);
}
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 10px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--surface-2); color: var(--storm); font-weight: 700; }
/* 独立成行的 <strong>（FAQ 问题行）→ 问题标题样式 */
.prose > strong {
  display: block;
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--oxford);
}
/* Elementor 计数器 → 数据点 */
.prose .stat { margin: 18px 0; color: var(--muted); font-size: 13.5px; }
.prose .stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--oxford);
}

/* ═══════════════ 小修：h1 标题 / 导航激活态 / 面包屑分隔 ═══════════════ */
.section-head h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--oxford);
  margin: 0;
  line-height: 1.2;
}
.section-head h1 small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 7px;
}
.nav-links a.active { color: var(--oxford); background: var(--tint); }
.breadcrumb > span { opacity: .4; }
@media (max-width: 860px) {
  .section-head h1 { font-size: 20px; }
  .prose h1 { font-size: 25px; }
  .prose h2 { font-size: 20px; }
}

/* ═══════════════ 浏览器/移动端适配补丁 ═══════════════ */
.thumbs { -webkit-overflow-scrolling: touch; }   /* iOS 惯性横滑 */
.prose table { display: block; max-width: 100%; overflow-x: auto; }  /* 窄屏表格横滚，不撑爆页面 */
.nav-toggle { -webkit-tap-highlight-color: transparent; }

/* ═══════════════ 品牌徽章（ZERONE DIARY logo）═══════════════ */
.logo .logo-img { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; }
footer .f-logo .logo-img { width: 26px; height: 26px; }
@media (max-width: 860px) { .logo .logo-img { width: 30px; height: 30px; } }

/* ═══════════════ 艺术字标：Prata × Parisienne（自托管 woff2）═══════════════
   选择依据（impeccable brand 字体程序）：声音词 delicate / preppy-crest / winter-boutique；
   拒绝反射默认（Playfair·Fraunces·Cormorant 在禁单）→ Didone 时装衬线 + 签名体，Diary 手写切题 */
@font-face {
  font-family: 'Prata';
  src: url('/fonts/prata-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Parisienne';
  src: url('/fonts/parisienne-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
.logo {
  font-family: 'Prata', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: .012em;
}
.logo .thin {
  font-family: 'Parisienne', 'Segoe Script', cursive;
  font-weight: 400;
  font-size: 25px;
  margin-left: 4px;
  display: inline-block;
  line-height: 1.08;
}
footer .f-logo {
  font-family: 'Prata', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
}
footer .f-logo .thin {
  font-family: 'Parisienne', 'Segoe Script', cursive;
  font-size: 24px;
  margin-left: 3px;
}
@media (max-width: 860px) {
  .logo { font-size: 18px; }
  .logo .thin { font-size: 22px; }
}
