/* ============================================================================
   Romie Rose — 设计系统
   ----------------------------------------------------------------------------
   视觉参照 Brandy Melville 的公开观感，骨架保留极简：衬线全大写标题、
   细线分隔、商品图优先的紧凑网格。
   2026-09-14 按客户反馈整体提亮加暖：奶油底 + 粉彩点缀、正文转暖灰、
   交互元素改胶囊圆角、阴影转柔，观感更「小清新 / 可爱」。
   注意卡片图片刻意不加圆角，保持商品图的干净边界。

   所有颜色/尺寸都走 :root 变量；新增组件前先确认变量名真实存在，
   写错变量名不会报错、只会静默回落成继承值。
   ========================================================================== */

:root {
  /* 色彩 —— 奶油底 + 粉彩点缀。
     原版是白底 + 冷灰 + 近黑，观感偏冷偏硬；这一版整体提亮加暖：
     ink 由冷黑改为暖深棕，正文由 #717171 冷灰改为暖灰，
     分隔线加暖，面层改用淡粉奶油，并补一个 blush 做点缀色。

     ⚠️ 提亮有下限：正文类 Token 必须同时对 --bg(#fffdfc) 和
     --surface(#fdf5f1) 达到 4.5:1（WCAG AA 小字）。第一版把 muted
     压到 #ab9f96 只有 2.55:1，等于把辅助文字做成不可读 —— 已回退。
     本组取值实测：body 5.03/4.74，muted 5.08/4.78，sale 5.03/4.74，
     ok 5.23（对表单状态底 #f2f7f3）。改色前请重算，别再往下压。
     注：--surface-2 只作图片占位背景，其上不落文字，故不参与该约束。 */
  --ink: #332c27;
  --body: #776c64;
  --muted: #786b62;
  --line: #f2e9e2;
  --line-strong: #e6d8ce;
  --bg: #fffdfc;
  --surface: #fdf5f1;
  --surface-2: #fbeae5;
  --blush: #f7d9d5;
  --sale: #b04f5c;
  --ok: #457055;
  /* 原先这里还有 --sage / --sand 两个点缀色，全站零引用（商品色块走
     data.js 里的 colourHex 内联值），已删除。别再往这里塞「以后可能要用」
     的颜色 —— 改了不生效的 Token 比没有更糟。 */

  /* 形态。胶囊 + 小圆角是「可爱」感知的主要来源，但不动版式骨架，
     所以仍显专业。卡片图片刻意不加圆角，保持商品图本身的干净边界 */
  --radius: 999px;
  --radius-sm: 10px;

  /* 字体。Georgia 与 Windows 自带，无需外部字体文件；
     中文字体必须带 Windows 回退（审核端常用 Windows，缺失会掉成方块） */
  --font: Georgia, "Times New Roman", Times, "Songti SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 尺寸 */
  --header-h: 118px;
  --announce-h: 0px;
  --page-max: 1400px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(12px, 1.4vw, 20px);

  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 14px 44px rgba(51, 44, 39, .07);
}

/* ------------------------------------------------------------------ 基础 */
*, *::before, *::after { box-sizing: border-box; }
/* 注意：兜横向溢出不能用 body{overflow-x:hidden}。
   一旦写在 body 上，body 就成了滚动容器（overflow-y 计算为 auto），
   position:sticky 的页头会直接失效 —— 实测页头随页面滚走。
   根元素上的 overflow-x: clip 也拦不住 position:fixed 的 off-canvas 抽屉
   （实测 390px 视口下仍可横向拖动 131px）。
   正解是让溢出元素自己被裁剪，见下方 .drawer-layer。 */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
}
body.is-locked { overflow: hidden; }
/* height:auto 是必须的，不是可选的。
   标签上的 width/height 属性会变成 presentational hint（相当于 height:1413px），
   作者样式里若没写 height，这个 hint 就会生效，于是 aspect-ratio 被彻底忽略
   —— 图片按原始像素高度渲染，卡片高度直接超标数倍。 */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
}
h1 { font-size: clamp(22px, 3vw, 34px); }
h2 { font-size: clamp(17px, 2vw, 22px); }
h3 { font-size: 15px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* 页头用 sticky。注意 #site-header 这层包裹必须 display:contents：
   否则 sticky 只能在「和自己一样高」的父容器里吸附，等于立刻失效
   —— 实测页头会随页面正常滚走，看起来像没写 sticky。 */
#site-header { display: contents; }

[id] { scroll-margin-top: calc(var(--header-h) + 30px); }

/* 栅格/弹性容器里的长内容（无空格的长串、长地址、占位标记）会把列撑破。
   给子项补 min-width:0，列的自动最小尺寸才不会被内容顶开。 */
.footer__top > *, .grid > *, .cat-grid > *, .co > *, .pdp > *, .promise > * { min-width: 0; }

/* hidden 属性必须能压过作者写的 display（否则 display:grid 会让它失效） */
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(40px, 6vw, 84px) 0; }
.section--tight { padding: clamp(28px, 4vw, 52px) 0; }
.section--surface { background: var(--surface); }

