/* ==========================================================================
   北斗工作室 · 视觉系统 v3「宣纸 · 茶墨」 / Rice Paper & Tea Ink
   --------------------------------------------------------------------------
   配色方向：暖象牙纸底 + 近白纸面 + 深咖墨字 + 铜金强调 + 松绿点缀。
   全站无纯黑、无纯白满铺、无蓝色遗留。响应层叠覆盖 v1（styles/redesign/premium）。
   字体：思源宋体（标题）/ 系统黑体（正文）/ 等宽（数字时间）。
   ========================================================================== */

/* ==========================================================================
   1. 令牌
   ========================================================================== */

.shop-body,
.auth-body,
.legal-body {
  /* 纸面 */
  --bg: #F6F1E7;
  --bg-sunken: #EFE8D9;
  --paper: #FFFCF5;
  --paper-raised: #FFFFFF;
  --paper-soft: #FBF6EB;
  --deep: #F1EADC;
  --deep-soft: #FBF6EB;
  --deep-raised: #FFFCF5;

  /* 线条 */
  --line: #E2D9C8;
  --line-soft: #EDE5D6;
  --line-strong: #CFC3AD;

  /* 墨色 */
  --ink: #23201B;
  --ink-soft: #453F36;
  --muted: #6F6759;
  --muted-soft: #8A8172;

  /* 铜金 */
  --brand: #A9803C;
  --brand-hi: #C29A52;
  --brand-deep: #86622A;
  --brand-wash: #F4EBD8;
  --brand-line: #DCC9A3;
  --on-brand: #FFFCF5;

  /* 语义 */
  --forest: #2F4A3E;
  --green: #3F7A5C;
  --green-wash: #E8F0EA;
  --amber: #B07A2A;
  --amber-wash: #F8EEDA;
  --red: #A6483C;
  --red-wash: #F8E7E4;

  /* 兼容旧变量名 */
  --blue: #A9803C;
  --blue-hover: #86622A;
  --blue-wash: #F4EBD8;
  --blue-line: #DCC9A3;
  --gold: #A9803C;
  --gold-soft: #C29A52;

  /* 尺寸与节奏 */
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;

  --dur: .2s;
  --ease: cubic-bezier(.4, 0, .2, 1);

  --font-serif-cn: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC",
    "Source Han Serif CN", "STSong", "SimSun", serif;
  --font-sans-cn: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    system-ui, sans-serif;
  --font-num: "SF Mono", "JetBrains Mono", "Cascadia Mono", "Roboto Mono",
    ui-monospace, Menlo, Consolas, monospace;
  --mono: var(--font-num);

  --shadow-sm: 0 1px 2px rgba(52, 42, 24, .05);
  --shadow-md: 0 6px 18px -10px rgba(52, 42, 24, .22);
  --shadow-lg: 0 22px 48px -28px rgba(52, 42, 24, .3);

  --header-h: 68px;
  color-scheme: light;
}

/* ==========================================================================
   2. 基础
   ========================================================================== */

.shop-body,
.auth-body,
.legal-body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans-cn);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 纸纹：极淡的双层渐变，不用图片 */
.shop-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(169, 128, 60, .07), transparent 62%),
    radial-gradient(900px 520px at 96% 4%, rgba(47, 74, 62, .05), transparent 60%);
}
.shop-body > * { position: relative; z-index: 1; }

body.shop-body main,
body.shop-body .shop-page,
body.shop-body .home-section,
body.shop-body .marketplace-section,
body.shop-body .marketplace-layout,
body.shop-body .marketplace-products,
body.shop-body .directory-layout,
body.shop-body .directory-products,
body.shop-body #home,
body.shop-body .shop-page.active {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

.shop-body :is(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
.shop-body ul, .shop-body ol { padding: 0; list-style: none; }
.shop-body a { color: inherit; text-decoration: none; }
.shop-body img { display: block; max-width: 100%; }

.shop-body ::selection { background: rgba(169, 128, 60, .2); color: var(--ink); }

.shop-body *:focus-visible,
.auth-body *:focus-visible,
.legal-body *:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* 滚动条 */
.shop-body { scrollbar-color: var(--line-strong) transparent; }
.shop-body ::-webkit-scrollbar { width: 10px; height: 10px; }
.shop-body ::-webkit-scrollbar-track { background: transparent; }
.shop-body ::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--bg);
  border-radius: 999px;
}
.shop-body ::-webkit-scrollbar-thumb:hover { background: var(--brand-line); }

/* ==========================================================================
   3. 顶栏
   ========================================================================== */

.shop-body .shop-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(255, 252, 245, .88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
}
@supports (backdrop-filter: blur(1px)) {
  .shop-body .shop-header {
    background: rgba(255, 252, 245, .76);
    backdrop-filter: blur(18px) saturate(1.1);
  }
}

/* 徽记 */
.shop-body .shop-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.shop-body .logo-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  background:
    linear-gradient(158deg, #FFFCF5 0%, #F3E9D4 100%);
  box-shadow:
    inset 0 0 0 1px rgba(169, 128, 60, .5),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 6px -3px rgba(52, 42, 24, .3);
  overflow: hidden;
}
.shop-body .logo-glyph img { display: none !important; }
.shop-body .logo-glyph::before {
  content: "北";
  font-family: var(--font-serif-cn);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: var(--brand-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}
.shop-body .logo-glyph::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(169, 128, 60, .3);
  border-radius: 2px;
  pointer-events: none;
}

.shop-body .shop-logo > span:last-child {
  font-family: var(--font-serif-cn);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .2em;
  text-indent: .2em;
  color: var(--ink);
  white-space: nowrap;
}
.shop-body .shop-logo > span:last-child small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-sans-cn);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--brand);
}

/* 导航 */
.shop-body .shop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.shop-body .shop-nav-link {
  position: relative;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans-cn);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.shop-body .shop-nav-link:hover { color: var(--ink); background: var(--brand-wash); }
.shop-body .shop-nav-link.active {
  color: var(--brand-deep);
  border-color: var(--brand-line);
  background: var(--brand-wash);
  font-weight: 600;
}

/* 工具按钮 */
.shop-body .header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.shop-body .round-button,
.shop-body .cart-button,
.shop-body .login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans-cn);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.shop-body .round-button { width: 38px; padding: 0; }
.shop-body .round-button:hover,
.shop-body .cart-button:hover,
.shop-body .login-link:hover {
  color: var(--brand-deep);
  border-color: var(--brand-line);
  background: var(--brand-wash);
}
.shop-body .round-button svg,
.shop-body .cart-button svg,
.shop-body .login-link svg,
.shop-body .round-button i,
.shop-body .cart-button i,
.shop-body .login-link i { width: 16px; height: 16px; }

