/* ==========================================================================
 * 买家端样式 · 柔粉轻奢
 * 分层：站点头部 / 类目导航 / 移动抽屉 / 页脚 / 首页 / 商品列表 / 商品详情 /
 *       购物车 / 结算 / 支付 / 订单 / 账号 / 条款 / 登录注册 / 响应式
 * 规则：颜色只引用 base.css 变量，新类名以页面语义命名。
 * ========================================================================== */

.page-buyer {
  /* 头部胶囊尺寸与吸顶高度（供 filter-bar 等吸顶元素复用） */
  --pill-r: clamp(20px, 2.2vw, 30px);
  --pinned-h: 80px;
  background: var(--bg);
}

.page-buyer .site-main {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
 * 站点头部
 * ========================================================================== */
.site-header {
  position: relative;
  z-index: 60;
}

/* 吸顶胶囊下的锚点定位补偿 */
.page-buyer [id] {
  scroll-margin-top: calc(var(--pinned-h) + 12px);
}

/* 顶部通告条：奶油细带，随滚动折叠 */
.header-topbar {
  position: relative;
  max-height: 44px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(255, 246, 241, 0.92) 0%,
    rgba(253, 250, 247, 0.55) 46%,
    rgba(250, 237, 231, 0.92) 100%
  );
  border-bottom: 1px solid rgba(194, 160, 107, 0.18);
  color: var(--ink-500);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  transition: max-height var(--t-slow) var(--ease), opacity var(--t) var(--ease);
}

.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 34px;
}

.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-700);
}

.topbar-note svg {
  color: var(--gold);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.topbar-links a {
  position: relative;
  color: var(--text-sub);
  transition: color var(--t) var(--ease);
}

.topbar-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: right var(--t) var(--ease);
}

.topbar-links a:hover {
  color: var(--brand-700);
}

.topbar-links a:hover::after {
  right: 0;
}

/* 悬浮胶囊外壳：不设 backdrop-filter，避免影响抽屉等 fixed 子元素 */
.header-main {
  position: relative;
  padding: clamp(10px, 1.2vw, 16px) 0 0;
  background: transparent;
  transition: padding var(--t) var(--ease);
}

.header-pill-shell {
  position: relative;
}

.header-bar {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  border: 1px solid var(--line-gold);
  border-radius: var(--pill-r);
  background:
    linear-gradient(
      122deg,
      rgba(255, 252, 249, 0.95) 0%,
      rgba(255, 243, 237, 0.89) 56%,
      rgba(250, 237, 231, 0.93) 100%
    );
  box-shadow:
    0 24px 60px -30px rgba(110, 66, 58, 0.42),
    0 2px 10px -6px rgba(110, 66, 58, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px) saturate(165%);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

/* 顶部渐隐金线 */
.header-bar::before {
  content: '';
  position: absolute;
  inset: 0 14% auto;
  height: 1px;
  border-radius: var(--r-pill);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(194, 160, 107, 0.85) 32%,
    rgba(184, 115, 124, 0.55) 68%,
    transparent
  );
  pointer-events: none;
}

.header-bar:hover,
.header-bar:focus-within {
  border-color: rgba(194, 160, 107, 0.55);
  box-shadow:
    0 28px 66px -30px rgba(110, 66, 58, 0.48),
    0 2px 10px -6px rgba(110, 66, 58, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

@supports not (backdrop-filter: blur(1px)) {
  .header-bar {
    background: #fff9f5;
  }
}

/* 第一层：类目 / 品牌 / 搜索 / 操作组 */
.pill-top {
  display: grid;
  grid-template-columns: auto minmax(0, auto) minmax(180px, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.2vw, 20px);
  padding: 10px 14px 10px 12px;
}

/* 第二层：热搜细条 */
.pill-hot {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  max-height: 44px;
  margin: 0 16px;
  padding: 7px 2px 9px;
  border-top: 1px solid rgba(194, 160, 107, 0.16);
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  transition: max-height var(--t) var(--ease), opacity var(--t) var(--ease),
    padding var(--t) var(--ease), margin var(--t) var(--ease);
}

.pill-promise {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: var(--sp-4);
  border-left: 1px solid rgba(194, 160, 107, 0.22);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  white-space: nowrap;
}

.pill-promise svg {
  color: var(--gold);
}

/* 类目入口：桌面为「类目」胶囊，移动为汉堡圆钮 */
.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 16px 0 13px;
  border: 1px solid rgba(184, 115, 124, 0.2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-700);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
    border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease-spring);
}

.nav-toggle:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--rose) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-glow);
  transform: translateY(-1px);
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(194, 160, 107, 0.55);
  outline-offset: 3px;
}

.nav-toggle-icon {
  flex: 0 0 auto;
}

.nav-toggle-lines {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 17px;
}

.nav-toggle-lines span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

.nav-toggle-input:checked ~ .site-header .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle-input:checked ~ .site-header .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-input:checked ~ .site-header .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* 品牌区：徽记 + 衬线字标 + 金色副标 */
.header-brand {
  flex: 0 0 auto;
  min-width: 0;
}

.header-brand .brand-emblem {
  width: 42px;
  height: 42px;
  background: linear-gradient(148deg, var(--brand) 0%, var(--brand-700) 100%);
  box-shadow:
    0 8px 18px rgba(140, 79, 89, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.header-brand .brand-emblem::after {
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.5), transparent 60%);
}

.header-brand .brand-emblem-ring {
  inset: -4px;
  opacity: 0.6;
  border-color: rgba(194, 160, 107, 0.55);
}

.header-brand .brand-emblem-icon {
  width: 21px;
  height: 21px;
}

.header-brand .brand:hover .brand-emblem {
  transform: translateY(-1px) rotate(-6deg);
}

.header-brand .brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: font-size var(--t) var(--ease);
}

.header-brand .brand-badge {
  padding: 2px 8px;
  border-color: rgba(194, 160, 107, 0.45);
  background: rgba(255, 255, 255, 0.6);
  color: var(--gold-600);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.header-brand .brand-name-row {
  gap: 6px;
}

.header-brand .brand-text {
  gap: 1px;
}

.header-brand .brand-slogan {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--gold-600);
  transition: opacity var(--t) var(--ease);
}

/* 搜索：内嵌胶囊输入 + 圆形提交键 */
.header-search {
  width: 100%;
  min-width: 0;
  max-width: 560px;
  margin-inline: auto;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 5px 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 2px rgba(120, 74, 64, 0.09);
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}