.section-head { text-align: center; margin-bottom: clamp(22px, 3vw, 38px); }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 14px; }
.section-head--left { text-align: left; }

/* 待填占位标记：显眼，但不假装是真值。
   overflow-wrap 必须有：[[social.instagram]] 这类无空格长串
   在窄屏会把栅格列直接撑破（实测 390px 下全站横向溢出 131px）。 */
.pending-token {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 1px 7px;
  border: 1px dashed var(--sale);
  border-radius: 2px;
  background: #fdf3f2;
  color: var(--sale);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .04em;
}

/* -------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 30px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink); color: #fff;
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--bg); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
/* .btn--light 用在首屏图上。hover 必须改成「实心翻转」——
   原方案是透明底 + 白字，靠旧首屏图的暗部才勉强可读；
   换成淡粉奶油图后，白字直接消失在浅背景上（对比度约 1.1:1）。 */
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--light:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 8px 18px; font-size: 11px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--ink); color: #fff; }

.link-under {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  color: var(--ink);
  transition: border-color .2s var(--ease);
}
.link-under:hover { border-color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* -------------------------------------------------------- 公告条 */
.announce {
  background: var(--blush); color: var(--ink);
  font-family: var(--font-ui);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; padding: 9px var(--gutter);
}
.announce span + span::before { content: "·"; margin: 0 10px; opacity: .5; }

/* ---------------------------------------------------------- 页头 */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,253,252,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; min-height: 66px;
}
.header__left { display: flex; align-items: center; gap: 4px; }
.header__logo {
  color: var(--ink); font-size: clamp(17px, 2.2vw, 23px);
  letter-spacing: .3em; text-transform: uppercase; white-space: nowrap;
  padding-left: .3em; /* 抵消末位字距，视觉居中 */
}
.header__right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; color: var(--ink);
  font-family: var(--font-ui); font-size: 11px; letter-spacing: .08em;
}
.icon-btn:hover { color: var(--muted); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn__count {
  position: absolute; top: 2px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: none; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  font-size: 10px; line-height: 1;
}
.icon-btn__count.is-on { display: inline-flex; }
.menu-toggle { display: none; }

/* 主导航 */
.nav { border-top: 1px solid var(--line); }
.nav__inner {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 2.4vw, 38px);
  min-height: 51px; flex-wrap: wrap;
  list-style: none;
}
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 14px 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__item:hover .nav__link::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link--sale { color: var(--sale); }
.nav__link--sale::after { background: var(--sale); }

