/* ==========================================================================
   鸿运商行 · 前台样式
   ========================================================================== */

:root {
  --brand: #b32227;
  --brand-deep: #7c1216;
  --brand-soft: #f7e7e4;
  --gold: #c69a55;
  --gold-soft: #f1e2c6;
  --paper: #fffdf8;
  --cream: #f8f2e7;
  --cream-2: #f1e8d9;
  --ink: #2b211b;
  --ink-2: #4c4038;
  --muted: #8b7f73;
  --line: #e8ddc9;
  --shadow-sm: 0 2px 10px rgba(78, 55, 30, .06);
  --shadow-md: 0 14px 40px rgba(78, 55, 30, .12);
  --shadow-lg: 0 30px 70px rgba(60, 40, 20, .18);
  --radius: 18px;
  --radius-sm: 12px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --header-h: 78px;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --brand-deep: color-mix(in srgb, var(--brand) 78%, #120506);
    --brand-soft: color-mix(in srgb, var(--brand) 10%, #fffdf8);
    --gold: color-mix(in srgb, var(--brand) 28%, #d8ac63);
    --gold-soft: color-mix(in srgb, var(--gold) 24%, #fffdf8);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(198, 154, 85, .12), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(179, 34, 39, .06), transparent 60%),
    var(--cream);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

[hidden] { display: none !important; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   顶部条 / 头部
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--brand-deep);
  color: rgba(255, 250, 240, .82);
  font-size: 12.5px;
  letter-spacing: .4px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  gap: 16px;
}

.topbar-left { display: inline-flex; align-items: center; gap: 8px; }
.topbar-left .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 154, 85, .22);
}
.topbar-right { opacity: .72; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 248, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 221, 201, .8);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-seal {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  color: #fff7e8;
  font-size: 21px;
  font-weight: 700;
  border-radius: 9px;
  border: 2px solid rgba(198, 154, 85, .75);
  box-shadow: 0 4px 14px rgba(124, 18, 22, .28), inset 0 0 0 3px rgba(255, 240, 210, .12);
  letter-spacing: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 21px; letter-spacing: 2.5px; font-weight: 700; }
.brand-text small { font-size: 11.5px; color: var(--muted); letter-spacing: 1.4px; margin-top: 3px; }

.nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
  font-size: 14.5px;
  color: var(--ink-2);
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .2s, color .2s;
  letter-spacing: .5px;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fffaf0;
  font-size: 13.5px;
  letter-spacing: .5px;
  box-shadow: 0 6px 18px rgba(179, 34, 39, .25);
  transition: transform .2s, box-shadow .2s;
  flex-shrink: 0;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(179, 34, 39, .32); }

/* --------------------------------------------------------------------------
   公告
   -------------------------------------------------------------------------- */

.announce {
  background: linear-gradient(90deg, var(--gold-soft), #fbf4e4 45%, var(--gold-soft));
  border-bottom: 1px solid var(--line);
}
.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  min-height: 44px;
}
.announce-badge {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 2px 9px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff7e8;
}
.announce p {
  font-size: 13.5px;
  color: var(--ink-2);
  letter-spacing: .3px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(44px, 6vw, 84px) 0 clamp(40px, 5vw, 68px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 420px at 78% 18%, rgba(198, 154, 85, .17), transparent 65%),
    radial-gradient(520px 360px at 8% 80%, rgba(179, 34, 39, .08), transparent 65%);
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -110px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(198, 154, 85, .28);
  box-shadow: inset 0 0 0 26px rgba(198, 154, 85, .05);
}
.hero-bg::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(179, 34, 39, .16);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-1px);
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.18;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}

.hero-text {
  max-width: 30em;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
}
.hero-points .tick {
  color: var(--brand);
  font-weight: 700;
  margin-right: 5px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: .5px;
  font-weight: 500;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff8ec;
  box-shadow: 0 8px 22px rgba(124, 18, 22, .24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(124, 18, 22, .3); }
.btn-ghost {
  background: rgba(255, 253, 248, .7);
  border-color: var(--line);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--brand); background: #fff; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 82%, #7a5a20));
  color: #3a2708;
  box-shadow: 0 8px 20px rgba(198, 154, 85, .28);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-line {
  border-color: rgba(255, 248, 236, .35);
  color: #fff6e6;
  background: rgba(255, 255, 255, .06);
}
.btn-line:hover { background: rgba(255, 255, 255, .14); }
.btn-block { width: 100%; }

/* Hero 主推卡片 */
.hero-side { position: relative; }

.spotlight {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-md);
  transform: rotate(-1.2deg);
  transition: transform .3s;
  overflow: hidden;
}
.spotlight:hover { transform: rotate(0deg) translateY(-3px); }

.spotlight-slides { display: grid; }
.spotlight-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateX(26px);
  transition: opacity .55s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
  pointer-events: none;
  will-change: opacity, transform;
}
.spotlight-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}
.spotlight-slide.is-leaving {
  opacity: 0;
  transform: translateX(-26px);
  z-index: 1;
}
.spotlight-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  position: relative;
  z-index: 3;
}
.spotlight-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d8cbb8;
  transition: width .3s, background .3s;
}
.spotlight-dot:hover { background: var(--gold); }
.spotlight-dot.is-active { width: 18px; background: var(--brand); }

.spotlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.spotlight-tag {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  padding: 2px 9px;
  border-radius: 4px;
  background: var(--brand-soft);
}
.spotlight-note { font-size: 11.5px; color: var(--muted); letter-spacing: 1px; }

.spotlight-img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 244, 220, .35), transparent 60%),
    linear-gradient(135deg, var(--brand), var(--brand-deep));
}
.spotlight-img img { width: 100%; height: 100%; object-fit: cover; }

.img-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(255, 247, 232, .9);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 244, 220, .18), transparent 60%),
    linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.spotlight-body { padding: 14px 4px 4px; }