.shop-body .cart-button { position: relative; }
.shop-body .cart-button #cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 5px;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-num);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--paper);
}
.shop-body .login-link span { white-space: nowrap; }

/* ==========================================================================
   4. 首屏
   ========================================================================== */

.shop-body .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(18px, 4vw, 56px) 44px;
}

.shop-body .home-hero-copy { min-width: 0; }

.shop-body .kicker {
  display: block;
  margin-bottom: 20px;
  color: var(--brand);
  font-family: var(--font-num);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.shop-body .kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-right: 10px;
  vertical-align: 3px;
  background: var(--brand-line);
}

.shop-body #home-brand-name,
.shop-body .home-hero-copy h1 {
  font-family: var(--font-serif-cn);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .06em;
  color: var(--ink);
}

.shop-body .home-hero-lead {
  margin-top: 16px;
  color: var(--ink-soft);
  font-family: var(--font-serif-cn);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .06em;
}

.shop-body .home-hero-note {
  margin-top: 12px;
  max-width: 46ch;
  color: var(--muted);
  font-family: var(--font-sans-cn);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: .03em;
}

/* 快捷操作 */
.shop-body .home-quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.shop-body .home-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans-cn);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.shop-body .home-quick-action svg,
.shop-body .home-quick-action i { width: 16px; height: 16px; opacity: .8; }
.shop-body .home-quick-action:hover {
  color: var(--brand-deep);
  border-color: var(--brand);
  background: var(--brand-wash);
  transform: translateY(-1px);
}
.shop-body .home-quick-action:active { transform: translateY(0); }

.shop-body .home-quick-action.is-primary,
.shop-body #home-quick-buy {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand-hi) 0%, var(--brand) 100%);
  color: var(--on-brand);
  box-shadow: 0 10px 22px -14px rgba(134, 98, 42, .85), var(--shadow-sm);
}
.shop-body .home-quick-action.is-primary:hover,
.shop-body #home-quick-buy:hover {
  border-color: var(--brand-deep);
  background: linear-gradient(180deg, #CBA65D 0%, #B4893F 100%);
  color: var(--on-brand);
  box-shadow: 0 14px 26px -14px rgba(134, 98, 42, .9);
}
.shop-body .home-quick-action.is-primary svg,
.shop-body #home-quick-buy svg { opacity: .95; }

/* 客服行（真实结构：#home-contact-actions > .contact-list > a） */
#home #home-contact-actions {
  display: flex !important;
  flex: 1 0 100%;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}
#home #home-contact-actions .contact-list {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--line-soft) !important;
}
#home #home-contact-actions .contact-list > * {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 7px;
  min-width: 0 !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muted) !important;
  font-family: var(--font-sans-cn);
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: .04em;
  transition: color var(--dur) var(--ease);
}
#home #home-contact-actions .contact-list > * + * {
  border-left: 1px solid var(--line-soft) !important;
}
#home #home-contact-actions .contact-list > *:first-child { padding-left: 0 !important; }
#home #home-contact-actions .contact-list > *:hover {
  background: transparent !important;
  color: var(--brand-deep) !important;
}
#home #home-contact-actions .contact-list > * b {
  color: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .04em;
}
#home #home-contact-actions .contact-list > * small { display: none !important; }
#home #home-contact-actions .contact-list > * img,
#home #home-contact-actions .contact-list > * svg,
#home #home-contact-actions .contact-list > * .brand-logo {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px;
  filter: saturate(.35) sepia(.35) brightness(.82);
  opacity: .8;
}
#home #home-contact-actions .contact-list > *:hover img,
#home #home-contact-actions .contact-list > *:hover svg {
  filter: saturate(.7) sepia(.3) brightness(.9);
  opacity: 1;
}

/* 四条目 */
.shop-body .home-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.shop-body .home-hero-metrics > * {
  display: grid;
  gap: 6px;
  padding: 0 16px;
  border-left: 1px solid var(--line-soft);
}
.shop-body .home-hero-metrics > *:first-child { padding-left: 0; border-left: 0; }
.shop-body .home-hero-metrics > * b {
  color: var(--ink);
  font-family: var(--font-serif-cn);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
}
.shop-body .home-hero-metrics > * small {
  color: var(--muted-soft);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .02em;
}

/* ==========================================================================
   5. 公告卡
   ========================================================================== */

.shop-body .store-notice,
.shop-body .home-hero > .store-notice {
  position: relative;
  margin: 0;
  padding: 22px 24px 20px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.shop-body .store-notice::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-line) 100%);
}

.shop-body .notice-heading,
.shop-body .store-notice > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.shop-body .notice-heading h2,
.shop-body .store-notice > header h2,
.shop-body .store-notice h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--font-serif-cn);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
}
.shop-body .store-notice .status-pill,
.shop-body .store-notice [class*="status"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  white-space: nowrap;
}
.shop-body .store-notice .status-pill::before,
.shop-body .store-notice [class*="status"]::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(63, 122, 92, .14);
}

.shop-body .notice-body,
.shop-body .store-notice [id*="notice"] {
  color: var(--ink-soft);
  font-family: var(--font-sans-cn);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: .02em;
}
.shop-body .notice-body p + p { margin-top: 8px; }
.shop-body .notice-body strong,
.shop-body .notice-body b { color: var(--brand-deep); font-weight: 600; }

/* 最新订单 */
.shop-body .store-notice .recent-orders,
.shop-body .recent-orders {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.shop-body .recent-orders h3,
.shop-body .recent-orders > header,
.shop-body .recent-orders > strong {
  display: block;
  margin-bottom: 9px;
  color: var(--muted-soft);
  font-family: var(--font-sans-cn);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.shop-body .recent-orders li,
.shop-body .recent-orders > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}
.shop-body .recent-orders li > *:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-body .recent-orders time,
.shop-body .recent-orders li > *:last-child {
  flex: 0 0 auto;
  color: var(--brand-deep);
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   6. 商品区骨架
   ========================================================================== */

.shop-body .marketplace-section,
.shop-body .home-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 0;
}

.shop-body .marketplace-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 20px;
  border-top: 1px solid var(--line);
}