.search-form:hover {
  background: rgba(255, 255, 255, 0.86);
}

.search-form:focus-within {
  background: #fff;
  border-color: var(--gold);
  box-shadow:
    0 0 0 4px rgba(194, 160, 107, 0.16),
    inset 0 1px 2px rgba(120, 74, 64, 0.06);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: 1;
  min-width: 0;
  height: 100%;
}

.search-field-icon {
  flex: 0 0 auto;
  color: var(--muted);
  transition: color var(--t) var(--ease);
}

.search-form:focus-within .search-field-icon {
  color: var(--brand);
}

.search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 13.5px;
  color: var(--ink-800);
}

.search-field input:focus {
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.search-field input::placeholder {
  color: var(--muted);
}

/* 去掉 Chrome 原生搜索清除按钮，避免与提交键混淆 */
.search-field input::-webkit-search-cancel-button,
.search-field input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 34px;
  padding: 0 15px;
  border: none;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand) 0%, var(--rose) 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--t) var(--ease-spring), box-shadow var(--t) var(--ease),
    filter var(--t) var(--ease);
}

.search-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-glow);
  filter: saturate(112%);
}

.search-submit:active {
  transform: translateY(1px);
}

.search-submit:focus-visible {
  outline: 3px solid rgba(194, 160, 107, 0.55);
  outline-offset: 2px;
}

/* 热搜细条 */
.search-hot {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.search-hot::-webkit-scrollbar {
  display: none;
}

.search-hot-label {
  flex: 0 0 auto;
  padding-right: var(--sp-3);
  border-right: 1px solid rgba(194, 160, 107, 0.25);
  letter-spacing: 0.16em;
  color: var(--gold-600);
  font-size: 10.5px;
  font-weight: 500;
}

.search-hot-item {
  flex: 0 0 auto;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  color: var(--text-sub);
  font-size: 11.5px;
  white-space: nowrap;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}

.search-hot-item:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 圆形工具按钮组 */
.action-item,
.merchant-entry,
.user-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(184, 115, 124, 0.18);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-700);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
    border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease-spring);
}

.action-item:hover,
.merchant-entry:hover,
.user-chip:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--rose) 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--sh-glow);
}

.action-item:active,
.merchant-entry:active,
.user-chip:active {
  transform: translateY(0);
}

.action-item:focus-visible,
.merchant-entry:focus-visible,
.user-chip:focus-visible {
  outline: 3px solid rgba(194, 160, 107, 0.55);
  outline-offset: 3px;
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-text,
.merchant-entry-text,
.user-chip-name {
  display: none;
}

/* 购物车角标：金粉渐变 + 呼吸脉冲 */
.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--gold) 0%, var(--brand) 100%);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(255, 251, 248, 0.92), 0 4px 10px rgba(140, 79, 89, 0.28);
  animation: badgePulse 2.6s var(--ease) infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(255, 251, 248, 0.92), 0 4px 10px rgba(140, 79, 89, 0.26);
  }
  50% {
    transform: scale(1.09);
    box-shadow: 0 0 0 4px rgba(194, 160, 107, 0.18), 0 6px 14px rgba(140, 79, 89, 0.3);
  }
}

@media (min-width: 1280px) {
  .action-item,
  .merchant-entry {
    width: auto;
    padding: 0 16px 0 13px;
    gap: 8px;
  }

  .user-chip {
    width: auto;
    padding: 0 14px 0 5px;
  }

  .action-text,
  .merchant-entry-text,
  .user-chip-name {
    display: inline;
  }

  .user-chip-name {
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* 用户下拉 */
.user-dropdown {
  position: relative;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose) 0%, var(--brand) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(184, 115, 124, 0.3);
}

.user-chip .caret {
  display: none;
  align-items: center;
  color: var(--muted);
  transition: transform var(--t) var(--ease), color var(--t) var(--ease);
}

.user-chip:hover .caret {
  color: rgba(255, 255, 255, 0.9);
}

.user-dropdown:hover .caret {
  transform: rotate(180deg);
}

@media (min-width: 1280px) {
  .user-chip .caret {
    display: inline-flex;
  }
}

.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: 248px;
  padding: var(--sp-3);
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  background: rgba(255, 252, 249, 0.97);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 26px 60px -28px rgba(110, 66, 58, 0.45),
    0 2px 8px -4px rgba(110, 66, 58, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-spring),
    visibility var(--t);
}

.user-dropdown-menu::before {
  content: '';
  position: absolute;
  inset: 0 18% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 160, 107, 0.6), transparent);
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown:focus-within .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}

.user-dropdown-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.user-dropdown-meta small {
  color: var(--muted);
  font-size: 11.5px;
}

.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--ink-700);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.user-dropdown-menu a:hover {
  background: var(--brand-tint);
  color: var(--brand-700);
}

.user-dropdown-menu .menu-exit {
  color: var(--danger);
  margin-top: 4px;
}

.header-guest {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-link {
  padding: 0 4px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-700);
  transition: color var(--t) var(--ease);
}

.login-link:hover {
  color: var(--brand-700);
}

.guest-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(194, 160, 107, 0.55);
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 243, 237, 0.9));
  color: var(--brand-700);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
    border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease-spring);
}

.guest-cta:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--rose) 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--sh-glow);
}

.guest-cta:active {
  transform: translateY(0);
}

.guest-cta:focus-visible {
  outline: 3px solid rgba(194, 160, 107, 0.55);
  outline-offset: 3px;
}

/* ==========================================================================
 * 类目导航带
 * ========================================================================== */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 55;
  max-height: 60px;
  background: transparent;
  border-bottom: 1px solid transparent;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease), opacity var(--t) var(--ease),
    background-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
}

.category-nav.is-stuck {
  background: rgba(253, 250, 247, 0.94);
  border-bottom-color: rgba(194, 160, 107, 0.2);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 16px 34px -24px rgba(88, 56, 44, 0.42);
}

.category-nav-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: 46px;
  font-size: 13px;
}

.cat-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--ink-800) 0%, var(--ink-900) 100%);
  box-shadow: inset 0 0 0 1px rgba(194, 160, 107, 0.45);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background-color var(--t) var(--ease), transform var(--t) var(--ease-spring);
}

.cat-all:hover {
  background: var(--brand-700);
  color: #fff;
  transform: translateY(-1px);
}

