/* ============ Reset & 变量 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f7f9fd;
  --card: rgba(255, 255, 255, 0.78);
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #1c2430;
  --text-dim: #5a6472;
  --text-faint: #8b94a4;
  --primary: #ffb020;
  --primary-hover: #ffc233;
  --primary-deep: #b97700;
  --primary-soft: rgba(255, 176, 32, 0.16);
  --success: #0f9d6a;
  --danger: #e5484d;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(255, 176, 32, 0.12), transparent 60%),
    radial-gradient(900px 480px at 92% -6%, rgba(255, 190, 90, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: rgba(255, 176, 32, 0.35); }
[hidden] { display: none !important; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ============ 通用 ============ */
.glass {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: all 0.18s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #ffb020, #ffc940); color: #241a02;
  box-shadow: 0 6px 18px rgba(255, 176, 32, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 176, 32, 0.45); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: rgba(15, 23, 42, 0.05); border-color: var(--border); }
.btn-ghost:hover { background: rgba(15, 23, 42, 0.09); }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-left: none; border-right: none; border-top: none; border-radius: 0;
  background: rgba(255, 255, 255, 0.76);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: 6px; }
.brand-logo {
  width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0;
}
.brand-logo svg { width: 100%; height: 100%; display: block; }
.brand-text { font-size: 17px; font-weight: 800; line-height: 1.15; }
.brand-text small { display: block; font-size: 11px; color: var(--text-dim); font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: 1; justify-content: flex-end; }
.search-wrap { position: relative; flex: 0 1 320px; min-width: 180px; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: 0.55; pointer-events: none; }
.search-input {
  width: 100%; padding: 10px 14px 10px 38px; border-radius: 12px;
  background: rgba(15, 23, 42, 0.045); border: 1px solid var(--border); color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.search-input:focus { outline: none; border-color: rgba(255, 176, 32, 0.65); background: rgba(255, 255, 255, 0.85); }
.search-input::placeholder { color: var(--text-faint); }
.global-select {
  padding: 10px 34px 10px 14px; border-radius: 12px; cursor: pointer;
  background: rgba(15, 23, 42, 0.045) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b94a4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  border: 1px solid var(--border); color: var(--text); appearance: none; -webkit-appearance: none;
}
.global-select:focus { outline: none; border-color: rgba(255, 176, 32, 0.65); }
.wallet-wrap { position: relative; }
.btn-wallet { background: var(--primary-soft); border-color: rgba(255, 176, 32, 0.45); color: var(--primary-deep); }
.btn-wallet:hover { background: rgba(255, 176, 32, 0.22); }
.btn-wallet.connected { color: var(--success); border-color: rgba(15, 157, 106, 0.4); background: rgba(15, 157, 106, 0.1); }
.wallet-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 260px; z-index: 60;
  padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow);
}
.wallet-menu-item {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; font-size: 14px; transition: background 0.15s; text-align: left;
}
.wallet-menu-item:hover { background: rgba(15, 23, 42, 0.06); }
.wallet-menu-addr { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--text-dim); word-break: break-all; }
.wallet-menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 14px; transition: color 0.15s; }
.back-link:hover { color: var(--text); }

/* ============ 市场页 ============ */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 26px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; color: var(--text-dim);
  background: rgba(15, 23, 42, 0.045); border: 1px solid var(--border); transition: all 0.16s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--primary-soft); border-color: rgba(255, 176, 32, 0.6); color: #8a5a00; }
