/* ============================================================
   拾布 SHIBU · 服装采购平台 — 前台主样式 v2
   设计语言：现代极简 / 纯白底 + 墨黑 + 陶土点缀
   原则：简洁清晰 · 统一排版 · 克制动效
   注：所有变量名与类名向前兼容（admin.css / 商家中心依赖）
   ============================================================ */
:root {
  --ink: #17140f;
  --ink-soft: #6e675d;
  --paper: #ffffff;
  --paper-2: #f6f4f0;
  --line: #e9e5de;
  --accent: #bd5a33;       /* 陶土 */
  --accent-deep: #93441f;
  --gold: #c2a36b;
  --white: #ffffff;

  --shadow: 0 20px 48px rgba(23, 20, 15, .10);
  --shadow-sm: 0 4px 16px rgba(23, 20, 15, .06);
  --radius: 14px;
  --radius-sm: 10px;

  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  /* 统一字号刻度 */
  --fs-hero: clamp(34px, 4.6vw, 54px);
  --fs-h2: clamp(22px, 2.4vw, 27px);
  --fs-h3: 18px;
  --fs-body: 15px;
  --fs-sm: 13.5px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--sans); }
::selection { background: rgba(189, 90, 51, .18); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.container { width: min(1240px, 92vw); margin: 0 auto; }
.section { padding: 72px 0; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- 滚动渐显（由 main.js 增强添加，无 JS 不影响显示） ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 顶部工具条 ---------- */
.topbar {
  background: var(--ink);
  color: rgba(239, 231, 218, .78);
  font-size: 12.5px;
  letter-spacing: .3px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 12px; }
.topbar a { transition: color .2s; }
.topbar a:hover { color: var(--gold); }
@media (max-width: 760px) {
  .topbar .container { justify-content: center; }
  .topbar > .container > span:first-child { display: none; }
}

/* ---------- 头部导航 ---------- */
.header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow .3s var(--ease);
}
.header.scrolled { box-shadow: 0 10px 30px rgba(23, 20, 15, .08); }
.header .container { display: flex; align-items: center; gap: 26px; height: 72px; }

/* 品牌标识 */
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  background: var(--ink);
  color: var(--gold);
  display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b {
  font-family: var(--serif);
  font-size: 23px; font-weight: 700;
  letter-spacing: 4px; color: var(--ink);
}
.brand-text small {
  font-family: var(--sans);
  font-size: 10px; font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  margin-top: 3px;
}

/* 导航 */
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft);
  padding: 7px 12px;
  border-radius: 999px;
  position: relative;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px;
  width: auto; height: 2px; border-radius: 2px; background: var(--accent);
}
.header-tools { display: flex; align-items: center; gap: 14px; flex: none; }
.search {
  display: flex; align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(189, 90, 51, .12); background: #fff; }
.search input { border: none; background: transparent; outline: none; width: 168px; font-size: 14px; color: var(--ink); }
.search input::placeholder { color: #a49b8d; }
.search button { border: none; background: none; cursor: pointer; font-size: 15px; color: var(--ink-soft); padding: 0 0 0 4px; }
.cart-chip { position: relative; font-size: 14px; font-weight: 600; padding: 7px 4px; white-space: nowrap; }
.cart-chip .badge {
  position: absolute; top: -4px; right: -12px;
  background: var(--accent); color: #fff;
  font-size: 11px; border-radius: 999px;
  min-width: 18px; height: 18px; line-height: 18px;
  text-align: center; padding: 0 4px;
}
.badge.bump { animation: bump .45s var(--ease); }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.menu-toggle { display: none; font-size: 22px; background: none; border: none; cursor: pointer; color: var(--ink); padding: 4px 8px; }

/* ---------- 焦点图（Hero） ---------- */
.hero { position: relative; height: min(600px, 78vh); overflow: hidden; background: var(--paper-2); }
.hero .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero .slide::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 20, 15, .62) 0%, rgba(23, 20, 15, .28) 46%, rgba(23, 20, 15, .02) 78%),
    linear-gradient(0deg, rgba(23, 20, 15, .28) 0%, rgba(23, 20, 15, 0) 30%);
}
.hero .slide .hero-inner { position: relative; color: #fff; padding-left: 6vw; max-width: 640px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  letter-spacing: 4px; font-size: 12.5px; font-weight: 600;
  color: var(--gold); text-transform: uppercase; margin-bottom: 18px;
}
.hero .eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: var(--serif);
  font-size: var(--fs-hero);
  line-height: 1.16; font-weight: 700;
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero p { font-size: 16px; color: rgba(255, 255, 255, .88); margin-bottom: 30px; max-width: 480px; }
.hero .dots { position: absolute; bottom: 24px; left: 6vw; display: flex; gap: 10px; z-index: 2; }
.hero .dots span { width: 26px; height: 4px; background: rgba(255, 255, 255, .38); border-radius: 4px; cursor: pointer; transition: background .2s; }
.hero .dots span.on { background: var(--gold); }