.cat-item {
  position: relative;
  flex: 0 0 auto;
}

.cat-item > a {
  position: relative;
  display: inline-block;
  padding: 5px 2px;
  color: var(--ink-700);
  transition: color var(--t) var(--ease);
}

.cat-item > a::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transition: left var(--t) var(--ease), right var(--t) var(--ease);
}

.cat-item:hover > a {
  color: var(--brand-700);
}

.cat-item:hover > a::after {
  left: 0;
  right: 0;
}

/* 悬浮大菜单 */
.cat-panel {
  position: absolute;
  left: -18px;
  top: calc(100% + 12px);
  display: flex;
  gap: var(--sp-6);
  width: 720px;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-spring),
    visibility var(--t);
}

.cat-item:hover .cat-panel,
.cat-item:focus-within .cat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cat-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.cat-panel-groups {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-6);
}

.cat-group-title {
  display: inline-block;
  margin-bottom: var(--sp-2);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
}

.cat-group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.cat-group-links a {
  font-size: 12.5px;
  color: var(--text-sub);
  transition: color var(--t-fast) var(--ease);
}

.cat-group-links a:hover {
  color: var(--brand-700);
}

.cat-panel-pic {
  position: relative;
  flex: 0 0 200px;
  overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 4 / 5;
}

.cat-panel-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.cat-panel-pic:hover img {
  transform: scale(1.06);
}

.cat-panel-pic span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  text-align: center;
  color: var(--ink-700);
}

.cat-promise {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 5px 12px;
  border: 1px solid var(--line-gold);
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  font-size: 11.5px;
  color: var(--gold-600);
}

/* 头部收缩态：通告条 / 热搜条 / 类目带依次折叠，胶囊收紧 */
.site-header.is-condensed .header-topbar {
  max-height: 0;
  opacity: 0;
  border-bottom-width: 0;
  border-bottom-color: transparent;
}

.site-header.is-condensed .header-main {
  padding-top: 8px;
}

.site-header.is-condensed .pill-top {
  padding: 6px 12px 6px 8px;
}

.site-header.is-condensed .pill-hot {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
}

.site-header.is-condensed .header-brand .brand-name {
  font-size: 18px;
}

.site-header.is-condensed .header-brand .brand-slogan {
  opacity: 0;
}

.site-header.is-condensed .header-bar {
  box-shadow:
    0 18px 44px -26px rgba(110, 66, 58, 0.45),
    0 1px 6px -4px rgba(110, 66, 58, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* 单行胶囊（≥1100）才整条吸顶；两行胶囊视口下仅类目带吸顶，避免高条遮挡内容 */
@media (min-width: 1100px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .category-nav,
  .category-nav.is-stuck {
    position: static;
  }

  .site-header.is-condensed .category-nav {
    max-height: 0;
    opacity: 0;
    border-bottom-width: 0;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
}

/* ==========================================================================
 * 移动抽屉（<1024 侧滑面板 / ≥1024 居中弹层）
 * ========================================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: block;
  pointer-events: none;
  visibility: hidden;
  transition: visibility var(--t) var(--ease);
}

@media (min-width: 1024px) {
  .mobile-drawer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vh, 48px);
  }
}

.drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(46, 37, 35, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}

.mobile-drawer-inner {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(86vw, 360px);
  padding: var(--sp-5) var(--sp-5) var(--sp-8);
  overflow-y: auto;
  background: linear-gradient(170deg, var(--cream) 0%, var(--blush) 100%);
  box-shadow: var(--sh-3);
  transform: translateX(-102%);
  transition: transform var(--t-slow) var(--ease-out);
}

.nav-toggle-input:checked ~ .site-header .mobile-drawer {
  pointer-events: auto;
  visibility: visible;
}

.nav-toggle-input:checked ~ .site-header .drawer-mask {
  opacity: 1;
}

.nav-toggle-input:checked ~ .site-header .mobile-drawer-inner {
  transform: translateX(0);
}

/* 桌面端：居中弹层形态 */
@media (min-width: 1024px) {
  .drawer-mask {
    background: rgba(46, 37, 35, 0.34);
    backdrop-filter: blur(6px) saturate(120%);
  }

  .mobile-drawer-inner {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: min(940px, 92vw);
    max-height: min(82vh, 760px);
    padding: clamp(22px, 2.6vw, 34px) clamp(22px, 3vw, 40px) clamp(26px, 3vw, 40px);
    border: 1px solid var(--line-gold);
    border-radius: 28px;
    background:
      linear-gradient(150deg, rgba(255, 252, 249, 0.98), rgba(250, 237, 231, 0.96) 100%);
    box-shadow:
      0 44px 96px -44px rgba(74, 44, 38, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(16px) scale(0.965);
    transition: transform var(--t-slow) var(--ease-out), opacity var(--t) var(--ease);
  }

  .nav-toggle-input:checked ~ .site-header .mobile-drawer-inner {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* 弹层内部：两列类目分组，标题与快捷入口通栏 */
  .mobile-drawer .mobile-drawer-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 48px);
    align-content: start;
  }

  .mobile-drawer .drawer-head,
  .mobile-drawer .drawer-quick {
    grid-column: 1 / -1;
  }

  .mobile-drawer .drawer-head {
    margin-bottom: var(--sp-4);
    border-bottom-color: rgba(194, 160, 107, 0.25);
  }

  .mobile-drawer .drawer-title {
    font-size: 20px;
  }

  .mobile-drawer .drawer-group {
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px dashed rgba(194, 160, 107, 0.18);
  }

  .mobile-drawer .drawer-group-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    padding-top: 8px;
  }

  .mobile-drawer .drawer-group-links a {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: var(--r-pill);
  }

  .mobile-drawer .drawer-group-links a.lv2 {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line);
    color: var(--ink-700);
    font-weight: 500;
  }

  .mobile-drawer .drawer-group-links a.lv3 {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
  }

  .mobile-drawer .drawer-group-links a.lv3:hover {
    background: rgba(184, 115, 124, 0.1);
    color: var(--brand-700);
  }

  .mobile-drawer .drawer-quick {
    margin-top: var(--sp-4);
    padding-top: var(--sp-3);
    border-top: 1px solid rgba(194, 160, 107, 0.22);
  }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink-700);
  cursor: pointer;
}

.drawer-group {
  margin-bottom: var(--sp-4);
}

