/* ==========================================================================
   iukoi · 脚尖蜜语 — base.css
   设计令牌 + 通用组件（header / footer / 按钮 / 商品卡 / 购物车 / 表单 / 动效）
   所有页面共用；页面专属样式放 shop.css / editorial.css
   ========================================================================== */

/* ---------- Fonts (self-hosted, Lead 负责生成子集) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'WenKai';
  src: url('/assets/fonts/wenkai.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('/assets/fonts/notosanssc.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cream: #fdf7f0;
  --cream-2: #f7ede2;
  --paper: #fffdfa;
  --blush: #fbe3e4;
  --blush-deep: #f6c9cc;
  --butter: #f8e9b8;
  --sage: #dde5d6;
  --ink: #2e2622;
  --ink-soft: #7a6a62;
  --ink-mute: #a3938a;
  --strawberry: #e8607a;
  --gold: #c9a227;
  --line: rgba(46, 38, 34, 0.13);
  --line-soft: rgba(46, 38, 34, 0.07);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 6px 18px -10px rgba(91, 62, 54, 0.25);
  --shadow: 0 18px 40px -20px rgba(91, 62, 54, 0.28);
  --shadow-lg: 0 34px 80px -34px rgba(91, 62, 54, 0.35);

  --font-display: 'Fraunces', 'WenKai', Georgia, 'Songti SC', 'Noto Serif SC', serif;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Zen Hei', sans-serif;
  --font-hand: 'WenKai', 'Noto Sans SC', 'PingFang SC', cursive;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--strawberry);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--blush-deep);
  color: var(--ink);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow {
  max-width: 880px;
}
.container--wide {
  max-width: 1440px;
  padding: 0 24px;
}
.section {
  padding: 104px 0;
  position: relative;
}
.section--tight {
  padding: 72px 0;
}
.section--blush {
  background: var(--blush);
}
.section--butter {
  background: var(--butter);
}
.section--sage {
  background: var(--sage);
}
.section--cream2 {
  background: var(--cream-2);
}
.section--ink {
  background: var(--ink);
  color: var(--cream);
}
.section--ink .eyebrow {
  color: var(--butter);
}
.section--ink .section-sub {
  color: rgba(253, 247, 240, 0.72);
}
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.row--between {
  justify-content: space-between;
}
.row--wrap {
  flex-wrap: wrap;
}

/* ---------- Typography ---------- */
.display,
.h1,
.h2,
.h3,
.pd-title,
blockquote {
  text-wrap: balance;
}
p,
.lead,
.pc-name {
  text-wrap: pretty;
}
.display,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.display {
  font-size: clamp(2.9rem, 6.4vw, 5.6rem);
}
.h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
}
.h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
}
.h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  line-height: 1.18;
}
.display em,
.h1 em,
.h2 em,
.h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--strawberry);
}
.serif {
  font-family: var(--font-display);
}
.hand {
  font-family: var(--font-hand);
  font-weight: 400;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.lead {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--ink-soft);
  line-height: 1.85;
  max-width: 32em;
}
.small {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.tiny {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.center {
  text-align: center;
}
.center .lead,
.center .eyebrow {
  margin-left: auto;
  margin-right: auto;
}
.ink {
  color: var(--ink);
}
.strawberry {
  color: var(--strawberry);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.section-head > div {
  max-width: 60ch;
}
.section-head .h2 {
  margin-top: 14px;
}
.section-sub {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.8;
}
.section-head .link-arrow {
  flex: 0 0 auto;
  margin-bottom: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  min-height: 52px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn:active {
  transform: translateY(0);
}
.btn--pink {
  --btn-bg: var(--strawberry);
  --btn-fg: #fff;
  --btn-border: var(--strawberry);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: rgba(46, 38, 34, 0.28);
}
.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  --btn-border: var(--ink);
}
.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-border: var(--paper);
}
.btn--cream {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  --btn-border: var(--cream);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.btn--sm {
  padding: 10px 20px;
  min-height: 40px;
  font-size: 0.82rem;
}
.btn--lg {
  padding: 18px 38px;
  min-height: 58px;
  font-size: 1rem;
}
.btn--block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow:hover {
  gap: 14px;
  color: var(--strawberry);
}
.link-arrow svg {
  width: 15px;
  height: 15px;
}

/* ---------- Announcement + Header ---------- */
.announce {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 9px 16px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  font-weight: 400;
}
.announce b {
  color: var(--butter);
  font-weight: 500;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 247, 240, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(253, 247, 240, 0.94);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.42rem;
  letter-spacing: 0.24em;
  font-weight: 600;
  line-height: 1;
  padding-left: 2px;
}
.logo svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.logo:hover {
  color: var(--strawberry);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  position: relative;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--strawberry);
  transition: right 0.3s var(--ease);
}
.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: var(--strawberry);
}
.main-nav a:hover::after,
.main-nav a[aria-current='page']::after {
  right: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.icon-btn:hover {
  background: var(--blush);
  transform: translateY(-1px);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.cart-count {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--strawberry);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
  font-family: var(--font-body);
  transform: scale(0);
  transition: transform 0.3s var(--ease-spring);
}
.cart-count.is-visible {
  transform: scale(1);
}
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  border-radius: 999px;
}
.menu-btn span {
  display: block;
  width: 19px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-btn[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--cream);
  padding: 104px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:last-of-type {
  border-bottom: 0;
}
.mobile-menu .m-foot {
  margin-top: auto;
  padding-top: 32px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 2;
}

/* ---------- Sticker / badge ---------- */
.sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--butter);
  border: 1px solid rgba(46, 38, 34, 0.16);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-sm);
  transform: rotate(-4deg);
  white-space: nowrap;
}
.sticker--pink {
  background: var(--blush-deep);
}
.sticker--ink {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.sticker--plain {
  transform: none;
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  white-space: nowrap;
}
.badge--pink {
  background: var(--strawberry);
  color: #fff;
}
.badge--butter {
  background: var(--butter);
  color: var(--ink);
}
.badge--outline {
  background: rgba(253, 247, 240, 0.9);
  color: var(--ink);
  border: 1px solid var(--line);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ---------- Product card (shared: home + shop + related) ---------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pc-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
  isolation: isolate;
}
.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.5s var(--ease);
}
.product-card:hover .pc-media img {
  transform: scale(1.045);
}
.pc-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  z-index: 2;
}
.pc-quick {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
}
.pc-quick svg {
  width: 18px;
  height: 18px;
}
.product-card:hover .pc-quick,
.product-card:focus-within .pc-quick {
  transform: translateY(0);
  opacity: 1;
}
.pc-quick:hover {
  background: var(--strawberry);
  color: #fff;
}
.pc-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pc-name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
}
.pc-en {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin-top: 1px;
}
.pc-price {
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pc-price s {
  display: block;
  text-align: right;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--ink-mute);
  text-decoration-thickness: 1px;
}
.pc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.pc-rating {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--butter);
  border-top: 1px solid rgba(46, 38, 34, 0.14);
  border-bottom: 1px solid rgba(46, 38, 34, 0.14);
  padding: 15px 0;
  user-select: none;
}
.marquee--ink {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__group svg {
  width: 13px;
  height: 13px;
  opacity: 0.55;
  flex: 0 0 auto;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(46, 38, 34, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(430px, 100vw);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.5s var(--ease);
  box-shadow: -30px 0 70px -40px rgba(46, 38, 34, 0.5);
}
.cart-drawer.is-open {
  transform: translateX(0);
}
.cd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.cd-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.02em;
}
.cd-title span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  margin-left: 6px;
}
.cd-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.cd-close:hover {
  background: var(--blush);
  transform: rotate(90deg);
}
.cd-close svg {
  width: 17px;
  height: 17px;
}
.cd-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 24px;
  overscroll-behavior: contain;
}
.cd-foot {
  border-top: 1px solid var(--line-soft);
  padding: 20px 24px 26px;
  background: var(--paper);
}
.cd-ship {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.5;
}
.cd-ship-bar {
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: var(--blush);
  overflow: hidden;
}
.cd-ship-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--strawberry);
  transition: width 0.5s var(--ease);
}
.cd-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cd-subtotal dt {
  font-size: 0.86rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.cd-subtotal dd {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}
.cd-note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 72px 20px;
  text-align: center;
  color: var(--ink-soft);
}
.cart-empty svg {
  width: 46px;
  height: 46px;
  color: var(--blush-deep);
}
.cart-empty p {
  font-size: 0.9rem;
}

