/* ==========================================================================
   CENSMADE 独立站 · 视觉系统
   ==========================================================================
   调色板：ink / paper / cream / rule / muted / fog-blue / snow
   字体：Playfair Display（衬线，展示型大标题）+ Inter（无衬线，正文与商品信息）
   断点：≥1024 desktop / 768-1023 tablet / <768 mobile
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap");

/* ---------- Design Tokens ---------- */
:root {
  --ink: #0a0a0a;
  --paper: #f3f2ee;
  --cream: #e8e6e0;
  --rule: #d9d6d1;
  --muted: #6b6b6b;
  --fog: #aebfd1;
  --snow: #fafafa;
  --gold: #c9a96e;

  /* 双字体：展示型大标题用衬线，商品信息/正文用无衬线 */
  --font-serif: "Playfair Display", "Times New Roman", Georgia, "Songti SC", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;

  --maxw: 1440px;
  --gap: 24px;
  --gutter: 48px;
  --radius: 0;
  --transition: 200ms ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}
a:hover {
  opacity: 0.65;
}
/* 商品卡是整卡 <a>，悬停不得变灰（影响产品图呈现） */
.product-card:hover {
  opacity: 1;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ---------- 通用工具类 ---------- */
.h1 {
  font-family: var(--font-serif);
  font-size: 96px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
}
.h4 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.muted {
  color: var(--muted);
}
.rule {
  width: 100%;
  height: 1px;
  background: var(--rule);
  border: 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: #222;
  opacity: 1;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}
.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--cream);
  opacity: 1;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0;
  height: auto;
  letter-spacing: 0.12em;
  font-size: 12px;
}
.btn-ghost:hover {
  opacity: 0.6;
}
.btn-full {
  width: 100%;
}