.drawer-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-900);
  border-bottom: 1px dashed var(--line);
}

.drawer-group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: var(--sp-3);
}

.drawer-group-links a {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-sub);
}

.drawer-group-links a.lv2 {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-700);
  font-weight: 500;
}

.drawer-group-links a.lv3 {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.drawer-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.drawer-quick a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  color: var(--ink-700);
}

/* ==========================================================================
 * 页脚
 * ========================================================================== */
.site-footer {
  position: relative;
  margin-top: var(--section-gap);
  padding-top: var(--sp-16);
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 62%, var(--blush-deep) 100%);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 320px;
  background: radial-gradient(60% 100% at 20% 0%, rgba(219, 160, 166, 0.28), transparent 70%),
    radial-gradient(50% 90% at 82% 0%, rgba(194, 160, 107, 0.22), transparent 72%);
  pointer-events: none;
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1.4fr;
  gap: var(--sp-16);
  padding-bottom: var(--sp-12);
}

.footer-manifesto {
  max-width: 46ch;
}

.footer-eyebrow {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--sp-3);
}

.footer-slogan {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
  color: var(--ink-900);
}

.footer-desc {
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: var(--sp-5);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  color: var(--text-sub);
}

.footer-trail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-6);
}

.footer-node {
  position: relative;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-gold);
}

.node-index {
  position: absolute;
  top: -10px;
  left: 0;
  padding-right: 8px;
  background: var(--blush);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.footer-node h4 {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: var(--sp-3);
  color: var(--ink-900);
}

.footer-node p {
  margin-bottom: 6px;
  font-size: 12.5px;
}

.footer-node a {
  color: var(--text-sub);
  transition: color var(--t-fast) var(--ease), padding-left var(--t) var(--ease);
}

.footer-node a:hover {
  color: var(--brand-700);
  padding-left: 4px;
}

.footer-links {
  position: relative;
  border-top: 1px solid rgba(226, 205, 196, 0.7);
  border-bottom: 1px solid rgba(226, 205, 196, 0.7);
}

.footer-links-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  font-size: 12px;
  color: var(--text-sub);
}

.footer-links-inner .dot {
  color: var(--line-strong);
}

.footer-bottom {
  position: relative;
  padding: var(--sp-5) 0 var(--sp-6);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-copy {
  max-width: 70ch;
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer-icp:hover,
.footer-top-link:hover {
  color: var(--brand-700);
}

.footer-top-link {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
 * 首页 · 首屏
 * ========================================================================== */
.home-hero {
  position: relative;
  margin-bottom: var(--section-gap);
}

.hero-slider {
  position: relative;
  height: clamp(380px, 44vw, 520px);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(88, 56, 44, 0.16);
  background: var(--blush);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow) var(--ease), visibility var(--t-slow);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-media {
  position: absolute;
  inset: -6% 0;
  display: block;
}

.hero-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 7s linear;
}

.hero-slide.active .hero-slide-media img {
  transform: scale(1);
}

.hero-slide-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sp-2);
  padding: clamp(24px, 4vw, 56px);
  background: linear-gradient(
    100deg,
    rgba(38, 26, 24, 0.62) 0%,
    rgba(38, 26, 24, 0.34) 42%,
    rgba(38, 26, 24, 0.02) 74%
  );
  color: #fff;
}

.hero-slide-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-slide-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 15ch;
  text-shadow: 0 8px 30px rgba(30, 16, 14, 0.35);
}

.hero-slide-desc {
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.86);
}

.hero-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: var(--sp-3);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 600;
  transition: gap var(--t) var(--ease), background-color var(--t) var(--ease);
}

.hero-slide:hover .hero-slide-cta {
  gap: 14px;
  background: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t) var(--ease), background-color var(--t) var(--ease);
}

.hero-slider:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  bottom: 20px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 22px;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width var(--t) var(--ease), background-color var(--t) var(--ease);
}

.hero-dots button.active {
  width: 40px;
  background: #fff;
}

/* 首屏右侧悬浮卡 */
.hero-side {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 300px;
  padding: var(--sp-5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-lg);
  background: rgba(255, 251, 248, 0.86);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--sh-3);
}

.hero-side-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line-gold);
}

.hero-side-head strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-side-slogan {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-points {
  display: grid;
  gap: 8px;
  margin: 0 0 var(--sp-4);
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--text-sub);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-700);
}

.hero-side-actions {
  display: grid;
  gap: var(--sp-2);
}

/* ==========================================================================
 * 首页 · 类目缎带
 * ========================================================================== */
.cat-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--section-gap);
}

.cat-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--r-lg);
  transition: background-color var(--t) var(--ease), transform var(--t) var(--ease-spring);
}

.cat-rail-item:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-4px);
}

.cat-rail-pic {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(88, 56, 44, 0.12);
}

.cat-rail-pic::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: border-color var(--t) var(--ease);
}

.cat-rail-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.cat-rail-item:hover .cat-rail-pic img {
  transform: scale(1.08);
}

.cat-rail-name {
  font-size: 13px;
  color: var(--ink-700);
  letter-spacing: 0.06em;
}

/* ==========================================================================
 * 首页 · 促销与保障
 * ========================================================================== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-bottom: var(--section-gap);
}

.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 210px;
  padding: var(--sp-8);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: var(--ink-900);
  transition: transform var(--t) var(--ease-spring), box-shadow var(--t) var(--ease);
}

.promo-card::before,
.promo-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transition: transform var(--t-slow) var(--ease-out);
}

.promo-card::before {
  width: 260px;
  height: 260px;
  right: -70px;
  top: -90px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), transparent 62%);
}

.promo-card::after {
  width: 180px;
  height: 180px;
  right: 40px;
  bottom: -110px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
}

.promo-card:hover::before {
  transform: scale(1.12) translate(-6px, 6px);
}

.promo-tent {
  background: linear-gradient(140deg, #fbe3e1 0%, #f4cfcd 46%, #eec2be 100%);
}

.promo-cook {
  background: linear-gradient(140deg, #f7ecdb 0%, #eedcc0 48%, #e6cea8 100%);
}

.promo-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.promo-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.promo-desc {
  font-size: 13px;
  color: rgba(46, 37, 35, 0.72);
}

.promo-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--sp-3);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-900);
  transition: gap var(--t) var(--ease);
}

.promo-card:hover .promo-go {
  gap: 12px;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.service-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-soft), var(--gold-soft));
  color: var(--brand-700);
}

.service-item strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.service-item p {
  font-size: 12px;
  line-height: 1.6;
}

/* ==========================================================================
 * 商品卡片
 * ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5) var(--sp-4);
}

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: var(--sp-4);
  overflow-x: auto;
  padding-bottom: var(--sp-3);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.product-rail .product-card {
  scroll-snap-align: start;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform var(--t) var(--ease-spring), box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 24px 46px rgba(88, 56, 44, 0.14);
}

.product-card-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--blush);
}

.product-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.product-card:hover .product-card-cover img {
  transform: scale(1.06);
}

.product-card-flag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(46, 37, 35, 0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.product-card-veil {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: center;
  padding: var(--sp-4);
  background: linear-gradient(180deg, transparent, rgba(46, 37, 35, 0.42));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.product-card:hover .product-card-veil {
  opacity: 1;
  transform: none;
}

.product-card-quick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 600;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-4);
}

.product-card-shop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-tag {
  max-width: 100%;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand-700);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-sub {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
}

.product-card-price .price {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.product-card-price .sales {
  margin-left: auto;
}

.product-card-cta {
  display: none;
}

/* 瀑布流（CSS 多列，零 JS 布局计算） */
.product-grid-waterfall {
  display: block;
  columns: 4;
  column-gap: var(--sp-4);
}