/* ---------- 区块标题 ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; gap: 16px; }
.sec-head h2 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 700; line-height: 1.25;
  letter-spacing: .5px;
}
.sec-head .sub {
  color: var(--ink-soft); font-size: 12.5px;
  margin-top: 6px; letter-spacing: 2.5px;
  text-transform: uppercase;
}
.sec-head a.more {
  font-size: 14px; color: var(--accent); font-weight: 600;
  white-space: nowrap; padding-bottom: 2px;
  transition: color .2s;
}
.sec-head a.more:hover { color: var(--accent-deep); }

/* ---------- 类目导航（实物图） ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.cat-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; height: 210px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-card .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s var(--ease);
}
.cat-card:hover .bg { transform: scale(1.06); }
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .58) 100%);
}
.cat-card .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff; z-index: 2; }
.cat-card .label b { font-family: var(--serif); font-size: 18px; display: block; letter-spacing: 1px; }
.cat-card .label span { font-size: 11.5px; opacity: .8; letter-spacing: 1px; }

/* ---------- 商品网格 / 卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.product-card .thumb { position: relative; aspect-ratio: 3/4; background: var(--paper-2) center/cover no-repeat; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: #fff;
  font-size: 11px; padding: 4px 10px;
  border-radius: 999px; letter-spacing: 1.5px;
}
.product-card .tag.hot { background: var(--accent); }
.product-card .body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .title {
  font-size: 15px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.product-card a.title:hover { color: var(--accent); }
.product-card .merchant { font-size: 12.5px; color: var(--ink-soft); }
.product-card .price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.product-card .price .now { color: var(--accent); font-size: 19px; font-weight: 700; font-family: var(--serif); }
.product-card .price .was { color: #b9b1a4; text-decoration: line-through; font-size: 13px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .3px;
  cursor: pointer; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap; flex: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2c261e; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(189, 90, 51, .28); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- 商家展示 ---------- */