/* 区块标题行 */
.shop-body .home-products-heading,
.shop-body .section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 20px;
}
.shop-body .home-products-heading h2,
.shop-body .section-title h1,
.shop-body .section-title h2 {
  color: var(--ink);
  font-family: var(--font-serif-cn);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: .08em;
}
.shop-body .home-products-heading .count,
.shop-body .section-title .count,
.shop-body .home-products-heading small {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .04em;
}
.shop-body .section-title p,
.shop-body .home-products-heading p {
  flex: 1 0 100%;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

/* 搜索与排序 */
.shop-body .home-search,
.shop-body .shop-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shop-body .home-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 340px;
}
.shop-body .home-search input,
.shop-body #home-product-search {
  width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans-cn);
  font-size: 12.5px;
  letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.shop-body .home-search input::placeholder { color: var(--muted-soft); }
.shop-body .home-search input:focus {
  border-color: var(--brand);
  background: var(--paper-raised);
  outline: none;
}
.shop-body .home-search svg,
.shop-body .home-search i,
.shop-body .home-search [data-lucide] {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--brand-deep);
  opacity: .75;
  pointer-events: none;
}
.shop-body #home-product-sort,
.shop-body .home-sort {
  flex: 0 0 auto;
  min-height: 42px;
  height: 42px;
  padding: 0 32px 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans-cn);
  font-size: 12.5px;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.shop-body #home-product-sort:hover { border-color: var(--brand-line); }

/* ==========================================================================
   7. 分类侧栏
   ========================================================================== */

.shop-body .category-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.shop-body .category-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--paper-soft), var(--paper));
}
.shop-body .category-sidebar-head h2 {
  color: var(--ink);
  font-family: var(--font-serif-cn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
}
.shop-body .category-sidebar-head .kicker { display: none; }

.shop-body .category-side-list {
  display: grid;
  gap: 2px;
  padding: 8px;
}
.shop-body .category-side-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.shop-body .category-side-item > img,
.shop-body .category-side-item > .mark-fallback { display: none !important; }
.shop-body .category-side-item > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.shop-body .category-side-item b {
  color: var(--ink-soft);
  font-family: var(--font-sans-cn);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-body .category-side-item small {
  color: var(--muted-soft);
  font-size: 10.5px;
  letter-spacing: .02em;
}
.shop-body .category-side-item:hover { background: var(--brand-wash); }
.shop-body .category-side-item:hover b { color: var(--ink); }
.shop-body .category-side-item.active,
.shop-body .category-side-item[aria-pressed="true"],
.shop-body .category-side-item[aria-current="true"] {
  background: var(--brand-wash);
  box-shadow: inset 2px 0 0 var(--brand);
}
.shop-body .category-side-item.active b,
.shop-body .category-side-item[aria-pressed="true"] b,
.shop-body .category-side-item[aria-current="true"] b { color: var(--brand-deep); font-weight: 600; }
.shop-body .category-side-item.active small,
.shop-body .category-side-item[aria-pressed="true"] small { color: var(--brand); }

/* 侧栏内的加号 / 箭头 */
.shop-body .category-side-item > svg,
.shop-body .category-side-item > i {
  width: 13px;
  height: 13px;
  color: var(--line-strong);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.shop-body .category-side-item:hover > svg { color: var(--brand); transform: translateX(2px); }

/* ==========================================================================
   8. 商品网格
   ========================================================================== */

.shop-body .marketplace-products { min-width: 0; }

.shop-body .store-product-grid,
.shop-body .hot-products,
.shop-body .category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

/* ==========================================================================
   9. 商品卡
   ========================================================================== */

.shop-body .store-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.shop-body .store-product-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* 图区：奶纸色底 + 白底图 multiply 融入 */
.shop-body .product-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-soft);
  cursor: pointer;
  overflow: hidden;
}
.shop-body .product-visual img {
  width: 100%;
  height: 100%;
  padding: 14%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .32s var(--ease);
}
.shop-body .store-product-card:hover .product-visual img { transform: scale(1.03); }
.shop-body .product-visual .cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--brand-deep);
  font-family: var(--font-serif-cn);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .1em;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(169, 128, 60, .04) 10px 20px),
    var(--paper-soft);
}

/* 角标 */
.shop-body .delivery-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: rgba(35, 32, 27, .82);
  color: #F7F2E6;
  font-family: var(--font-sans-cn);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  backdrop-filter: blur(4px);
}
.shop-body .delivery-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-hi);
}
.shop-body .delivery-badge.online::before { background: #8FD3AE; }
.shop-body .delivery-badge.review { background: rgba(47, 74, 62, .88); }

/* 卡内容 */
.shop-body .store-product-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 14px 15px 15px;
}
.shop-body .store-product-category {
  color: var(--brand-deep);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-body .store-product-name,
.shop-body button.store-product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans-cn);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .01em;
  text-align: left;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.shop-body .store-product-name:hover { color: var(--brand-deep); }

.shop-body .store-product-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.9em;
  color: var(--muted);
  font-family: var(--font-sans-cn);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .01em;
}

.shop-body .store-product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.shop-body .store-product-footer > div { display: grid; gap: 2px; min-width: 0; }
.shop-body .store-product-footer small {
  color: var(--muted-soft);
  font-family: var(--font-sans-cn);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
}
.shop-body .store-product-footer strong {
  color: var(--brand-deep);
  font-family: var(--font-num);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums lining-nums;
}
.shop-body .store-product-footer .store-product-stock {
  color: var(--muted-soft);
  font-size: 10.5px;
  letter-spacing: .02em;
}
.shop-body .store-product-footer .store-product-stock.is-low { color: var(--amber); }
.shop-body .store-product-footer .store-product-stock.is-out { color: var(--red); }

.shop-body .product-buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-sm);
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-family: var(--font-sans-cn);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.shop-body .product-buy-button:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}
.shop-body .product-buy-button svg,
.shop-body .product-buy-button i { width: 14px; height: 14px; }

/* 缺货态 */
.shop-body .store-product-card.is-out-of-stock .product-visual img { opacity: .45; }
.shop-body .store-product-card.is-out-of-stock .product-buy-button {
  border-color: var(--line);
  background: var(--deep);
  color: var(--muted-soft);
  cursor: default;
}

/* ==========================================================================
   10. 商品详情
   ========================================================================== */