.spotlight-body h2 {
  font-size: 19px;
  letter-spacing: .5px;
  line-height: 1.45;
  margin-bottom: 6px;
}
.spotlight-body p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spotlight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.spotlight-price { font-size: 20px; font-weight: 700; color: var(--brand); letter-spacing: 0; }
.spotlight-link { font-size: 12.5px; color: var(--muted); }
.spotlight-link:hover { color: var(--brand); }

.spotlight-stamp {
  position: absolute;
  right: 30px;
  top: 66px;
  z-index: 3;
  pointer-events: none;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 245, 225, .55);
  color: rgba(255, 246, 228, .85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-align: center;
  transform: rotate(-14deg);
  background: rgba(124, 18, 22, .25);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   通用区块
   -------------------------------------------------------------------------- */

.section { padding: clamp(46px, 6vw, 78px) 0; scroll-margin-top: 96px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.3;
  letter-spacing: 1px;
  font-weight: 700;
}
.section-head .eyebrow { margin-bottom: 8px; }
.section-sub { font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: .3px; }

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  min-width: 260px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  padding: 2px 0;
}
.search input::placeholder { color: #b6a996; }

/* 分类 chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}
.chip {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .7);
  color: var(--ink-2);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .5px;
  transition: all .18s;
}
.chip:hover { border-color: var(--gold); color: var(--brand); }
.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff8ec;
  box-shadow: 0 6px 16px rgba(179, 34, 39, .22);
}

/* --------------------------------------------------------------------------
   商品卡片
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--gold) 60%, var(--line));
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-soft), #fbf4e7);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-media img { transform: scale(1.045); }
.product-media .img-fallback { font-size: 34px; }

.badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--gold), #b98a41);
  color: #3d2a0a;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

.badge-soldout {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(43, 33, 27, .82);
  color: #fff;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.badge-video {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(43, 33, 27, .8);
  color: #fff8ec;
  font-size: 11px;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.product-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.product-title {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .3px;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.5em;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0;
}
.product-price small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.product-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .5px;
}
.product-card:hover .product-more { color: var(--brand); }

/* 空状态 */
.empty {
  text-align: center;
  padding: 56px 20px 40px;
  background: rgba(255, 253, 248, .6);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-size: 26px;
  background: #fff;
}
.empty h3 { font-size: 19px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   留言板块
   -------------------------------------------------------------------------- */

.section-messages { position: relative; }
.section-messages::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(241, 232, 217, .5), transparent 30%, transparent 70%, rgba(241, 232, 217, .45));
  pointer-events: none;
}

.message-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-card { padding: 24px; }
.form-head h3 { font-size: 19px; letter-spacing: .5px; }
.form-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field {
  display: block;
  margin-top: 14px;
}
.field > span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 6px;
  letter-spacing: .4px;
}
.field > span b { color: var(--brand); font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #b9ac99; }
.field input:focus, .field textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: var(--brand);
  font-size: 12.5px;
  margin-top: 10px;
  background: var(--brand-soft);
  padding: 8px 12px;
  border-radius: 8px;
}
.form-card .btn { margin-top: 16px; }
.form-tip { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 10px; }

.wall-card {
  background: rgba(255, 253, 248, .7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  min-height: 320px;
}

.wall-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.wall-head h3 { font-size: 17px; letter-spacing: .5px; }
.wall-count { font-size: 12px; color: var(--muted); }

.wall {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}

.wall-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 14px 16px;
}

/* --------------------------------------------------------------------------
   顾客反馈：入口按钮 + 弹窗
   -------------------------------------------------------------------------- */
.section-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reviews-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 10px 16px;
  font-weight: 600;
}

.reviews-btn-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff8ec;
  font-size: 10.5px;
  font-weight: 600;
}

.reviews-card {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  max-height: 86vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 26px 28px 22px;
  animation: modalIn .22s ease;
}
.reviews-card h2 { font-size: 24px; letter-spacing: 1px; margin-bottom: 6px; }
.reviews-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }

.review-form {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
}
.review-form textarea {
  width: 100%;
  margin-top: 8px;
}
.review-form .btn { margin-top: 12px; }
.review-form .form-error { margin-top: 10px; }