.count { font-size: 13px; color: var(--text-dim); }
.count b { color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  overflow: hidden; border-radius: var(--radius); cursor: pointer; display: flex; flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 176, 32, 0.55); box-shadow: var(--shadow); }
.thumb { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-emoji { font-size: 52px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2)); transition: transform 0.25s ease; }
.card:hover .thumb-emoji { transform: scale(1.12) rotate(-3deg); }
.thumb-cat {
  position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; background: rgba(12, 16, 26, 0.55); border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dfe6f2; backdrop-filter: blur(6px);
}
.g1 { background: linear-gradient(135deg, #1d4f91, #123a6b); }
.g2 { background: linear-gradient(135deg, #39447a, #232b52); }
.g3 { background: linear-gradient(135deg, #7a3b6b, #4a2350); }
.g4 { background: linear-gradient(135deg, #0e5f6d, #0a3a49); }
.g5 { background: linear-gradient(135deg, #6b4a1f, #4a3216); }
.g6 { background: linear-gradient(135deg, #2f5d3a, #1d3a28); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title {
  font-size: 15px; font-weight: 600; line-height: 1.4; min-height: 2.8em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 2px 9px; border-radius: 999px; font-size: 11px; color: var(--text-dim);
  background: rgba(15, 23, 42, 0.05); border: 1px solid var(--border);
}
.tag.multi-seller { color: var(--primary-deep); background: rgba(255, 176, 32, 0.12); border-color: rgba(255, 176, 32, 0.35); }
.card-meta { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price { font-size: 19px; font-weight: 800; color: var(--primary-deep); font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; font-weight: 600; color: var(--text-dim); margin-left: 2px; }
.usd { font-size: 11px; color: var(--text-faint); font-weight: 600; margin-left: 6px; }
.seller-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-dim); }
.seller-addr { font-family: ui-monospace, Consolas, monospace; }
.rep { color: #c99000; display: inline-flex; align-items: center; gap: 3px; }
.load-more-wrap { display: flex; justify-content: center; padding: 30px 0 8px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 70px 0; color: var(--text-faint); }
.fab {
  position: fixed; right: 26px; bottom: 28px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px;
  background: linear-gradient(135deg, #ffb020, #ffc940); color: #241a02; font-size: 15px; font-weight: 700;
  box-shadow: 0 10px 26px rgba(255, 176, 32, 0.45); transition: transform 0.18s, box-shadow 0.18s;
}
.fab:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 32px rgba(255, 176, 32, 0.55); }
.site-footer { margin-top: 64px; padding: 26px 20px 34px; text-align: center; }
.disclaimer { font-size: 12px; color: var(--text-faint); line-height: 1.8; }

/* ============ 弹窗 ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15, 23, 42, 0.38); backdrop-filter: blur(8px);
  animation: fadeIn 0.18s ease;
}
#walletModal { z-index: 95; }
.modal {
  position: relative; width: 100%; max-width: 680px; max-height: 88vh; overflow: auto;
  border-radius: 20px; padding: 24px; background: rgba(255, 255, 255, 0.97);
  animation: popIn 0.2s ease;
}
.modal-sm { max-width: 420px; }
.modal-close {
  position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: var(--text-dim); font-size: 16px; z-index: 2;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: rgba(15, 23, 42, 0.07); color: var(--text); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

/* 商品详情弹窗 */
.detail-thumb { height: 230px; border-radius: 14px; display: grid; place-items: center; font-size: 80px; margin-bottom: 18px; position: relative; overflow: hidden; }
.detail-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.carousel-track { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease; }
.carousel-track img { position: static; border-radius: 0; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: rgba(10, 13, 20, 0.55); color: #fff; font-size: 18px; display: grid; place-items: center; }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
.carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.carousel-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; }
.carousel-dots .dot.active { background: #fff; }
.detail-title { font-size: 20px; font-weight: 700; line-height: 1.4; padding-right: 26px; }
.detail-price { font-size: 24px; font-weight: 800; color: var(--primary-deep); margin: 8px 0 12px; }
.detail-price small { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.detail-desc { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); color: #3e4757; font-size: 14px; line-height: 1.75; }
.detail-desc:empty { display: none; }
.detail-desc ul, .detail-desc ol { padding-left: 22px; }
.rule-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.rule-item { background: rgba(15, 23, 42, 0.035); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.rule-item b { display: block; font-size: 11.5px; color: var(--text-faint); font-weight: 600; margin-bottom: 2px; }
.rule-item span { font-size: 13.5px; color: #2e3642; word-break: break-all; }
.same-type { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.same-type-head { font-size: 13px; font-weight: 700; color: var(--text-dim); margin-bottom: 10px; }
.same-type-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: rgba(15, 23, 42, 0.035);
  border: 1px solid var(--border); margin-bottom: 8px;
}
.same-type-row .st-addr { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; font-weight: 600; }
.same-type-row .st-price { color: var(--primary-deep); font-weight: 800; font-size: 14px; white-space: nowrap; }
.same-type-row .st-price small { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.same-type-row .st-view {
  flex-shrink: 0; padding: 6px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  background: var(--primary-soft); color: var(--primary-deep); transition: background 0.15s;
}
.same-type-row .st-view:hover { background: rgba(255, 176, 32, 0.24); }
.detail-actions { display: flex; gap: 12px; margin-top: 20px; }
.detail-note { margin-top: 14px; font-size: 12px; color: var(--text-faint); }

/* 钱包弹窗 */
.wallet-list { display: grid; gap: 10px; margin: 16px 0; }
.wallet-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 13px;
  background: rgba(15, 23, 42, 0.04); border: 1px solid var(--border);
  font-size: 14.5px; font-weight: 600; transition: all 0.15s;
}
.wallet-item:hover { border-color: rgba(255, 176, 32, 0.55); background: rgba(255, 176, 32, 0.12); }
.wallet-icon { font-size: 20px; }
.wallet-switch-tip { font-size: 12px; color: var(--text-faint); margin: 14px 0 8px; }
.wallet-switch-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.wallet-switch-item {
  padding: 9px 10px; border-radius: 10px; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px;
  background: rgba(15, 23, 42, 0.04); border: 1px solid var(--border); color: var(--text-dim); transition: all 0.15s;
}
.wallet-switch-item:hover { border-color: rgba(255, 176, 32, 0.5); color: var(--text); }

/* ============ Toast ============ */
#toastWrap { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.toast {
  padding: 12px 20px; border-radius: 12px; background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border); color: var(--text); font-size: 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px; animation: popIn 0.2s ease; max-width: 86vw;
}
.toast.success { border-color: rgba(15, 157, 106, 0.45); }
.toast.error { border-color: rgba(229, 72, 77, 0.5); }
.toast.info { border-color: rgba(255, 176, 32, 0.6); }

/* ============ 发布页 ============ */
.page-head { margin: 30px 0 8px; }
.page-head h1 { font-size: 22px; font-weight: 800; }
.page-head p { color: var(--text-dim); font-size: 13.5px; margin-top: 4px; }
.form-section { margin-top: 34px; }
.form-section-title {
  display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.form-section-title .idx {
  width: 22px; height: 22px; border-radius: 7px; background: var(--primary-soft); color: #a56b00;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: #39404d; font-weight: 600; }
.field label .req { color: var(--danger); margin-left: 3px; }
.input, textarea.input, select.input {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  background: rgba(15, 23, 42, 0.045); border: 1px solid var(--border); color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.input:focus { outline: none; border-color: rgba(255, 176, 32, 0.65); background: rgba(255, 255, 255, 0.85); }
.input::placeholder { color: var(--text-faint); }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.7; }
.input-hint { font-size: 12px; color: var(--text-faint); }
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card {
  flex: 1; min-width: 150px; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 12px; background: rgba(15, 23, 42, 0.045); border: 1px solid var(--border);
  cursor: pointer; font-size: 14px; transition: all 0.15s; position: relative;
}
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card:hover { border-color: var(--border-strong); }
.radio-card.checked, .radio-card:has(input:checked) { border-color: rgba(255, 176, 32, 0.6); background: rgba(255, 176, 32, 0.14); }
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.account-card {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(15, 23, 42, 0.045); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s; position: relative;
}
.account-card input { position: absolute; opacity: 0; pointer-events: none; }
.account-card:hover { border-color: var(--border-strong); }
.account-card.checked, .account-card:has(input:checked) { border-color: rgba(255, 176, 32, 0.6); background: rgba(255, 176, 32, 0.14); }
.acct-main { font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 600; }
.acct-sub { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; }

/* 富文本 */
.rte-toolbar {
  display: flex; gap: 6px; padding: 8px; border: 1px solid var(--border); border-bottom: none;
  border-radius: 12px 12px 0 0; background: rgba(15, 23, 42, 0.03);
}
.rte-btn { min-width: 32px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 13px; color: var(--text-dim); transition: all 0.15s; }
.rte-btn:hover { background: rgba(15, 23, 42, 0.08); color: var(--text); }
.rte {
  min-height: 150px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 0 0 12px 12px;
  background: rgba(15, 23, 42, 0.035); line-height: 1.75; outline: none; overflow: auto;
}
.rte:focus { border-color: rgba(255, 176, 32, 0.65); background: rgba(255, 255, 255, 0.85); }
.rte:empty::before { content: attr(data-placeholder); color: var(--text-faint); pointer-events: none; }
.rte ul, .rte ol { padding-left: 22px; }

/* 多媒体上传 */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 34px 20px; border: 1.5px dashed var(--border-strong); border-radius: 14px;
  background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.18s; text-align: center;
}
.dropzone:hover, .dropzone.drag { border-color: rgba(255, 176, 32, 0.7); background: rgba(255, 176, 32, 0.08); }
.dropzone-icon { font-size: 26px; }
.dropzone b { font-size: 14px; }
.dropzone span { font-size: 12.5px; color: var(--text-faint); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.media-tile { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: rgba(15, 23, 42, 0.04); }
.media-tile img, .media-tile video { width: 100%; height: 110px; object-fit: cover; display: block; }
.media-info { padding: 8px 10px; }
.media-cid { font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; color: var(--text-faint); word-break: break-all; line-height: 1.4; }
.media-del {
  position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(10, 13, 20, 0.75); color: #fff; display: grid; place-items: center;
  font-size: 12px; transition: background 0.15s;
}
.media-del:hover { background: rgba(229, 72, 77, 0.9); }
.info-box {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-top: 34px;
  background: rgba(255, 176, 32, 0.1); border: 1px solid rgba(255, 176, 32, 0.4);
  font-size: 13px; color: #7a5400; line-height: 1.7;
}
.form-actions { display: flex; gap: 14px; justify-content: flex-end; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }

/* ============ 用户中心 ============ */
.page-head-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.profile-card { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--radius); flex-wrap: wrap; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px;
  background: rgba(255, 176, 32, 0.16); border: 2px solid rgba(255, 176, 32, 0.5); flex-shrink: 0;
}
.profile-avatar.img { overflow: hidden; }
.profile-avatar.img img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; min-width: 220px; }
.profile-name { font-size: 18px; font-weight: 800; }
.profile-addr {
  font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--text-dim);
  margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.copy-btn {
  padding: 2px 10px; border-radius: 7px; font-size: 11.5px; font-family: var(--font);
  background: rgba(15, 23, 42, 0.05); border: 1px solid var(--border); color: var(--text-dim);
  transition: all 0.15s;
}
.copy-btn:hover { color: var(--text); background: rgba(15, 23, 42, 0.09); }
.profile-meta { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }
.my-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.my-item-emoji { font-size: 26px; flex-shrink: 0; }
.my-item-emoji img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; display: block; }
.my-item-main { flex: 1; min-width: 180px; }
.my-item-title { font-weight: 600; font-size: 14.5px; }
.my-item-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.my-item-price { font-weight: 800; color: var(--primary-deep); font-size: 15px; white-space: nowrap; }
.my-item-price small { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.qty-tag { font-size: 11px; color: var(--text-dim); background: rgba(15, 23, 42, 0.05); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; }
.my-item-actions { display: flex; gap: 8px; align-items: center; }
.btn.mini { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-danger { background: rgba(229, 72, 77, 0.1); border-color: rgba(229, 72, 77, 0.35); color: #c8373c; }
.btn-danger:hover { background: rgba(229, 72, 77, 0.18); }
.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 14px 0 18px; }
.emoji-opt {
  height: 44px; border-radius: 10px; font-size: 22px; display: grid; place-items: center;
  background: rgba(15, 23, 42, 0.045); border: 1px solid var(--border); transition: all 0.15s;
}
.emoji-opt:hover { border-color: var(--border-strong); }
.emoji-opt.active { border-color: rgba(255, 176, 32, 0.6); background: rgba(255, 176, 32, 0.14); }

/* ============ 传统账号登录 ============ */
.tab-row { display: flex; gap: 6px; margin-top: 14px; background: rgba(15, 23, 42, 0.05); padding: 5px; border-radius: 11px; }
.tab { flex: 1; padding: 8px 0; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); transition: all 0.15s; }
.tab.active { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.account-note { font-size: 11.5px; color: var(--text-faint); margin-top: 14px; text-align: center; }

/* ============ 钱包面板 ============ */
.wp-balance { text-align: center; padding: 24px 10px 18px; border-radius: 14px; background: rgba(255, 176, 32, 0.1); border: 1px solid rgba(255, 176, 32, 0.35); }
.wp-balance-label { font-size: 12.5px; color: #7a5400; font-weight: 600; }
.wp-balance-num { font-size: 34px; font-weight: 800; color: var(--primary-deep); margin-top: 4px; font-variant-numeric: tabular-nums; }
.wp-balance-usd { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.wpo-fiat { font-size: 11px; color: var(--text-faint); margin: 4px 0; }
.calc-row { display: flex; gap: 10px; }
.calc-row .input { flex: 1; }
.calc-row select { flex: 0 0 150px; }
.wp-note { font-size: 12.5px; color: var(--text-faint); margin-top: 12px; line-height: 1.7; }
.wp-actions { display: flex; gap: 10px; margin-top: 14px; }
.wp-actions .btn { flex: 1; }
.wp-account { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }
.wp-addr { font-family: ui-monospace, Consolas, monospace; flex: 1; word-break: break-all; }
.wp-view { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.wp-view h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.wp-view h5 { font-size: 13px; font-weight: 700; color: var(--text-dim); margin: 16px 0 8px; }
.wpo { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-top: 10px; background: rgba(15, 23, 42, 0.03); }
.wpo-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wpo-addr { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--text-dim); }
.wpo-amount { font-weight: 800; color: var(--primary-deep); font-size: 14px; white-space: nowrap; }
.wpo-pay { display: flex; align-items: center; gap: 10px; }
.qr-box { width: 76px; height: 76px; background: #fff; border-radius: 8px; padding: 4px; border: 1px solid var(--border); flex-shrink: 0; cursor: zoom-in; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; display: block; object-fit: contain; }
.qr-viewer-card { position: relative; background: #fff; padding: 18px; border-radius: 18px; max-width: 340px; box-shadow: var(--shadow); }
.qr-viewer-card img, .qr-viewer-card svg { width: 280px; height: 280px; display: block; }
.qr-viewer-tip { font-size: 12px; color: var(--text-faint); text-align: center; margin-top: 10px; }
.wpo-confirm .media-grid { grid-template-columns: 1fr; }
.wpo-pay-label { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.wpo-pay-account { font-size: 13px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; flex: 1; }
.wpo-confirm { margin-top: 10px; padding: 10px; border-radius: 10px; background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.35); font-size: 12.5px; color: #7a5400; }
.wpo-confirm p { line-height: 1.6; margin-bottom: 8px; }
.timeline { display: flex; gap: 6px; margin: 14px 0 4px; }
.timeline .step { flex: 1; text-align: center; font-size: 11px; color: var(--text-faint); line-height: 1.5; }
.timeline .step .dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); margin: 0 auto 4px; }
.timeline .step.done { color: var(--primary-deep); }
.timeline .step.done .dot { background: var(--primary); }
.order-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 18px; }
.osum { padding: 14px 10px; border-radius: 14px; text-align: center; cursor: pointer; transition: border-color 0.15s; }
.osum:hover { border-color: rgba(255, 176, 32, 0.5); }
.osum b { font-size: 22px; color: var(--primary-deep); display: block; line-height: 1.2; }
.osum span { font-size: 12px; color: var(--text-dim); }
.order-entry { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 14px; flex-wrap: wrap; }
.role-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; margin-right: 6px; font-weight: 600; }
.role-badge.buy { color: #0f9d6a; background: rgba(15, 157, 106, 0.1); border: 1px solid rgba(15, 157, 106, 0.3); }
.role-badge.sell { color: var(--primary-deep); background: rgba(255, 176, 32, 0.12); border: 1px solid rgba(255, 176, 32, 0.35); }
.tag.s-locked { color: #b97700; background: rgba(255, 176, 32, 0.12); border-color: rgba(255, 176, 32, 0.35); }
.tag.s-delivered { color: #0f7fae; background: rgba(37, 150, 220, 0.12); border-color: rgba(37, 150, 220, 0.35); }
.tag.s-refunding { color: #c8373c; background: rgba(229, 72, 77, 0.1); border-color: rgba(229, 72, 77, 0.35); }
.tag.s-disputed { color: #6b4fd8; background: rgba(108, 79, 216, 0.1); border-color: rgba(108, 79, 216, 0.35); }
.tag.s-refunded { color: #5a6472; background: rgba(15, 23, 42, 0.06); border-color: var(--border); }
.tag.s-completed { color: #0f9d6a; background: rgba(15, 157, 106, 0.1); border-color: rgba(15, 157, 106, 0.35); }
.tag.stock-tag { color: #0f9d6a; background: rgba(15, 157, 106, 0.1); border-color: rgba(15, 157, 106, 0.3); }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 10px; }
.ev-thumb { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); cursor: zoom-in; }
.ev-thumb img { width: 100%; height: 74px; object-fit: cover; display: block; }
.select-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--text-dim); cursor: pointer; }
.select-row input { accent-color: var(--primary); width: 15px; height: 15px; }
.combo-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.35); font-size: 13px; color: #7a5400; flex-wrap: wrap; }
.combo-hint { font-size: 12px; color: var(--text-faint); }
.share-row { display: flex; gap: 10px; margin-top: 14px; }
.share-row .input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.share-qr { display: flex; justify-content: center; margin-top: 16px; }
.share-qr .qr-box { background: #fff; }
.rate-stars { display: flex; gap: 4px; margin: 10px 0; }
.rate-star { font-size: 22px; color: var(--border-strong); transition: color 0.15s, transform 0.15s; }
.rate-star:hover { color: #ffb020; transform: scale(1.15); }
.rate-star.active { color: #ffb020; }
.showcase { overflow: hidden; margin-top: 20px; border-radius: 16px; padding: 12px 0; }
.showcase-head { font-size: 13px; font-weight: 700; color: var(--primary-deep); padding: 0 16px 8px; }
.showcase-track { display: flex; gap: 12px; width: max-content; }
.showcase-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: rgba(15, 23, 42, 0.045); border: 1px solid var(--border); cursor: pointer;
  flex-shrink: 0; transition: border-color 0.15s; min-width: 232px;
}
.showcase-item:hover { border-color: rgba(255, 176, 32, 0.5); }
.showcase-item .thumb-emoji { font-size: 26px; }
.showcase-info { min-width: 0; }
.showcase-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.showcase-price { font-size: 12.5px; color: var(--primary-deep); font-weight: 700; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .header-actions { flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .search-wrap { flex: 1 1 100%; min-width: 0; }
  .form-grid, .form-grid.cols3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .rule-list { grid-template-columns: 1fr; }
  .modal { padding: 18px; }
  .fab { right: 16px; bottom: 18px; padding: 12px 18px; }
}
/* 店铺名片 / 套餐单选 / 分佣面板 / 下架状态 */
.shop-banner { display:flex; align-items:center; gap:14px; padding:18px; margin-bottom:16px; flex-wrap:wrap; }
.shop-banner .profile-avatar { width:56px; height:56px; font-size:30px; }
.shop-banner .profile-info { flex:1; min-width:220px; }
.pkg-radio { display:block; padding:8px 10px; margin:4px 0; border:1px solid var(--border, rgba(255,255,255,.12)); border-radius:10px; cursor:pointer; }
.pkg-radio.checked { border-color:var(--primary, #f0a43a); background:rgba(240,164,58,.08); }
.pkg-radio small { display:block; color:var(--text-dim); margin-top:2px; }
.commission-panel .wpo { margin-top:8px; }
.delist-badge { margin-left:6px; }