/* ---------- 页面路由 ---------- */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 80px; /* 顶部 nav 高度 */
}
.page.active {
  display: block;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 80px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo img {
  height: 18px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a.active {
  border-bottom-color: var(--ink);
}
/* 商店下拉子分类 */
.nav-item-drop {
  position: relative;
  display: flex;
  /* 底部透明延伸区：光标从「商店」移向下拉面板时悬停不断开 */
  padding-bottom: 14px;
  margin-bottom: -14px;
}
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  z-index: 90;
}
.nav-item-drop:hover .nav-drop-menu,
.nav-item-drop:focus-within .nav-drop-menu {
  display: block;
}
.nav-drop-menu-inner, .nav-drop-menu {
  flex-direction: column;
}
.nav-drop-menu a {
  display: block;
  background: var(--bg, #fff);
  border: 1px solid var(--rule, #e5e0d8);
  border-top: none;
  padding: 10px 22px !important;
  min-width: 132px;
  text-align: center;
  font-size: 12px !important;
  white-space: nowrap;
}
.nav-drop-menu a:first-child {
  border-top: 1px solid var(--rule, #e5e0d8);
}
.nav-drop-menu a:hover {
  background: var(--ink, #1a1a1a);
  color: var(--bg, #fff);
}
/* 汉堡按钮（窄屏） */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--ink, #1a1a1a);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px;
  font-size: 11px;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.6);
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.nav-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-icon svg {
  width: 20px;
  height: 20px;
}
.nav-icon .badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 9px;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .nav {
    height: 64px;
    padding: 0 20px;
  }
  .nav-inner {
    gap: 12px;
  }
  .page {
    padding-top: 64px;
  }
}

/* 窄屏：导航收进汉堡菜单 */
@media (max-width: 900px) {
  .nav-inner {
    gap: 16px;
  }
  .nav-burger {
    display: flex;
    /* 紧贴 logo 右侧，保持固定小间距 */
    margin-left: 0;
    margin-right: auto;
  }
  .nav-actions {
    margin-left: 0;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg, #fff);
    border-bottom: 1px solid var(--rule, #e5e0d8);
    padding: 8px 24px 20px;
    z-index: 80;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links > a,
  .nav-links > .nav-item-drop > a {
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--rule, #e5e0d8);
  }
  .nav-links > .nav-item-drop {
    flex-direction: column;
  }
  .nav-item-drop .nav-drop-menu {
    display: flex;
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 4px;
  }
  .nav-item-drop .nav-drop-menu a {
    border: 1px solid var(--rule, #e5e0d8) !important;
    min-width: 0;
    padding: 8px 16px !important;
    background: none;
  }
}

/* ---------- 首页 ---------- */
.hero {
  position: relative;
  height: calc(100vh - 80px);
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) 80px;
  color: var(--paper);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.2) 50%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero .eyebrow {
  color: var(--cream);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 96px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 .italic-serif {
  font-style: italic;
  color: var(--cream);
}
.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 40px;
  color: var(--cream);
  opacity: 0.85;
}
.hero-cta {
  display: flex;
  gap: 12px;
}
.hero-cta .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.hero-cta .btn-primary:hover {
  background: var(--cream);
}
.hero-cta .btn-outline {
  border-color: var(--paper);
  color: var(--paper);
}

.section {
  padding: 96px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.05;
}
.section-head .right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 1023px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .section-head h2 {
    font-size: 32px;
  }
}

.product-card {
  cursor: pointer;
  position: relative;
}
.product-card .img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 16px;
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.product-card:hover .img-wrap img {
  transform: scale(1.04);
}
.product-card .badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.product-card .badge {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--paper);
}
.product-card .badge.gold {
  background: var(--gold);
  color: var(--ink);
}
.product-card .badge-series {
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  white-space: nowrap;
}
/* 小屏卡片缩小：角标整体瘦身，减少遮挡商品 */
@media (max-width: 768px) {
  .product-card .badge {
    font-size: 8px;
    padding: 2px 5px;
  }
  .product-card .badge-series {
    font-size: 8px;
    padding: 2px 5px;
    letter-spacing: 0.04em;
  }
}
.product-card .name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.45;
}
.product-card .card-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
}
.product-card .card-color {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 4px;
}
.product-card .price {
  font-size: 13px;
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: baseline;
  white-space: nowrap;
  flex-shrink: 0;
}
.product-card .price .now {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.product-card .price .was {
  text-decoration: line-through;
  color: var(--muted);
}

/* 快速加购条：悬停卡片时从主图底部滑出 */
.quick-add {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 0;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.product-card:hover .quick-add { transform: translateY(0); }
/* 触屏无悬停：常显 */
@media (hover: none) {
  .quick-add { transform: none; }
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 96px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.story-img {
  aspect-ratio: 4/5;
  background: var(--cream);
  overflow: hidden;
}
.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-text .eyebrow {
  margin-bottom: 16px;
}
.story-text h2 {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 24px;
}
.story-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 480px;
}

@media (max-width: 900px) {
  .story {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }
  .hero h1 {
    font-size: 56px;
  }
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--gutter) 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer ul li {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--cream);
  opacity: 0.7;
}
.footer .brand {
  font-family: var(--font-serif);
  font-size: 28px;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--paper);
}
.footer .tagline {
  font-size: 13px;
  color: var(--cream);
  opacity: 0.6;
  max-width: 280px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--cream);
  opacity: 0.5;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer {
    padding: 60px 20px 24px;
  }
}

/* ---------- Shop 商品列表 ---------- */
.shop {
  padding: 0 var(--gutter) 96px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.shop-head {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.shop-head h1 {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 500;
  line-height: 1.0;
  margin-top: 12px;
}
.shop-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.chip.active,
.chip:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.shop-sort {
  font-size: 13px;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
}

/* ---------- PDP 商品详情 ---------- */
.pdp {
  padding: 40px var(--gutter) 96px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.pdp-breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
}
.pdp-breadcrumb a:hover {
  color: var(--ink);
}
.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) 72px minmax(0, 5fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pdp-thumbs-rail { display: none !important; }
}
/* 左栏：图片纵向堆叠，随页面滚动浏览 */
.pdp-gallery-scroll {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pdp-gallery-scroll img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--cream);
  scroll-margin-top: 96px;
}
/* 中栏：缩略图轨道，sticky 跟随 */
.pdp-thumbs-rail {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: none;
}
.pdp-thumbs-rail::-webkit-scrollbar { display: none; }
.pdp-thumbs-rail .t {
  width: 72px;
  aspect-ratio: 3/4;
  background: var(--cream);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  opacity: 0.65;
  transition: border-color var(--transition), opacity var(--transition);
  flex-shrink: 0;
}
.pdp-thumbs-rail .t.active,
.pdp-thumbs-rail .t:hover {
  border-color: var(--ink);
  opacity: 1;
}
.pdp-thumbs-rail .t img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 右栏：信息面板 sticky 固定，超高时内部滚动 */
.pdp-info {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}
@media (max-width: 900px) {
  .pdp-info { position: static; max-height: none; overflow: visible; }
}

.pdp-info .eyebrow {
  margin-bottom: 16px;
}
.pdp-info h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 16px;
}
.pdp-price {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.pdp-price .now {
  color: var(--ink);
}
.pdp-price .was {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 18px;
}
.pdp-price .save {
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 2px 8px;
}
.pdp-section {
  margin-bottom: 28px;
}
.pdp-section .label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.pdp-color-row {
  display: flex;
  gap: 12px;
}
.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
}
.color-swatch.active::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.size-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.size-chip {
  min-width: 56px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.size-chip:hover {
  border-color: var(--ink);
}
.size-chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.size-chip.disabled {
  color: var(--rule);
  text-decoration: line-through;
  cursor: not-allowed;
  background: var(--snow);
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
}
.qty-stepper button {
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
}
.qty-stepper .qty-val {
  width: 48px;
  text-align: center;
  font-weight: 500;
}
.pdp-actions {
  display: flex;
  gap: 12px;
  margin: 32px 0 24px;
}
.pdp-actions .btn {
  flex: 1;
}
.pdp-details {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.pdp-details details {
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}
.pdp-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.pdp-details summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  transition: transform var(--transition);
}
.pdp-details details[open] summary::after {
  transform: rotate(45deg);
}
.pdp-details .content {
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.pdp-details .content ul li {
  margin-bottom: 6px;
}

/* ---------- 购物车 ---------- */
.cart {
  padding: 60px var(--gutter) 96px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.cart-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.cart-head h1 {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 500;
  line-height: 1.0;
}
.cart-head .count {
  font-size: 14px;
  color: var(--muted);
}
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
}
@media (max-width: 900px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }
  .cart-head h1 {
    font-size: 48px;
  }
}
.cart-list .item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.cart-list .item .img {
  width: 120px;
  height: 160px;
  background: var(--cream);
  overflow: hidden;
}
.cart-list .item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-list .item .info .name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
  cursor: pointer;
}
.cart-list .item .info .meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.cart-list .item .info .meta span {
  margin-right: 12px;
}
.cart-list .item .info .actions {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cart-list .item .info .actions button:hover {
  color: var(--ink);
}
.cart-list .item .right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.cart-list .item .right .price {
  font-size: 18px;
  font-weight: 500;
}
.cart-empty {
  text-align: center;
  padding: 140px 20px 160px;
  color: var(--muted);
}
.cart-empty h2 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  color: var(--ink);
}
.cart-empty p {
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  max-width: 340px;
  margin: 0 auto;
}
.cart-empty .btn {
  margin-top: 40px;
  padding: 14px 44px;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.summary {
  background: var(--cream);
  padding: 40px 32px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.summary h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.summary .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}
.summary .row.total {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 500;
}
.summary .points {
  background: var(--paper);
  padding: 12px 16px;
  margin: 16px 0 20px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.summary .points .pts-val {
  font-weight: 600;
  color: var(--ink);
}
.summary .coupon {
  display: flex;
  gap: 8px;
  margin: 16px 0 20px;
}
.summary .coupon input {
  flex: 1;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  padding: 4px 0;
}
.summary .coupon button {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
}

/* ---------- 结算 ---------- */
.checkout {
  padding: 60px var(--gutter) 96px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.checkout-head h1 {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 500;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
}
@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-head h1 {
    font-size: 40px;
  }
}
.checkout-step {
  margin-bottom: 48px;
}
.checkout-step .step-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}
.checkout-step .step-num {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.checkout-step h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-field {
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  transition: border-color var(--transition);
}
.form-field:focus-within {
  border-color: var(--ink);
}
.form-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.form-field input,
.form-field select {
  width: 100%;
  font-size: 15px;
  padding: 4px 0;
}
.option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all var(--transition);
}
.option.active,
.option:hover {
  border-color: var(--ink);
  background: var(--snow);
}
.option .radio {
  width: 18px;
  height: 18px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.option.active .radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--ink);
  border-radius: 50%;
}
.option .body {
  flex: 1;
}
.option .body .name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}
.option .body .desc {
  font-size: 12px;
  color: var(--muted);
}
.option .tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 3px 8px;
}
.option .price {
  font-size: 14px;
  color: var(--muted);
}