.shop-body .product-crumb,
.shop-body .detail-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px clamp(18px, 4vw, 56px) 14px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: .04em;
}
.shop-body .product-crumb button,
.shop-body .detail-crumb button {
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font-size: 11.5px;
  cursor: pointer;
}
.shop-body .product-crumb svg,
.shop-body .detail-crumb svg { width: 12px; height: 12px; color: var(--line-strong); }
.shop-body .product-crumb span:last-child { color: var(--ink-soft); }

.shop-body .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 26px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 40px;
}

.shop-body .detail-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* 主图：纸色装裱 + 白底图 multiply */
.shop-body .detail-icon,
.shop-body #detail-icon {
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(169, 128, 60, .06), transparent 66%),
    var(--paper-soft);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.shop-body .detail-icon img,
.shop-body #detail-icon img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 260px;
  margin: 0 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.shop-body .product-category {
  color: var(--brand-deep);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.shop-body #detail-name,
.shop-body .detail-main h1 {
  color: var(--ink);
  font-family: var(--font-serif-cn);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: .04em;
}
.shop-body .detail-desc,
.shop-body #detail-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

/* 规格卡 */
.shop-body .detail-specs {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.shop-body .detail-specs-label {
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.shop-body .detail-spec {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 66px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-soft);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.shop-body .detail-spec:hover { border-color: var(--brand-line); background: var(--brand-wash); }
.shop-body .detail-spec.active {
  border-color: var(--brand);
  background: var(--brand-wash);
  box-shadow: inset 0 0 0 1px var(--brand), var(--shadow-sm);
}
.shop-body .detail-spec > b,
.shop-body .detail-spec > span:first-child {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.shop-body .detail-spec.active > b,
.shop-body .detail-spec.active > span:first-child { color: var(--brand-deep); }
.shop-body .detail-spec > small,
.shop-body .detail-spec > span:last-child {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .02em;
}
.shop-body .detail-spec.is-soldout { opacity: .5; }

/* 三条交付信息 */
.shop-body .detail-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.shop-body .detail-info > article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-right: 1px solid var(--line-soft);
}
.shop-body .detail-info > article:last-child { border-right: 0; }
.shop-body .detail-info > article svg,
.shop-body .detail-info > article i {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--brand);
}
.shop-body .detail-info > article div { display: grid; gap: 3px; min-width: 0; }
.shop-body .detail-info > article span {
  color: var(--muted-soft);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.shop-body .detail-info > article b {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* 说明面板 */
.shop-body .description-panel {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.shop-body .description-panel h2 {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-family: var(--font-serif-cn);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
}
.shop-body .description-panel > div,
.shop-body #detail-content {
  max-width: 76ch;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: .01em;
}
.shop-body #detail-content b,
.shop-body #detail-content strong { color: var(--brand-deep); font-weight: 600; }
.shop-body .description-panel ul { display: grid; gap: 7px; }
.shop-body .description-panel li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}
.shop-body .description-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 5px;
  height: 1px;
  background: var(--brand-line);
}

/* ==========================================================================
   11. 购买面板
   ========================================================================== */

.shop-body .purchase-panel {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: grid;
  gap: 14px;
  max-width: 344px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.shop-body .purchase-top { display: grid; gap: 4px; }
.shop-body .purchase-top > span {
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.shop-body #detail-price {
  display: block;
  color: var(--brand-deep);
  font-family: var(--font-num);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums lining-nums;
}
.shop-body #detail-stock { color: var(--muted); font-size: 11.5px; letter-spacing: .02em; }

.shop-body .wholesale-tiers {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* 数量 */
.shop-body .purchase-panel > label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: .04em;
}
.shop-body .quantity {
  display: inline-flex;
  align-items: stretch;
  width: fit-content;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper-soft);
  overflow: hidden;
}
.shop-body .quantity button {
  width: 42px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.shop-body .quantity button:hover { background: var(--brand-wash); color: var(--brand-deep); }
.shop-body .quantity input {
  width: 52px;
  min-height: 42px;
  border: 0 !important;
  border-left: 1px solid var(--line) !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: var(--paper) !important;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 13.5px;
  text-align: center;
  box-shadow: none !important;
  -moz-appearance: textfield;
}
.shop-body .quantity input::-webkit-outer-spin-button,
.shop-body .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.shop-body .purchase-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.shop-body .purchase-total span {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: .08em;
}
.shop-body .purchase-total b,
.shop-body #purchase-total {
  color: var(--brand-deep);
  font-family: var(--font-num);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

/* 主按钮组 */
.shop-body #buy-now,
.shop-body .dark-button.full,
.shop-body .dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--brand) !important;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--brand-hi) 0%, var(--brand) 100%) !important;
  color: var(--on-brand) !important;
  font-family: var(--font-sans-cn);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: 0 12px 24px -16px rgba(134, 98, 42, .9), var(--shadow-sm);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.shop-body #buy-now:hover,
.shop-body .dark-button.full:hover,
.shop-body .dark-button:hover {
  border-color: var(--brand-deep) !important;
  background: linear-gradient(180deg, #CBA65D 0%, #B4893F 100%) !important;
  color: var(--on-brand) !important;
  box-shadow: 0 16px 30px -16px rgba(134, 98, 42, .95);
  transform: translateY(-1px);
}
.shop-body #buy-now:active,
.shop-body .dark-button.full:active { transform: translateY(0); }

.shop-body #add-to-cart,
.shop-body .outline-button.full,
.shop-body .outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans-cn);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.shop-body #add-to-cart:hover,
.shop-body .outline-button.full:hover,
.shop-body .outline-button:hover {
  border-color: var(--brand);
  background: var(--brand-wash);
  color: var(--brand-deep);
}
.shop-body #buy-now svg,
.shop-body #add-to-cart svg,
.shop-body .dark-button svg,
.shop-body .outline-button svg { width: 15px; height: 15px; }

.shop-body .purchase-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--muted-soft);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .01em;
}
.shop-body .purchase-note svg { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 2px; }

/* ==========================================================================
   12. 表单与通用按钮
   ========================================================================== */

.shop-body input[type="text"],
.shop-body input[type="email"],
.shop-body input[type="password"],
.shop-body input[type="number"],
.shop-body input[type="search"],
.shop-body select,
.shop-body textarea {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans-cn);
  font-size: 13px;
  box-shadow: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.shop-body input:focus,
.shop-body select:focus,
.shop-body textarea:focus {
  border-color: var(--brand);
  background: var(--paper-raised);
  outline: none;
}
.shop-body input::placeholder,
.shop-body textarea::placeholder { color: var(--muted-soft); }