/* Cart line item */
.cart-item {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.cart-item:last-child {
  border-bottom: 0;
}
.ci-img {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-2);
}
.ci-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ci-name {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
.ci-en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.74rem;
  color: var(--ink-mute);
  margin-top: 2px;
}
.ci-remove {
  font-size: 0.7rem;
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.ci-remove:hover {
  color: var(--strawberry);
}
.ci-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.ci-price {
  font-size: 0.88rem;
  font-weight: 500;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  height: 30px;
}
.qty button {
  width: 28px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.qty button:hover {
  background: var(--blush);
  color: var(--ink);
}
.qty span {
  min-width: 24px;
  text-align: center;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 120;
  transform: translate(-50%, 24px);
  background: var(--ink);
  color: var(--cream);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 0.92rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  appearance: none;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-mute);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--strawberry);
  box-shadow: 0 0 0 3px rgba(232, 96, 122, 0.14);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--strawberry);
}
.newsletter {
  display: flex;
  gap: 10px;
  max-width: 460px;
  width: 100%;
}
.newsletter input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid rgba(46, 38, 34, 0.2);
  background: var(--paper);
  font-size: 0.9rem;
}
.newsletter input:focus {
  outline: none;
  border-color: var(--ink);
}
.newsletter .btn {
  flex: 0 0 auto;
}
.form-note {
  font-size: 0.74rem;
  color: var(--ink-mute);
  margin-top: 10px;
}
.form-ok {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  margin-top: 12px;
}
.form-ok.is-visible {
  display: flex;
}