.note-line {
  background: var(--snow);
  border: 1px solid var(--rule);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* ---------- 登录 ---------- */
.login {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login .login-art {
    display: none;
  }
}
.login-art {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(201, 169, 110, 0.18), transparent 60%);
}
.login-art .brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  position: relative;
  z-index: 1;
}
.login-art .quote {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1.05;
  font-weight: 500;
  position: relative;
  z-index: 1;
  max-width: 480px;
}
.login-art .quote .italic-serif {
  font-style: italic;
  color: var(--cream);
}
.login-art .footer-line {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
  position: relative;
  z-index: 1;
}
.login-form {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.login-form h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 8px;
}
.login-form .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}
.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.login-tab {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  transition: all var(--transition);
}
.login-tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.login-tab.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.tab {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  color: var(--muted);
}
.tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.login-form .form-field {
  margin-bottom: 8px;
}
.login-form .forgot {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin: 8px 0 24px;
}
.login-form .divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 24px 0;
}
.login-form .divider::before,
.login-form .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.social-row {
  display: flex;
  gap: 12px;
}
.social-btn {
  flex: 1;
  height: 56px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.social-btn:hover {
  border-color: var(--ink);
}
.social-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Thank You ---------- */
.thanks {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: var(--paper);
}
.thanks-inner {
  max-width: 560px;
}
.thanks h1 {
  font-family: var(--font-serif);
  font-size: 96px;
  font-weight: 500;
  line-height: 1.0;
  margin-bottom: 24px;
}
.thanks .sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.thanks .order-no {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  padding: 12px 24px;
  border: 1px solid var(--rule);
  display: inline-block;
}
.thanks .points-earned {
  background: var(--ink);
  color: var(--paper);
  padding: 20px;
  margin: 32px 0;
  font-family: var(--font-serif);
  font-size: 24px;
}
.thanks .points-earned .num {
  font-size: 32px;
  font-weight: 600;
  margin-right: 8px;
}
.thanks .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ---------- Account / Orders (侧边栏布局) ---------- */
.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding: 60px var(--gutter) 96px;
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .account-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.sidebar h3 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
}
.sidebar nav a {
  padding: 14px 16px;
  font-size: 14px;
  border-left: 2px solid transparent;
  transition: all var(--transition);
}
.sidebar nav a.active {
  background: var(--snow);
  border-left-color: var(--ink);
  font-weight: 500;
}
.sidebar nav a:hover {
  background: var(--snow);
}