/* ==========================================================================
   13. 徽标 / 结算 / 弹层 / 客服
   ========================================================================== */

.shop-body .badge,
.shop-body .pill,
.shop-body .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-xs);
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
}

.shop-body .checkout-card,
.shop-body .cashier-card,
.shop-body .order-card,
.shop-body .panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.shop-body .modal-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(35, 32, 27, .38);
  backdrop-filter: blur(6px);
}
.shop-body .modal-layer[hidden] { display: none; }
.shop-body .modal-card {
  width: min(560px, 100%);
  max-height: 84vh;
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: 0 40px 80px -40px rgba(35, 32, 27, .55);
}
.shop-body .modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
}
.shop-body .modal-x:hover { color: var(--brand-deep); border-color: var(--brand-line); }

.shop-body .toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 300;
  transform: translate(-50%, 12px);
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(35, 32, 27, .94);
  color: #F7F2E6;
  font-size: 12.5px;
  letter-spacing: .04em;
  box-shadow: 0 20px 40px -24px rgba(35, 32, 27, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.shop-body .toast.is-visible,
.shop-body .toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 客服浮标 */
.shop-body .cs-dock { position: fixed; right: 14px; top: 38vh; z-index: 90; }
.shop-body .cs-fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 46px;
  padding: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--brand-deep);
  font-family: var(--font-sans-cn);
  font-size: 11px;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.shop-body .cs-fab svg { width: 17px; height: 17px; writing-mode: horizontal-tb; }
.shop-body .cs-fab:hover {
  border-color: var(--brand);
  background: var(--brand-wash);
  box-shadow: var(--shadow-lg);
}
.shop-body .cs-panel {
  position: absolute;
  right: 56px;
  top: 0;
  width: min(320px, calc(100vw - 88px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: 0 40px 80px -44px rgba(35, 32, 27, .5);
}
.shop-body .cs-panel[hidden] { display: none; }
.shop-body .cs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-body .cs-head h3 {
  color: var(--ink);
  font-family: var(--font-serif-cn);
  font-size: 15px;
  letter-spacing: .1em;
}
.shop-body .cs-panel p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.shop-body .cs-panel .contact-list { display: grid; gap: 8px; margin-top: 12px; }
.shop-body .cs-panel .telegram-button,
.shop-body .cs-panel .qq-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper-soft);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.shop-body .cs-panel .telegram-button:hover,
.shop-body .cs-panel .qq-button:hover {
  border-color: var(--brand);
  background: var(--brand-wash);
}
.shop-body .cs-panel .telegram-button b,
.shop-body .cs-panel .qq-button b { color: var(--ink); font-size: 12.5px; font-weight: 600; }
.shop-body .cs-panel .telegram-button small,
.shop-body .cs-panel .qq-button small { color: var(--muted-soft); font-size: 10.5px; }
.shop-body .cs-panel .telegram-button img,
.shop-body .cs-panel .qq-button img { width: 20px; height: 20px; }

/* ==========================================================================
   14. 页脚
   ========================================================================== */

.shop-body .shop-footer,
.shop-body footer.shop-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand links" "note links";
  align-items: center;
  gap: 10px 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 56px) 34px;
  border-top: 1px solid var(--line);
  visibility: visible !important;
}
.shop-body .shop-footer > .shop-logo { grid-area: brand; }
.shop-body .shop-footer .logo-glyph { width: 34px; height: 34px; }
.shop-body .shop-footer .logo-glyph::before { font-size: 18px; }
.shop-body .shop-footer .shop-logo > span:last-child { font-size: 15px; letter-spacing: .18em; }
.shop-body .shop-footer .shop-logo > span:last-child small { font-size: 8px; letter-spacing: .28em; }

.shop-body .shop-footer > p {
  grid-area: note;
  max-width: 64ch;
  margin: 0;
  color: var(--muted-soft);
  font-size: 11.5px;
  line-height: 1.75;
  letter-spacing: .02em;
}
.shop-body .shop-footer .footer-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}
.shop-body .shop-footer .footer-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  transition: color var(--dur) var(--ease);
}
.shop-body .shop-footer .footer-links > a + a { border-left: 1px solid var(--line-soft); }
.shop-body .shop-footer .footer-links > a:last-child { padding-right: 0; }
.shop-body .shop-footer .footer-links > a:hover { color: var(--brand-deep); }

/* ==========================================================================
   15. 登录 / 协议页
   ========================================================================== */

.auth-body, .legal-body { background: var(--bg); }

.auth-body .auth-card,
.legal-body .legal-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.auth-body .auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 32px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(180deg, var(--paper-soft), var(--paper) 70%);
}
.auth-body .auth-brand h2,
.auth-body .auth-title {
  color: var(--ink);
  font-family: var(--font-serif-cn);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: .05em;
}
.auth-body .auth-title { font-size: clamp(20px, 2vw, 24px); }
.auth-body .auth-copy { color: var(--muted); font-size: 12.5px; line-height: 1.8; }

.auth-body .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper-soft);
  overflow: hidden;
}
.auth-body .auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans-cn);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.auth-body .auth-tab:hover { color: var(--ink); }
.auth-body .auth-tab.active {
  background: var(--paper);
  color: var(--brand-deep);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--brand), var(--shadow-sm);
}