.product-grid-waterfall .product-card {
  display: inline-flex;
  width: 100%;
  margin-bottom: var(--sp-4);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

@media (max-width: 1280px) {
  .product-grid-waterfall {
    columns: 3;
  }
}

@media (max-width: 900px) {
  .product-grid-waterfall {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .product-grid-waterfall {
    columns: 1;
  }
}

/* 交错排列（编辑式节奏） */
@media (min-width: 1024px) {
  .product-grid-stagger .product-card:nth-child(4n + 2) {
    transform: translateY(22px);
  }
  .product-grid-stagger .product-card:nth-child(4n + 2):hover {
    transform: translateY(16px);
  }
  .product-grid-stagger .product-card:nth-child(4n + 4) {
    transform: translateY(10px);
  }
  .product-grid-stagger .product-card:nth-child(4n + 4):hover {
    transform: translateY(4px);
  }
}

/* ==========================================================================
 * 快捷筛选（吸顶）
 * ========================================================================== */
.list-head {
  margin-bottom: var(--sp-5);
}

.filter-bar {
  position: sticky;
  top: var(--pinned-h);
  z-index: 40;
  margin-bottom: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(253, 250, 247, 0.92);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 10px 26px rgba(88, 56, 44, 0.06);
}

.filter-bar.is-stuck {
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(88, 56, 44, 0.12);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
}

.filter-row + .filter-row {
  border-top: 1px dashed var(--line);
}

.filter-row-label {
  flex: 0 0 76px;
  padding-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.chip-lv2 {
  font-size: 12.5px;
}

.chip-lv3 {
  font-size: 12px;
  padding: 5px 13px;
}

.filter-keyword {
  margin: var(--sp-3) 0 0;
  font-size: 12.5px;
  color: var(--text-sub);
}

.filter-keyword a {
  margin-left: var(--sp-2);
  color: var(--brand-700);
}

/* 排序条 */
.sort-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  font-size: 13px;
  color: var(--text-sub);
}

.sort-bar .label {
  padding-right: var(--sp-3);
  border-right: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sort-bar a {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: all var(--t) var(--ease);
}

.sort-bar a:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line);
}

.sort-bar a.active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
  box-shadow: 0 8px 18px rgba(46, 37, 35, 0.18);
}

.sort-bar .result-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
 * 商品详情
 * ========================================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-bottom: var(--section-gap);
}

.gallery-main {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--blush);
  box-shadow: 0 26px 60px rgba(88, 56, 44, 0.14);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.gallery-main:hover img {
  transform: scale(1.05);
}

.gallery-thumbs {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  overflow-x: auto;
}

.gallery-thumbs img {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 0.66;
  transition: opacity var(--t) var(--ease), border-color var(--t) var(--ease);
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--brand);
}

.detail-info {
  position: sticky;
  top: 84px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}

.detail-subtitle {
  color: var(--text-sub);
  font-size: 13.5px;
  margin-bottom: var(--sp-5);
}

.detail-price-box {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--cream-deep), var(--blush));
  margin-bottom: var(--sp-5);
}

.detail-price-box .price {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  line-height: 1;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  font-size: 12px;
  color: var(--text-sub);
}

.detail-meta strong {
  color: var(--ink-900);
}

.spec-group {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px dashed var(--line);
}

.spec-name {
  flex: 0 0 62px;
  padding-top: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

.spec-values {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.spec-value {
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  color: var(--ink-700);
  cursor: pointer;
  transition: all var(--t) var(--ease);
}

.spec-value:hover {
  border-color: var(--rose);
  color: var(--brand-700);
  background: var(--white);
  transform: translateY(-1px);
}

.spec-value.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand) 0%, var(--rose) 100%);
  color: #fff;
  box-shadow: var(--sh-glow);
}

.stock-hint {
  padding: var(--sp-2) 0;
  font-size: 12.5px;
  color: var(--muted);
}

.stock-hint.ok {
  color: var(--success);
}

.buy-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: var(--sp-4) 0 var(--sp-5);
}

.quantity-box {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.8);
}

.quantity-box button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}

.quantity-box button:hover {
  background: var(--brand-tint);
  color: var(--brand-700);
}

.quantity-box input {
  width: 46px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.quantity-box input:focus {
  box-shadow: none;
  background: transparent;
}

.buy-row .btn {
  flex: 1;
  min-width: 132px;
}

.shop-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.7);
}

.detail-section {
  margin-bottom: var(--section-gap);
}

.detail-section > h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 16px;
  margin-bottom: var(--sp-4);
}

.detail-section > h3::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--brand), var(--gold));
}

.detail-content {
  padding: var(--sp-6) clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 2;
  color: var(--text-sub);
}

.detail-content p {
  margin-bottom: var(--sp-3);
}

.detail-content img {
  margin: var(--sp-4) auto;
  border-radius: var(--r);
}

/* ==========================================================================
 * 购物车
 * ========================================================================== */
.cart-group {
  margin-bottom: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.cart-group-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: linear-gradient(90deg, var(--cream-deep), rgba(247, 237, 231, 0.4));
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.cart-row {
  display: grid;
  grid-template-columns: 24px 84px minmax(0, 1fr) 96px 128px 100px 64px;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t) var(--ease);
}