.reviews-list-card {
  margin-top: 16px;
  background: rgba(255, 253, 248, .7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px 14px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}

.review-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-user { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.review-time { font-size: 11.5px; color: var(--muted); }
.review-text {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.review-reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: var(--brand-soft);
}

.review-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-reply-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff8ec;
  font-size: 11px;
  letter-spacing: .5px;
}

.review-reply-text {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.review-reply-img {
  margin-top: 8px;
  width: 150px;
  max-width: 100%;
  border-radius: 9px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.reviews-empty { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 13px; }
.wall-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.wall-name { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .4px; }
.wall-time { font-size: 11.5px; color: var(--muted); }
.wall-product {
  display: inline-block;
  font-size: 11.5px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 4px;
  padding: 1px 7px;
  margin-bottom: 6px;
}
.wall-content { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.wall-reply {
  margin-top: 10px;
  background: #fbf6ec;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.wall-reply strong { color: var(--brand); font-weight: 600; margin-right: 4px; }
.wall-reply .wall-reply-text { white-space: pre-wrap; word-break: break-word; }

.wall-empty, .wall-off {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 46px 10px;
}
.wall-off { color: var(--brand); }

/* --------------------------------------------------------------------------
   联系板块
   -------------------------------------------------------------------------- */

.contact {
  position: relative;
  margin-top: 20px;
  padding: clamp(46px, 6vw, 76px) 0;
  background:
    radial-gradient(700px 400px at 85% 20%, rgba(198, 154, 85, .22), transparent 60%),
    linear-gradient(135deg, var(--brand-deep), var(--brand) 60%, color-mix(in srgb, var(--brand) 70%, #4a0a0c));
  color: #fdf3e3;
  overflow: hidden;
  scroll-margin-top: 96px;
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 40px;
  align-items: center;
}

.eyebrow.light { color: var(--gold); }
.eyebrow.light::before { background: var(--gold); }

.contact h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: 1.5px;
  line-height: 1.35;
}
.contact-text {
  color: rgba(253, 243, 227, .75);
  font-size: 14px;
  max-width: 34em;
  margin-top: 10px;
  line-height: 1.85;
}

.contact-qr {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.qr-frame {
  width: 148px;
  height: 148px;
  flex-shrink: 0;
  background: #fffdf8;
  border-radius: 12px;
  padding: 7px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  position: relative;
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; background: #fff; }
.qr-empty {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(179, 34, 39, .35);
  border-radius: 6px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--brand);
  letter-spacing: 1px;
}
.qr-empty.small { font-size: 11px; }

.qr-side { display: flex; flex-direction: column; gap: 8px; }
.qr-label { font-size: 13px; color: rgba(253, 243, 227, .7); letter-spacing: 1px; }
.qr-id { font-size: 14px; color: #fdf3e3; letter-spacing: .4px; }
.qr-id strong { color: var(--gold); font-weight: 600; letter-spacing: 1px; }
.qr-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.qr-btns .btn { padding: 8px 14px; font-size: 12.5px; border-radius: 8px; }

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(253, 243, 227, .18);
}
.contact-list > div { display: flex; gap: 8px; align-items: baseline; }
.contact-list dt { font-size: 11.5px; color: rgba(253, 243, 227, .55); letter-spacing: 1.5px; }
.contact-list dd { font-size: 13.5px; color: #fdf3e3; }

.contact-art {
  text-align: center;
  position: relative;
}
.seal-big {
  width: 190px;
  height: 190px;
  margin: 0 auto 18px;
  border: 3px solid rgba(198, 154, 85, .55);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 54px;
  line-height: 1.15;
  letter-spacing: 14px;
  padding-left: 14px;
  color: rgba(253, 243, 227, .92);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .04);
  transform: rotate(-3deg);
}
.contact-art p {
  font-size: 11px;
  letter-spacing: 6px;
  color: rgba(253, 243, 227, .45);
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.footer {
  background: #251b15;
  color: rgba(253, 243, 227, .6);
  padding: 26px 0;
  font-size: 12.5px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer strong { color: rgba(253, 243, 227, .88); letter-spacing: 1px; }
.footer-sub { display: flex; align-items: center; gap: 14px; }
.footer a { color: rgba(253, 243, 227, .55); border-bottom: 1px dashed rgba(253, 243, 227, .25); }
.footer a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   左下角微信浮窗
   -------------------------------------------------------------------------- */

.wechat-dock {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 10px;
}

.dock-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff7e8;
  font-size: 13.5px;
  letter-spacing: .5px;
  box-shadow: 0 10px 26px rgba(60, 20, 20, .3);
  transition: transform .2s;
}
.dock-bubble:hover { transform: translateY(-2px); }

.dock-body {
  position: relative;
  width: min(322px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow-lg);
  animation: dockIn .22s ease;
}
.wechat-dock:not(.collapsed) .dock-bubble { display: none; }
.wechat-dock.collapsed .dock-body { display: none; }
.wechat-dock.dock-hidden { display: none; }

@keyframes dockIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dock-close {
  position: absolute;
  top: 2px;
  right: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  padding: 2px 4px;
}
.dock-close:hover { color: var(--brand); }

.dock-qr {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.dock-qr img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.dock-qr .qr-empty { border: 0; font-size: 9px; }

.dock-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 4px;
}
.dock-info strong { font-size: 12.5px; letter-spacing: .3px; }
.dock-id {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-id span { color: var(--brand); font-weight: 600; }

.dock-actions {
  display: flex;
  gap: 5px;
  margin-top: 3px;
}
.dock-actions button {
  flex: 1;
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 6px;
  padding: 5px 2px;
  font-size: 10.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all .18s;
}
.dock-actions button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* --------------------------------------------------------------------------
   商品详情弹层
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(35, 24, 18, .55);
  backdrop-filter: blur(5px);
  animation: fadeIn .2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  width: min(940px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  animation: modalIn .24s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 253, 248, .9);
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
.modal-close:hover { background: var(--brand); color: #fff; }

.modal-gallery {
  padding: 18px;
  background: linear-gradient(160deg, #f7efe2, #fbf7ee);
  border-radius: 20px 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery-main {
  position: relative;
  flex: 1;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-soft), #fbf4e7);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; cursor: zoom-in; }
.gallery-main video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0e0b09;
  display: block;
}
.gallery-main .img-fallback { font-size: 46px; }
.gallery-counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  background: rgba(43, 33, 27, .62);
  color: #fff;
  border-radius: 999px;
  padding: 2px 9px;
}
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #fff;
}
.gallery-thumbs button.is-active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .thumb-video {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #2b211b, #53402f);
  color: #f7e7c9;
  font-size: 11px;
  letter-spacing: .5px;
  border-color: transparent;
}
.gallery-thumbs .thumb-video.is-active { border-color: var(--brand); }

.modal-info {
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  font-size: 11px;
  letter-spacing: 1px;
  padding: 2px 9px;
  border-radius: 4px;
  background: #f4ecdd;
  color: var(--ink-2);
}
.tag-brand { background: var(--brand-soft); color: var(--brand); }
.tag-muted { background: #ece6da; color: var(--muted); }

.modal-info h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45;
  letter-spacing: .5px;
  padding-right: 20px;
}
.modal-price {
  font-size: 22px;
  color: var(--brand);
  font-weight: 700;
  margin-top: 10px;
  min-height: 1.2em;
}
.modal-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  flex: 1;
  max-height: 260px;
  overflow: auto;
}
.modal-views { font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.modal-actions .btn { padding: 10px 12px; font-size: 13px; }
.modal-info .btn-gold { margin-top: 10px; padding: 12px; }
.modal-note { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translate(-50%, -8px);
  z-index: 120;
  background: rgba(43, 33, 27, .94);
  color: #fff8ec;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  max-width: calc(100vw - 48px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--brand-deep); }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-side { max-width: 460px; }
  .spotlight { transform: none; }
  .message-layout { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-art { display: none; }
  .header-cta { display: none; }
  .nav { margin-left: auto; }
}

@media (max-width: 780px) {
  .wrap { width: calc(100% - 32px); }
  :root { --header-h: 68px; }
  .topbar-right { display: none; }
  .nav { display: none; }
  .header-cta { display: none; }
  .header-inner { justify-content: space-between; }
  .brand-text strong { font-size: 19px; }
  .search { width: 100%; min-width: 0; }
  .section-head { align-items: flex-start; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .product-body { padding: 12px 12px 14px; }
  .product-title { font-size: 14.5px; }
  .product-desc { font-size: 11.5px; -webkit-line-clamp: 2; min-height: 3.2em; }
  .product-price { font-size: 17px; }
  .product-more { display: none; }
  .badge-featured, .badge-soldout { font-size: 10px; padding: 2px 7px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card, .wall-card { padding: 18px; }

  .wechat-dock { left: 12px; bottom: 12px; gap: 8px; }
  .dock-body { padding: 8px 10px; gap: 8px; }
  .dock-qr { width: 84px; height: 84px; flex-basis: 84px; }
  .dock-info strong { font-size: 12px; }
  .wechat-dock.collapsed .dock-body { display: none; }

  .contact-qr { gap: 14px; }
  .qr-frame { width: 126px; height: 126px; }
  .contact-qr .btn { padding: 7px 12px; font-size: 12px; }

  .modal { padding: 0; place-items: stretch; }
  .modal-card {
    width: 100%;
    max-height: 100%;
    border-radius: 0;
    grid-template-columns: 1fr;
    overflow: auto;
  }
  .modal-gallery {
    border-radius: 0;
    padding: 12px;
    min-height: 300px;
  }
  .gallery-main { min-height: 240px; max-height: 46vh; }
  .modal-info { padding: 20px 18px 28px; }
  .modal-desc { max-height: none; }
  .modal-close { position: fixed; top: 10px; right: 10px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 480px) {
  .brand-seal { width: 38px; height: 38px; font-size: 18px; }
  .brand-text small { display: none; }
  .hero-actions .btn { flex: 1; padding: 11px 14px; font-size: 13.5px; }
  .spotlight-stamp { display: none; }
  .hero-points { gap: 6px 14px; font-size: 12px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-cat { display: none; }
  .contact-list { flex-direction: column; gap: 6px; }
  .qr-btns { flex-direction: column; align-items: flex-start; }
  .toast { top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   账号入口 / 在线客服 / 登录注册 / 历史订单
   ========================================================================== */

.topbar-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(253, 243, 227, .22);
  font-size: 12px;
}
.account-link {
  border: 0;
  background: transparent;
  padding: 1px 0;
  color: #ecd9b6;
  font-size: 12px;
  letter-spacing: .3px;
  transition: color .18s;
}
.account-link:hover { color: #fff8ec; text-decoration: underline; text-underline-offset: 3px; }
.account-name {
  color: var(--gold);
  font-size: 12px;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-sep { color: rgba(253, 243, 227, .28); }

/* 右下角客服 */
.chat-fab-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.chat-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff8ec;
  font-size: 13.5px;
  letter-spacing: .5px;
  box-shadow: 0 10px 26px rgba(60, 20, 20, .3);
  transition: transform .2s, box-shadow .2s;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(60, 20, 20, .36); }
.chat-fab.is-open { background: #2b211b; }
.chat-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff3d8;
  color: var(--brand);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.chat-panel {
  width: 360px;
  height: min(520px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: dockIn .22s ease;
}
.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff8ec;
  flex-shrink: 0;
}
.chat-head-title { display: flex; flex-direction: column; gap: 2px; }
.chat-head-title strong { font-size: 15px; letter-spacing: .8px; }
.chat-head-title span { font-size: 10.5px; color: rgba(255, 248, 236, .7); letter-spacing: .3px; }
.chat-close {
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff8ec;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.chat-close:hover { background: rgba(255, 255, 255, .24); }

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 14px 10px;
  background:
    radial-gradient(420px 240px at 100% 0, rgba(198, 154, 85, .08), transparent 60%),
    #fbf7ee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-placeholder { margin: auto; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.8; max-width: 230px; }
.chat-msg { display: flex; flex-direction: column; max-width: 84%; }
.chat-msg.is-admin { align-self: flex-start; align-items: flex-start; }
.chat-msg.is-user { align-self: flex-end; align-items: flex-end; }
.chat-bubble {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-msg.is-admin .chat-bubble { background: #fff; border: 1px solid var(--line); color: var(--ink); border-top-left-radius: 4px; }
.chat-msg.is-user .chat-bubble { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff8ec; border-top-right-radius: 4px; }
.chat-msg.is-order .chat-bubble { background: #fff8e8; border: 1px solid var(--gold-soft); color: var(--ink); }
.chat-time { font-size: 10px; color: var(--muted); margin-top: 3px; padding: 0 2px; }

.chat-login-tip {
  flex-shrink: 0;
  padding: 14px 16px;
  text-align: center;
  background: #fff8ec;
  border-top: 1px solid var(--line);
}
.chat-login-tip p { font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.chat-login-actions { display: flex; gap: 8px; justify-content: center; }
.chat-login-actions button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff8ec;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 12.5px;
}
.chat-login-actions button + button {
  background: transparent;
  color: var(--brand);
}

.chat-compose {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-compose textarea {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12.5px;
  outline: none;
  resize: none;
  background: #fffefa;
  min-height: 44px;
  max-height: 90px;
}
.chat-compose textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.chat-compose button {
  align-self: flex-end;
  border: 0;
  background: var(--brand);
  color: #fff8ec;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12.5px;
  flex-shrink: 0;
}
.chat-compose button:disabled { opacity: .6; }

.chat-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 8px;
  border-top: 1px solid var(--line);
  background: #fffdf8;
  flex-shrink: 0;
}
.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 2px 4px;
  font-size: 11px;
  color: var(--muted);
}
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #b7ab99; }
.chat-status.is-on { color: #2f7d5c; }
.chat-status.is-on i { background: #2f7d5c; box-shadow: 0 0 0 3px rgba(47, 125, 92, .14); }
.chat-status.is-off { color: #9a6a45; }
.chat-status.is-off i { background: #b9a48f; }
.chat-refresh {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  padding: 0;
}
.chat-refresh:hover { color: var(--brand); border-color: var(--gold); }
.chat-foot-note { margin-left: auto; font-size: 10px; color: #b6a996; }

/* 登录 / 注册 */
.auth-card {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 26px 28px 22px;
  animation: modalIn .22s ease;
}
.auth-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.auth-head > div { display: flex; flex-direction: column; gap: 2px; }
.auth-head strong { font-size: 17px; letter-spacing: 1px; }
.auth-head small { font-size: 11px; color: var(--muted); }
.auth-tabs { display: flex; gap: 4px; background: #f6efe3; border-radius: 999px; padding: 3px; margin: 16px 0 4px; }
.auth-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.auth-tabs button.is-active { background: var(--brand); color: #fff8ec; box-shadow: 0 4px 12px rgba(179, 34, 39, .2); }
.auth-form { display: block; padding-top: 6px; }
.auth-field { display: block; margin-top: 12px; }
.auth-field > span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; }
.auth-field > span b { color: var(--brand); font-weight: 500; }
.auth-field > span em { color: var(--muted); font-style: normal; margin-left: 4px; font-size: 10.5px; }
.auth-field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13.5px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.auth-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: #fff; }
.auth-error {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: #a21c1c;
  font-size: 12px;
  line-height: 1.6;
}
.auth-form .btn { margin-top: 14px; }
.auth-tip { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 10.5px; color: var(--muted); line-height: 1.7; }

/* 历史订单 */
.orders-card {
  position: relative;
  width: min(540px, calc(100vw - 32px));
  max-height: 86vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 28px 30px 24px;
  animation: modalIn .22s ease;
}
.orders-card h2 { font-size: 24px; letter-spacing: 1px; margin-bottom: 6px; }
.orders-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-item {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fffefa;
}
.order-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.order-no { font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: .5px; }
.order-time { font-size: 10.5px; color: var(--muted); }
.order-content { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.order-amount { margin-top: 4px; font-size: 12px; color: var(--brand); }
.orders-empty { text-align: center; padding: 36px 10px 30px; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* 客服 / 账号响应式 */
@media (max-width: 780px) {
  .chat-fab-wrap { right: 12px; bottom: 12px; }
  .chat-fab { padding: 10px 14px; font-size: 12.5px; }
  .chat-panel { width: min(360px, calc(100vw - 24px)); height: min(520px, calc(100vh - 100px)); }
  .topbar-account { margin-left: 9px; padding-left: 9px; gap: 7px; }
  .account-name { max-width: 64px; }
  .auth-card { padding: 22px 20px 18px; }
  .orders-card { padding: 22px 18px 18px; }
  .reviews-card { padding: 22px 16px 16px; border-radius: 14px; }
  .section-head-actions { width: 100%; }
  .reviews-open-btn { flex: 1 1 auto; justify-content: center; }
  .section-head-actions .search { flex: 1 1 160px; }
}

@media (max-width: 480px) {
  .chat-fab span { display: none; }
  .chat-fab { padding: 13px; border-radius: 50%; width: 52px; height: 52px; justify-content: center; }
  .chat-fab svg { width: 22px; height: 22px; }
  .chat-panel { width: calc(100vw - 24px); }
  .topbar-left { gap: 6px; }
  .topbar-account { gap: 6px; margin-left: 7px; padding-left: 7px; }
  .account-name { max-width: 82px; }
  .account-sep:nth-of-type(2) { display: none; }
}

.brand-seal.small { width: 38px; height: 38px; font-size: 18px; }
.chat-fab-wrap { flex-direction: column-reverse; }

/* 聊天图片与放大预览 */
.chat-image-btn {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffefa;
  color: var(--muted);
  padding: 0;
}
.chat-image-btn:hover { border-color: var(--gold); color: var(--brand); }
.chat-image-btn:disabled { opacity: .5; }

.chat-msg .chat-image {
  display: block;
  width: min(220px, 100%);
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  background: #f2ece1;
}
.chat-text { white-space: pre-wrap; word-break: break-word; }
.chat-image + .chat-text { margin-top: 6px; }

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 11, 8, .9);
  backdrop-filter: blur(4px);
}
.image-lightbox img {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  background: #fff;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff8ec;
  font-size: 22px;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .24); }

@media (max-width: 480px) {
  .chat-msg .chat-image { width: 180px; max-height: 180px; }
  .image-lightbox { padding: 12px; }
}

.chat-head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.chat-images-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  color: #fff8ec;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10.5px;
  letter-spacing: .2px;
}
.chat-images-btn:hover { background: rgba(255, 255, 255, .24); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff8ec;
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 248, 236, .8);
  font-size: 12px;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, .35);
  border-radius: 999px;
  padding: 3px 12px;
}

@media (max-width: 480px) {
  .lightbox-nav { width: 36px; height: 36px; font-size: 24px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-counter { bottom: 10px; }
  .chat-head-actions { gap: 5px; }
  .chat-images-btn { padding: 4px 7px; font-size: 10px; }
}

/* ==========================================================================
   手机端精简与美化（20261028n）
   目标：减少叠层和空白，缩紧字号与间距，卡片更轻，首屏更快看到商品
   ========================================================================== */

@media (max-width: 780px) {
  .topbar-inner { height: 32px; }

  .announce-inner { min-height: 0; padding: 8px 0; gap: 8px; }
  .announce-badge { font-size: 10px; padding: 1px 7px; letter-spacing: 1.5px; }
  .announce p { font-size: 12px; line-height: 1.65; }

  .hero { padding: 26px 0 20px; }
  .hero-bg::before, .hero-bg::after { display: none; }
  .hero-inner { gap: 18px; }
  .eyebrow { font-size: 10px; letter-spacing: 2.6px; margin-bottom: 8px; }
  .eyebrow::before { width: 16px; margin-right: 7px; }
  .hero h1 { font-size: 30px; line-height: 1.25; letter-spacing: .5px; margin-bottom: 10px; }
  .hero-text { font-size: 13px; line-height: 1.75; }
  .hero-actions { margin-top: 16px; gap: 8px; }
  .hero-points { margin-top: 12px; gap: 6px 14px; font-size: 11.5px; }

  .section { padding: 30px 0; scroll-margin-top: 76px; }
  .section-head { margin-bottom: 14px; gap: 10px; }
  .section-head h2 { font-size: 22px; }
  .section-sub { font-size: 11.5px; margin-top: 5px; }
  .search { padding: 7px 14px; }
  .search input { font-size: 13px; }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 7px;
    margin-bottom: 14px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; padding: 5px 13px; font-size: 12px; }

  .product-grid { gap: 10px; }
  .product-card { border-radius: 12px; }
  .product-body { padding: 10px 11px 11px; }
  .product-title { font-size: 13.5px; line-height: 1.45; margin-bottom: 4px; }
  .product-desc { font-size: 11px; line-height: 1.6; min-height: 0; }
  .product-foot { margin-top: 8px; padding-top: 8px; }
  .product-price { font-size: 16px; }
  .badge-featured, .badge-soldout { top: 8px; padding: 2px 7px; font-size: 10px; }
  .badge-featured { left: 8px; }
  .badge-soldout { right: 8px; }
  .badge-video { left: 8px; bottom: 8px; padding: 2px 7px; font-size: 10px; }

  .form-card, .wall-card { padding: 15px; }
  .form-head h3 { font-size: 16px; }
  .field { margin-top: 11px; }
  .field > span { font-size: 12px; margin-bottom: 5px; }
  .field input, .field textarea { padding: 9px 12px; font-size: 13.5px; }
  .form-card .btn { margin-top: 13px; padding: 11px 18px; }

  .wall { padding-top: 12px; gap: 9px; }
  .reviews-list { padding-top: 12px; gap: 9px; }
  .reviews-list-card { padding: 13px; border-radius: 12px; }
  .review-form { padding: 13px; border-radius: 11px; }
  .review-item { padding: 11px 12px; border-radius: 10px; }
  .review-text { font-size: 12.5px; line-height: 1.7; }
  .review-reply { margin-top: 8px; padding: 8px 10px; }
  .review-reply-text { font-size: 12px; }
  .review-reply-img { width: 120px; }
  .wall-head { padding-bottom: 10px; }
  .wall-head h3 { font-size: 15px; }
  .wall-item { padding: 11px 12px; border-radius: 10px; }
  .wall-content { font-size: 12.5px; line-height: 1.7; }
  .wall-reply { margin-top: 8px; padding: 8px 10px; font-size: 12px; }

  .contact { margin-top: 8px; padding: 30px 0; }
  .contact h2 { font-size: 24px; }
  .contact-text { font-size: 12.5px; line-height: 1.75; margin-top: 8px; }
  .contact-qr { margin-top: 16px; gap: 12px; }
  .qr-frame { width: 108px; height: 108px; padding: 5px; border-radius: 10px; }
  .qr-label { font-size: 11.5px; }
  .qr-id { font-size: 12.5px; }
  .qr-btns .btn { padding: 7px 12px; font-size: 12px; }
  .contact-list { margin-top: 16px; padding-top: 12px; gap: 6px 18px; }
  .contact-list dt { font-size: 10.5px; }
  .contact-list dd { font-size: 12.5px; }

  .footer { padding: 18px 0; font-size: 11.5px; }
  .footer-inner { gap: 8px; }

  .wechat-dock { left: 10px; bottom: 10px; }
  .dock-bubble { padding: 8px 12px; font-size: 12px; }
  .chat-fab-wrap { right: 10px; bottom: 10px; }
}

@media (max-width: 480px) {
  :root { --header-h: 58px; }

  .topbar-left .dot,
  #topbar-name { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .topbar-account { margin-left: 0; padding-left: 0; border-left: 0; }

  .brand-seal { width: 36px; height: 36px; font-size: 17px; border-radius: 8px; }
  .brand-text strong { font-size: 18px; letter-spacing: 1.5px; }

  .hero { padding: 22px 0 18px; }
  .hero h1 { font-size: 27px; }
  .hero-text { font-size: 12.5px; }
  .hero-actions { margin-top: 14px; }
  .hero-actions .btn { padding: 10px 12px; font-size: 12.5px; }
  .hero-points { font-size: 11px; }

  /* 主推卡片改为左图右文，缩短一半高度 */
  .spotlight {
    padding: 12px;
    border-radius: 14px;
    transform: none;
  }
  .spotlight:hover { transform: none; }
  .spotlight-slide {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-areas:
      "head head"
      "img body";
    gap: 8px 12px;
  }
  .spotlight-head { grid-area: head; margin-bottom: 0; }
  .spotlight-tag { font-size: 10px; padding: 1px 7px; letter-spacing: 1px; }
  .spotlight-note { font-size: 10px; }
  .spotlight-img { grid-area: img; aspect-ratio: 1; border-radius: 10px; }
  .spotlight-img .img-fallback { font-size: 26px; }
  .spotlight-body {
    grid-area: body;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .spotlight-body h2 { font-size: 14px; line-height: 1.4; margin-bottom: 4px; }
  .spotlight-body p { display: none; }
  .spotlight-foot { margin-top: 6px; padding-top: 6px; }
  .spotlight-price { font-size: 15px; }
  .spotlight-link { font-size: 11px; }
  .spotlight-stamp { display: none; }
  .spotlight-dots { margin-top: 8px; }

  /* 商品卡只保留图片、标题、价格 */
  .product-title { font-size: 13px; }
  .product-desc { display: none; }
  .product-foot { border-top: 0; margin-top: 6px; padding-top: 0; }
  .product-price { font-size: 15px; }
  .product-price small { font-size: 11px; }

  .chips { margin-bottom: 12px; }
  .empty { padding: 36px 16px 28px; }
  .empty-mark { width: 52px; height: 52px; margin-bottom: 12px; font-size: 22px; }
  .empty h3 { font-size: 16px; }

  .wall-card { min-height: 0; }
  .wall-empty, .wall-off { padding: 28px 10px; }

  .contact-qr { gap: 10px; }
  .qr-frame { width: 100px; height: 100px; }
  .qr-btns { flex-direction: row; align-items: center; }
  .qr-btns .btn { padding: 6px 10px; font-size: 11.5px; }

  .contact-list { flex-direction: column; gap: 5px; }

  .footer-inner { align-items: flex-start; }

  .chat-panel { width: calc(100vw - 20px); }
}

/* 聊天打开时锁住页面滚动，滑动弹窗不会带动整页 */
html.chat-open,
body.chat-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.chat-panel {
  overscroll-behavior: contain;
}

.chat-messages {
  overscroll-behavior: contain;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   聊天引用 / 撤回（20261028o）
   ========================================================================== */

.chat-quote-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #fbf5e9;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-quote-bar[hidden] { display: none; }

.chat-quote-info { flex: 1; min-width: 0; }
.chat-quote-info span { display: block; font-size: 10.5px; color: var(--brand); letter-spacing: .3px; }
.chat-quote-info b { font-weight: 600; }
.chat-quote-info p {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-quote-close {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  padding: 2px 4px;
}
.chat-quote-close:hover { color: var(--brand); }

.chat-quote {
  margin-bottom: 6px;
  padding: 5px 8px;
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  background: rgba(198, 154, 85, .13);
  font-size: 11px;
  line-height: 1.55;
}
.chat-quote-name { font-weight: 600; color: var(--brand); margin-bottom: 1px; }
.chat-quote-text {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.chat-msg.is-user .chat-quote {
  background: rgba(255, 248, 236, .16);
  border-left-color: rgba(255, 248, 236, .65);
}
.chat-msg.is-user .chat-quote-name { color: #fff3d8; }
.chat-msg.is-user .chat-quote-text { color: rgba(255, 248, 236, .82); }

.chat-quote.is-recalled { border-left-color: var(--line); background: rgba(124, 18, 22, .05); }
.chat-quote.is-recalled .chat-quote-text { font-style: italic; opacity: .78; }
.chat-msg.is-user .chat-quote.is-recalled {
  background: rgba(255, 255, 255, .1);
  border-left-color: rgba(255, 248, 236, .4);
}
.chat-msg.is-user .chat-quote.is-recalled .chat-quote-text { color: rgba(255, 248, 236, .75); }

.chat-bubble.is-recalled {
  background: #f6efe3;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 8px;
}
.chat-msg.is-user .chat-bubble.is-recalled {
  background: #f6efe3;
  border: 1px dashed var(--line);
  color: var(--muted);
}

/* 已读 / 未读 */
.chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  padding: 0 2px;
}
.chat-meta .chat-time { margin-top: 0; padding: 0; }
.chat-read {
  font-size: 10.5px;
  color: #8a7b66;
  background: rgba(138, 123, 102, .1);
  border-radius: 999px;
  padding: 1px 6px;
  letter-spacing: .2px;
}
.chat-read.is-unread { color: #a8792e; background: rgba(198, 154, 85, .18); }
.chat-read.is-pending { color: var(--muted); background: transparent; padding-left: 0; }


/* ==========================================================================
   购物车 / 结算 / 扫码支付 / 订单状态
   ========================================================================== */

.header-inner > .cart-btn { flex-shrink: 0; }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13.5px;
  letter-spacing: .3px;
  transition: color .18s, border-color .18s, background .18s;
}
.cart-btn:hover { color: var(--brand); border-color: var(--gold); background: #fff; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff8ec;
  font-size: 10.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(179, 34, 39, .35);
}

.product-add-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  letter-spacing: .3px;
  transition: background .18s, border-color .18s;
}
.product-add-btn:hover { border-color: var(--gold); background: var(--brand-soft); }
.product-add-btn:disabled { color: var(--muted); background: #f3ede3; cursor: not-allowed; }

.modal-buy { display: flex; align-items: stretch; gap: 10px; margin-top: 14px; }
.modal-buy .modal-actions { flex: 1; margin-top: 0; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.qty-stepper button {
  width: 32px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1;
}
.qty-stepper button:hover { background: var(--brand-soft); color: var(--brand); }
.qty-stepper input {
  width: 38px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 14px;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 购物车 */
.cart-card,
.checkout-card,
.pay-card {
  position: relative;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .22s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.cart-card { width: min(640px, calc(100vw - 32px)); padding: 26px 28px 22px; }
.cart-card h2, .checkout-card h2, .pay-card h2 { font-size: 24px; letter-spacing: 1px; margin-bottom: 6px; }
.cart-sub, .checkout-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.cart-list { display: flex; flex-direction: column; gap: 9px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffefa;
  padding: 10px 12px;
}
.cart-item.is-unavailable { background: #f7f1e6; }
.cart-check { display: flex; align-items: center; flex-shrink: 0; }
.cart-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.cart-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #f5ecdd;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 18px;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-name { font-size: 13.5px; color: var(--ink); line-height: 1.4; }
.cart-price { font-size: 12px; color: var(--brand); }
.cart-qty { display: inline-flex; align-items: center; gap: 0; margin-top: 2px; }
.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}
.qty-btn:hover { border-color: var(--gold); color: var(--brand); }
.qty-btn:disabled { color: #c9beb0; background: #f7f2e8; }
.qty-value { min-width: 32px; text-align: center; font-size: 12.5px; color: var(--ink); }
.cart-line-total { width: 76px; text-align: right; font-size: 13.5px; font-weight: 600; color: var(--brand); flex-shrink: 0; }
.cart-remove {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}
.cart-remove:hover { color: var(--brand); }
.cart-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 10px 20px; line-height: 1.8; }
.cart-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.cart-select-all { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.cart-select-all input { accent-color: var(--brand); width: 16px; height: 16px; }
.cart-total { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.cart-total strong { font-size: 19px; color: var(--brand); margin-left: 4px; }
.cart-foot .btn { min-width: 118px; }

/* 结算 */
.checkout-card { width: min(660px, calc(100vw - 32px)); padding: 26px 28px 22px; }
.checkout-items { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.checkout-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffefa;
  padding: 8px 10px;
}
.checkout-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5ecdd;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  flex-shrink: 0;
}
.checkout-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.checkout-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.checkout-item-info strong { font-size: 13px; line-height: 1.4; }
.checkout-item-info span { font-size: 11.5px; color: var(--muted); }
.checkout-item-total { font-size: 13.5px; color: var(--brand); flex-shrink: 0; }
.checkout-section { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.checkout-section h3 { font-size: 13.5px; letter-spacing: .5px; margin-bottom: 10px; color: var(--ink); }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-grid label { display: block; }
.checkout-grid label span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.checkout-grid label span b { color: var(--brand); font-weight: 500; }
.checkout-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  padding: 9px 11px;
  font-size: 13px;
  outline: none;
}
.checkout-grid input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.checkout-grid .span-2 { grid-column: span 2; }
.checkout-section textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}
.checkout-section textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pay-methods { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: #fffefa;
  cursor: pointer;
}
.pay-option input { accent-color: var(--brand); width: 16px; height: 16px; }
.pay-option:has(input:checked) { border-color: var(--gold); background: var(--brand-soft); color: var(--brand); }
.checkout-pay-note { margin-top: 9px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.checkout-error {
  margin-top: 12px;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: #a21c1c;
  font-size: 12px;
  line-height: 1.6;
}
.checkout-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.checkout-foot > span { font-size: 12.5px; color: var(--muted); }
.checkout-foot strong { font-size: 21px; color: var(--brand); margin-left: 4px; }
.checkout-foot .btn { min-width: 160px; }

/* 扫码支付 */
.pay-card { width: min(470px, calc(100vw - 32px)); padding: 26px 28px 22px; text-align: center; }
.pay-order { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; word-break: break-all; }
.pay-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0 12px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.pay-amount-row span { font-size: 12px; color: var(--muted); }
.pay-amount-row strong { font-size: 30px; color: var(--brand); letter-spacing: .5px; }
.pay-amount-row .text-btn { font-size: 11.5px; color: var(--brand); }
.pay-qr-wrap {
  position: relative;
  width: 260px;
  max-width: 100%;
  margin: 16px auto 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.pay-qr-wrap img { width: 100%; display: block; border-radius: 8px; }
.pay-qr-empty { display: block; padding: 60px 10px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.pay-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #22a35a;
  color: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 11px;
  letter-spacing: .5px;
  white-space: nowrap;
}
.pay-tag.is-alipay { background: #1677ff; }
.pay-tip { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.pay-steps {
  text-align: left;
  margin: 12px auto 0;
  padding-left: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 360px;
}
.pay-steps b { color: var(--brand); }
.pay-note { margin-top: 10px; font-size: 10.5px; color: var(--muted); line-height: 1.7; }
.pay-actions { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.pay-actions .btn { width: 100%; }

/* 订单状态与明细 */
.order-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 10.5px;
  background: #f2ece1;
  color: #7d6b57;
  white-space: nowrap;
}
.order-status.is-pending { background: #fff1d6; color: #a56a12; }
.order-status.is-review { background: #ffe6e2; color: #b32227; }
.order-status.is-paid { background: #e5f5ea; color: #1f7a46; }
.order-status.is-shipped { background: #e5f0ff; color: #1c5ea8; }
.order-status.is-done { background: #eee9df; color: #6f6355; }
.order-status.is-cancelled { background: #f3f3f3; color: #9a9a9a; }
.order-lines { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 7px; display: flex; flex-direction: column; gap: 4px; }
.order-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.order-line-title { min-width: 0; overflow-wrap: anywhere; }
.order-line-price { color: var(--brand); flex-shrink: 0; }
.order-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}
.order-total-line strong { font-size: 17px; color: var(--brand); }
.order-ship { margin-top: 8px; padding: 8px 10px; background: #faf5eb; border-radius: 8px; font-size: 11.5px; color: var(--ink-2); line-height: 1.7; }
.order-ship strong { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; font-weight: 500; }
.order-remark { margin-top: 7px; font-size: 11.5px; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.order-pay-way { margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.order-hint { margin-top: 8px; font-size: 11.5px; color: var(--brand); line-height: 1.6; }
.btn-small { padding: 8px 12px; font-size: 12.5px; margin-top: 10px; }
.order-pay-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.order-pay-actions .btn-small { flex: 1 1 120px; margin-top: 6px; }

@media (max-width: 780px) {
  .cart-label { display: none; }
  .cart-btn { width: 40px; height: 40px; padding: 0; }
  .cart-card, .checkout-card, .pay-card {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: 22px 18px 20px;
  }
  .cart-item { padding: 9px 10px; gap: 8px; }
  .cart-thumb { width: 48px; height: 48px; }
  .cart-line-total { width: 64px; font-size: 12.5px; }
  .cart-foot { gap: 8px; }
  .cart-total strong { font-size: 17px; }
  .cart-foot .btn { min-width: 104px; }
  .checkout-card { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-grid .span-2 { grid-column: span 1; }
  .pay-qr-wrap { width: 230px; }
  .modal-buy { flex-wrap: wrap; }
  .modal-buy .modal-actions { min-width: 100%; }
  .qty-stepper { width: 100%; justify-content: center; }
  .qty-stepper input { width: 52px; }
}

.order-legacy-title {
  margin-top: 8px;
  font-size: 11.5px;
  letter-spacing: .5px;
  color: var(--muted);
}

.checkout-saved {
  margin: -6px 0 14px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #d7ebdc;
  background: #eef7ef;
  color: #1f7a46;
  font-size: 11.5px;
  line-height: 1.7;
}