.auth-body .auth-panel {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.auth-body .auth-panel > label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .03em;
}
.auth-body .auth-panel input {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.auth-body .auth-panel input:focus {
  border-color: var(--brand);
  background: var(--paper);
  outline: none;
}
.auth-body .auth-panel input::placeholder { color: var(--muted-soft); }
.auth-body .password-wrap { position: relative; }
.auth-body .password-wrap .reveal {
  position: absolute;
  right: 7px;
  top: calc(50% + 4px);
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.auth-body .password-wrap .reveal:hover { color: var(--brand-deep); background: var(--brand-wash); }
.auth-body .auth-panel small {
  display: block;
  margin-top: 6px;
  color: var(--muted-soft);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0;
}
.auth-body .auth-status { color: var(--amber); font-size: 12px; line-height: 1.6; }
.auth-body .auth-status:empty { display: none !important; }

.auth-body .dark-button.full,
.auth-body .auth-panel .dark-button {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  border: 1px solid var(--brand) !important;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--brand-hi) 0%, var(--brand) 100%) !important;
  color: var(--on-brand) !important;
  font-family: var(--font-sans-cn);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: 0 12px 24px -16px rgba(134, 98, 42, .9);
}
.auth-body .dark-button.full:hover {
  border-color: var(--brand-deep) !important;
  background: linear-gradient(180deg, #CBA65D 0%, #B4893F 100%) !important;
}
.auth-body .auth-alt { color: var(--muted); font-size: 12px; }
.auth-body .auth-alt a { color: var(--brand-deep); font-weight: 500; }
.auth-body .auth-alt a:hover { color: var(--brand); }

.legal-body .legal-card { padding: 32px; }
.legal-body h1 { color: var(--ink); font-family: var(--font-serif-cn); letter-spacing: .06em; }
.legal-body h2 { color: var(--ink); font-family: var(--font-serif-cn); letter-spacing: .04em; }
.legal-body p, .legal-body li { color: var(--ink-soft); line-height: 1.9; }

/* ==========================================================================
   16. 旧样式抑制层（v1 的硬编码浅色 / 蓝色 / 纯白）
   ========================================================================== */

.shop-body .store-product-card,
.shop-body .category-sidebar,
.shop-body .purchase-panel,
.shop-body .description-panel,
.shop-body .detail-specs,
.shop-body .detail-info,
.shop-body .store-notice,
.shop-body .shop-footer { background-color: var(--paper) !important; background-image: none !important; }

.shop-body .product-visual,
.shop-body .detail-icon,
.shop-body #detail-icon { background-color: var(--paper-soft) !important; }

.shop-body .home-quick-action:not(.is-primary) { background-color: var(--paper) !important; }
.shop-body .round-button,
.shop-body .cart-button,
.shop-body .login-link { background-color: var(--paper) !important; }

.shop-body .home-search input,
.shop-body #home-product-sort { background-color: var(--paper) !important; }

/* v1 用蓝色强调，统一压到铜金 */
.shop-body .home-search svg,
.shop-body .cs-fab { color: var(--brand-deep) !important; }
.shop-body .delivery-badge { background-color: rgba(35, 32, 27, .82) !important; }

/* 去掉 v1 遗留的整圈发光与重阴影 */
.shop-body .store-product-card,
.shop-body .category-sidebar,
.shop-body .store-notice { filter: none !important; }

/* 图片不再用 multiply 叠加（图区已是纸色底） */
.shop-body .category-side-item img,
.shop-body .banner img,
.shop-body .hero-media img { mix-blend-mode: normal; }

/* ==========================================================================
   17. 响应式 · 1080
   ========================================================================== */

@media (max-width: 1080px) {
  .shop-body .home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 34px;
  }
  .shop-body .marketplace-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
  .shop-body .store-product-grid,
  .shop-body .hot-products,
  .shop-body .category-grid { gap: 14px; }
  .shop-body .detail-layout { grid-template-columns: minmax(0, 1fr) 306px; gap: 20px; }
  .shop-body .purchase-panel { max-width: 306px; }
  .shop-body .home-hero-metrics { margin-top: 24px; }
}

/* ==========================================================================
   18. 响应式 · 720（移动）
   ========================================================================== */