.cart-row:last-child {
  border-bottom: none;
}

.cart-row:hover {
  background: rgba(253, 241, 240, 0.6);
}

.cart-row.invalid {
  opacity: 0.6;
  background: rgba(251, 233, 234, 0.35);
}

.cart-row img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.cart-row .title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.cart-row .spec {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.cart-row .price {
  font-size: 14px;
}

.cart-row .subtotal {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-700);
}

.link-btn {
  padding: 4px 0;
  border: none;
  background: none;
  color: var(--text-sub);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color var(--t) var(--ease), text-decoration-color var(--t) var(--ease);
}

.link-btn:hover {
  color: var(--danger);
  text-decoration-color: var(--danger);
}

.cart-bar {
  position: sticky;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 251, 248, 0.9);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 40px rgba(88, 56, 44, 0.14);
}

.total-box {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-left: auto;
  font-size: 13px;
}

.total-box .price {
  font-family: var(--font-display);
  font-size: 22px;
}

.total-box form {
  margin: 0;
}

/* ==========================================================================
 * 结算
 * ========================================================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--sp-5);
  align-items: start;
}

.address-list {
  display: grid;
  gap: var(--sp-3);
}

.address-item {
  position: relative;
  display: block;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 44px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  margin: 0;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
    background-color var(--t) var(--ease);
}

.address-item:hover {
  border-color: var(--rose);
  background: var(--white);
}

.address-item input[type='radio'] {
  position: absolute;
  left: 16px;
  top: 20px;
}

.address-item:has(input:checked) {
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--ring);
}

.address-item .name {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.address-item .addr {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.7;
}

.address-item .default-tag {
  position: absolute;
  right: 14px;
  top: 14px;
}

.order-preview-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--line);
}

.order-preview-item:last-child {
  border-bottom: none;
}

.order-preview-item img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.summary-box {
  position: sticky;
  top: 84px;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--cream-deep), var(--blush));
  border: 1px solid var(--line);
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 9px 0;
  font-size: 13px;
  color: var(--text-sub);
  border-bottom: 1px dashed var(--line);
}

.summary-line.total {
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-bottom: none;
  font-size: 14px;
  color: var(--ink-900);
}

.summary-line.total .price {
  font-family: var(--font-display);
  font-size: 26px;
}

/* ==========================================================================
 * 支付 / 结果
 * ========================================================================== */
.pay-box,
.result-box {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.pay-amount {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--cream-deep), var(--blush));
  text-align: center;
  margin-bottom: var(--sp-4);
}

.pay-amount .label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.pay-amount .price {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
}

.pay-methods {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.pay-method {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.7);
  margin: 0;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.pay-method input[type='radio'] {
  flex: 0 0 auto;
  margin: 0;
}

.pay-method:hover {
  border-color: var(--rose);
}

.pay-method.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-5);
}

.result-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--success), #6bab92);
  box-shadow: 0 16px 34px rgba(78, 143, 118, 0.3);
}

.result-box h2 {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
}

.result-box > .card > p.muted {
  text-align: center;
}

/* 键值列表 */
.kv-list {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: var(--sp-2) var(--sp-4);
  margin: 0;
  font-size: 13px;
}

.kv-list dt {
  color: var(--muted);
}

.kv-list dd {
  margin: 0;
  color: var(--ink-900);
  word-break: break-word;
}

/* ==========================================================================
 * 订单
 * ========================================================================== */
.order-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.order-tabs a {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  color: var(--text-sub);
  transition: all var(--t) var(--ease);
}

.order-tabs a:hover {
  border-color: var(--rose);
  color: var(--brand-700);
  transform: translateY(-1px);
}

.order-tabs a.active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--rose) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-glow);
}

.order-tabs .count {
  font-size: 11.5px;
  opacity: 0.85;
}

.order-card {
  margin-bottom: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

.order-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--sh-2);
}

.order-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: linear-gradient(90deg, var(--cream-deep), rgba(247, 237, 231, 0.35));
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-sub);
}

.order-no {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--ink-900);
  letter-spacing: 0.02em;
}

.order-card-head .status {
  margin-left: auto;
  font-weight: 600;
}

.order-card-body {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
}

.order-items {
  flex: 1;
  min-width: 0;
}

.order-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px dashed var(--line);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.order-item .info {
  flex: 1;
  min-width: 0;
}

.order-item .title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
}

.order-item .spec {
  font-size: 12px;
  color: var(--muted);
}

.order-side {
  flex: 0 0 168px;
  padding-left: var(--sp-4);
  border-left: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}

.order-side .amount {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-700);
  margin: 4px 0;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--line);
}

.order-actions form {
  margin: 0;
}

/* 时间线 */
.timeline {
  position: relative;
  margin: var(--sp-4) 0 0;
  padding: 0 0 0 22px;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--rose), var(--gold));
}

.timeline li {
  position: relative;
  padding: 0 0 var(--sp-4) 0;
  font-size: 13px;
  color: var(--ink-700);
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--brand);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline .time {
  font-size: 11.5px;
  color: var(--muted);
}

/* ==========================================================================
 * 账号中心
 * ========================================================================== */
.account-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: start;
}

.account-side {
  position: sticky;
  top: 84px;
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--cream-deep), var(--blush));
  text-align: center;
}

.avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto var(--sp-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--brand));
  box-shadow: var(--sh-glow);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}

.stat-card {
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  transition: transform var(--t) var(--ease-spring), box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--rose);
  box-shadow: var(--sh-2);
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--brand-700);
  line-height: 1.2;
}

.stat-card .label {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.address-card {
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.7);
}

.address-list .address-card + .address-card {
  margin-top: var(--sp-3);
}

.address-card .name {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.address-card .addr {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.7;
}

.address-card .ops {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.address-card .ops form {
  margin: 0;
}

/* ==========================================================================
 * 条款 / 帮助中心
 * ========================================================================== */
.legal-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}

.legal-side {
  position: sticky;
  top: 84px;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.72);
}

.legal-side h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}

.legal-side a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-sub);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}

.legal-side a:hover {
  background: var(--brand-tint);
  color: var(--brand-700);
}

.legal-side a.active {
  background: var(--brand-tint);
  color: var(--brand-700);
  font-weight: 600;
}

