/* ============ 龙商行 · 前台样式（移动端优先） ============ */
:root {
  --ink: #17130f;
  --ink-2: #3d342b;
  --ink-3: #6d6157;
  --muted: #94897d;
  --paper: #f6f1e8;
  --paper-2: #efe7da;
  --card: #fffdf9;
  --line: rgba(23, 19, 15, 0.09);
  --line-strong: rgba(23, 19, 15, 0.16);
  --red: #b93a2b;
  --red-2: #9a2b1f;
  --red-soft: #f7e6e2;
  --gold: #bf9a55;
  --gold-soft: #f3e9d4;
  --green: #2c7a5b;
  --shadow-sm: 0 1px 2px rgba(23, 19, 15, 0.05);
  --shadow: 0 16px 40px -20px rgba(23, 19, 15, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', Georgia, serif;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei',
    'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image: radial-gradient(1200px 500px at 50% -220px, #fff9ee 0%, rgba(255, 249, 238, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23171300' stroke-opacity='.02' stroke-width='1'/%3E%3C/svg%3E");
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.boot {
  padding: 120px 24px;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(246, 241, 232, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.brand-seal {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #221a13, #100d0a);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 21px;
  border: 1px solid rgba(191, 154, 85, 0.5);
  box-shadow: inset 0 0 0 3px rgba(191, 154, 85, 0.12);
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 3px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav a:hover { background: rgba(23, 19, 15, 0.06); }
.nav .nav-cta {
  background: var(--ink);
  color: #f7f1e6;
  padding: 9px 16px;
  letter-spacing: 0.04em;
}
.nav .nav-cta:hover { background: #2c241c; }

/* ---------- Hero ---------- */
.hero-wrap { padding: 0 20px; }
.hero {
  max-width: var(--max);
  margin: 18px auto 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(900px 420px at 82% -10%, rgba(191, 154, 85, 0.34), transparent 62%),
    radial-gradient(600px 300px at 12% 120%, rgba(185, 58, 43, 0.28), transparent 70%),
    linear-gradient(150deg, #191310 0%, #241a13 52%, #372018 100%);
  color: #f8f2e7;
  padding: 34px 26px 30px;
  isolation: isolate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath d='M0 80h160M80 0v160' stroke='%23c2a05a' stroke-opacity='.07'/%3E%3Ccircle cx='80' cy='80' r='46' fill='none' stroke='%23c2a05a' stroke-opacity='.07'/%3E%3C/svg%3E");
  opacity: 0.9;
  z-index: -1;
}

.hero-grid { display: grid; gap: 22px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: #e8cf9b;
  border: 1px solid rgba(232, 207, 155, 0.34);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-tag i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #e8cf9b; display: inline-block;
  box-shadow: 0 0 8px #e8cf9b;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.24;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.hero h1 em { font-style: normal; color: #e8c47b; }
.hero p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(248, 242, 231, 0.72);
  max-width: 30em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  background: transparent;
  color: inherit;
}
.btn:active { transform: scale(0.985); }
.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%);
  color: #fff6ef;
  box-shadow: 0 10px 24px -12px rgba(185, 58, 43, 0.75);
}
.btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(185, 58, 43, 0.8); }
.btn-gold {
  background: linear-gradient(135deg, #d9b872, #bf9a55);
  color: #231a10;
  box-shadow: 0 10px 24px -14px rgba(191, 154, 85, 0.9);
}
.btn-ghost {
  border-color: rgba(248, 242, 231, 0.28);
  color: #f1e7d5;
}
.btn-ghost:hover { background: rgba(248, 242, 231, 0.08); }
.btn-dark { background: var(--ink); color: #f8f2e7; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: #fffdf9; }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(232, 207, 155, 0.2);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(232, 207, 155, 0.14);
}
.hero-stats div {
  padding: 14px 12px;
  background: rgba(20, 15, 11, 0.55);
  text-align: center;
}
.hero-stats b {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  color: #ecc97e;
  font-weight: 500;
}
.hero-stats span { font-size: 11px; letter-spacing: 0.12em; color: rgba(248, 242, 231, 0.6); }

/* ---------- 公告 ---------- */
.notice {
  max-width: var(--max);
  margin: 14px auto 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  background: #fffaf0;
  border: 1px solid rgba(191, 154, 85, 0.3);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.7;
  color: #6f5c38;
}
.notice b {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #fff;
  background: linear-gradient(135deg, #c8a863, #a9853f);
  border-radius: 6px;
  padding: 3px 7px;
  margin-top: 1px;
}

/* ---------- 内容容器 ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.08em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 3px; height: 18px;
  background: linear-gradient(180deg, var(--red), #d98a5f);
  border-radius: 2px;
}
.section-desc { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- 分类 ---------- */
.cat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-bar::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 1px solid var(--line-strong);
  background: #fffdf9;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.chip .count { color: var(--muted); font-size: 11px; margin-left: 5px; }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #f8f2e7;
}
.chip.active .count { color: rgba(248, 242, 231, 0.6); }

/* ---------- 商品网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 10px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(191, 154, 85, 0.5);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #f1e8d8, #e6dac4);
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.045); }
.card-media .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 34px;
  color: rgba(23, 19, 15, 0.22);
  letter-spacing: 0.2em;
}
.card-media .badge-auto {
  position: absolute;
  left: 10px; top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(23, 19, 15, 0.78);
  color: #f0d9a3;
  border: 1px solid rgba(191, 154, 85, 0.45);
  backdrop-filter: blur(4px);
}
.card-media .badge-soldout {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(246, 241, 232, 0.75);
  color: var(--ink-2);
  font-size: 13px;
  letter-spacing: 0.22em;
  backdrop-filter: blur(2px);
}

.card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.card-sub {
  font-size: 11.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.price {
  font-family: var(--font-serif);
  color: var(--red);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.price small { font-size: 12px; margin-right: 1px; }
.price span { font-size: 21px; }
.price em { font-style: normal; font-size: 14px; }
.stock { font-size: 11px; color: var(--muted); white-space: nowrap; }
.stock.low { color: var(--red); }
.card-buy {
  border: 0;
  background: var(--ink);
  color: #f8f2e7;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.2s;
  white-space: nowrap;
  flex: none;
}
.card-buy:active { background: #3a2f26; }

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.6);
}

/* ---------- 详情页 ---------- */
.detail {
  display: grid;
  gap: 20px;
  padding: 20px 0 10px;
}
@media (min-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; gap: 28px; }
}

.gallery { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fffdf9; }
.gallery-main {
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #f1e8d8, #e2d5bd);
  position: relative;
  display: grid;
  place-items: center;
}
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: contain; background: #111; }
.gallery-main video { background: #0d0b09; }
.gallery-main .placeholder { font-family: var(--font-serif); font-size: 48px; color: rgba(23, 19, 15, 0.2); letter-spacing: 0.2em; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs img {
  width: 62px; height: 62px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  flex: none;
  opacity: 0.62;
  transition: opacity 0.2s, border-color 0.2s;
}
.thumbs img.active { opacity: 1; border-color: var(--gold); }

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(21px, 4.4vw, 27px);
  line-height: 1.35;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.detail-sub { font-size: 13px; color: var(--ink-3); line-height: 1.7; margin: 0 0 14px; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.price-row .price span { font-size: 32px; }
.price-row .meta { font-size: 12px; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--gold-soft);
  color: #7a5c24;
  border: 1px solid rgba(191, 154, 85, 0.3);
}
.tag.plain { background: #f4efe7; color: var(--ink-3); border-color: var(--line); }

.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.form-field label .req { color: var(--red); margin-left: 2px; }
.form-field input[type='text'],
.form-field input[type='number'],
.form-field input[type='password'],
.form-field input[type='search'],
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 11px;
  padding: 12px 13px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-field textarea { min-height: 84px; resize: vertical; line-height: 1.7; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 154, 85, 0.16);
}

.qty-row { display: flex; align-items: center; gap: 12px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 11px; overflow: hidden; background: #fff; }
.stepper button {
  width: 38px; height: 42px;
  border: 0; background: #faf6ee;
  font-size: 16px; cursor: pointer; color: var(--ink-2);
}
.stepper button:active { background: #f0e9dc; }
.stepper input {
  width: 52px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; height: 42px; font-size: 14px; background: #fff; outline: none;
}
.qty-hint { font-size: 12px; color: var(--muted); }

.pay-tabs { display: flex; gap: 8px; }
.pay-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--ink-2);
  transition: all 0.2s;
}
.pay-tab.active { border-color: var(--ink); background: #fbf7ef; box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.pay-tab .dot { width: 8px; height: 8px; border-radius: 50%; }
.pay-tab .dot.wechat { background: #16a34a; }
.pay-tab .dot.alipay { background: #1677ff; }

.buy-sum { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 12px; font-size: 13px; color: var(--ink-3); }
.buy-sum b { font-family: var(--font-serif); color: var(--red); font-size: 24px; font-weight: 600; }

.assurance { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 11.5px; color: var(--muted); }
.assurance span { display: inline-flex; align-items: center; gap: 5px; }
.assurance i { color: var(--gold); font-style: normal; }

/* ---------- 说明区 ---------- */
.desc-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 26px 0 10px;
}
.desc-block h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
}
.desc-content { font-size: 13.5px; line-height: 2; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }

/* ---------- 订单页 ---------- */
.order-page { max-width: 760px; margin: 0 auto; padding: 20px; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; }
.order-head h2 { font-family: var(--font-serif); font-size: 22px; margin: 0; letter-spacing: 0.06em; }
.status-pill {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  border: 1px solid;
}
.status-pill.pending { color: #9a6a12; background: #fdf4e0; border-color: #e8d2a0; }
.status-pill.delivered { color: var(--green); background: #e9f5ee; border-color: #b7ddc6; }
.status-pill.closed { color: var(--muted); background: #f0ece5; border-color: #ddd6c9; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.panel h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel h3::before { content: ''; width: 3px; height: 14px; background: var(--gold); border-radius: 2px; }

.kv { display: grid; grid-template-columns: 88px 1fr; gap: 9px 12px; font-size: 13px; line-height: 1.7; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; color: var(--ink-2); }
.kv dd.money { font-family: var(--font-serif); color: var(--red); font-size: 22px; font-weight: 600; }

.qr-block { text-align: center; }
.qr-frame {
  width: 210px; height: 210px;
  margin: 0 auto 12px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 8px;
  display: grid;
  place-items: center;
  position: relative;
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.qr-frame .qr-empty { font-size: 12px; color: var(--muted); line-height: 1.9; padding: 0 14px; }
.qr-amount { font-family: var(--font-serif); font-size: 30px; color: var(--red); font-weight: 600; margin: 6px 0 4px; }
.qr-tip { font-size: 12.5px; color: var(--ink-3); line-height: 1.8; margin: 0 auto; max-width: 24em; }

.steps { display: flex; gap: 6px; margin: 16px 0 4px; }
.steps div {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 8px 4px;
  border-radius: 8px;
  background: #f7f2e9;
  position: relative;
}
.steps div.on { background: var(--gold-soft); color: #7a5c24; font-weight: 500; }

.delivery-box {
  background: #16110d;
  color: #efe6d4;
  border-radius: 14px;
  padding: 16px;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-all;
  position: relative;
  border: 1px solid rgba(191, 154, 85, 0.35);
}
.delivery-box .copy-float {
  position: absolute; right: 10px; top: 10px;
  background: rgba(239, 230, 212, 0.14);
  border: 1px solid rgba(239, 230, 212, 0.3);
  color: #efe6d4;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11.5px;
  cursor: pointer;
  font-family: var(--font-sans);
}
.delivery-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.delivery-warn { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.8; }

/* ---------- 我的订单 / 帮助 ---------- */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 10px;
}
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-size: 13.5px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .li-meta { font-size: 11.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.list-item .li-amount { font-family: var(--font-serif); color: var(--red); font-weight: 600; }

.help-steps { display: grid; gap: 12px; margin: 8px 0 20px; }
@media (min-width: 760px) { .help-steps { grid-template-columns: repeat(4, 1fr); } }
.help-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.help-step b { font-family: var(--font-serif); font-size: 30px; color: var(--gold); display: block; line-height: 1; margin-bottom: 10px; }
.help-step h4 { margin: 0 0 6px; font-size: 13.5px; }
.help-step p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.8; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 30px 20px calc(30px + env(safe-area-inset-bottom));
  background: #f2ece1;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 18px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 10px; align-items: center; }
.footer-brand .brand-seal { width: 32px; height: 32px; font-size: 17px; border-radius: 9px; }
.footer-brand b { font-family: var(--font-serif); font-size: 16px; letter-spacing: 0.14em; }
.footer-col h5 { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.18em; color: var(--muted); font-weight: 500; }
.footer-col p, .footer-col a { margin: 0 0 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.9; display: block; }
.footer-bottom {
  max-width: var(--max);
  margin: 20px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  background: rgba(23, 19, 15, 0.94);
  color: #f8f2e7;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s, transform 0.24s;
  z-index: 90;
  max-width: 88vw;
  text-align: center;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20, 15, 11, 0.45);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--card);
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.5);
  animation: popIn 0.22s ease;
}
@keyframes popIn { from { transform: translateY(10px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

@media (max-width: 640px) {
  .header-inner { padding: 10px 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { padding: 8px 14px; font-size: 12.5px; }
  .hero-wrap { padding: 0 12px; }
  .hero { padding: 26px 18px 24px; border-radius: 18px; }
  .container { padding: 0 14px; }
  .card-body { padding: 10px 11px 12px; }
  .card-title { font-size: 13px; }
  .card-foot { gap: 5px; }
  .price small { font-size: 10px; }
  .price span { font-size: 18px; }
  .stock { font-size: 9.5px; letter-spacing: 0; }
  .card-buy { padding: 6px 10px; font-size: 11.5px; letter-spacing: 0.02em; }
  .section-head { margin-top: 26px; }
  .order-page { padding: 14px; }
  .qr-frame { width: 190px; height: 190px; }
}