@media (max-width: 720px) {
  .shop-body { --header-h: 58px; }

  /* 顶栏单行：logo 左，工具右，导航收起 */
  body.shop-body .shop-header {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    height: auto !important;
    min-height: 56px !important;
    padding: 9px 14px !important;
  }
  body.shop-body .shop-header .shop-logo { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  body.shop-body .shop-header .shop-nav { display: none !important; }
  body.shop-body .shop-header .header-tools {
    flex: 0 0 auto !important;
    display: flex !important;
    gap: 7px !important;
  }
  body.shop-body .shop-header #open-search { display: none !important; }
  body.shop-body .shop-header .round-button,
  body.shop-body .shop-header .cart-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
  }
  body.shop-body .shop-header .login-link {
    width: auto !important;
    min-width: 0 !important;
    height: 36px;
    min-height: 36px;
    padding: 0 11px !important;
    gap: 5px;
  }
  body.shop-body .shop-header .login-link span { display: inline !important; font-size: 11.5px !important; }
  body.shop-body .shop-header .login-link svg,
  body.shop-body .shop-header .login-link i { width: 14px; height: 14px; }
  body.shop-body .logo-glyph { width: 32px; height: 32px; }
  body.shop-body .logo-glyph::before { font-size: 17px; }
  body.shop-body .shop-logo > span:last-child {
    font-size: 14.5px;
    letter-spacing: .14em;
    text-indent: .14em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.shop-body .shop-logo > span:last-child small { font-size: 7.5px; letter-spacing: .22em; text-indent: .22em; }

  /* 首屏 */
  .shop-body .home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px 16px 26px;
  }
  .shop-body .kicker { margin-bottom: 14px; font-size: 10px; }
  .shop-body #home-brand-name,
  .shop-body .home-hero-copy h1 { font-size: clamp(28px, 8.4vw, 36px); letter-spacing: .04em; }
  .shop-body .home-hero-lead { margin-top: 12px; font-size: 16px; }
  .shop-body .home-hero-note { font-size: 12.5px; }

  .shop-body .home-quick-actions { gap: 8px; margin-top: 18px; }
  .shop-body .home-quick-action {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    font-size: 12.5px;
  }
  .shop-body .home-quick-action.is-primary,
  .shop-body #home-quick-buy { flex: 1 1 100%; }
  #home #home-contact-actions .contact-list > * {
    min-height: 36px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
  }
  #home #home-contact-actions .contact-list > * b { font-size: 11.5px !important; }
  #home #home-contact-actions .contact-list > *:first-child { padding-left: 0 !important; }

  .shop-body .home-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
    padding-top: 18px;
  }
  .shop-body .home-hero-metrics > * { padding: 10px 0 10px 12px; }
  .shop-body .home-hero-metrics > *:nth-child(odd) { padding-left: 0; border-left: 0; }
  .shop-body .home-hero-metrics > * b { font-size: 12.5px; }
  .shop-body .home-hero-metrics > * small { font-size: 10.5px; }

  /* 公告 */
  .shop-body .store-notice { padding: 16px 16px 14px 18px; }
  .shop-body .notice-heading h2,
  .shop-body .store-notice h2 { font-size: 13.5px; }
  .shop-body .notice-body,
  .shop-body .store-notice [id*="notice"] { font-size: 12px; line-height: 1.85; }
  .shop-body .recent-orders li,
  .shop-body .recent-orders > div { font-size: 11px; }

  /* 商品区 */
  .shop-body .marketplace-section,
  .shop-body .home-section { padding-left: 16px; padding-right: 16px; }
  .shop-body .marketplace-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-top: 22px;
  }
  .shop-body .category-sidebar { position: static; top: auto; }
  .shop-body .category-sidebar-head { padding: 13px 14px; }
  .shop-body .category-sidebar-head h2 { font-size: 13px; }
  .shop-body .category-side-list { max-height: 0; overflow: hidden; padding: 0 8px; transition: max-height .24s var(--ease); }
  .shop-body .category-sidebar.is-open .category-side-list { max-height: 340px; padding: 8px; }
  .shop-body .category-side-item { min-height: 40px; }
  .shop-body .category-side-item b { font-size: 12.5px; }

  .shop-body .home-search { max-width: none; flex: 1 1 auto; }
  .shop-body #home-product-sort { width: 104px; }
  .shop-body .home-search input { font-size: 12.5px; }

  .shop-body .store-product-grid,
  .shop-body .hot-products,
  .shop-body .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .shop-body .product-visual img { padding: 11%; }
  .shop-body .store-product-info { padding: 11px 11px 12px; gap: 6px; }
  .shop-body .store-product-category { font-size: 9.5px; letter-spacing: .1em; }
  .shop-body .store-product-name,
  .shop-body button.store-product-name {
    font-size: 12.5px;
    line-height: 1.45;
    min-height: 2.8em;
  }
  .shop-body .store-product-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 3.1em;
    font-size: 11px;
    line-height: 1.55;
  }
  .shop-body .store-product-footer { padding-top: 9px; gap: 6px; }
  .shop-body .store-product-footer strong { font-size: 16px; }
  .shop-body .product-buy-button { min-height: 32px; padding: 0 10px; font-size: 11.5px; }
  .shop-body .product-buy-button span { display: none; }

  /* 详情 */
  .shop-body .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 0 16px 32px;
  }
  .shop-body .product-crumb,
  .shop-body .detail-crumb { padding: 14px 16px 10px; }
  .shop-body .purchase-panel { position: static; top: auto; max-width: none; padding: 16px; }
  .shop-body .detail-icon,
  .shop-body #detail-icon { padding: 16px; }
  .shop-body .detail-icon img,
  .shop-body #detail-icon img { max-height: 190px; }
  .shop-body #detail-name,
  .shop-body .detail-main h1 { font-size: 21px; }
  .shop-body .detail-info { grid-template-columns: minmax(0, 1fr); }
  .shop-body .detail-info > article {
    padding: 11px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .shop-body .detail-info > article:last-child { border-bottom: 0; }
  .shop-body .description-panel { padding: 15px 16px; }
  .shop-body .description-panel > div,
  .shop-body #detail-content { font-size: 12.5px; }
  .shop-body #buy-now,
  .shop-body .dark-button.full { min-height: 48px; }

  /* 页脚 */
  .shop-body .shop-footer,
  .shop-body footer.shop-footer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "note" "links";
    gap: 14px;
    padding: 22px 16px 28px;
  }
  .shop-body .shop-footer .footer-links { justify-content: flex-start; }
  .shop-body .shop-footer .footer-links > a { min-height: 30px; padding: 0 9px; font-size: 11.5px; }
  .shop-body .shop-footer .footer-links > a:first-child { padding-left: 0; }

  /* 客服浮标贴右下 */
  .shop-body .cs-dock,
  .shop-body .cs-dock.is-collapsed {
    top: auto !important;
    bottom: 18px !important;
    right: 12px !important;
    left: auto !important;
    height: auto !important;
    max-height: 58vh;
    transform: none !important;
  }
  .shop-body .cs-fab { width: 42px; padding: 12px 0; font-size: 10.5px; }
  .shop-body .cs-panel { right: 0; top: auto; bottom: 56px; }

  /* 登录页 */
  .auth-body .auth-card { border-radius: var(--r-md); }
  .auth-body .auth-aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px;
  }
  .auth-body .auth-panel input { min-height: 46px; font-size: 16px; }
  .legal-body .legal-card { padding: 22px; }
}

/* ==========================================================================
   19. 动效偏好
   ========================================================================== */

/* ==========================================================================
   20. legacy dark suppression
   ========================================================================== */

body.shop-body .shop-header .logo-glyph,
body.shop-body .shop-footer .logo-glyph,
body.shop-body .shop-logo .logo-glyph {
  background: linear-gradient(158deg, #FFFCF5 0%, #F3E9D4 100%) !important;
  border-radius: var(--r-sm) !important;
  box-shadow: inset 0 0 0 1px rgba(169, 128, 60, .5), inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 6px -3px rgba(52, 42, 24, .3) !important;
  overflow: hidden !important;
}
body.shop-body .shop-header .logo-glyph img,
body.shop-body .shop-footer .logo-glyph img,
body.shop-body .shop-logo .logo-glyph img { display: none !important; }
body.shop-body .logo-glyph::before {
  content: "\5317" !important;
  display: block !important;
  font-family: var(--font-serif-cn) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: var(--brand-deep) !important;
  -webkit-text-fill-color: var(--brand-deep) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85) !important;
}
body.shop-body .shop-header .logo-glyph::before { font-size: 21px !important; }
body.shop-body .shop-footer .logo-glyph::before { font-size: 18px !important; }

body.shop-body .shop-header .shop-nav-link.active {
  color: var(--brand-deep) !important;
  background: var(--brand-wash) !important;
  border: 1px solid var(--brand-line) !important;
  box-shadow: none !important;
}
body.shop-body .shop-header .shop-nav-link:hover {
  color: var(--ink) !important;
  background: var(--brand-wash) !important;
}

body.shop-body .home-quick-actions .home-quick-action.is-primary,
body.shop-body #home-quick-buy {
  border-color: var(--brand) !important;
  background: linear-gradient(180deg, var(--brand-hi) 0%, var(--brand) 100%) !important;
  color: var(--on-brand) !important;
}
body.shop-body .home-quick-actions .home-quick-action.is-primary:hover,
body.shop-body #home-quick-buy:hover {
  border-color: var(--brand-deep) !important;
  background: linear-gradient(180deg, #CBA65D 0%, #B4893F 100%) !important;
  color: var(--on-brand) !important;
}
body.shop-body .home-quick-actions .home-quick-action:not(.is-primary) {
  background-color: var(--paper) !important;
  color: var(--ink-soft) !important;
}
body.shop-body .home-quick-actions .home-quick-action:not(.is-primary):hover {
  color: var(--brand-deep) !important;
  background-color: var(--brand-wash) !important;
  border-color: var(--brand) !important;
}