.member-card {
  background: var(--ink);
  color: var(--paper);
  padding: 32px;
  margin-bottom: 24px;
}
.member-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
}
.member-card .name {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.name-edit {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  transition: color var(--transition);
}
.name-edit:hover {
  color: var(--gold);
}
.name-edit-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.member-card .member-no {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.member-card .tier {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.member-card .points {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
}
.member-card .points .val {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--paper);
}

.account-main h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}
.tier-card {
  background: var(--cream);
  padding: 32px;
  margin-bottom: 32px;
}
.tier-card h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.tier-card .progress {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
}
.tier-card .bar {
  width: 100%;
  height: 6px;
  background: var(--rule);
  position: relative;
  margin-bottom: 12px;
}
.tier-card .bar .fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--ink);
}
.tier-card .hint {
  font-size: 13px;
  color: var(--muted);
}

.info-list {
  border-top: 1px solid var(--rule);
}
.info-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.info-row .label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-row .val {
  font-size: 15px;
}
.info-row .edit {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-row .edit:hover {
  color: var(--ink);
}

.order-list .order {
  border: 1px solid var(--rule);
  margin-bottom: 16px;
}
.order .o-head {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.order .o-head .status {
  background: var(--ink);
  color: var(--paper);
  padding: 4px 10px;
  font-size: 10px;
}
.order .o-head .status.delivered {
  background: var(--cream);
  color: var(--ink);
}
.order .o-body {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.order .o-body .thumb {
  width: 64px;
  height: 80px;
  background: var(--cream);
  flex-shrink: 0;
  overflow: hidden;
}
.order .o-body .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order .o-body .o-info {
  flex: 1;
}
.order .o-body .o-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.order .o-body .o-meta {
  font-size: 12px;
  color: var(--muted);
}
.order .o-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid var(--rule);
  background: var(--snow);
}
.order .o-foot .total {
  font-size: 16px;
  font-weight: 500;
}
.order .o-foot .actions {
  display: flex;
  gap: 12px;
}
.order .o-foot .actions button {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding: 2px 0;
}
.order .o-foot .actions button.outline {
  border-color: var(--rule);
  color: var(--muted);
}

/* ---------- 积分商城 ---------- */
.points-banner {
  background: var(--ink);
  color: var(--paper);
  padding: 104px var(--gutter);
  text-align: center;
}
.points-banner h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.points-banner .lead {
  color: var(--cream);
  opacity: 0.8;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}
.points-banner .balance {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin: 32px 0;
}
.points-banner .rule-line {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
  margin-top: 24px;
}

.rewards-section {
  padding: 80px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.rewards-section h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}
@media (max-width: 768px) {
  .rewards-grid {
    grid-template-columns: 1fr;
  }
}
.reward-card {
  background: var(--cream);
  padding: 0;
  overflow: hidden;
}
.reward-card .img {
  aspect-ratio: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--rule);
}
.reward-card .body {
  padding: 24px;
}
.reward-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
}
.reward-card .note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.reward-card .points-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.reward-card .pts-num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
}
.reward-card .pts-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tier-table th,
.tier-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}
.tier-table th {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.tier-table .tier-name {
  font-family: var(--font-serif);
  font-size: 18px;
}
.tier-table .tier-mult {
  font-weight: 500;
  font-size: 16px;
}
.tier-table .current {
  background: var(--snow);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 200;
  opacity: 0;
  transition: all 300ms ease;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- Responsive 通用 ---------- */
@media (max-width: 600px) {
  .h1 {
    font-size: 48px;
  }
  .h2 {
    font-size: 36px;
  }
  .h3 {
    font-size: 28px;
  }
  .section {
    padding: 60px 20px;
  }
  .cart-list .item {
    grid-template-columns: 80px 1fr;
  }
  .cart-list .item .img {
    width: 80px;
    height: 100px;
  }
  .cart-list .item .right {
    grid-column: 1/-1;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .login-form {
    padding: 40px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .info-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .points-banner h1 {
    font-size: 30px;
  }
  .points-banner .balance {
    font-size: 48px;
  }
  .thanks h1 {
    font-size: 56px;
  }
}


/* ---------- 云服务接入新增样式 ---------- */
.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}
.field-error { display: block; }

/* ---------- 商家后台 ---------- */
.admin {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-head .eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 12px;
}
.admin h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
}
.admin-uid {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.admin-uid code {
  background: var(--paper);
  padding: 5px 9px;
  font-size: 12px;
  color: var(--ink);
  font-family: "SF Mono", Menlo, monospace;
}
.admin-copy {
  font-size: 12px;
  border: 1px solid var(--rule);
  background: none;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--ink);
}
.admin-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 22px;
  line-height: 1.7;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.admin-order {
  border: 1px solid var(--rule);
  background: var(--snow);
}
.admin-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
}
.admin-order-no {
  font-weight: 500;
  font-size: 14px;
}
.admin-order-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.admin-order-right {
  text-align: right;
}
.admin-order-total {
  font-weight: 500;
  font-size: 15px;
}
.admin-status {
  font-size: 12px;
  margin-top: 3px;
  padding: 2px 8px;
  display: inline-block;
}
.st-paid { background: #faeeda; color: #854f0b; }
.st-shipped { background: #e6f1fb; color: #185fa5; }
.st-done { background: #eaf3de; color: #3b6d11; }
.st-pending { background: var(--paper); color: var(--muted); }
.admin-order-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.7;
}
.admin-goods { color: var(--ink); }
.admin-ship { color: var(--muted); }
.admin-ship-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.admin-tracking {
  margin-top: 6px;
  color: var(--ink);
}
.admin-order-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--rule);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}
@media (max-width: 767px) {
  .admin-order-body { grid-template-columns: 1fr; }
  .admin-head { align-items: flex-start; flex-direction: column; }
}

/* ---------- 支付区 ---------- */
.payment-fallback {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--paper);
  border-left: 2px solid var(--gold);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
#paypalButtonContainer {
  margin-top: 18px;
}