.merchant-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.merchant-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; gap: 16px; align-items: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.merchant-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.merchant-card .logo {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--paper-2) center/cover no-repeat;
  flex: none; display: grid; place-items: center;
  font-family: var(--serif); font-size: 23px; color: var(--accent);
  border: 1px solid var(--line);
}
.merchant-card .name { font-weight: 700; font-size: 15.5px; }
.merchant-card .desc { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- 特性条 ---------- */
.features { background: var(--ink); color: #f3ece1; }
.features .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding: 36px 0; text-align: center;
}
.features .f b { display: block; font-family: var(--serif); font-size: 17.5px; margin-bottom: 4px; letter-spacing: 1px; }
.features .f span { font-size: 13px; opacity: .72; }

/* ---------- 页脚 ---------- */
.footer { background: #14110d; color: #b9b1a3; margin-top: 0; }
.footer .container { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 30px; padding: 58px 0 30px; }
.footer .brand { margin-bottom: 14px; }
.footer .brand-mark { background: rgba(255, 255, 255, .08); }
.footer .brand-text b { color: #fff; }
.footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 16px; letter-spacing: 1.5px; font-weight: 600; }
.footer a { color: #b9b1a3; font-size: 14px; display: block; margin-bottom: 10px; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer .intro { font-size: 13.5px; line-height: 1.85; margin-top: 14px; max-width: 360px; }
.footer .corp { margin-top: 10px; font-size: 12.5px; color: #857c6e; }
.footer .copy { border-top: 1px solid #262119; padding: 18px 0; text-align: center; font-size: 13px; color: #857c6e; }
.footer .copy a { display: inline; color: #857c6e; }
.footer .copy a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- 面包屑 ---------- */
.crumb { font-size: 13px; color: var(--ink-soft); padding: 20px 0; }
.crumb a { transition: color .2s; }
.crumb a:hover { color: var(--accent); }

/* ---------- 商品详情 ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.gallery .main-img {
  aspect-ratio: 3/4; border-radius: var(--radius);
  overflow: hidden; background: var(--paper-2) center/cover no-repeat;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 96px;
}
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail .info h1 { font-family: var(--serif); font-size: 30px; line-height: 1.25; letter-spacing: .5px; }
.detail .info .merchant { color: var(--ink-soft); margin: 10px 0 16px; font-size: 14px; }
.detail .price-box {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex; align-items: baseline; gap: 14px;
  margin: 18px 0;
}
.detail .price-box .now { color: var(--accent); font-size: 32px; font-weight: 700; font-family: var(--serif); }
.detail .price-box .was { text-decoration: line-through; color: #b9b1a4; font-size: 14px; }
.detail .meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; margin: 14px 0 22px; }
.detail .meta dt { color: var(--ink-soft); }
.detail .opt { margin: 14px 0; }
.detail .opt .lab { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff;
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.chip.on, .chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: rgba(189, 90, 51, .06); font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 38px; border: none; background: var(--paper-2); font-size: 17px; cursor: pointer; color: var(--ink); transition: background .2s; }
.qty button:hover { background: var(--line); }
.qty input { width: 52px; text-align: center; border: none; outline: none; font-size: 15px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--sans); background: #fff;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(189, 90, 51, .10);
}
.notice {
  background: #fbf0ea; color: var(--accent-deep);
  border: 1px solid #f0d8c9;
  padding: 12px 16px; border-radius: var(--radius-sm);
  margin-bottom: 18px; font-size: 14px;
}
.notice.ok { background: #e9f4ec; color: #2f7d43; border-color: #cfe6d4; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.panel h2 { font-family: var(--serif); font-size: 23px; margin-bottom: 20px; }

/* ---------- 购物车 / 结算 ---------- */
.two-col { display: grid; grid-template-columns: 1.7fr 1fr; gap: 30px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item .pic { width: 110px; height: 140px; border-radius: var(--radius-sm); background: var(--paper-2) center/cover no-repeat; overflow: hidden; }
.cart-item .pic img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .title { font-weight: 600; }
.cart-item .title a:hover { color: var(--accent); }
.cart-item .opt { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.cart-item .sub { color: var(--accent); font-weight: 700; font-family: var(--serif); font-size: 17px; }
.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky; top: 96px;
  box-shadow: var(--shadow-sm);
}
.summary .row { display: flex; justify-content: space-between; margin: 10px 0; font-size: 14px; }
.summary .total { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; font-size: 16px; font-weight: 700; }
.summary .total b { color: var(--accent); font-family: var(--serif); font-size: 24px; }

/* ---------- 订单 ---------- */
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; transition: box-shadow .25s; }
.order-card:hover { box-shadow: var(--shadow-sm); }
.order-card .top { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; font-size: 14px; }
.status-pill { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.s1 { background: #fbf0ea; color: var(--accent-deep); }
.s2 { background: #fdf3d9; color: #8a6d1f; }
.s3 { background: #e9f4ec; color: #2f7d43; }
.s4 { background: #e8eff7; color: #2f5d8a; }
.s5 { background: #f0ece5; color: #6b6258; }
.order-line { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.order-line .pic { width: 56px; height: 72px; border-radius: 8px; background: var(--paper-2) center/cover no-repeat; flex: none; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 80px 0; color: var(--ink-soft); }
.empty .big { font-family: var(--serif); font-size: 22px; margin-bottom: 12px; color: var(--ink); }

/* ---------- 分页 ---------- */
.pagination, .pager {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 64px;
}
.pagination li, .pager li { list-style: none; display: inline-block; }
.pagination li a, .pagination li span,
.pager li a, .pager li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
}
.pagination li a:hover, .pager li a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination li.active span, .pager li.active span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pagination li.disabled span, .pager li.disabled span {
  color: #c9c1b2;
  background: var(--paper-2);
  cursor: not-allowed;
}

/* ---------- 登录 / 注册 ---------- */
.auth-wrap { min-height: calc(100vh - 320px); display: flex; align-items: center; justify-content: center; padding: 50px 16px; }
.auth-card { width: min(440px, 94vw); padding: 36px 34px 28px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .brand { justify-content: center; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.link-accent { color: var(--accent); font-weight: 600; }
.link-accent:hover { color: var(--accent-deep); text-decoration: underline; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; }
.agree-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin: 4px 0 18px; cursor: pointer; }
.agree-line input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ---------- 个人中心布局 ---------- */
.uc-layout { display: grid; grid-template-columns: 232px 1fr; gap: 26px; align-items: start; }
.uc-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 96px;
}
.uc-profile { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.uc-avatar {
  width: 66px; height: 66px; border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px;
  overflow: hidden;
}
.uc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.uc-name { font-weight: 700; font-size: 16px; }
.uc-phone { font-size: 13px; margin-top: 2px; color: var(--ink-soft); }
.uc-nav { display: flex; flex-direction: column; gap: 4px; }
.uc-nav a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink-soft); transition: background .2s, color .2s; }
.uc-nav a:hover { background: var(--paper-2); color: var(--ink); }
.uc-nav a.active { background: var(--ink); color: #fff; }
.uc-main .panel { padding: 26px; }

/* 概览 */
.uc-welcome { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.uc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.uc-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.uc-stat b { display: block; font-family: var(--serif); font-size: 28px; color: var(--accent); }
.uc-stat span { font-size: 13px; color: var(--ink-soft); }
.uc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
.uc-quick h3, .uc-recent h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 14px; }
.uc-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.uc-quick-grid a {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--paper-2);
  border-radius: 12px;
  padding: 16px;
  font-size: 14px; color: var(--ink);
  transition: background .2s, transform .2s;
}
.uc-quick-grid a:hover { background: var(--line); transform: translateY(-2px); }
.uc-quick-grid a .ic { font-size: 20px; }
.uc-quick-grid a b { color: var(--accent); font-family: var(--serif); }
.uc-recent-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.uc-recent-row:last-of-type { border-bottom: none; }

/* 订单筛选 */
.uc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.uc-tabs a {
  padding: 7px 16px; border-radius: 999px;
  font-size: 14px;
  background: var(--paper-2); color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.uc-tabs a:hover { color: var(--ink); }
.uc-tabs a.on { background: var(--ink); color: #fff; }

/* 收货地址 */
.addr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.addr-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.addr-card:hover { border-color: #d5cec2; }
.addr-card.def { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(189, 90, 51, .12); }
.addr-tag { position: absolute; top: 14px; right: 14px; background: var(--accent); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.addr-name { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.addr-line { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.addr-ops { margin-top: 12px; display: flex; gap: 14px; font-size: 13px; }
.addr-ops a { color: var(--ink-soft); }
.addr-ops a:hover { color: var(--accent); }
.addr-mask { position: fixed; inset: 0; background: rgba(23, 20, 15, .5); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.addr-modal { width: min(460px, 94vw); padding: 30px; }

/* 协议页 */
.agree-sec { margin-bottom: 22px; }
.agree-sec h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.agree-sec p { font-size: 14px; line-height: 1.9; color: var(--ink-soft); }

/* ---------- 法律/条款单页 ---------- */
.legal { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: start; }
.legal-toc {
  position: sticky; top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.legal-toc h4 { font-family: var(--serif); font-size: 16px; margin-bottom: 12px; }
.legal-toc a { display: block; font-size: 13px; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px dashed var(--line); }
.legal-toc a:last-child { border-bottom: none; }
.legal-toc a:hover { color: var(--accent); }
.legal-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 36px; box-shadow: var(--shadow-sm); }
.legal-body h1 { font-family: var(--serif); font-size: 29px; text-align: center; margin-bottom: 6px; }
.legal-body .sub { text-align: center; color: var(--accent); letter-spacing: 2.5px; font-size: 13px; margin-bottom: 22px; }
.legal-body .lead { font-size: 15px; line-height: 1.9; color: var(--ink-soft); background: var(--paper-2); border-radius: 12px; padding: 16px 20px; margin-bottom: 26px; }
.legal-sec { margin-bottom: 24px; scroll-margin-top: 90px; }
.legal-sec h2 { font-family: var(--serif); font-size: 19px; margin-bottom: 10px; padding-left: 12px; border-left: 3px solid var(--accent); }
.legal-sec p, .legal-sec li { font-size: 14px; line-height: 1.95; color: var(--ink-soft); }
.legal-sec ul { padding-left: 20px; margin-top: 6px; }
.legal-sec li { margin-bottom: 6px; }
.legal-foot { margin-top: 28px; text-align: center; font-size: 13px; color: #b3a98f; }

/* ---------- 全局 Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 42px;
  transform: translate(-50%, 16px);
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .merchant-row { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 0; }
}
@media (max-width: 880px) {
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-body { padding: 24px 18px; }
  .uc-layout { grid-template-columns: 1fr; }
  .uc-side { position: static; }
  .uc-grid { grid-template-columns: 1fr; }
  .uc-stats { grid-template-columns: repeat(2, 1fr); }
  .addr-grid { grid-template-columns: 1fr; }
  .gallery .main-img { position: static; }
}
@media (max-width: 760px) {
  .section { padding: 52px 0; }
  .nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 14px 4vw 18px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
    box-shadow: 0 20px 40px rgba(23, 20, 15, .10);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; border-radius: var(--radius-sm); }
  .nav a.active::after { display: none; }
  .nav a.active { background: var(--paper-2); }
  .menu-toggle { display: block; }
  .user-chip { display: none; }
  .header-tools { gap: 10px; }
  .cart-chip { font-size: 13.5px; }
  .search input { width: 96px; }
  .search { padding: 6px 12px; }
  .header .container { gap: 14px; }
  .brand-text b { font-size: 20px; letter-spacing: 3px; }
  .brand-text small { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { height: 440px; }
  .hero .slide .hero-inner { padding-left: 5vw; padding-right: 5vw; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 14.5px; }
  .cat-grid, .product-grid, .merchant-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features .container { grid-template-columns: repeat(2, 1fr); }
  .detail, .two-col { grid-template-columns: 1fr; gap: 26px; }
  .summary { position: static; }
  .footer .container { grid-template-columns: 1fr 1fr; padding-top: 44px; }
  .cart-item { grid-template-columns: 84px 1fr auto; gap: 12px; }
  .cart-item .pic { width: 84px; height: 108px; }
}