/* 下拉面板 */
.mega {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 224px; padding: 16px 22px;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease);
  z-index: 70;
}
.nav__item:hover .mega, .nav__item:focus-within .mega {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.mega__link {
  display: block; padding: 7px 0;
  font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .08em;
  color: var(--body); white-space: nowrap;
}
.mega__link:hover { color: var(--ink); }
.mega__cols { display: flex; gap: 40px; }
.mega__title {
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}

/* ------------------------------------------------------ 移动端抽屉 */
/* 关停态的抽屉停在视口外，直接放在 body 下会给文档带来横向溢出
   （实测 390px 视口下可横向拖动 131px），而且 position:fixed 元素
   不受根元素 overflow-x: clip 约束。做法是套一层「视口尺寸 + 裁剪」的固定层：
   · inset:0 让层本身恰好等于视口，不产生任何溢出
   · overflow:hidden 把抽屉的位移裁掉
   · transform 让本层成为 fixed 后代的包含块，抽屉才会被它裁到
   · pointer-events:none 保证这层不挡住页面点击，抽屉自身再开回来
   这样既消掉横向溢出，又保留了开合动画。 */
.drawer-layer {
  position: fixed; inset: 0; z-index: 200;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
}
.drawer-layer .drawer { pointer-events: auto; }
.drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 1;
  width: min(88vw, 380px);
  background: var(--bg); border-right: 1px solid var(--line);
  transform: translateX(-102%);
  /* visibility 必须一起关掉，不能只靠「transform 移出视口」+ aria-hidden。
     实测（真实按 Tab 逐一记录 activeElement）：抽屉关闭时里面 12 个可聚焦元素
     仍会被逐次 Tab 到，焦点落到 x=-340 的屏幕外，用户完全看不见焦点在哪。
     原因是 aria-hidden 只把内容移出**无障碍树**，不移出**键盘 Tab 顺序** ——
     这正是 axe 的 aria-hidden-focus 规则，属 WCAG 2.4.3（焦点顺序）/
     2.4.7（焦点可见）失败。
     visibility:hidden 同时移出 Tab 顺序与无障碍树，且各浏览器都支持；
     本文件里 .scrim 一直就是这么写的，这里只是把同一模式补齐。
     transition 里给 visibility 加 .34s 延迟，让关闭动画先播完再真正隐藏。 */
  visibility: hidden;
  transition: transform .34s var(--ease), visibility 0s linear .34s;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .34s var(--ease), visibility 0s; }