/* ---------- 法务 / 信息页 ---------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 24px 112px;
}
.legal .eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 14px;
}
.legal h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 14px;
}
.legal .lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.legal-block {
  margin-top: 40px;
}
.legal-block h2 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}
.legal-block p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  margin-top: 8px;
}
.legal-block p strong {
  color: var(--ink);
  font-weight: 500;
}
.legal-block a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-alert {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}
.legal-table {
  margin-top: 18px;
  border-top: 1px solid var(--rule);
}
.legal-tr {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1.4fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.5;
}
.legal-th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-note {
  font-size: 13px !important;
  color: var(--muted);
  margin-top: 12px !important;
}
@media (max-width: 767px) {
  .legal {
    padding: 48px 20px 80px;
  }
  .legal h1 {
    font-size: 30px;
  }
  .legal-tr {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .legal-th {
    display: none;
  }
  .legal-tr:not(.legal-th) {
    padding: 14px 0;
  }
}

/* ---------- 客服（用户侧悬浮入口 + 聊天抽屉） ---------- */
/* 尺码表（PDP 尺码指南折叠区） */
.sizechart {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.sizechart th, .sizechart td {
  border: 1px solid var(--rule);
  padding: 8px 10px;
  text-align: center;
}
.sizechart th {
  background: var(--paper);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pdp-size-unit { font-size: 11px; color: var(--muted); margin-top: 10px; }
/* 颜色圈内的面料图案 */
.color-swatch { overflow: hidden; }

.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.cs-fab {
  position: fixed;
  right: 24px;
  bottom: 88px;                 /* 避开平台预览注入的右下角控件 */
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition);
}
.cs-fab:hover { transform: translateY(-2px); }
.cs-fab svg { width: 18px; height: 18px; }
.cs-fab-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.cs-mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
  z-index: 940;
}
.cs-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100vh - 96px);
  background: var(--snow);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}
