﻿:root {
  --brand: #ff5a1f;
  --brand-2: #ff8a3d;
  --brand-deep: #e8430a;
  --brand-soft: #fff2ec;
  --ink: #161a23;
  --ink-2: #3c4658;
  --muted: #7b879b;
  --line: #e9ecf2;
  --bg: #f4f6fa;
  --card: #fff;
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.045);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.1);
  --shadow-brand: 0 8px 20px rgba(255, 90, 31, 0.28);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 40px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  background: #14171f;
  color: #96a0b3;
  font-size: 12px;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-right i { width: 1px; height: 10px; background: #333a49; display: inline-block; }
.topbar-right a:hover { color: #fff; }

/* ---------------- 头部 ---------------- */
.header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #ff7a45 45%, #ff3d6e);
  color: #fff; font-weight: 800; font-size: 20px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-brand);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text b { font-size: 17px; letter-spacing: 0.3px; }
.logo-text small { color: var(--muted); font-size: 11px; }

.search {
  flex: 1 1 auto; max-width: 620px;
  display: flex; align-items: center; gap: 8px;
  background: #f2f4f8; border: 1px solid transparent;
  border-radius: 999px; padding: 5px 5px 5px 16px;
  transition: 0.2s;
}
.search:focus-within { background: #fff; border-color: #ffd0bd; box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.08); }
.search-ico { font-size: 13px; opacity: 0.55; }
.search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 13.5px; color: var(--ink); padding: 8px 0;
}
.btn-search {
  border-radius: 999px; padding: 8px 22px; color: #fff; font-weight: 600; font-size: 13.5px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow-brand);
  transition: 0.18s;
}
.btn-search:hover { filter: brightness(1.05); transform: translateY(-1px); }

.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; flex: 0 0 auto; }
.nav > a { color: var(--ink-2); font-weight: 500; position: relative; padding: 6px 2px; }
.nav > a:hover, .nav > a.active { color: var(--brand); }
.nav > a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.user-box { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #ffb28c, var(--brand));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.link-btn { color: var(--brand); font-weight: 600; }
.link-btn.muted { color: var(--muted); font-weight: 500; }

.notice-bar {
  background: linear-gradient(90deg, #fff4ec, #fff9f5 40%, #fff);
  border-bottom: 1px solid #ffe6d8;
  font-size: 12.5px; color: #9a5a34;
}
.notice-bar .wrap { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; line-height: 1.6; }
.notice-tag {
  background: var(--brand); color: #fff; font-size: 11px;
  padding: 1px 7px; border-radius: 5px; font-weight: 600; flex: 0 0 auto; margin-top: 1px;
}

/* ---------------- 通用按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 13.5px;
  transition: 0.18s; white-space: nowrap; border: 1px solid transparent;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-primary:disabled { opacity: 0.55; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: #ffc9b3; color: var(--brand); }
.btn-soft { background: var(--brand-soft); color: var(--brand-deep); }
.btn-soft:hover { background: #ffe7dc; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 9px; }
.btn[disabled] { cursor: not-allowed; }

/* ---------------- Hero ---------------- */
.main { padding: 22px 0 60px; }

.hero {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 34px 38px; color: #fff;
  background: linear-gradient(115deg, #ff5a1f 0%, #ff4d6d 45%, #7c4dff 100%);
  box-shadow: 0 18px 40px -18px rgba(255, 74, 90, 0.55);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.hero::before {
  content: ""; position: absolute; width: 380px; height: 380px; right: -80px; top: -160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.36), transparent 62%);
}
.hero::after {
  content: ""; position: absolute; width: 260px; height: 260px; left: 32%; bottom: -190px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
}
.hero-left { position: relative; z-index: 1; max-width: 560px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  backdrop-filter: blur(4px);
}
.hero h1 { margin: 14px 0 8px; font-size: 32px; line-height: 1.25; letter-spacing: 0.5px; }
.hero h1 em { font-style: normal; color: #ffe08a; }
.hero p { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 13.5px; }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; }
.hero-actions .btn-white {
  background: #fff; color: var(--brand-deep);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}
.hero-actions .btn-line {
  border: 1px solid rgba(255, 255, 255, 0.55); color: #fff;
}
.hero-actions .btn-line:hover { background: rgba(255, 255, 255, 0.14); }

.hero-stats { position: relative; z-index: 1; display: grid; gap: 10px; min-width: 210px; }
.hero-stat {
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px; padding: 12px 16px; backdrop-filter: blur(6px);
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.hero-stat b { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }
.hero-stat span { font-size: 12px; color: rgba(255, 255, 255, 0.82); }

/* ---------------- 分类 ---------------- */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 30px 0 14px;
}
.section-head h2 {
  margin: 0; font-size: 19px; display: flex; align-items: center; gap: 8px;
}
.section-head h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.section-head .sub { color: var(--muted); font-size: 12.5px; }

.cats {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 16px; transition: 0.18s; box-shadow: var(--shadow-sm);
}
.cat:hover { transform: translateY(-2px); border-color: #ffd2c0; box-shadow: var(--shadow-md); }
.cat.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff; box-shadow: var(--shadow-brand);
}
.cat-ico { font-size: 20px; }
.cat-body { display: flex; flex-direction: column; line-height: 1.3; }
.cat-body b { font-size: 13.5px; font-weight: 600; }
.cat-body small { font-size: 11px; color: var(--muted); }
.cat.active .cat-body small { color: rgba(255, 255, 255, 0.82); }

/* ---------------- 工具条 ---------------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 22px 0 14px; flex-wrap: wrap;
}
.tabs { display: flex; gap: 6px; background: #fff; padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.tab {
  padding: 7px 15px; border-radius: 9px; font-size: 13px; color: var(--ink-2); transition: 0.15s;
  white-space: nowrap; flex: 0 0 auto;
}
.tab:hover { color: var(--brand); }
.tab.active { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.result-count { color: var(--muted); font-size: 12.5px; }
.result-count b { color: var(--brand); }

/* ---------------- 商品卡 ---------------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px;
}
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
  display: flex; flex-direction: column; position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #ffd8c8; }
.card-cover {
  height: 148px; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.card-cover .watermark {
  position: absolute; right: -6px; bottom: -22px; font-size: 92px; opacity: 0.22;
  transform: rotate(-8deg); filter: blur(0.3px);
}
.card-cover .cover-title {
  position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); padding: 0 26px; text-align: center;
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.corner {
  position: absolute; z-index: 2; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 8px; backdrop-filter: blur(4px);
}
.corner.tl { left: 10px; top: 10px; background: rgba(0, 0, 0, 0.35); color: #fff; }
.corner.tr { right: 10px; top: 10px; background: rgba(255, 255, 255, 0.92); color: var(--brand-deep); }
.corner.out { background: rgba(0, 0, 0, 0.55); color: #fff; }

.card-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title {
  font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.card-title:hover { color: var(--brand); }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; padding: 2px 7px; border-radius: 6px;
  background: #f4f6fa; color: var(--ink-2); border: 1px solid #eef1f6;
}
.tag.hot { background: #fff2ec; color: var(--brand-deep); border-color: #ffe0d2; }
.card-foot {
  margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  padding-top: 4px;
}
.price {
  color: #f5310a; font-weight: 800; font-size: 20px; letter-spacing: -0.3px; line-height: 1;
  display: inline-flex; align-items: baseline; gap: 1px; font-variant-numeric: tabular-nums;
}
.price small { font-size: 13px; font-weight: 700; }
.price-orig { color: #a8b2c2; font-size: 12px; text-decoration: line-through; margin-left: 5px; font-weight: 500; }
.stock { font-size: 11.5px; color: var(--muted); }
.stock b { color: var(--ok); }
.stock.low b { color: var(--warn); }

/* ---------------- 详情页 ---------------- */
.crumb { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; display: flex; gap: 6px; }
.crumb a:hover { color: var(--brand); }

.detail {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 20px;
  align-items: start;
}
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.detail-visual {
  height: 300px; border-radius: var(--radius); overflow: hidden; position: relative;
  color: #fff;
}
.detail-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% 10%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.32));
}
.detail-visual .watermark {
  position: absolute; right: 8px; bottom: -34px; font-size: 168px; line-height: 1;
  opacity: 0.16; transform: rotate(-6deg); filter: blur(0.4px);
}
.detail-visual .big-title {
  position: absolute; left: 30px; right: 30px; bottom: 28px; z-index: 1;
  font-size: 25px; font-weight: 800; line-height: 1.35;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.detail-visual .visual-tags { position: absolute; left: 26px; top: 22px; z-index: 1; display: flex; gap: 8px; }
.visual-pill {
  font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(4px);
}
.detail-desc { padding: 20px 22px; margin-top: 16px; }
.detail-desc h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.detail-desc h3::before {
  content: ""; width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.desc-text { color: var(--ink-2); font-size: 13.5px; line-height: 1.9; white-space: pre-wrap; }
.desc-list { margin: 16px 0 0; padding: 14px 16px; background: #fafbfd; border-radius: 12px; border: 1px solid #f0f3f8; }
.desc-list div { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); padding: 4px 0; }
.desc-list span:first-child { color: var(--muted); width: 76px; flex: 0 0 auto; }

.buy-panel { padding: 20px 22px; position: sticky; top: 96px; }
.buy-price-box {
  background: linear-gradient(135deg, #fff6f2, #fff);
  border: 1px solid #ffe3d7; border-radius: 14px; padding: 16px 18px;
}
.buy-price { display: flex; align-items: baseline; gap: 8px; }
.buy-price .price { font-size: 32px; }
.buy-meta { display: flex; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.buy-meta b { color: var(--ok); }

.field { margin-top: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.stepper {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.stepper button {
  width: 36px; height: 36px; font-size: 16px; color: var(--ink-2); background: #fafbfd;
}
.stepper button:hover { color: var(--brand); }
.stepper input {
  width: 54px; height: 36px; border: none; text-align: center; outline: none;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-weight: 600;
}
.input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  outline: none; background: #fff; transition: 0.15s;
}
.input:focus { border-color: #ffc3a9; box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.08); }
.total-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 12px; padding-top: 14px; border-top: 1px dashed #e6eaf1; font-size: 13px; color: var(--muted);
}
.total-row b { color: #f5310a; font-size: 24px; font-weight: 800; }
.safe-line { display: flex; gap: 14px; margin-top: 14px; color: var(--muted); font-size: 11.5px; flex-wrap: wrap; }
.safe-line span::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* ---------------- 订单 ---------------- */
.order-card { padding: 18px 20px; margin-bottom: 14px; }
.order-top {
  display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed #e9ecf2;
  font-size: 12.5px; color: var(--muted); flex-wrap: wrap;
}
.order-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); }
.status {
  margin-left: auto; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.status.pending { background: #fff7e8; color: #b45309; }
.status.paid { background: #ecfdf5; color: #047857; }
.status.cancelled { background: #f4f6fa; color: #6b7280; }
.status.refunded { background: #fef2f2; color: #b91c1c; }
.order-main { display: flex; gap: 16px; padding-top: 14px; align-items: center; flex-wrap: wrap; }
.order-thumb {
  width: 62px; height: 62px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-size: 26px; flex: 0 0 auto;
}
.order-info { flex: 1 1 220px; min-width: 0; }
.order-info b { display: block; font-size: 14px; margin-bottom: 3px; }
.order-info small { color: var(--muted); font-size: 12px; }
.order-amount { font-size: 20px; font-weight: 800; color: #f5310a; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.accounts {
  margin-top: 14px; border-top: 1px dashed #e9ecf2; padding-top: 14px;
  display: grid; gap: 10px;
}
.acc-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fafbfd; border: 1px solid #eef1f6; border-radius: 12px; padding: 12px 14px;
}
.acc-field { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.acc-field span { color: var(--muted); font-size: 12px; }
.acc-field code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  background: #fff; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line);
  user-select: all;
}
.copy { color: var(--brand); font-size: 12px; font-weight: 600; }
.copy:hover { text-decoration: underline; }
.hint {
  background: #fffbf2; border: 1px solid #ffe9c7; color: #92620d; font-size: 12.5px;
  border-radius: 12px; padding: 12px 14px; margin-top: 14px; line-height: 1.8;
}

/* ---------------- 登录 ---------------- */
.auth-wrap { display: grid; place-items: center; padding: 40px 0 20px; }
.auth-card { width: min(420px, 100%); padding: 28px 28px 24px; }
.auth-card h2 { margin: 0 0 4px; font-size: 20px; }
.auth-card p.sub { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.auth-tabs { display: flex; gap: 4px; background: #f4f6fa; padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; padding: 8px; border-radius: 9px; font-size: 13.5px; color: var(--ink-2); }
.auth-tabs button.active { background: #fff; color: var(--brand-deep); font-weight: 600; box-shadow: var(--shadow-sm); }
.auth-card .field { margin-top: 0; margin-bottom: 14px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }

/* ---------------- 空态 / 骨架 ---------------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 44px; margin-bottom: 10px; opacity: 0.7; }

.sk { border-radius: 12px; background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 37%, #eef1f6 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { height: 268px; border-radius: var(--radius); }

/* ---------------- 悬浮客服 / Toast ---------------- */
.fab {
  position: fixed; right: 26px; bottom: 34px; z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; width: 58px; height: 58px; border-radius: 50%;
  box-shadow: 0 10px 26px rgba(255, 90, 31, 0.4);
  transition: 0.2s; font-size: 10px; padding-top: 9px;
}
.fab:hover { transform: translateY(-3px) scale(1.03); }
.fab-ico { font-size: 20px; line-height: 1; }

.toast-wrap {
  position: fixed; left: 50%; top: 24px; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  background: #1f2430; color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); animation: toastIn 0.22s ease-out;
  max-width: 86vw;
}
.toast.ok { background: #0f9d6e; }
.toast.err { background: #dc2626; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------- 页脚 ---------------- */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0 0; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-bottom: 24px; }
.footer-col h4 { margin: 0 0 10px; font-size: 14px; }
.footer-col p { margin: 0 0 6px; font-size: 12.5px; color: var(--ink-2); }
.footer-col p.muted { color: var(--muted); }
.copyright { border-top: 1px solid var(--line); padding: 14px 0; text-align: center; color: var(--muted); font-size: 12px; }

/* 渐变封面 */
.g-0 { background: linear-gradient(135deg, #f97316, #ef4444); }
.g-1 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.g-2 { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.g-3 { background: linear-gradient(135deg, #10b981, #0d9488); }
.g-4 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.g-5 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.g-6 { background: linear-gradient(135deg, #334155, #64748b); }
.g-7 { background: linear-gradient(135deg, #7c3aed, #2563eb); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .detail { grid-template-columns: 1fr; }
  .buy-panel { position: static; }
  .hero { flex-direction: column; align-items: flex-start; padding: 26px; }
  .hero-stats { width: 100%; grid-template-columns: repeat(3, 1fr); display: grid; }
  .hero h1 { font-size: 25px; }
}
@media (max-width: 860px) {
  .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .search { order: 3; width: 100%; max-width: none; flex-basis: 100%; }
  .nav { margin-left: auto; }
  .topbar-left { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 24px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-cover { height: 110px; }
  .card-cover .watermark { font-size: 64px; }
  .card-title { font-size: 13px; min-height: 38px; }
  .price { font-size: 17px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stat { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; }
  .hero-stat b { font-size: 18px; }
  .hero-stat span { font-size: 11px; }
  .toolbar { gap: 10px; }
  .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .fab { right: 16px; bottom: 20px; }
  .order-amount { font-size: 17px; }
}

/* ================= 商品详情页（对标交易站） ================= */
.pd {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 22px; align-items: start; margin-top: 14px;
}
.pd-left { position: sticky; top: 96px; }
.pd-cover {
  width: 100%; aspect-ratio: 400 / 330; border-radius: 16px; overflow: hidden;
  background: #eef1f6; position: relative; display: grid; place-items: center;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pd-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-cover .watermark { font-size: 140px; opacity: 0.35; }
.pd-cover-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px 0; color: var(--muted); font-size: 12.5px;
}
.share-btn { color: var(--brand); font-size: 12.5px; font-weight: 600; }
.share-btn:hover { text-decoration: underline; }
.pd-qr {
  margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.pd-qr img { width: 150px; height: 150px; border-radius: 8px; }
.pd-qr span { color: var(--muted); font-size: 12px; }

.pd-right { min-width: 0; }
.pd-title {
  margin: 0 0 12px; font-size: 20px; line-height: 1.5; font-weight: 700; letter-spacing: 0.2px;
}
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pdb {
  font-size: 11.5px; padding: 3px 10px; border-radius: 7px; font-weight: 600;
  background: #f4f6fa; color: var(--ink-2); border: 1px solid #eef1f6;
}
.pdb.b-hot { background: linear-gradient(135deg, #fff1e8, #ffe9de); color: var(--brand-deep); border-color: #ffdcc9; }
.pdb.b-ok { background: #ecfdf5; color: #047857; border-color: #d5f5e6; }
.pdb.b-plain { background: #f5f7fb; color: #64748b; }
.pdb.b-off { background: #fef2f2; color: #b91c1c; border-color: #fde2e2; }

.pd-price-box {
  background: linear-gradient(135deg, #fff7f3, #fff); border: 1px solid #ffe3d7;
  border-radius: 14px; padding: 16px 18px; margin-bottom: 18px;
}
.pd-price-line { display: flex; align-items: baseline; gap: 10px; }
.pd-label { color: var(--muted); font-size: 13px; }
.pd-price-line .price { font-size: 30px; }
.pd-limit { margin-top: 6px; color: var(--muted); font-size: 12.5px; }

.pd-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.pd-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-row .pd-label { width: 76px; flex: 0 0 auto; }
.pd-row .pd-label i { color: var(--danger); font-style: normal; margin-right: 2px; }
.pd-row .input { flex: 1 1 260px; max-width: 420px; }
.pd-stock { color: var(--muted); font-size: 12.5px; }
.pd-stock b { color: var(--ok); }

.pd-pay {
  background: #fffaf6; border: 1px solid #ffe7d9; border-radius: 14px;
  padding: 14px 16px; margin-bottom: 16px;
}
.pd-pay-title { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 10px; }
.pay-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.pay-opt {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: 0.15s; position: relative;
}
.pay-opt:hover { border-color: #ffcbb4; }
.pay-opt.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.09); background: #fffdfb; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-logo {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; flex: 0 0 auto;
  background: #94a3b8;
}
.pay-logo.alipay { background: #1677ff; }
.pay-logo.wechat { background: #07c160; }
.pay-logo.epay { background: #6366f1; }
.pay-logo.mock { background: #f59e0b; }
.pay-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.pay-desc { font-size: 11px; color: var(--muted); margin-left: auto; }

.pd-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); margin: 6px 0 16px; }
.pd-agree input { margin-top: 3px; accent-color: var(--brand); }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-buy {
  padding: 13px 34px; border-radius: 12px; color: #fff; font-weight: 700; font-size: 15px;
  background: linear-gradient(135deg, #ff5a1f, #ff8a3d);
  box-shadow: 0 10px 24px -8px rgba(255, 90, 31, 0.8);
  transition: 0.18s;
}
.btn-buy:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-buy:disabled { opacity: 0.5; box-shadow: none; cursor: not-allowed; transform: none; }

.pd-tabs {
  display: flex; gap: 2px; margin: 26px 0 0; border-bottom: 1px solid var(--line);
}
.pd-tabs button {
  padding: 12px 22px; font-size: 14px; color: var(--muted); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.pd-tabs button.active { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }
.pd-panel { border-radius: 0 0 16px 16px; padding: 22px 24px; margin-top: 0; }
.format-box {
  display: flex; gap: 10px; align-items: baseline; background: #f6f9ff; border: 1px solid #e3ecfb;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 13px;
}
.format-box span { color: var(--muted); flex: 0 0 auto; }
.format-box code { font-family: ui-monospace, Menlo, monospace; color: #1d4ed8; }

.tbl-simple { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl-simple th, .tbl-simple td { padding: 10px 8px; border-bottom: 1px solid #f1f3f8; text-align: left; }
.tbl-simple th { color: var(--muted); font-weight: 600; font-size: 12px; }
.tbl-simple .mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.tbl-simple .money { color: #f5310a; font-weight: 700; }
.tbl-simple .muted { color: var(--muted); }

.guarantee {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px;
  margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; box-shadow: var(--shadow-sm);
}
.guarantee div { display: flex; flex-direction: column; gap: 3px; }
.guarantee b { font-size: 13.5px; color: var(--ink); }
.guarantee span { font-size: 12px; color: var(--muted); }

/* ================= 收银台 / 二维码 ================= */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.pay-tile {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: 0.15s;
}
.pay-tile:hover { border-color: #ffcbb4; transform: translateY(-1px); }
.pay-tile.primary { border-color: var(--brand); background: #fffaf7; box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.07); }
.pay-tile-text { display: flex; flex-direction: column; line-height: 1.35; }
.pay-tile-text b { font-size: 13.5px; }
.pay-tile-text small { color: var(--muted); font-size: 11.5px; }

.qr-overlay {
  position: fixed; inset: 0; background: rgba(15, 20, 30, 0.5); backdrop-filter: blur(3px);
  display: grid; place-items: center; z-index: 300; padding: 20px;
}
.qr-card {
  background: #fff; border-radius: 18px; padding: 24px 26px 20px; width: min(360px, 100%);
  text-align: center; position: relative; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.qr-card h3 { margin: 0 0 14px; font-size: 17px; }
.qr-close {
  position: absolute; right: 12px; top: 10px; font-size: 22px; color: #94a3b8; line-height: 1;
}
.qr-close:hover { color: var(--ink); }
.qr-box { display: grid; place-items: center; padding: 10px; background: #fff; border-radius: 12px; }
.qr-box svg { width: 232px; height: 232px; display: block; }
.qr-amount { font-size: 24px; font-weight: 800; color: #f5310a; margin-top: 8px; }
.qr-tip { color: var(--muted); font-size: 12.5px; margin: 6px 0 10px; }
.qr-left { font-size: 12.5px; color: var(--muted); }
.qr-left b { color: var(--brand); font-variant-numeric: tabular-nums; }
.qr-actions { margin-top: 12px; }

/* 卡片封面用真实图片时 */
.card-cover.has-img { padding: 0; }
.card-cover.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.card:hover .card-cover.has-img img { transform: scale(1.04); }

@media (max-width: 980px) {
  .pd { grid-template-columns: 1fr; }
  .pd-left { position: static; }
  .pd-qr { display: none; }
  .pd-title { font-size: 17px; }
}
@media (max-width: 560px) {
  .pd-price-line .price { font-size: 24px; }
  .pay-opts { grid-template-columns: 1fr; }
  .pd-actions .btn { flex: 1 1 auto; }
  .btn-buy { width: 100%; }
}

.order-thumb.has-img { overflow: hidden; padding: 0; }
.order-thumb.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ================= 个人收款码 ================= */
.local-pay {
  display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap;
  margin-top: 16px; padding: 18px 20px; background: #f8fbff;
  border: 1px solid #dfeaf8; border-radius: 14px;
}
.local-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.local-qr img {
  height: 236px; width: auto; max-width: 232px; object-fit: contain; border-radius: 12px;
  background: #fff; padding: 6px; border: 1px solid var(--line);
}
.local-qr span { color: var(--muted); font-size: 12px; }
.local-main { flex: 1 1 280px; min-width: 240px; }
.local-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.local-line > span { color: var(--muted); width: 68px; flex: 0 0 auto; }
.local-amount { font-size: 26px; font-weight: 800; color: #f5310a; }
.local-remark {
  font-family: ui-monospace, Menlo, monospace; font-size: 20px; font-weight: 800;
  letter-spacing: 3px; color: #1677ff; background: #eaf3ff; padding: 2px 10px; border-radius: 8px;
}
.local-tip { color: var(--muted); font-size: 12.5px; line-height: 1.8; margin: 0 0 12px; }
.claim-done {
  background: #ecfdf5; border: 1px solid #d5f5e6; color: #047857;
  border-radius: 10px; padding: 10px 14px; font-size: 13px;
}
.claim-box { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.claim-box .input { flex: 1 1 220px; }

.local-tail { font-size: 12px; color: #b45309; background: #fff7e8; border: 1px solid #ffe9c7;
  border-radius: 8px; padding: 6px 10px; margin: -2px 0 10px; line-height: 1.6; }