/* ---------- Accordion (details/summary) ---------- */
.accordion {
  border-top: 1px solid var(--line);
}
.accordion details {
  border-bottom: 1px solid var(--line);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--ink-soft);
  transition: transform 0.3s var(--ease);
  line-height: 1;
  flex: 0 0 auto;
}
.accordion details[open] summary::after {
  transform: rotate(45deg);
}
.accordion .acc-body {
  padding: 0 0 22px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.85;
}
.accordion .acc-body p + p {
  margin-top: 10px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}
.breadcrumb a:hover {
  color: var(--strawberry);
}
.breadcrumb span {
  opacity: 0.5;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 72px 0 28px;
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(253, 247, 240, 0.16);
}
.footer-brand .logo {
  color: var(--cream);
  font-size: 1.5rem;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.84rem;
  line-height: 1.9;
  color: rgba(253, 247, 240, 0.62);
  max-width: 30ch;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(253, 247, 240, 0.24);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.footer-social a:hover {
  background: var(--butter);
  color: var(--ink);
  border-color: var(--butter);
}
.footer-social svg {
  width: 16px;
  height: 16px;
}
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--butter);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col li + li {
  margin-top: 11px;
}
.footer-col a,
.footer-col p {
  font-size: 0.84rem;
  color: rgba(253, 247, 240, 0.68);
  line-height: 1.7;
}
.footer-col a:hover {
  color: var(--cream);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  font-size: 0.72rem;
  color: rgba(253, 247, 240, 0.45);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}
.footer-bottom .pay {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-bottom .pay span {
  padding: 3px 9px;
  border: 1px solid rgba(253, 247, 240, 0.22);
  border-radius: 5px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Utilities ---------- */
[id] {
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.82rem;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}
html.is-locked,
body.is-locked {
  overflow: hidden;
}
.pc-media__hit {
  display: block;
  width: 100%;
  height: 100%;
}
.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;
}
.u-mt-0 {
  margin-top: 0;
}
.u-mt-8 {
  margin-top: 8px;
}
.u-mt-16 {
  margin-top: 16px;
}
.u-mt-24 {
  margin-top: 24px;
}
.u-mt-32 {
  margin-top: 32px;
}
.u-mt-40 {
  margin-top: 40px;
}
.u-mb-0 {
  margin-bottom: 0;
}
.hide {
  display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr;
    row-gap: 44px;
  }
  .footer-top .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 960px) {
  .container {
    padding: 0 24px;
  }
  .section {
    padding: 76px 0;
  }
  .main-nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .header-inner {
    height: 68px;
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .section-head .link-arrow {
    margin-bottom: 0;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .container {
    padding: 0 20px;
  }
  .section {
    padding: 60px 0;
  }
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .grid {
    gap: 18px;
  }
  .display {
    font-size: clamp(2.5rem, 12vw, 3.2rem);
  }
  .h2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }
  .announce {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    padding: 8px 12px;
  }
  .newsletter {
    flex-direction: column;
  }
  .newsletter .btn {
    width: 100%;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn {
    padding: 14px 24px;
    min-height: 50px;
  }
  .pc-quick {
    opacity: 1;
    transform: none;
  }
  /* pc-meta 在窄屏竖排，避免「条评价」被拆成孤字 */
  .pc-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .pc-reviews {
    white-space: nowrap;
  }
}