.cs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.cs-title { font-family: var(--font-serif); font-size: 18px; }
.cs-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.cs-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 2px;
}
.cs-controls {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}
.cs-select {
  flex: 1;
  padding: 7px 8px;
  font-size: 12px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
}
.cs-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
}
.cs-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 40px 16px;
  line-height: 1.7;
}
.cs-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 85%; }
.cs-msg.mine { align-self: flex-end; align-items: flex-end; }
.cs-msg-who { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.cs-bubble {
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.6;
  background: #fff;
  border: 1px solid var(--rule);
  white-space: pre-wrap;
  word-break: break-word;
}
.cs-msg.mine .cs-bubble { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cs-order-chip {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  border: 1px dashed var(--rule);
  padding: 2px 7px;
}
.cs-inputbar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--rule);
  background: var(--snow);
}
.cs-input {
  flex: 1;
  padding: 9px 11px;
  font-size: 13px;
  border: 1px solid var(--rule);
  background: #fff;
}
.cs-input:focus { outline: 1px solid var(--ink); }

/* ---------- 客服（商家侧视图） ---------- */
.admin-views { display: flex; gap: 10px; margin: 28px 0 20px; }
.cs-view-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  margin-left: 6px;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  border-radius: 9px;
}
.cs-admin {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--rule);
  background: var(--snow);
  min-height: 480px;
}
.cs-threads {
  border-right: 1px solid var(--rule);
  overflow-y: auto;
  max-height: 560px;
}
.cs-thread {
  padding: 13px 14px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background var(--transition);
}
.cs-thread:hover { background: var(--paper); }
.cs-thread.active { background: var(--paper); box-shadow: inset 3px 0 0 var(--ink); }
.cs-thread-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.cs-thread-name { font-size: 13px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-tag { font-size: 10px; letter-spacing: 0.06em; padding: 2px 6px; border: 1px solid var(--rule); color: var(--muted); }
.cs-tag-pre_sale { color: #7a6a2f; border-color: #d8c98a; background: #faf6e8; }
.cs-tag-after_sale { color: #4a6280; border-color: #b9c9dd; background: #f0f4f9; }
.cs-unread {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}
.cs-thread-last {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-conv { display: flex; flex-direction: column; }
.cs-conv-head {
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 600;
  background: var(--paper);
}
.cs-conv-id { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.cs-msgs-admin { max-height: 380px; }

@media (max-width: 768px) {
  .cs-admin { grid-template-columns: 1fr; }
  .cs-threads { border-right: none; border-bottom: 1px solid var(--rule); max-height: 220px; }
  .cs-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 82vh; }
  .cs-fab { right: 16px; bottom: 76px; }
}

/* ---------- 积分赠品看图小窗 ---------- */
.reward-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.72);
}
.reward-lightbox.open {
  display: flex;
}
.rlb-window {
  position: relative;
  background: var(--paper);
  width: min(680px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
.rlb-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rlb-track::-webkit-scrollbar {
  display: none;
}
.rlb-slide {
  min-width: 100%;
  scroll-snap-align: center;
}
.rlb-slide img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
}
.rlb-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
}
.rlb-arrow {
  position: absolute;
  top: 40%;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: rgba(243, 242, 238, 0.9);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.rlb-prev { left: 10px; }
.rlb-next { right: 10px; }
.rlb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--rule);
}
.rlb-name {
  font-family: var(--font-serif);
  font-size: 15px;
}
.rlb-dots {
  display: flex;
  gap: 8px;
}
.rlb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rule);
}
.rlb-dot.active {
  background: var(--ink);
}
.reward-card .img.has-photos {
  cursor: zoom-in;
}