.legal-side .legal-back {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.legal-doc {
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: var(--r-xl);
}

.legal-lead {
  padding: var(--sp-4);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  background: linear-gradient(90deg, var(--gold-soft), transparent);
  font-size: 13.5px;
  color: var(--text-sub);
  margin-bottom: var(--sp-5);
}

.legal-section {
  padding-top: var(--sp-5);
  margin-bottom: var(--sp-5);
  border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-section h3 {
  font-size: 16px;
  margin-bottom: var(--sp-3);
}

.legal-section p,
.legal-section li {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--text-sub);
}

.legal-section ul {
  padding-left: 20px;
  margin-bottom: var(--sp-3);
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-table {
  margin: var(--sp-4) 0;
}

.legal-table-caption {
  font-size: 12px;
  margin-bottom: var(--sp-2);
}

.legal-note {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r);
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  font-size: 12.5px;
  color: var(--brand-700);
}

.legal-foot {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--line);
  font-size: 12px;
}

.legal-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}

.legal-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.76);
  transition: transform var(--t) var(--ease-spring), box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
}

.legal-card:hover {
  transform: translateY(-4px);
  border-color: var(--rose);
  box-shadow: var(--sh-2);
}

.legal-card h3 {
  margin: 0;
  font-size: 15px;
}

.legal-card p {
  font-size: 12.5px;
  line-height: 1.8;
  margin: 0;
}

.legal-card-more {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-size: 12px;
  color: var(--brand-700);
}

/* ==========================================================================
 * 登录 / 注册等表单页
 * ========================================================================== */
.form-actions {
  margin-top: var(--sp-5);
}

.form-switch {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.form-switch a {
  color: var(--brand-700);
  font-weight: 600;
}

.auth-card {
  max-width: 520px;
  margin: 0 auto;
}

.auth-card .eyebrow {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  text-align: center;
}

.auth-card > p.muted {
  text-align: center;
  margin-bottom: var(--sp-5);
}

/* ==========================================================================
 * 移动底栏
 * ========================================================================== */
.mobile-tabbar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 90;
  display: none;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 251, 248, 0.92);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 16px 34px rgba(88, 56, 44, 0.18);
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t) var(--ease);
}

.mobile-tabbar.is-hidden {
  transform: translate(-50%, 120%);
  opacity: 0;
}

/* 抽屉打开时让底部导航退场，避免与弹层抢层级 */
body.drawer-open .mobile-tabbar {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 120%);
}

.tabbar-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 68px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  color: var(--text-sub);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}

.tabbar-item:active {
  background: var(--brand-tint);
  color: var(--brand-700);
}

.tabbar-cart .tabbar-ico {
  color: var(--brand-700);
}

.tabbar-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
}

.tabbar-text {
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.tabbar-dot {
  position: absolute;
  top: 2px;
  right: 14px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 15px;
  text-align: center;
}

/* ==========================================================================
 * 补充组件：步骤条 / 画廊 / 区块标题
 * ========================================================================== */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.66);
  list-style: none;
  counter-reset: step;
}

.checkout-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.checkout-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-family: var(--font-display);
}

.checkout-steps li + li::before {
  content: '';
  width: 34px;
  height: 1px;
  margin-right: var(--sp-2);
  background: var(--line-strong);
}

.checkout-steps li.done {
  color: var(--brand-700);
}

.checkout-steps li.done span {
  border-color: transparent;
  background: var(--brand-soft);
  color: var(--brand-700);
}

.checkout-steps li.active {
  color: var(--ink-900);
  font-weight: 600;
}

.checkout-steps li.active span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  color: #fff;
}

.detail-gallery {
  position: relative;
}

.section-head h3 {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 24px);
}

.page-head h1 {
  letter-spacing: -0.02em;
}

.page-head .eyebrow {
  margin-bottom: 6px;
}

/* 响应式：移动优先收敛到 1024 / 900 / 640 三档
 * ========================================================================== */
@media (max-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cat-panel {
    width: 620px;
  }
}