.drawer--right { inset: 0 0 0 auto; border-right: 0; border-left: 1px solid var(--line); transform: translateX(102%); }
.drawer--right.is-open { transform: none; }
.drawer__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 2;
}
.drawer__title { font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.drawer__body { padding: 8px var(--gutter) 32px; }
.mnav__group { border-bottom: 1px solid var(--line); }
.mnav__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 15px 0; text-align: left;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.mnav__toggle[aria-expanded="true"] .mnav__chev { transform: rotate(180deg); }
.mnav__chev { transition: transform .25s var(--ease); }
.mnav__panel { padding: 2px 0 12px; }
.mnav__panel a {
  display: block; padding: 7px 0 7px 14px;
  font-family: var(--font-ui); font-size: 12px; color: var(--body);
}
.mnav__panel a:hover { color: var(--ink); }
.mnav__link {
  display: block; padding: 15px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.mnav__link--sale { color: var(--sale); }

.scrim {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(51,44,39,.34);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------- 搜索 */
.search {
  position: fixed; inset: 0 0 auto 0; z-index: 210;
  background: var(--bg); border-bottom: 1px solid var(--line);
  transform: translateY(-102%);
  /* 同 .drawer：关闭时只靠 translateY 移出视口不够，搜索框与关闭按钮
     仍会被 Tab 到（实测第 29、30 跳，y=-142 屏幕外）。理由详见 .drawer 处的注释。 */
  visibility: hidden;
  transition: transform .34s var(--ease), visibility 0s linear .34s;
  padding: 26px 0 30px;
}
.search.is-open { transform: none; visibility: visible; transition: transform .34s var(--ease), visibility 0s; }
.search__bar { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.search__input {
  flex: 1; border: 0; background: none; outline: none;
  font-size: clamp(17px, 2.6vw, 24px); color: var(--ink);
}
.search__input::placeholder { color: var(--muted); }
/* 隐藏原生清除按钮：只写 appearance:none 在部分 Chromium 上仍会渲染，必须补 display:none */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
input[type="search"]::-moz-search-cancel-button { display: none; }
.search__hint { margin-top: 14px; font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }
.search__results { margin-top: 20px; max-height: 56vh; overflow-y: auto; }
.search__row { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.search__row img { width: 46px; height: 63px; object-fit: cover; background: var(--surface-2); }
.search__row b { display: block; color: var(--ink); font-weight: 400; font-size: 14px; }
.search__row span { font-family: var(--font-ui); font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------- Hero */
.hero { position: relative; background: var(--surface-2); }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: clamp(420px, 68vh, 720px); object-fit: cover; object-position: 62% center; }
.hero__copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  max-width: min(560px, 52%);
}
.hero__eyebrow {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: #5f5a52; margin-bottom: 14px;
}
.hero__copy h1 { font-size: clamp(26px, 4.2vw, 46px); margin-bottom: 14px; letter-spacing: .1em; }
.hero__copy p { color: #5f5a52; max-width: 40ch; margin-bottom: 24px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 双栏编辑图 */
.editorial { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; }
.editorial__media { position: relative; overflow: hidden; background: var(--surface-2); }
.editorial__media img { width: 100%; aspect-ratio: 1280 / 1024; object-fit: cover; }
.editorial__copy { padding: clamp(28px, 5vw, 76px); }
.editorial__copy h2 { margin-bottom: 14px; }
.editorial__copy p { max-width: 46ch; margin-bottom: 22px; }
.editorial--flip .editorial__media { order: 2; }

/* 分类卡 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.cat-card { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.cat-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .7s var(--ease); }
.cat-card:hover img { transform: scale(1.04); }
.cat-card__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 16px 16px;
  /* 浅色蒙版 + 暖深棕字：与粉彩基调一致。用 .92 起步保证小字号在
     浅色商品图上仍有足够对比度（不要为了通透降到 .8 以下） */
  background: linear-gradient(to top, rgba(255,253,252,.93), rgba(255,253,252,.58) 55%, transparent);
  color: var(--ink);
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}

/* ------------------------------------------------------ 商品卡片 */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap) var(--gap);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; }
.card__media { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.card__media img {
  width: 100%; aspect-ratio: 1024 / 1413; object-fit: cover;
  transition: transform .7s var(--ease);
}
.card:hover .card__media img { transform: scale(1.035); }
/* 卡片链接铺满图片层，按钮作兄弟节点浮在上面（按钮不能塞进 <a> 里） */
.card__link { position: absolute; inset: 0; z-index: 1; }
.card__flags { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.flag {
  padding: 4px 11px; background: var(--bg); color: var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.flag--sale { background: var(--sale); color: #fff; }
.card__quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.card:hover .card__quick, .card:focus-within .card__quick { opacity: 1; transform: none; }
@media (hover: none) { .card__quick { display: none; } }
.card__info { padding: 12px 2px 0; }
.card__name { color: var(--ink); font-size: 14px; line-height: 1.45; }
.card__meta { font-family: var(--font-ui); font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.price { display: flex; align-items: baseline; gap: 9px; margin-top: 6px; font-family: var(--font-ui); font-size: 13px; color: var(--ink); }
.price del { color: var(--muted); font-size: 12px; }
.price ins { text-decoration: none; color: var(--sale); font-weight: 600; }

.empty {
  padding: clamp(48px, 10vw, 110px) 0; text-align: center;
}
.empty h3 { margin-bottom: 10px; }
.empty p { color: var(--muted); margin-bottom: 22px; }
/* 404 页的两个并排按钮。.btn 是 inline-flex，同处一个块里会紧贴，
   必须靠 flex + gap 分开（别用 &nbsp; 凑间距，换行时会散） */
.empty__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-bottom: 22px;
}

/* 横向滚动轨道 */
.rail {
  display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  /* 有 padding-inline 时必须补 scroll-padding-inline，
     否则 snap 把首卡吸到边缘，视觉上首卡被切 */
  scroll-padding-inline: var(--gutter);
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.rail > * { flex: 0 0 clamp(200px, 22vw, 272px); scroll-snap-align: start; }

/* -------------------------------------------------- 采集页工具栏 */
.page-head { padding: clamp(28px, 4vw, 52px) 0 clamp(16px, 2vw, 26px); text-align: center; }
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--muted); font-size: 13.5px; }
.crumbs { font-family: var(--font-ui); font-size: 11px; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.crumbs a:hover { color: var(--ink); }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: var(--gap); flex-wrap: wrap;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 15px; border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--body); transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar__right { display: flex; align-items: center; gap: 14px; }
.count { font-family: var(--font-ui); font-size: 11.5px; color: var(--muted); }
.sort {
  border: 1px solid var(--line-strong); background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 8px 12px; font-family: var(--font-ui); font-size: 11px;
  letter-spacing: .06em; color: var(--ink);
}

/* --------------------------------------------------- 商品详情页 */
.pdp { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 18px); }
.pdp__main { background: var(--surface-2); overflow: hidden; }
.pdp__main img { width: 100%; aspect-ratio: 1024 / 1413; object-fit: cover; }
.pdp__info h1 { font-size: clamp(19px, 2.4vw, 26px); margin-bottom: 10px; }
.pdp__price { font-family: var(--font-ui); font-size: 17px; color: var(--ink); margin: 14px 0 4px; display: flex; gap: 10px; align-items: baseline; }
.pdp__price del { color: var(--muted); font-size: 14px; }
.pdp__price ins { color: var(--sale); text-decoration: none; font-weight: 600; }
.pdp__sku { font-family: var(--font-ui); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.pdp__colour { font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .08em; color: var(--body); margin: 18px 0 6px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; }
.swatch i { width: 17px; height: 17px; border: 1px solid var(--line-strong); display: inline-block; }
.field-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  margin: 20px 0 9px;
}
.field-label button { font-size: 11px; letter-spacing: .06em; text-transform: none; color: var(--body); border-bottom: 1px solid var(--line-strong); }
.size-row { display: flex; gap: 8px; flex-wrap: wrap; }
.size-opt {
  min-width: 54px; padding: 11px 12px;
  border: 1px solid var(--line-strong); background: var(--bg);
  /* 尺码用小圆角而非胶囊：胶囊会把 XS/S/M/L 挤成药丸，反而难扫读 */
  border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: 12px; letter-spacing: .06em; color: var(--ink);
  transition: all .2s var(--ease);
}
.size-opt:hover { border-color: var(--ink); }
.size-opt.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pdp__actions { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.pdp__note { font-family: var(--font-ui); font-size: 11.5px; color: var(--muted); margin-top: 14px; }

.acc { border-top: 1px solid var(--line); margin-top: 26px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 0; cursor: pointer; list-style: none;
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 15px; color: var(--body); }
.acc details[open] summary::after { content: "\2013"; }
.acc__body { padding: 0 0 18px; font-size: 14px; color: var(--body); }
.acc__body ul { margin: 0; padding-left: 18px; }

.size-table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 12px; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; }
.size-table th { background: var(--surface); color: var(--ink); font-weight: 600; letter-spacing: .06em; }

/* -------------------------------------------------------- 政策页 */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.tab {
  padding: 9px 16px; border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--body); transition: all .2s var(--ease);
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.panel[hidden] { display: none; }
.prose { max-width: 76ch; margin: 0 auto; }
.prose h2 { margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 8px; color: var(--ink); letter-spacing: .04em; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 13px; margin: 6px 0 18px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); color: var(--ink); font-weight: 600; }

/* -------------------------------------------------- 经营主体透明块 */
.entity {
  background: var(--surface); border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
}
.entity dl { margin: 0; display: grid; grid-template-columns: 210px 1fr; gap: 10px 22px; }
.entity dt { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.entity dd { margin: 0; color: var(--ink); font-size: 14px; }
.entity dd .zh { display: block; }

/* -------------------------------------------------------- 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .06em; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: 14px;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--sale); }
.field__err { font-family: var(--font-ui); font-size: 11px; color: var(--sale); display: none; }
.field.is-invalid .field__err { display: block; }
.field__hint { font-family: var(--font-ui); font-size: 11px; color: var(--muted); }
.req { color: var(--sale); }

.form-status {
  margin-top: 14px; padding: 12px 15px;
  border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-ui); font-size: 12.5px; color: var(--ink);
}
.form-status--err { border-color: var(--sale); background: #fdf3f2; color: var(--sale); }
.form-status--ok { border-color: var(--ok); background: #f2f7f3; color: var(--ok); }
.form-status[hidden] { display: none !important; }

/* ------------------------------------------------------ 支付标识 */
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pay-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 29px;
  border: 1px solid var(--line-strong); background: var(--bg);
}
.pay-badge svg { width: 100%; height: 100%; display: block; }
.pay-badge--text {
  width: auto; padding: 0 11px;
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: .06em; color: var(--ink);
}

/* ---------------------------------------------------------- 结账页 */
.co { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
/* hidden 打不过 display:grid，必须显式补一条 */
.co__grid[hidden] { display: none !important; }
.co__summary { position: sticky; top: calc(var(--header-h) + 18px); background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.co__summary h3 { margin-bottom: 14px; }
.co__lines { border-top: 1px solid var(--line); }
.co-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-line img { width: 52px; height: 72px; object-fit: cover; background: var(--surface-2); }
.co-line__t { flex: 1; }
.co-line__t b { display: block; color: var(--ink); font-weight: 400; font-size: 13.5px; }
.co-line__t span { font-family: var(--font-ui); font-size: 11px; color: var(--muted); }
.co-line__p { font-family: var(--font-ui); font-size: 13px; color: var(--ink); }
.co__totals { margin-top: 14px; font-family: var(--font-ui); font-size: 13px; }
.co__totals div { display: flex; justify-content: space-between; padding: 7px 0; }
.co__totals div.is-total { border-top: 1px solid var(--line-strong); margin-top: 8px; padding-top: 13px; font-size: 15px; color: var(--ink); font-weight: 600; }
.co__duties { margin-top: 14px; font-family: var(--font-ui); font-size: 11.5px; color: var(--muted); }
.co-secure { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--font-ui); font-size: 11px; color: var(--muted); }
.co-req-note { font-family: var(--font-ui); font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.co__methods { display: grid; gap: 12px; margin-top: 10px; }
.co-method { border: 1px solid var(--line); padding: 15px 17px; background: var(--bg); }
.co-method b { display: block; color: var(--ink); font-weight: 400; font-size: 14.5px; margin-bottom: 5px; }
.co-method p { font-size: 13px; color: var(--body); }
.radio-row { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 14px; }
.radio-row input { margin-top: 4px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 13.5px; }
.check-row input { margin-top: 4px; }

/* ---------------------------------------------------------- 页脚 */
.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 0; }
.footer__top { padding: clamp(34px, 5vw, 62px) 0 26px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(20px, 3vw, 44px); }
.footer h3 { font-size: 11px; font-family: var(--font-ui); font-weight: 700; letter-spacing: .16em; margin-bottom: 14px; }
.footer a { display: block; padding: 5px 0; font-family: var(--font-ui); font-size: 12.5px; color: var(--body); }
.footer a:hover { color: var(--ink); }
.footer__about { font-size: 13px; color: var(--body); max-width: 34ch; }
.footer__social { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.footer__social a { padding: 0; display: inline-flex; }
.footer__entity { overflow-wrap: anywhere; }
.footer__legal {
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  display: grid; gap: 16px;
}
.footer__entity { font-family: var(--font-ui); font-size: 12px; color: var(--body); line-height: 1.75; }
.footer__entity .zh { display: block; color: var(--ink); }
.footer__entity .row { display: block; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.copyright { font-family: var(--font-ui); font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------ 服务承诺条 */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.promise__item { text-align: center; padding: 8px; }
.promise__item svg { width: 24px; height: 24px; margin: 0 auto 10px; color: var(--ink); }
.promise__item b { display: block; font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.promise__item p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------ 吐司提示 */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  z-index: 300; padding: 13px 22px;
  background: var(--ink); color: #fff;
  font-family: var(--font-ui); font-size: 12.5px; letter-spacing: .04em;
  opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  max-width: min(92vw, 460px); text-align: center;
}
.toast.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ------------------------------------------------ 滚动入场动效 */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------- 开发提示条 */
.devbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  background: #2b2a28; color: #f2f0eb;
  font-family: var(--font-ui); font-size: 11.5px; line-height: 1.6;
  padding: 10px var(--gutter);
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
}
.devbar b { color: #f6c9c3; font-weight: 600; }
.devbar__list { flex: 1; min-width: 240px; }
.devbar__list code { color: #f6c9c3; }
.devbar__btns { margin-left: auto; display: flex; gap: 16px; flex-shrink: 0; }
.devbar button { color: #f2f0eb; text-decoration: underline; font-size: 11.5px; padding: 0; }
.devbar details summary { cursor: pointer; color: #f2f0eb; }

/* ============================================================ 响应式 */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .header__logo { justify-self: center; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { position: static; }
  .co { grid-template-columns: 1fr; }
  /* 窄屏把订单摘要提到表单之前，先看清买什么再填地址 */
  .co__summary { order: -1; position: static; }
  .editorial { grid-template-columns: 1fr; }
  .editorial--flip .editorial__media { order: 0; }
  .hero__copy { max-width: 100%; justify-content: flex-end; padding-bottom: 44px; }
  .hero__media img { height: clamp(380px, 62vh, 560px); object-position: 66% center; }
  .hero__copy::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(255,253,252,.94) 0%, rgba(255,253,252,.72) 34%, transparent 66%);
    z-index: -1;
  }
  .hero__copy { position: relative; margin-top: -190px; }
  .hero__media { position: relative; z-index: 0; }
}
@media (max-width: 640px) {
  .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 26px; }
  .entity dl { grid-template-columns: 1fr; gap: 4px 0; }
  .entity dt { margin-top: 10px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__right { justify-content: space-between; }
  .devbar__btns { width: 100%; justify-content: space-between; margin-left: 0; }
  .hero__copy { margin-top: -160px; }
}