/* ---------- 后台 · 页面内容管理 ---------- */
.ac-section {
  border: 1px solid var(--rule);
  padding: 24px;
  margin-bottom: 28px;
  background: var(--paper);
}
.ac-section h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 18px;
}
.ac-img-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.ac-preview {
  width: 200px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--cream);
}
.ac-img-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.ac-tip {
  font-size: 12px;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.6;
}
.ac-field {
  margin-bottom: 16px;
}
.ac-field-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.ac-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ac-lang span {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.ac-lang input,
.ac-lang textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: #fff;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}
.ac-lang input:focus,
.ac-lang textarea:focus {
  outline: 1px solid var(--ink);
}
.ac-save-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.ac-saved {
  font-size: 12px;
  color: #2e7d32;
}
.ac-prod-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ac-prod {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--rule);
  padding: 10px 14px;
  background: #fff;
}
.ac-prod img {
  width: 44px;
  height: 55px;
  object-fit: cover;
}
.ac-prod-name {
  flex: 1;
  font-size: 13px;
}
.ac-prod-name span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 767px) {
  .ac-field-row { grid-template-columns: 1fr; }
  .ac-img-row { flex-direction: column; }
}

/* ---------- 商品卡缩略图栏（悬停切换主图） ---------- */
.card-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 8px 0 2px;
}
.card-thumbs .ct {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--rule, #e5e0d8);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s;
}
.card-thumbs .ct img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-thumbs .ct.active,
.card-thumbs .ct:hover { border-color: var(--ink); }

