/* ============================================================
   phcard · 商城前台 / 商家后台
   风格：浅灰底 + 白色大圆角卡片 + 黑色胶囊按钮 + 柔和投影
   ============================================================ */

:root {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --surface-2: #f7f7f9;
  --ink: #111315;
  --text: #1b1d21;
  --muted: #8b909a;
  --muted-2: #6f7480;
  --line: #ededf0;
  --line-2: #f3f3f5;
  --accent: #111315;
  --radius: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 19, 21, 0.04), 0 14px 34px rgba(17, 19, 21, 0.06);
  --shadow-sm: 0 1px 2px rgba(17, 19, 21, 0.05);

  --tag-green-bg: #e9f7ef;
  --tag-green: #17794a;
  --tag-orange-bg: #fdf1e2;
  --tag-orange: #b26a0c;
  --tag-blue-bg: #eaf1ff;
  --tag-blue: #2a5bd7;
  --tag-gray-bg: #f3f3f5;
  --tag-gray: #6f7480;
  --err: #d92d20;
  --err-soft: #fef3f2;
  --ok: #17794a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }
code, .mono, pre, kbd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }

.shell { width: min(1520px, 96vw); margin: 0 auto; }
.container { width: min(1520px, 96vw); margin: 0 auto; }
.container.wide { width: min(1600px, 97vw); }
.narrow { width: min(760px, 94vw); margin: 22px auto 60px; }
main.container { padding: 18px 0 40px; }
.center-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }

/* ── 顶部悬浮导航 ────────────────────────────────────────── */
.top-wrap { padding: 14px 0 0; }
.site-header {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 18px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; padding-right: 6px; }
.brand-static { pointer-events: none; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, #f2f4f8, #dfe4ee);
  color: #111315; font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
  border: 1px solid #e6e8ee;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; gap: 2px; }
.brand-text b { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.brand-text small { color: var(--muted); font-size: 11px; }

.lang-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 38px; padding: 0 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--muted-2); font-size: 13px;
}
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; flex-wrap: nowrap; overflow: hidden; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px; border-radius: var(--radius-sm);
  color: #1f2430; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.nav-link svg { width: 15px; height: 15px; opacity: 0.9; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.nav-link.on {
  background: var(--surface); color: var(--ink); font-weight: 700;
  box-shadow: 0 1px 2px rgba(17,19,21,.06), 0 6px 16px rgba(17,19,21,.08);
  border: 1px solid var(--line);
}
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* ── 按钮 ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: opacity 0.15s, transform 0.1s, background 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn.block { width: 100%; }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { background: var(--surface-2); opacity: 1; }
.btn.disabled, .btn:disabled { opacity: 0.4; pointer-events: none; }
.btn.pill { border-radius: 999px; height: 46px; padding: 0 26px; font-size: 15px; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #d6d8dd; }
.link:hover { text-decoration-color: var(--ink); }

/* ── 卡片与排版 ──────────────────────────────────────────── */
.card, .panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.panel-head, .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.eyebrow {
  display: block; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 8px;
}
.panel-title { font-size: 27px; margin: 0 0 16px; letter-spacing: -0.03em; }
.sub-title { margin-top: 24px; font-size: 15px; }
.empty { padding: 46px 16px; text-align: center; color: var(--muted); font-size: 14px; }

/* ── 页头 ────────────────────────────────────────────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 4px 0 18px; }
.page-head h1 { font-size: 30px; margin: 0 0 4px; }
.page-head.slim { display: block; }
.page-head-stats { display: flex; gap: 10px; }
.mini-stat {
  background: var(--surface); border-radius: var(--radius-md); padding: 12px 20px;
  text-align: center; box-shadow: var(--shadow-sm); min-width: 96px;
}
.mini-stat b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.mini-stat b i { font-style: normal; font-size: 11px; color: var(--muted); }
.mini-stat small { color: var(--muted); font-size: 11.5px; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs em { font-style: normal; color: var(--text); }

/* ── 目录式首页 ──────────────────────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }

.cat-panel { padding: 30px 26px 24px; position: sticky; top: 18px; margin: 0; }
.cat-panel .eyebrow { margin-bottom: 10px; }
.cat-panel .panel-title { font-size: 27px; margin-bottom: 20px; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cat-item a {
  display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 14px; border-radius: var(--radius-md);
  font-size: 15px; color: #2b2e33; border: 1px solid transparent;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.cat-item a:hover { background: var(--surface-2); }
.cat-item.on a {
  background: var(--surface); border-color: var(--line);
  box-shadow: 0 1px 2px rgba(17,19,21,.05), 0 8px 20px rgba(17,19,21,.07);
  font-weight: 600;
}
.cat-icon {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); font-size: 13px; flex: none;
}
.cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-count {
  font-style: normal; font-size: 12px; color: var(--muted);
  background: var(--surface-2); border-radius: 999px; padding: 2px 9px; min-width: 30px; text-align: center;
}
.cat-item.on .cat-count { background: #f1f2f5; color: var(--muted-2); }
.cat-tip { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.cat-tip b { font-size: 13px; display: block; margin-bottom: 4px; }

.catalog { padding: 30px 32px 12px; margin: 0; }
.catalog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.catalog-head h2 { font-size: 30px; margin: 0; letter-spacing: -0.03em; }
.catalog-tools { display: flex; align-items: center; gap: 10px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 6px 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); min-width: 300px;
  box-shadow: var(--shadow-sm);
}
.search-box svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search-box input {
  border: none; outline: none; background: transparent; box-shadow: none;
  padding: 0; height: 100%; font-size: 14px; flex: 1; min-width: 0;
}
.search-box input::placeholder { color: #a9aeb8; }
.search-go {
  height: 34px; padding: 0 18px; border-radius: 999px; border: none; background: var(--accent);
  color: #fff; font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; flex: none;
}
.search-go svg { width: 14px; height: 14px; color: #fff; }

.table-wrap { overflow-x: auto; }
.catalog-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.catalog-table th {
  text-align: left; font-size: 13px; font-weight: 500; color: var(--muted-2);
  padding: 12px 14px; background: var(--surface-2); white-space: nowrap;
}
.catalog-table th:first-child { border-radius: 12px 0 0 12px; }
.catalog-table th:last-child { border-radius: 0 12px 12px 0; }
.catalog-table td { padding: 18px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.catalog-table tr:last-child td { border-bottom: none; }
.product-row { transition: background 0.12s; }
.product-row:hover { background: #fcfcfd; }
.product-row > td:first-child { border-radius: 12px 0 0 12px; }
.product-row > td:last-child { border-radius: 0 12px 12px 0; }

.cell-product { display: table-cell; }
.prod-link { display: flex; align-items: flex-start; gap: 14px; }
.prod-logo {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: -0.02em;
}
.prod-logo.card { background: linear-gradient(140deg, #2c2f36, #111315); }
.prod-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.prod-title { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.prod-link:hover .prod-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #d6d8dd; }
.prod-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.prod-tags.big { gap: 8px; margin: 14px 0 18px; }
.prod-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 2px; }
.prod-logo.big { width: 56px; height: 56px; font-size: 15px; }
.search-go svg { color: #fff; }
.tag {
  display: inline-block; font-size: 11.5px; line-height: 1.7; padding: 0 9px; border-radius: 7px;
  background: var(--tag-gray-bg); color: var(--tag-gray); white-space: nowrap;
}
.tag.green { background: var(--tag-green-bg); color: var(--tag-green); }
.tag.orange { background: var(--tag-orange-bg); color: var(--tag-orange); }
.tag.blue { background: var(--tag-blue-bg); color: var(--tag-blue); }
.tag.danger { background: var(--err-soft); color: var(--err); }
.prod-desc { font-size: 12.5px; color: var(--muted); }

.th-price { width: 130px; }
.th-stock { width: 120px; }
.th-op { width: 120px; text-align: right; }
.cell-price { font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-price .cur { font-size: 13px; margin-right: 1px; }
.cell-stock { font-size: 14px; color: var(--muted-2); white-space: nowrap; }
.cell-stock.low { color: #b26a0c; }
.cell-stock.out { color: var(--err); }
.cell-op { text-align: right; }

.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.feature { background: var(--surface); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.feature b { font-size: 13.5px; display: block; margin-bottom: 3px; }
.feature p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ── 表单 ────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted-2); margin-bottom: 6px; }
.field .req { color: var(--err); font-style: normal; }
input, textarea, select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); outline: none;
  font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus { border-color: #c9ccd4; box-shadow: 0 0 0 4px rgba(17,19,21,.05); }
input::placeholder, textarea::placeholder { color: #a9aeb8; }
textarea { resize: vertical; line-height: 1.6; }
textarea.mono { font-size: 12.5px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #98a0b0 50%), linear-gradient(135deg, #98a0b0 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: #374151; margin: 6px 0 16px; }
.check input { width: 16px; height: 16px; margin-top: 3px; flex: none; }

/* ── 商品详情 ────────────────────────────────────────────── */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.product-main { padding: 32px; margin: 0; }
.product-main h1 { font-size: 27px; }
.product-sub { margin-bottom: 2px; }
.prose { color: #3f4653; font-size: 14px; line-height: 1.9; }
.spec-table { border-top: 1px solid var(--line-2); }
.spec-table > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 2px; border-bottom: 1px solid var(--line-2); font-size: 14px;
}
.spec-table span { color: var(--muted); }
.spec-table b { font-weight: 600; }
.buy-card { position: sticky; top: 18px; padding: 28px; margin: 0; }
.buy-price { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.buy-price .cur { font-size: 18px; margin-right: 2px; }
.buy-note { margin: -2px 0 18px; }
.buy-points { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-2); }
.buy-points li { font-size: 12.5px; color: var(--muted); padding-left: 12px; position: relative; margin-bottom: 5px; }
.buy-points li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: #d0d3da; }


/* ── 商品详情：左图 + 右购买面板 ─────────────────────────── */
.pd { padding: 28px; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 42px; }
.pd-media { position: sticky; top: 92px; }
.pd-image {
  aspect-ratio: 1 / 1; border-radius: 20px; background: #f2f2f4;
  display: grid; place-items: center; overflow: hidden;
}
.pd-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-logo { font-size: 120px; font-weight: 800; letter-spacing: -0.04em; color: #111315; opacity: 0.92; }
.pd-zoom {
  position: absolute; right: 16px; bottom: 16px; padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,.92); font-size: 12.5px; box-shadow: var(--shadow-sm);
}
.pd-title { font-size: 30px; letter-spacing: -0.03em; margin-bottom: 14px; }
.pd-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag.share { border: none; cursor: pointer; font-family: inherit; }
.pd-price { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.pd-price .cur { font-size: 17px; margin-right: 3px; }
.pd-sub { margin: 2px 0 0; font-size: 13.5px; }
.pd-label { font-size: 13px; color: var(--muted-2); margin: 18px 0 8px; }
.pd-variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; }
.variant { position: relative; cursor: pointer; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.v-inner {
  display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
  padding: 13px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  transition: background .15s, border-color .15s, color .15s;
}
.v-price { font-size: 13.5px; font-weight: 700; }
.v-name { font-size: 12px; color: var(--muted); line-height: 1.35; }
.variant input:checked + .v-inner { background: var(--accent); border-color: var(--accent); color: #fff; }
.variant input:checked + .v-inner .v-name { color: rgba(255,255,255,.74); }
.pd-notes { display: grid; gap: 12px; margin-top: 16px; }
.note-card { background: var(--surface-2); border-radius: 12px; padding: 16px 14px 12px; position: relative; }
.note-price {
  position: absolute; left: 50%; top: -10px; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px;
  font-size: 11.5px; font-weight: 600;
}
.note-card p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted-2); }
.pd-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 18px; }
.qty { display: inline-flex; align-items: center; height: 42px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty-btn { width: 42px; height: 42px; border: none; background: #fff; font-size: 16px; color: #4b5563; cursor: pointer; }
.qty-btn:hover { background: var(--surface-2); }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.qty input {
  width: 58px; height: 42px; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  border-radius: 0; text-align: center; font-size: 14px; background: #fff;
}
.pd-total { text-align: right; }
.pd-total b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.bulk-table { border-top: 1px solid var(--line-2); }
.bulk-row { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.bulk-row span { color: var(--muted-2); }
.pay-panel { margin-top: 18px; background: var(--surface-2); border-radius: 14px; padding: 12px 16px 16px; }
.pay-panel .pd-label { margin-top: 2px; }
.pay-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  background: #fff; font-size: 12.5px; box-shadow: var(--shadow-sm);
}
.pay-chip i {
  font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  color: #fff; display: grid; place-items: center; font-size: 10px;
}
.pd-buy { margin-top: 18px; height: 50px; font-size: 16px; }
.pd-specs { margin-top: 24px; border-top: 1px solid var(--line-2); }
.pd-specs > div { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.pd-specs span { color: var(--muted); }
.pd-detail { margin-top: 18px; }
.secret.multi { max-height: 200px; overflow: auto; text-align: left; font-size: 13px; line-height: 1.9; }
@media (max-width: 980px) {
  .pd { padding: 18px; }
  .pd-grid { grid-template-columns: 1fr; gap: 22px; }
  .pd-media { position: static; }
  .pd-image { aspect-ratio: 4 / 3; }
  .pd-logo { font-size: 76px; }
  .pd-title { font-size: 22px; }
  .pd-price { font-size: 24px; }
}

/* ── 收银台 / 订单 ───────────────────────────────────────── */
.cashier, .order-card { padding: 30px 32px; }
.cashier-head, .order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cashier-head h1, .order-head h1 { font-size: 26px; margin: 2px 0 4px; }
.amount-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface-2); border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 18px;
}
.amount { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.amount .cur { font-size: 16px; margin-right: 2px; }
.amount-meta { text-align: right; font-size: 13.5px; }
.pay-list { display: grid; gap: 10px; }
.pay-form { margin: 0; }
.pay-method {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pay-method:hover { border-color: #c9ccd4; box-shadow: var(--shadow-sm); }
.pm-icon {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 700;
}
.pay-method.test .pm-icon { background: #e9eaee; color: #6f7480; }
.pm-text { display: flex; flex-direction: column; line-height: 1.35; flex: 1; }
.pm-text b { font-size: 14px; }
.pm-text small { font-size: 12px; color: var(--muted); }
.pm-arrow { color: #b9bfcc; }
.usdt-box { margin-top: 16px; padding: 16px; border-radius: var(--radius-md); background: var(--surface-2); }
.copyable, .secret {
  display: block; margin: 8px 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); word-break: break-all; font-size: 13px;
}
.secret { font-size: 17px; letter-spacing: 0.06em; color: var(--ok); text-align: center; }
.cashier-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }

.kv { margin: 14px 0 18px; }
.kv > div { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.kv dt { flex: 0 0 86px; color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-size: 13.5px; word-break: break-word; }

.working { display: flex; gap: 14px; align-items: center; margin: 18px 0; padding: 16px; border-radius: var(--radius-md); background: var(--surface-2); }
.spinner { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 2px solid #dcdfe6; border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.deliver-box { padding: 18px; border-radius: var(--radius-md); background: var(--tag-green-bg); }
.alert { margin: 14px 0; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-2); font-size: 13.5px; }
.alert.err { background: var(--err-soft); color: #8a1c14; }

/* ── 查询 / 帮助 ─────────────────────────────────────────── */
.query-form { display: flex; gap: 10px; }
.query-form input { border-radius: 999px; padding-left: 18px; }
.order-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-2); margin-bottom: 10px;
}
.order-row:hover { background: #f1f2f5; }

.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.help-list { padding: 10px 32px; }
.help-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.help-item:last-child { border-bottom: none; }
.help-index {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); font-size: 12px; color: var(--muted-2);
}
.help-body h3 { font-size: 15px; margin: 5px 0 4px; }
.help-body p { margin: 0; font-size: 13.5px; }
.help-side { position: sticky; top: 18px; }
.support-contact {
  margin: 12px 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2);
  font-weight: 600; font-size: 14px; text-align: center;
}

/* ── 徽标 / 通知 ─────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.ok { background: var(--tag-green-bg); color: var(--tag-green); }
.badge.info { background: var(--tag-blue-bg); color: var(--tag-blue); }
.badge.warn { background: var(--tag-orange-bg); color: var(--tag-orange); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.muted { background: var(--tag-gray-bg); color: var(--tag-gray); }
.notice { margin: 14px 0; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); font-size: 13.5px; }
.notice-bar { margin-top: 12px; }
.notice-bar .container > div, .notice-bar > div > div { display: flex; }
.notice-bar-inner {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--shadow-sm); font-size: 13px; color: var(--muted-2);
}
.notice-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ── 页脚 ────────────────────────────────────────────────── */
.site-footer { margin-top: 46px; padding: 0 0 26px; }
.footer-card { background: var(--surface); border-radius: var(--radius); padding: 32px 34px 20px; box-shadow: var(--shadow-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.footer-brand p { margin: 12px 0 0; font-size: 13px; max-width: 36ch; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.footer-col a, .footer-col span { font-size: 13.5px; color: #3f4653; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted);
}

/* ── 在线客服 ────────────────────────────────────────────── */
.support { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.support-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px;
  border: none; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; box-shadow: 0 12px 28px rgba(17,19,21,.22); white-space: nowrap;
}
.support-card { width: 240px; background: var(--surface); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow); }
.support-card b { font-size: 14px; }
.support-card .btn { margin-top: 10px; }

/* ============================================================
   兑换中心
   ============================================================ */
.redeem-hero { padding: 22px 0 16px; }
.redeem-hero h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; }
.redeem-hero p { margin-top: 6px; font-size: 14.5px; }
.chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { padding: 5px 13px; border-radius: 999px; font-size: 13px; background: var(--surface); box-shadow: var(--shadow-sm); color: #3f4653; }
.redeem-grid { display: grid; grid-template-columns: 1.28fr 1fr; gap: 18px; align-items: start; padding-bottom: 20px; }
.redeem-card { padding: 26px 30px 0; margin: 0; }
.redeem-tabs { display: flex; align-items: center; gap: 6px; }
.rtab { padding: 8px 16px; border-radius: 999px; font-size: 14px; cursor: pointer; border: 1px solid transparent; background: transparent; color: #2f3542; font-family: inherit; font-weight: 600; }
.rtab:hover { background: var(--surface-2); color: var(--ink); }
.rtab.on { background: var(--surface-2); color: var(--ink); border-color: var(--line); font-weight: 700; }
.redeem-mark { margin-left: auto; font-size: 10.5px; letter-spacing: 0.2em; color: #b6bcc9; }
.stepper { display: flex; align-items: center; gap: 10px; margin: 20px 0 24px; }
.sitem { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; }
.sitem b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
.sitem.on { color: var(--ink); font-weight: 600; }
.sitem.on b { background: var(--accent); color: #fff; }
.sitem.done b { background: var(--tag-green-bg); color: var(--tag-green); }
.sline { flex: 1; height: 1px; background: var(--line); }
.spane { padding-bottom: 4px; }
.pane-label { font-size: 11.5px; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 4px; }
.spane h2 { font-size: 23px; margin-bottom: 6px; }
.cdk-tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 6px; font-size: 10px; font-style: normal; letter-spacing: 0.07em; color: var(--muted-2); background: var(--surface-2); }
.big-input { padding: 15px 16px; font-size: 15px; border-radius: var(--radius-md); }
.hint-line { margin: 18px 0 0; padding: 12px 14px; border-radius: var(--radius-md); font-size: 13px; color: var(--muted); background: var(--surface-2); }
.hint-line.err { color: var(--err); background: var(--err-soft); }
.detect { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); padding: 10px 14px; border-radius: var(--radius-md); background: var(--surface-2); margin-bottom: 14px; }
.detect .dot { width: 7px; height: 7px; border-radius: 50%; background: #c8cdd8; flex: none; }
.detect .dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(23, 121, 74, 0.14); }
.detect .dot.warn { background: #e0a72b; box-shadow: 0 0 0 3px rgba(224, 167, 43, 0.16); }
.detect.ok { background: var(--tag-green-bg); color: var(--tag-green); }
.alt-auth { margin: 2px 0 16px; font-size: 13px; color: var(--muted); }
.alt-auth summary { cursor: pointer; }
.sum-line { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-2); font-size: 13.5px; margin-bottom: 14px; }
.redeem-foot { margin-top: 18px; padding: 16px 0; border-top: 1px solid var(--line-2); text-align: center; font-size: 12.5px; color: var(--muted); }
.kv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.kv-row span { color: var(--muted); flex: none; }
.kv-row b { text-align: right; word-break: break-all; }
.query-result { margin-top: 18px; padding: 14px; border-radius: var(--radius-md); background: var(--surface-2); }
.guide { padding: 26px 28px; margin: 0; }
.guide-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.guide-label { font-size: 12px; letter-spacing: 0.05em; color: var(--muted); }
.guide h2 { font-size: 22px; margin: 4px 0 4px; }
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--surface-2); margin: 12px 0 18px; }
.seg-btn { padding: 6px 16px; border-radius: 999px; font-size: 13px; border: none; cursor: pointer; background: transparent; color: var(--muted); font-family: inherit; }
.seg-btn.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { display: flex; gap: 13px; padding: 0 0 20px; position: relative; }
.guide-list li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 1px; background: var(--line); }
.guide-list b { flex: none; width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; color: var(--muted-2); }
.guide-list h3 { font-size: 14px; margin: 4px 0 3px; }
.guide-list p { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.guide-link { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #d6d8dd; }
.link-box { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 8px; }
.link-box code { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.link-box .lock { font-size: 10px; opacity: 0.6; }
.mini-btn { border: 1px solid var(--line); background: var(--surface); color: #4b5563; border-radius: 7px; padding: 4px 9px; font-size: 11.5px; cursor: pointer; font-family: inherit; flex: none; }
.keys { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
kbd { padding: 4px 8px; border-radius: 7px; background: var(--surface-2); font-size: 11.5px; color: #374151; }
.guide-note { font-size: 12.5px; color: var(--muted-2); padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-2); }

/* ============================================================
   商家后台
   ============================================================ */
.admin-body { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; background: var(--bg); gap: 16px; padding: 14px; }
.sidebar {
  background: var(--surface); border-radius: var(--radius); padding: 20px 14px;
  display: flex; flex-direction: column; gap: 16px; position: sticky; top: 14px; height: calc(100vh - 28px);
  box-shadow: var(--shadow-sm);
}
.side-brand { display: flex; align-items: center; gap: 9px; padding: 2px 6px 14px; border-bottom: 1px solid var(--line-2); }
.side-brand > span { display: flex; flex-direction: column; line-height: 1.25; font-size: 13.5px; font-weight: 700; }
.side-brand small { color: var(--muted); font-weight: 400; font-size: 11px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link { padding: 9px 12px; border-radius: var(--radius-sm); color: #4b5563; font-size: 14px; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.on { background: var(--accent); color: #fff; font-weight: 600; }
.side-foot { margin-top: auto; }
.admin-main { padding: 8px 8px 40px; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 0 6px; }
.admin-head h1 { font-size: 22px; margin: 0; }
.admin-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.admin-main .card, .admin-main .panel { padding: 22px 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.stat-card small { color: var(--muted); font-size: 12.5px; }
.stat-card b { font-size: 23px; letter-spacing: -0.02em; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); background: var(--surface-2); }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--accent); color: #fff; font-weight: 600; }
.pager { display: flex; gap: 6px; margin: 14px 0 6px; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 500; color: var(--muted-2); font-size: 12.5px; padding: 10px 12px; background: var(--surface-2); white-space: nowrap; }
.table th:first-child { border-radius: 10px 0 0 10px; }
.table th:last-child { border-radius: 0 10px 10px 0; }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tbody tr:hover { background: #fcfcfd; }
.table tbody tr:last-child td { border-bottom: none; }
.small-table { font-size: 12.5px; }
.sub-row td { background: var(--surface-2); padding: 0 12px 12px; }
.sub-row summary { cursor: pointer; padding: 9px 0; }
.code-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 13px; font-size: 12.5px; overflow: auto; max-height: 240px; white-space: pre-wrap; word-break: break-all; color: #3f4653; }
.hint-box { font-size: 13px; color: var(--muted-2); background: var(--surface-2); border-radius: var(--radius-md); padding: 14px; margin-bottom: 16px; }
.hint-box code { color: var(--ink); word-break: break-all; }
.login { width: min(390px, 92vw); margin: 0; padding: 30px; }
.login h1 { font-size: 22px; }

/* ── 响应式 ──────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .catalog-layout { grid-template-columns: 300px minmax(0, 1fr); }
  .product-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .main-nav { overflow-x: auto; }
}
@media (max-width: 980px) {
  .catalog-layout, .product-layout, .help-layout, .redeem-grid { grid-template-columns: 1fr; }
  .cat-panel, .buy-card, .help-side { position: static; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .shell, .container, .container.wide { width: 94vw; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .site-header { height: auto; padding: 12px 14px; flex-wrap: wrap; gap: 10px; border-radius: 18px; }
  .lang-chip { display: none; }
  .brand-text small { display: none; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .header-actions { order: 2; margin-left: auto; }
  .main-nav {
    order: 3; flex: 1 1 100%; width: 100%; justify-content: flex-start; gap: 2px;
    padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line-2); overflow-x: auto;
  }
  .nav-link { height: 36px; padding: 0 10px; font-size: 13px; }
  .header-actions .btn.ghost { display: none; }
  .card, .panel, .catalog, .cat-panel, .product-main, .buy-card, .cashier, .order-card, .guide, .redeem-card { padding: 20px 18px; border-radius: 18px; }
  .catalog-head h2, .cat-panel .panel-title, .page-head h1 { font-size: 23px; }
  .search-box { min-width: 0; width: 100%; }
  .catalog-tools { width: 100%; }
  .catalog-table thead { display: none; }
  .catalog-table, .catalog-table tbody, .catalog-table tr, .catalog-table td { display: block; width: 100%; }
  .catalog-table tr.product-row { position: relative; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
  .catalog-table tr.product-row:last-child { border-bottom: none; }
  .catalog-table td { border: none; padding: 0; }
  .cell-product { padding-right: 92px !important; }
  .prod-link { gap: 12px; }
  .prod-title { font-size: 14.5px; }
  .cell-price { margin-top: 8px; font-size: 15px; }
  .cell-stock { display: inline-block; margin-left: 10px; font-size: 12.5px; }
  .cell-op { position: absolute; right: 0; bottom: 16px; }
  .cell-op .btn { height: 32px; padding: 0 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .admin-body { grid-template-columns: 1fr; padding: 10px; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; gap: 10px; padding: 12px; }
  .side-brand { border: none; padding: 0; }
  .side-brand > span { display: none; }
  .side-nav { flex-direction: row; }
  .side-link { white-space: nowrap; }
  .side-foot { margin: 0; }
  .admin-main { padding: 4px 0 40px; }
  .two-col { grid-template-columns: 1fr; }
  .support { right: 14px; bottom: 14px; }
  .support-btn span { display: none; }
}

/* ── 宝贝详情文档 ────────────────────────────────────────── */
.pd-doc-card { padding: 30px 34px 34px; }
.pd-doc-title { font-size: 24px; margin: 0 0 18px; letter-spacing: -0.02em; }
.pd-doc { color: #3a4150; font-size: 14px; line-height: 1.9; max-width: 980px; }
.pd-doc h3 {
  font-size: 17px; margin: 28px 0 10px; padding-left: 12px; position: relative; color: var(--ink);
}
.pd-doc h3::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px;
  border-radius: 2px; background: var(--accent);
}
.pd-doc h4 { font-size: 14.5px; margin: 20px 0 8px; color: var(--ink); }
.pd-doc p { margin: 0 0 10px; }
.pd-doc b { font-weight: 600; color: var(--ink); }
.doc-lead { font-size: 15px; font-weight: 600; color: var(--ink); }
.doc-note, .doc-warn {
  border-radius: 12px; padding: 14px 16px; margin: 14px 0 18px; font-size: 13.5px;
}
.doc-note { background: var(--surface-2); color: #3a4150; }
.doc-warn { background: #fdf6e8; color: #7a5410; }
.doc-warn b { color: #6b4708; }
.doc-steps { margin: 8px 0 16px; padding-left: 0; list-style: none; counter-reset: step; }
.doc-steps li {
  position: relative; padding: 0 0 10px 34px; counter-increment: step; font-size: 13.5px;
}
.doc-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted-2); font-size: 11.5px; font-weight: 600;
}
.doc-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0 18px; font-size: 13.5px; }
.doc-table th {
  text-align: left; font-weight: 600; color: var(--muted-2); background: var(--surface-2);
  padding: 11px 14px; white-space: nowrap;
}
.doc-table th:first-child { border-radius: 10px 0 0 10px; }
.doc-table th:last-child { border-radius: 0 10px 10px 0; }
.doc-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table td:first-child { color: var(--muted); white-space: nowrap; }
.doc-list { margin: 8px 0 4px; padding-left: 0; list-style: none; }
.doc-list li { position: relative; padding-left: 18px; margin-bottom: 6px; font-size: 13.5px; }
.doc-list li::before {
  content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
}
@media (max-width: 760px) {
  .pd-doc-card { padding: 20px 18px 24px; }
  .pd-doc-title { font-size: 20px; }
  .doc-table { font-size: 12.5px; }
  .doc-table th, .doc-table td { padding: 9px 10px; }
}


/* ── 后台富文本编辑器 ────────────────────────────────────── */
.ed { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.ed-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ed-btn { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: 12.5px; color: #4b5563; cursor: pointer; font-family: inherit; }
.ed-btn:hover { background: #fff; border-color: var(--line); }
.ed-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.ed-sep { width: 1px; height: 18px; background: var(--line); margin: 0 5px; }
.ed-body { min-height: 320px; max-height: 560px; overflow: auto; padding: 18px 20px; outline: none; }
.ed-body:focus { box-shadow: inset 0 0 0 2px rgba(17, 19, 21, 0.05); }
.ed-source { border: none; border-radius: 0; min-height: 320px; padding: 16px 18px; }
.ed-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
.ed-preview { padding: 18px 20px; border-top: 1px solid var(--line); background: #fff; }
.ed .pd-doc { max-width: none; }

/* 资源导入页的类型对照表 */
.hint-box .table { font-size: 12.5px; }
.hint-box .table th, .hint-box .table td { padding: 8px 10px; }
.hint-box .table code { white-space: nowrap; font-size: 12px; word-break: keep-all; }
.hint-box .table td:nth-child(2) { width: 34%; }

/* 资源导入：拖拽高亮 */
textarea.dragging, .dragging {
  border-color: var(--accent) !important;
  box-shadow: inset 0 0 0 2px rgba(17, 19, 21, 0.08);
  background: #fbfbfd;
}

/* 人工发货工作台 */
.wb-card { padding: 20px 22px; }
.wb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.wb-title { font-size: 15.5px; font-weight: 650; }
.wb-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.wb-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.wb-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px 18px; flex: 1; }
.wb-row { display: flex; gap: 8px; font-size: 13px; }
.wb-row span { color: var(--muted); min-width: 62px; }
.wb-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.wb-session { width: 420px; max-height: 160px; margin: 0; }
.wb-form { background: var(--surface-2); border-radius: var(--radius-md); padding: 14px; }
.wb-form .form-grid { gap: 0 10px; }
@media (max-width: 900px) {
  .wb-body { flex-direction: column; }
  .wb-actions { align-items: stretch; }
  .wb-session { width: 100%; }
}

/* 商品列表：行内改价 */
.price-form { display: flex; align-items: center; gap: 6px; justify-content: flex-end; margin-bottom: 4px; }
.price-input { width: 84px; padding: 5px 8px; font-size: 12.5px; text-align: right; }
.sync-label { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.sync-label input { width: 12px; height: 12px; }

/* 开通回执 */
.receipt-wrap { width: min(680px, 94vw); margin: 24px auto 60px; }
.receipt { padding: 34px 38px; }
.receipt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.receipt-head h1 { font-size: 26px; margin: 2px 0 4px; }
.receipt-seal {
  border: 2px solid var(--ok); color: var(--ok); border-radius: 10px; padding: 8px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; transform: rotate(-6deg);
}
.receipt-body { padding: 8px 0; }
.receipt-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.receipt-row span { color: var(--muted); flex: none; }
.receipt-row b { text-align: right; word-break: break-all; }
.receipt-note { margin-top: 16px; padding: 12px 14px; background: var(--surface-2); border-radius: 10px; font-size: 12px; color: var(--muted-2); line-height: 1.8; }
.receipt-foot { display: flex; justify-content: space-between; margin-top: 14px; }
.receipt-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
@media print {
  .site-header, .footer-card, .support, .receipt-actions, .notice-bar { display: none !important; }
  body { background: #fff; }
  .receipt { box-shadow: none; border: 1px solid #ddd; }
  .receipt-wrap { margin: 0; }
}

/* 资源列表：勾选框 */
.table input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--accent); }
tr:has(> td > input.sel:checked) { background: #f6f7f9; }

/* 兑换页：账号识别结果移到「手动填写」同一行右侧，红色加粗 */
.alt-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 2px 0 16px; }
.alt-auth-row .alt-auth { margin: 0; }
.detect-inline { margin: 0; padding: 8px 14px; background: transparent; }
.detect-inline.ok { background: transparent; }
.detect-inline.ok #detectText { color: #d92d20; font-weight: 700; font-size: 14px; }
.detect-inline .dot.ok { background: #d92d20; box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.14); }
@media (max-width: 620px) { .alt-auth-row { align-items: flex-start; flex-direction: column; } }

/* 查询进度：状态配色 */
.kv-row b.v-ok { color: #17794a; font-weight: 700; }
.kv-row b.v-err { color: #d92d20; font-weight: 700; }
.kv-row b.v-warn { color: #b26a0c; font-weight: 700; }

/* USDT 官方绿（Tether #26A17B） */
.pay-chip i.usdt { background: #26A17B; }
.pm-icon.usdt { background: #26A17B; color: #fff; font-size: 17px; }
.pm-icon.usdt::after { content: ''; }

/* 下单页：联系方式下的红色提醒 */
.pd-hint-red { margin-top: 7px; font-size: 12.5px; color: #d92d20; font-weight: 600; }

/* ── USDT 链上收款页 ───────────────────────────────── */
.pm-fee { font-style: normal; font-size: 11.5px; color: #d92d20; font-weight: 700; margin-left: 6px; }

.rp-card { border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
.rp-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 22px 16px; color: #fff;
  background: linear-gradient(135deg, #1f9d74, #15803d);
}
.rp-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.rp-sub { font-size: 12.5px; opacity: 0.9; margin-top: 3px; }
.rp-chip {
  flex: none; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
}
.rp-meta { padding: 14px 22px 16px; background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-top: 0; }
.rp-meta-row { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); padding: 3px 0; }
.rp-meta-row b { color: var(--ink); font-weight: 700; }
.rp-meta-row span:nth-of-type(2) { margin-left: 18px; }

.rp-alert { border: 1.5px solid #f3c0bb; border-radius: 14px; padding: 16px 18px; background: #fff8f7; margin-bottom: 16px; }
.rp-alert-t { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; color: #b42318; justify-content: center; }
.rp-bang {
  width: 20px; height: 20px; border-radius: 50%; background: #d92d20; color: #fff;
  display: inline-grid; place-items: center; font-size: 13px; font-weight: 700;
}
.rp-alert-t mark { background: #d92d20; color: #fff; padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.rp-alert-row { text-align: center; font-size: 13px; color: #8a5a55; margin-top: 8px; }
.rp-deadline { text-align: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #f3c0bb; font-size: 14px; color: #5b4038; }
.rp-deadline b { color: #d92d20; font-size: 17px; }
.rp-deadline-sub { text-align: center; font-size: 12px; color: #9a7a74; margin-top: 4px; }

.rp-steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: rp; }
.rp-steps li {
  counter-increment: rp; position: relative; padding: 10px 12px 10px 40px;
  font-size: 13px; color: #4b5563; line-height: 1.6;
  background: #f7f8fa; border-radius: 10px; margin-bottom: 8px;
}
.rp-steps li::before {
  content: counter(rp); position: absolute; left: 12px; top: 11px;
  width: 18px; height: 18px; border-radius: 50%; background: #e3e6ec;
  color: #4b5563; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.rp-steps li b { color: #1f2937; }

.rp-copy-hint { text-align: center; font-size: 12.5px; color: #2f6fb3; margin-bottom: 12px; }

.rp-pay { border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; background: #fff; text-align: center; }
.rp-pay-label { font-size: 12.5px; color: var(--muted); }
.rp-amount {
  font-size: 34px; font-weight: 800; color: #d92d20; letter-spacing: -0.02em;
  margin: 6px 0 4px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.rp-amount span { font-size: 15px; font-weight: 700; color: #6b7280; }
.rp-net-name { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.rp-addr {
  font-family: var(--mono, ui-monospace, monospace); font-size: 12.5px; color: #374151;
  background: #f5f6f8; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; word-break: break-all; cursor: pointer;
}
.rp-qr-row { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 18px 0 12px; }
.rp-qr { width: 180px; height: 180px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.rp-qr canvas { display: block; width: 100%; height: 100%; }
.rp-timer { text-align: left; }
.rp-timer span { font-size: 21px; font-weight: 700; color: #1f2937; font-variant-numeric: tabular-nums; }
.rp-timer-l { font-size: 11.5px; color: var(--muted); margin-top: 4px; letter-spacing: 0.12em; }
.rp-status { font-size: 13px; color: #17794a; display: flex; align-items: center; justify-content: center; gap: 7px; }
.rp-status i { width: 7px; height: 7px; border-radius: 50%; background: #17794a; display: inline-block; }
.rp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
@media (max-width: 520px) {
  .rp-qr-row { flex-direction: column; gap: 12px; }
  .rp-amount { font-size: 28px; }
}

/* ── 付款提示（USDT 收款页左侧） ─────────────────── */
.pay-grid { display: grid; gap: 20px; align-items: start; }
@media (max-width: 860px) { .pay-grid { grid-template-columns: 1fr; } }

.pay-tip {
  border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 20px;
  position: sticky; top: 16px;
}
.pay-tip-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 700; color: #1f2937;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-2);
}
.pay-tip-ico {
  width: 22px; height: 22px; border-radius: 50%; background: #f04438; color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.pay-tip-p { font-size: 14.5px; line-height: 1.8; color: #3f4753; margin: 0 0 13px; }
.pay-tip-p b { color: #1f2937; }

.pay-tip-demo { border: 1px dashed #d6dae2; border-radius: 12px; padding: 12px 14px; background: #fafbfc; margin-bottom: 12px; }
.ptd-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; padding: 5px 0; color: #5b6472; }
.ptd-row b { color: #1f2937; font-variant-numeric: tabular-nums; }
.ptd-cut b { color: #d92d20; }
.ptd-arr b { color: #b9bfcc; font-size: 15px; }
.ptd-out { border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 8px; }
.ptd-out b { color: #b26a0c; font-size: 15px; font-weight: 800; }

.pay-tip-strong {
  margin: 0 0 14px; padding: 16px 14px 15px; border-radius: 12px;
  background: #fdeceb; border: 2px solid #f04438;
  color: #d92d20; font-size: 18px; font-weight: 900; line-height: 1.45; text-align: center;
  letter-spacing: 0.01em; box-shadow: 0 2px 10px rgba(240, 68, 56, 0.1);
}
.pay-tip-strong::before {
  content: '⚠'; display: block; font-size: 19px; line-height: 1; margin-bottom: 6px;
}
.pay-tip-strong span {
  display: block; font-size: 16.5px; font-weight: 800; color: #c4160b;
  margin-top: 9px; padding-top: 9px; border-top: 1px dashed #f0a9a2;
  letter-spacing: 0.01em;
}
.pay-tip-last { margin-bottom: 0; padding-top: 10px; border-top: 1px solid var(--line-2); }

/* ── 订单页：加宽 + 两栏收款布局 ─────────────────── */
.order-wide { max-width: 1080px; margin: 0 auto; }
.order-brief {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 14px 18px; margin: 0 0 16px;
  background: var(--surface-2); border-radius: 12px;
  font-size: 13px; color: var(--muted);
}
.order-brief span { white-space: nowrap; }
.order-brief b { color: var(--ink); font-weight: 700; margin-left: 4px; }

.pay-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }

/* ── 收银台下单提示弹窗 ───────────────────────────── */
.modal-mask {
  position: fixed; inset: 0; z-index: 120; background: rgba(17,19,21,0.42);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-box {
  width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(17,19,21,0.22);
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line-2);
}
.modal-head b { font-size: 16px; }
.modal-x { background: none; border: 0; font-size: 22px; line-height: 1; color: #9aa1ad; cursor: pointer; padding: 0 4px; }
.modal-x:hover { color: #1f2937; }
.modal-body { padding: 18px 22px 6px; }
.tip-item { margin-bottom: 16px; }
.tip-item > b { display: block; font-size: 14.5px; color: #1f2937; margin-bottom: 5px; }
.tip-item p { margin: 0; font-size: 13px; line-height: 1.75; color: #4b5563; }
.tip-item p b { color: #d92d20; }
.modal-foot { padding: 16px 22px 20px; border-top: 1px solid var(--line-2); }
.modal-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #1f2937; cursor: pointer; margin-bottom: 14px; }
.modal-check input { width: 16px; height: 16px; accent-color: #111315; }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; }
.modal-btns .btn { min-width: 96px; }
.modal-btns .btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 520px) {
  .modal-box { max-height: 92vh; }
  .modal-btns { flex-direction: column-reverse; }
  .modal-btns .btn { width: 100%; }
}

/* 左侧提示：金额不一致的警示句 */
.pay-tip-warn { color: #d92d20 !important; font-weight: 800; }

/* ── 帮助中心：教程列表与文章页 ─────────────────────── */
.help-group { margin-bottom: 22px; }
.help-group-title {
  font-size: 13px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.08em; margin: 0 0 10px 2px;
}
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.help-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.help-card:hover {
  border-color: #c9ced8; box-shadow: 0 6px 18px rgba(17,19,21,.06); transform: translateY(-1px);
}
.help-card b { font-size: 14.5px; color: var(--ink); line-height: 1.4; }
.help-card .tiny { line-height: 1.6; }
.help-card-meta { font-size: 11.5px; color: #9aa1ad; margin-top: 4px; }

.help-article { max-width: 860px; margin: 0 auto; }
.help-article-head { padding: 6px 0 18px; border-bottom: 1px solid var(--line-2); margin-bottom: 20px; }
.help-article-head h1 { font-size: 26px; line-height: 1.3; margin: 8px 0 6px; letter-spacing: -0.02em; }
.help-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600;
}
.article-body { font-size: 14.5px; line-height: 1.9; color: #374151; }
.article-body h2 { font-size: 19px; margin: 28px 0 10px; color: #111827; }
.article-body h3 { font-size: 15.5px; margin: 20px 0 8px; color: #111827; }
.article-body p { margin: 0 0 12px; }
.article-body ul { margin: 0 0 12px; padding-left: 20px; }
.article-body li { margin-bottom: 6px; }
.article-body b { color: #111827; }
.article-body a { color: #2f6fb3; text-decoration: underline; text-underline-offset: 2px; }
.article-body code { background: #f3f4f6; padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.tip-line {
  padding: 10px 14px; background: #f5f7fa; border-left: 3px solid #c9ced8;
  border-radius: 0 8px 8px 0; font-size: 13.5px; color: #4b5563; margin-bottom: 16px;
}
.help-warn {
  margin: 18px 0; padding: 14px 16px; border-radius: 12px;
  background: #fff5f4; border: 1px solid #f8cfca;
}
.help-warn > b { display: block; color: #d92d20; font-size: 14.5px; margin-bottom: 6px; }
.help-warn p { margin: 0 0 6px; font-size: 13.5px; color: #5b4038; }
.help-warn p:last-child { margin-bottom: 0; }
.help-strong {
  margin: 0 0 20px; padding: 16px 18px; border-radius: 12px;
  background: #fffaf0; border: 1px solid #f3e0b8;
}
.help-strong > b { display: block; color: #b26a0c; font-size: 15px; margin-bottom: 8px; }
.help-strong p { margin: 0 0 8px; font-size: 14px; color: #5c4a2e; }
.help-article-foot {
  display: flex; gap: 10px; margin-top: 28px; padding-top: 18px;
  border-top: 1px solid var(--line-2); flex-wrap: wrap;
}

/* 2FA 工具 */
.otp-box { text-align: center; padding: 22px; background: var(--surface-2); border-radius: 14px; margin-bottom: 14px; }
.otp-code { font-size: 42px; font-weight: 800; letter-spacing: 0.12em; color: #111827; font-variant-numeric: tabular-nums; }
.otp-meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.otp-bar { height: 4px; background: #e3e6ec; border-radius: 999px; overflow: hidden; margin-top: 12px; }
.otp-bar i { display: block; height: 100%; background: #17794a; width: 100%; transition: width .3s linear; }

@media (max-width: 620px) {
  .help-cards { grid-template-columns: 1fr; }
  .article-body { font-size: 14px; }
  .otp-code { font-size: 34px; }
}