/* 图区底色取纯白，让白底商品图天生无缝；图区四周用发丝线框出画框感 */
body.shop-body .store-product-card .product-visual {
  background-color: #FFFFFF !important;
  background-image: none !important;
}
body.shop-body .store-product-card .product-visual img {
  mix-blend-mode: normal !important;
  filter: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.shop-body .store-product-card.is-out-of-stock .product-visual img { opacity: .5 !important; }

body.shop-body .detail-icon,
body.shop-body #detail-icon {
  background-color: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid var(--line) !important;
  padding: 24px !important;
}
body.shop-body .detail-icon img,
body.shop-body #detail-icon img {
  mix-blend-mode: normal !important;
  filter: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.shop-body .store-product-card {
  border-color: var(--line) !important;
  background-color: var(--paper) !important;
}
body.shop-body .store-product-card:hover { border-color: var(--brand-line) !important; }

body.shop-body .cs-fab { background-color: var(--paper) !important; color: var(--brand-deep) !important; }
body.shop-body .shop-header .round-button,
body.shop-body .shop-header .cart-button,
body.shop-body .shop-header .login-link {
  background-color: var(--paper) !important;
  color: var(--ink-soft) !important;
}

@media (max-width: 720px) {
  body.shop-body .shop-header .logo-glyph { width: 32px !important; height: 32px !important; }
  body.shop-body .shop-header .logo-glyph::before { font-size: 17px !important; }
}
/* ==========================================================================
   21. 移动端细节收口
   ========================================================================== */

@media (max-width: 720px) {
  /* 徽章收进按钮内，不再顶出顶栏 */
  body.shop-body .shop-header .cart-button { position: relative !important; overflow: visible !important; }
  body.shop-body .shop-header .cart-button #cart-count {
    top: 2px !important;
    right: 2px !important;
    min-width: 14px !important;
    height: 14px !important;
    padding: 0 3px !important;
    border-radius: 4px !important;
    font-size: 9px !important;
    line-height: 14px !important;
    box-shadow: 0 0 0 1.5px var(--paper) !important;
  }

  /* 分类折叠条：只留标题行，收紧高度 */
  body.shop-body .category-sidebar-head {
    padding: 11px 14px !important;
    min-height: 46px !important;
    border-bottom: 0 !important;
  }
  body.shop-body .category-sidebar.is-open .category-sidebar-head {
    border-bottom: 1px solid var(--line-soft) !important;
  }
  body.shop-body .category-sidebar-head h2 { font-size: 12.5px !important; }

  /* 搜索行：输入框吃掉剩余宽度，placeholder 不再被切 */
  body.shop-body .home-search { flex: 1 1 auto !important; min-width: 0 !important; max-width: none !important; }
  body.shop-body .home-search input,
  body.shop-body #home-product-search { padding-left: 34px !important; font-size: 12px !important; }
  body.shop-body #home-product-sort { width: 96px !important; padding: 0 22px 0 10px !important; font-size: 12px !important; }

  /* 客服浮标移到右下角外侧，避开商品卡按不到 */
  body.shop-body .cs-dock,
  body.shop-body .cs-dock.is-collapsed {
    top: auto !important;
    bottom: 14px !important;
    right: 10px !important;
    left: auto !important;
    height: auto !important;
    max-height: 62vh;
    transform: none !important;
  }
  body.shop-body .cs-fab {
    width: 40px !important;
    padding: 11px 0 !important;
    font-size: 10px !important;
    box-shadow: 0 12px 24px -12px rgba(52, 42, 24, .45) !important;
  }

  /* 详情主图再压一档 */
  body.shop-body .detail-icon,
  body.shop-body #detail-icon { padding: 16px !important; }
  body.shop-body .detail-icon img,
  body.shop-body #detail-icon img { max-height: 168px !important; }
}
/* ==========================================================================
   22. 登录 / 协议页的深色遗留抑制
   ========================================================================== */

body.auth-body .logo-glyph,
body.legal-body .logo-glyph,
body.auth-body .auth-aside .logo-glyph,
body.auth-body .user-auth-aside .logo-glyph {
  background: linear-gradient(158deg, #FFFCF5 0%, #F3E9D4 100%) !important;
  border-radius: var(--r-sm) !important;
  box-shadow: inset 0 0 0 1px rgba(169, 128, 60, .5), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  overflow: hidden !important;
}
body.auth-body .logo-glyph img,
body.legal-body .logo-glyph img { display: none !important; }
body.auth-body .logo-glyph::before,
body.legal-body .logo-glyph::before {
  content: "\5317" !important;
  display: block !important;
  font-family: var(--font-serif-cn) !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: var(--brand-deep) !important;
  -webkit-text-fill-color: var(--brand-deep) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

body.auth-body .auth-brand,
body.auth-body .auth-aside,
body.legal-body .legal-header { background-color: transparent !important; color: var(--ink) !important; }
body.auth-body .auth-brand h1,
body.auth-body .auth-brand h2,
body.auth-body .auth-brand p,
body.auth-body .auth-aside h1,
body.auth-body .auth-aside h2,
body.auth-body .auth-aside p,
body.auth-body .auth-title,
body.auth-body .auth-copy {
  color: var(--ink) !important;
  -webkit-text-fill-color: currentColor !important;
}
body.auth-body .auth-brand p,
body.auth-body .auth-aside p,
body.auth-body .auth-copy { color: var(--muted) !important; }
body.auth-body .auth-brand .logo-text,
body.auth-body .auth-aside .logo-text { color: var(--ink) !important; }

/* 左栏里所有可能被写成白字的节点 */
body.auth-body .auth-aside *:not(svg):not(path):not(img) {
  -webkit-text-fill-color: currentColor;
}
body.auth-body .auth-aside > div > span,
body.auth-body .auth-aside > div > b,
body.auth-body .auth-aside > div > strong { color: var(--ink) !important; }

/* 顶部返回链 */
body.auth-body .auth-back,
body.auth-body .auth-header a { color: var(--brand-deep) !important; }
@media (prefers-reduced-motion: reduce) {
  .shop-body *,
  .shop-body *::before,
  .shop-body *::after,
  .auth-body *,
  .legal-body * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .shop-body .store-product-card:hover,
  .shop-body .home-quick-action:hover { transform: none; }
}