/* ---------- 商店排序下拉 ---------- */
.shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .04em;
}
.shop-sort select {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- PDP 销量 ---------- */
.pdp-sales {
  margin-left: auto;
  font-size: 13px;
  letter-spacing: .06em;
  opacity: .65;
  align-self: center;
}
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* ---------- PDP 评论区 ---------- */
.pdp-reviews {
  max-width: 1080px;
  margin: 64px auto 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--rule, #e5e0d8);
}
.rv-sec-head { margin-bottom: 28px; }
.rv-sec-head h2 { margin: 6px 0 0; }
.rv-empty { opacity: .55; font-size: 14px; padding: 12px 0 32px; }
.rv-card {
  border-top: 1px solid var(--rule, #e5e0d8);
  padding: 20px 0;
}
.rv-card-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: .04em;
}
.rv-name { font-weight: 600; }
.rv-date { opacity: .5; }
.rv-body { margin: 10px 0 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.rv-card-imgs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.rv-card-imgs img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--rule, #e5e0d8);
  cursor: zoom-in;
  background: #fff;
}

/* ---------- 评价弹窗 ---------- */
.review-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}
.review-modal.open { display: flex; }
.rv-window {
  position: relative;
  background: var(--paper);
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
}
.rv-window h3 { margin: 0 0 6px; }
.rv-order { font-size: 12px; letter-spacing: .05em; opacity: .55; margin-bottom: 14px; }
.rv-items { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.rv-window textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  padding: 12px;
  border: 1px solid var(--rule, #e5e0d8);
  background: #fff;
  color: var(--ink);
  resize: vertical;
  box-sizing: border-box;
}
.rv-photos { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.rv-photo { position: relative; width: 84px; height: 84px; }
.rv-photo img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--rule, #e5e0d8); }
.rv-photo button {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  cursor: pointer;
}
.rv-upload { margin-top: 14px; display: inline-flex; }
.rv-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }

/* ---------- 预订/意向弹窗 ---------- */
.po-sub { font-size: 13px; line-height: 1.6; opacity: .65; margin: 0 0 18px; }
#preorderModal .label { font-size: 11px; letter-spacing: 0.14em; margin-bottom: 8px; opacity: .7; }
#preorderModal .size-grid { margin-bottom: 0; }

/* ---------- 后台 · 意向单视图 ---------- */
.admin-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 12px; }
.po-count { font-size: 13px; opacity: .7; }
.po-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.po-badge.po-new { background: var(--ink, #1a1a1a); color: var(--paper, #fff); }
.po-badge.po-done { background: var(--rule, #e5e0d8); color: var(--muted, #888); }
.po-meta { font-size: 12px; opacity: .6; margin: 4px 0; }
.po-contact { font-size: 13px; margin: 6px 0 0; }

/* ---------- 后台：销量编辑 + 评论管理 ---------- */
.ac-sales { display: flex; align-items: center; gap: 6px; }
.ac-sales label { font-size: 12px; opacity: .6; }
.ac-sales input {
  width: 72px;
  font: inherit;
  padding: 6px 8px;
  border: 1px solid var(--rule, #e5e0d8);
  background: #fff;
  color: var(--ink);
}
.ac-review {
  border-top: 1px solid var(--rule, #e5e0d8);
  padding: 14px 0;
}
.ac-review.is-hidden { opacity: .45; }
.ac-review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}
.ac-review-head span { opacity: .55; }
.ac-review-body { margin: 8px 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.ac-review-imgs { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.ac-review-imgs img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--rule, #e5e0d8); }

/* ---------- 快速加购弹窗 ---------- */
.qa-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}
.qa-modal.open { display: flex; }
.qa-window {
  position: relative;
  background: var(--paper);
  width: min(840px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.qa-img { background: #fff; }
.qa-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  aspect-ratio: 4 / 5;
}
.qa-info { padding: 36px 32px; }
.qa-info h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 10px 0 8px;
}
.qa-price { font-size: 14px; font-weight: 500; letter-spacing: 0.05em; }
.qa-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 16px 0 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qa-info .label { font-size: 11px; letter-spacing: 0.14em; margin-bottom: 10px; }
.qa-add { width: 100%; margin-top: 26px; padding: 15px 0; }
@media (max-width: 700px) {
  .qa-window { grid-template-columns: 1fr; }
  .qa-img img { aspect-ratio: 4 / 5; max-height: 46vh; }
}

/* ---------- Quick Add：尺码表 + 双按钮 ---------- */
.qa-sizechart { margin-top: 18px; border-top: 1px solid var(--rule); }
.qa-sizechart summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.qa-sizechart summary::after { content: "+"; font-size: 18px; font-weight: 300; transition: transform var(--transition); }
.qa-sizechart[open] summary::after { transform: rotate(45deg); }
.qa-sizechart .sizechart { width: 100%; border-collapse: collapse; font-size: 12px; }
.qa-sizechart .sizechart th,
.qa-sizechart .sizechart td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--rule); }
.qa-sizechart .sizechart th { color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }
.qa-sizechart .pdp-size-unit { font-size: 11px; color: var(--muted); margin: 8px 0 4px; }
.qa-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
.qa-actions .btn { width: 100%; padding: 15px 0; }

/* ---------- 尺码指南扩展：助手 + 推荐表 + 素人试穿 ---------- */
.sg-block { margin-top: 24px; }
.sg-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.sg-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.sg-form input,
.sg-form select {
  font: inherit;
  font-size: 13px;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  width: 110px;
  box-sizing: border-box;
}
.sg-form select { width: auto; cursor: pointer; }
.sg-result {
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 0.03em;
  min-height: 20px;
}
.sg-result b { font-size: 16px; letter-spacing: 0.06em; }
.sg-approx { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------- PDP 尺码助手（常驻在尺码选择上方） ---------- */
.sg-assistant { margin-bottom: 4px; }
.sg-assistant .label { margin-bottom: 12px; }
.sg-assistant .sg-form input { width: 96px; }
.sg-assistant .sg-form select { min-width: 84px; }
@media (max-width: 600px) {
  .sg-assistant .sg-form input { flex: 1 1 40%; width: auto; }
  .sg-assistant .sg-form select { flex: 1 1 30%; }
  .sg-assistant .sg-form .btn { flex: 1 1 100%; padding: 12px 0; }
}

/* ---------- 移动端横向溢出修复（尺码表撑宽折叠区） ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
.pdp-grid, .pdp-info, .pdp-details, .pdp-details .content, .sg-block { min-width: 0; }
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { min-width: 100%; }
.pdp-details .content p,
.pdp-details .content li { overflow-wrap: anywhere; }

/* ---------- PDP 移动端按钮与助手排版微调 ---------- */
.pdp-actions .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .pdp-actions { gap: 8px; }
  .pdp-actions .btn { padding: 16px 6px; font-size: 12px; letter-spacing: 0.06em; }
  .sg-assistant .sg-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .sg-assistant .sg-form input,
  .sg-assistant .sg-form select { width: 100%; min-width: 0; }
  .sg-assistant .sg-form .btn { flex: none; width: 100%; padding: 12px 0; }
}