@media (max-width: 1024px) {
  .pill-top {
    gap: 12px;
  }
  .header-search {
    max-width: 100%;
  }
  .header-brand .brand-slogan,
  .pill-promise {
    display: none;
  }
  .search-submit {
    padding: 0 12px;
  }
  .cat-promise {
    display: none;
  }
  .category-nav-inner {
    gap: var(--sp-4);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .category-nav-inner::-webkit-scrollbar {
    display: none;
  }
  .cat-panel {
    display: none;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .detail-info {
    position: static;
  }
  .checkout-grid,
  .account-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .account-side,
  .legal-side,
  .summary-box {
    position: static;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .footer-trail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-side {
    width: 260px;
    padding: var(--sp-4);
  }
  .hero-points li:nth-child(n + 3) {
    display: none;
  }
}

/* 平板及以下：胶囊折为两行（品牌行 + 搜索行） */
@media (max-width: 1099px) {
  .header-topbar {
    display: none;
  }
  .pill-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      'toggle brand actions'
      'search search search';
    row-gap: 10px;
    column-gap: 10px;
    padding: 10px 12px 12px;
  }
  .nav-toggle {
    grid-area: toggle;
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .nav-toggle-icon {
    display: none;
  }
  .nav-toggle-lines {
    display: flex;
  }
  .nav-toggle-text {
    display: none;
  }
  .header-brand {
    grid-area: brand;
    min-width: 0;
  }
  .header-brand .brand-emblem {
    width: 36px;
    height: 36px;
  }
  .header-brand .brand-emblem-icon {
    width: 19px;
    height: 19px;
  }
  .header-brand .brand-name {
    font-size: 17px;
  }
  .header-brand .brand-badge,
  .header-brand .brand-slogan {
    display: none;
  }
  .header-search {
    grid-area: search;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .search-form {
    height: 42px;
  }
  .header-actions {
    grid-area: actions;
    gap: 6px;
  }
  .action-item,
  .user-chip {
    width: 40px;
    height: 40px;
  }
  .header-guest,
  .merchant-entry {
    display: none;
  }
  .pill-hot {
    margin: 0 12px;
    padding: 6px 0 8px;
    max-height: 40px;
  }
  .pill-promise {
    display: none;
  }
  .search-hot {
    gap: 4px;
  }
  .search-hot-item:nth-child(n + 4) {
    display: none;
  }
  .category-nav-inner {
    height: 46px;
    font-size: 12.5px;
  }
  /* 两行胶囊不吸顶：头部整条随页面滚走，筛选栏直接贴顶 */
  .filter-bar,
  .filter-bar.is-stuck {
    top: 0;
  }
}

@media (max-width: 900px) {
  .mobile-tabbar {
    display: flex;
  }
  .site-main {
    padding-bottom: 96px;
  }
  .home-hero {
    margin-bottom: var(--sp-10);
  }
  .hero-slider {
    height: clamp(320px, 62vw, 420px);
    border-radius: var(--r-lg);
  }
  .hero-side {
    position: static;
    width: 100%;
    margin-top: var(--sp-3);
    backdrop-filter: none;
    background: rgba(255, 251, 248, 0.92);
    box-shadow: var(--sh-1);
  }
  .hero-points li:nth-child(n) {
    display: flex;
  }
  .hero-arrow {
    display: none;
  }
  .cat-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-3);
    margin-bottom: var(--sp-10);
  }
  .promo-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4) var(--sp-3);
  }
  .product-grid-stagger .product-card {
    transform: none !important;
  }
  .product-grid-stagger .product-card:hover {
    transform: translateY(-4px) !important;
  }
  .product-rail {
    grid-auto-columns: 72%;
  }
  .filter-bar {
    top: 0;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-lg);
  }
  .filter-row {
    flex-direction: column;
    gap: var(--sp-2);
  }
  .filter-row-label {
    flex: 0 0 auto;
    padding-top: 0;
    font-size: 11.5px;
  }
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-chips::-webkit-scrollbar {
    display: none;
  }
  .chip {
    flex: 0 0 auto;
  }
  .sort-bar {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .sort-bar::-webkit-scrollbar {
    display: none;
  }
  .sort-bar .label {
    display: none;
  }
  .sort-bar a {
    flex: 0 0 auto;
    padding: 5px 12px;
    font-size: 12.5px;
  }
  .sort-bar .result-count {
    flex: 0 0 auto;
    margin-left: 0;
  }
  .cart-row {
    grid-template-columns: 22px 68px minmax(0, 1fr);
    grid-template-areas:
      'check cover info'
      '. qty qty'
      '. price subtotal';
    row-gap: var(--sp-2);
  }
  .cart-row .item-check {
    grid-area: check;
  }
  .cart-row img {
    grid-area: cover;
    width: 68px;
    height: 68px;
  }
  .cart-row > div:nth-of-type(1) {
    grid-area: info;
  }
  .cart-row .price {
    grid-area: price;
  }
  .cart-row .quantity-box {
    grid-area: qty;
    justify-self: start;
  }
  .cart-row .subtotal {
    grid-area: subtotal;
    text-align: right;
  }
  .cart-row .link-btn {
    grid-column: 3;
    justify-self: end;
  }
  .cart-bar {
    flex-wrap: wrap;
    gap: var(--sp-2);
    border-radius: var(--r);
  }
  .total-box {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    padding-top: var(--sp-2);
    border-top: 1px dashed var(--line);
  }
  .order-card-body {
    flex-direction: column;
    gap: var(--sp-3);
  }
  .order-side {
    flex: auto;
    padding-left: 0;
    border-left: none;
    border-top: 1px dashed var(--line);
    padding-top: var(--sp-3);
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legal-cards {
    grid-template-columns: 1fr;
  }
  .service-strip {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .footer-trail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5) var(--sp-4);
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .header-main {
    padding-top: 8px;
  }
  .pill-top {
    padding: 8px 10px 10px;
    row-gap: 8px;
    column-gap: 8px;
  }
  .header-brand .brand-name {
    font-size: 16px;
  }
  .header-brand .brand-emblem {
    width: 32px;
    height: 32px;
  }
  .search-form {
    height: 40px;
    padding-left: 12px;
  }
  .search-field input {
    font-size: 12.5px;
  }
  .search-submit {
    width: 32px;
    height: 32px;
    padding: 0;
  }
  .search-submit-text {
    display: none;
  }
  .pill-hot {
    margin: 0 10px;
    gap: 6px;
  }
  .search-hot-label {
    padding-right: 8px;
  }
  .hero-slide-mask {
    padding: var(--sp-5);
    justify-content: flex-end;
  }
  .hero-slide-title {
    font-size: 24px;
    max-width: 100%;
  }
  .hero-slide-desc {
    font-size: 12.5px;
  }
  .hero-dots {
    left: auto;
    right: var(--sp-5);
    bottom: var(--sp-5);
  }
  .hero-slide-cta {
    margin-top: var(--sp-2);
  }
  .cat-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cat-rail-name {
    font-size: 12px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-card-body {
    padding: var(--sp-3);
  }
  .product-card-title {
    font-size: 13px;
  }
  .product-card-price .price {
    font-size: 17px;
  }
  .product-card-price .sales {
    display: none;
  }
  .promo-card {
    min-height: 168px;
    padding: var(--sp-5);
  }
  .pay-actions,
  .error-actions {
    flex-direction: column;
  }
  .pay-actions .btn,
  .error-actions .btn {
    width: 100%;
  }
  .cart-row {
    grid-template-columns: 22px 60px minmax(0, 1fr);
  }
  .cart-row img {
    width: 60px;
    height: 60px;
  }
  .order-card-head {
    gap: var(--sp-2);
    font-size: 12px;
  }
  .order-card-head .status {
    margin-left: 0;
    width: 100%;
  }
  .kv-list {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .timeline {
    padding-left: 18px;
  }
  .detail-content {
    padding: var(--sp-4);
  }
  .footer-bottom-inner {
    font-size: 11px;
  }
  .footer-meta {
    flex-wrap: wrap;
    gap: var(--sp-2);
  }
}

/* ==========================================================================
 * 动效降级
 * ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-slide-media img,
  .product-card-cover img,
  .cat-rail-pic img {
    transition: none !important;
  }

  .hero-slide-media {
    transform: none !important;
  }

  .cart-badge {
    animation: none;
  }

  .header-topbar,
  .pill-hot,
  .category-nav,
  .nav-toggle,
  .action-item,
  .user-chip,
  .merchant-entry,
  .guest-cta,
  .search-submit,
  .mobile-drawer-inner {
    transition-duration: 1ms !important;
  }

  .action-item:hover,
  .merchant-entry:hover,
  .user-chip:hover,
  .nav-toggle:hover,
  .guest-cta:hover,
  .search-submit:hover {
    transform: none;
  }
}
