/* 前台商城 */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --danger: #ef4444;
  --success: #10b981;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --radius: 12px;
}
* { box-sizing: border-box; }
body.shop-body { background: var(--bg); color: var(--text); font-family: "Segoe UI", system-ui, sans-serif; min-height: 100vh; }
.shop-navbar { background: var(--card); box-shadow: 0 1px 0 rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; padding: .65rem 0; }
.shop-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.shop-navbar .brand { font-weight: 700; font-size: 1.15rem; color: var(--primary); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.shop-nav-right { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; min-width: 0; flex: 1; }
.shop-nav-links,
.shop-nav-user-links,
.shop-nav-profile,
.shop-nav-guest { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem; }
.shop-nav-user { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .5rem; justify-content: flex-end; min-width: 0; }
.shop-nav-links { padding-right: .5rem; border-right: 1px solid #e2e8f0; }
.shop-nav-user-links { padding-right: .35rem; border-right: 1px solid #e2e8f0; }
.shop-navbar .nav-link-custom { color: var(--muted); text-decoration: none; padding: .35rem .55rem; border-radius: 8px; font-size: .84rem; display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.shop-navbar .nav-link-custom:hover { background: #f1f5f9; color: var(--primary); }
.shop-navbar .nav-balance-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .7rem; border-radius: 999px; background: linear-gradient(135deg,#ecfdf5,#d1fae5); color: #047857; font-size: .84rem; font-weight: 700; border: 1px solid #a7f3d0; text-decoration: none; white-space: nowrap; }
.shop-navbar .nav-credit-pill { background: linear-gradient(135deg,#eff6ff,#dbeafe); color: #1d4ed8; border-color: #93c5fd; cursor: default; }
.shop-navbar .nav-balance-pill:hover { color: #065f46; box-shadow: 0 2px 8px rgba(16,185,129,.18); }
.shop-navbar .nav-credit-pill:hover { color: #1d4ed8; box-shadow: 0 2px 8px rgba(59,130,246,.15); }
.shop-navbar .nav-recharge-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .65rem; border-radius: 999px; background: linear-gradient(135deg,#fff7ed,#ffedd5); color: #c2410c; font-size: .82rem; font-weight: 700; border: 1px solid #fdba74; text-decoration: none; white-space: nowrap; }
.shop-navbar .nav-recharge-pill:hover { color: #9a3412; box-shadow: 0 2px 8px rgba(249,115,22,.16); }
.shop-domain-switch { flex-shrink: 0; }
.shop-domain-switch .domain-switch-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; padding: .28rem .6rem; border-radius: 999px;
  border-color: #cbd5e1; color: var(--muted); max-width: 180px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-domain-switch .domain-switch-btn:hover { color: var(--primary); border-color: var(--primary); background: #eff6ff; }
.shop-domain-switch .dropdown-item.active { background: #eff6ff; color: var(--primary); font-weight: 600; }
.shop-nav-profile .nav-user-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .32rem .55rem; border-radius: 8px; background: #eef2ff; color: var(--primary); font-size: .84rem; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-nav-profile .nav-logout { color: #64748b; }
.shop-nav-guest .btn { border-radius: 999px; font-weight: 600; }
.balance-log-page { max-width: 980px; }
.balance-summary-amount { color: var(--danger); font-size: 1.5rem; font-weight: 700; }
.dingtalk-page { max-width: 820px; }
.dingtalk-guide-content,
.dingtalk-guide-preview { line-height: 1.75; color: var(--text); font-size: .95rem; }
.dingtalk-guide-content img,
.dingtalk-guide-preview img { max-width: 100%; height: auto; border-radius: 8px; }
.dingtalk-guide-content ol,
.dingtalk-guide-content ul { padding-left: 1.25rem; }
.shop-pagination { margin-top: .75rem; text-align: center; }
.shop-page-info { margin-bottom: .5rem; }
.shop-pagination .pagination .page-link { color: var(--primary); border-color: #e2e8f0; min-width: 2.25rem; text-align: center; }
.shop-pagination .pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.shop-pagination .pagination .page-item.disabled .page-link { color: #94a3b8; background: #f8fafc; }
@media (max-width: 992px) {
  .shop-nav-inner { flex-wrap: wrap; }
  .shop-nav-right { width: 100%; justify-content: flex-start; }
  .shop-nav-links { border-right: none; padding-right: 0; }
}
@media (max-width: 768px) {
  .shop-nav-user { width: 100%; }
  .shop-nav-user-links { border-right: none; padding-right: 0; width: 100%; }
  .shop-nav-profile { width: 100%; justify-content: space-between; }
  .shop-navbar .nav-link-custom span { display: none; }
  .shop-navbar .nav-balance-pill span { display: inline; }
  .shop-nav-profile .nav-user-chip { max-width: 120px; }
}
.goods-card { border: none; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.goods-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(79,70,229,.15); }
.goods-card .price { color: var(--danger); font-size: 1.35rem; font-weight: 700; }
.goods-card .badge-stock { background: linear-gradient(135deg,#10b981,#059669); }
.notice-bar {
  background: linear-gradient(90deg, #fff7ed 0%, #fef3c7 50%, #fff7ed 100%);
  border-radius: var(--radius);
  border: 1px solid #fcd34d;
  box-shadow: 0 4px 16px rgba(245, 158, 11, .15);
  padding: .85rem 1.15rem;
  overflow: hidden;
}
.notice-bar-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .35rem 0;
}
.notice-bar-item + .notice-bar-item {
  margin-top: .35rem;
  padding-top: .55rem;
  border-top: 1px dashed rgba(245, 158, 11, .35);
}
.notice-bar-icon {
  flex-shrink: 0;
  font-size: 1.75rem;
  line-height: 1;
  color: #ea580c;
  animation: notice-icon-blink 1.2s ease-in-out infinite;
}
.notice-bar-link {
  flex: 1;
  min-width: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.45;
  color: #b45309;
  text-decoration: none;
  letter-spacing: .02em;
  animation: notice-text-blink 1.2s ease-in-out infinite;
}
.notice-bar-link:hover {
  color: #c2410c;
  text-decoration: underline;
}
@keyframes notice-icon-blink {
  0%, 100% {
    transform: scale(1);
    color: #ea580c;
    filter: drop-shadow(0 0 2px rgba(234, 88, 12, .4));
  }
  50% {
    transform: scale(1.18);
    color: #dc2626;
    filter: drop-shadow(0 0 10px rgba(220, 38, 38, .75));
  }
}
@keyframes notice-text-blink {
  0%, 100% {
    color: #b45309;
    opacity: 1;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    color: #dc2626;
    opacity: 1;
    text-shadow: 0 0 8px rgba(220, 38, 38, .35);
  }
}
@media (max-width: 576px) {
  .notice-bar { padding: .75rem .9rem; }
  .notice-bar-icon { font-size: 1.45rem; }
  .notice-bar-link { font-size: 1.05rem; }
}
.page-hero { background: linear-gradient(135deg,#667eea 0%,#764ba2 100%); color:#fff; border-radius: var(--radius); padding: 2.25rem 2rem; margin-bottom: 1.5rem; overflow: hidden; }
.page-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.page-hero-main { flex: 0 1 auto; min-width: 0; }
.page-hero-main.home-hero-rich h1,
.page-hero-main.home-hero-rich h2,
.page-hero-main.home-hero-rich h3 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .25rem;
  color: #fff;
}
.page-hero-main.home-hero-rich p {
  margin: 0;
  opacity: .75;
  color: #fff;
  font-size: 1rem;
}
.page-hero-main.home-hero-rich a { color: #fff; text-decoration: underline; }
.page-hero-main.home-hero-rich img { max-width: 100%; height: auto; border-radius: 8px; }
.page-hero-stats {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: .65rem;
  min-width: 0;
  flex-wrap: wrap;
}
.hero-stat-card {
  border-radius: 12px;
  color: #fff;
  padding: .75rem 1rem;
  min-width: 118px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .22);
}
.hero-stat-label {
  font-size: .82rem;
  line-height: 1.25;
  opacity: .96;
  white-space: nowrap;
  font-weight: 600;
}
.hero-stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: .25rem;
  letter-spacing: -.02em;
}
.hero-stat-card.purple { background: linear-gradient(135deg,#667eea,#764ba2); }
.hero-stat-card.green { background: linear-gradient(135deg,#11998e,#38ef7d); }
.hero-stat-card.orange { background: linear-gradient(135deg,#f093fb,#f5576c); }
.hero-stat-card.blue { background: linear-gradient(135deg,#4facfe,#00f2fe); }
.page-hero-hall {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
  padding: .85rem 1.35rem;
  margin: -1rem -1rem -1rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(0,0,0,.14);
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.page-hero-hall:hover { background: rgba(0,0,0,.22); text-decoration: none; transform: translateX(2px); }
.page-hero-hall-text {
  color: #ff6b4a;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  letter-spacing: .08em;
}
.page-hero-hall-go {
  color: #ff9478;
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-end;
  margin-bottom: .15rem;
}
.page-hero-recharge {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
  padding: .75rem 1.1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.page-hero-recharge:hover { background: rgba(255,255,255,.22); text-decoration: none; transform: translateY(-1px); }
.page-hero-recharge-text {
  color: #fde68a;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  letter-spacing: .06em;
}
.page-hero-recharge-go {
  color: #fef3c7;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-end;
  margin-bottom: .12rem;
}
@media (max-width: 1100px) {
  .page-hero-inner { flex-wrap: wrap; }
  .page-hero-stats { order: 3; width: 100%; justify-content: flex-start; margin-top: .65rem; gap: .55rem; }
  .page-hero-hall { margin: -.5rem -.5rem -.5rem 0; }
  .hero-stat-card { min-width: calc(25% - .45rem); flex: 1 1 calc(25% - .45rem); }
  .hero-stat-value { font-size: 1.55rem; }
}
@media (max-width: 576px) {
  .page-hero { padding: 1.25rem 1rem; }
  .page-hero-main h2 { font-size: 1.45rem; }
  .page-hero-hall { padding: .6rem .85rem; margin: -.25rem -.5rem -.25rem 0; }
  .page-hero-hall-text { font-size: 1.35rem; }
  .page-hero-hall-go { font-size: .8rem; }
  .hero-stat-card { min-width: calc(50% - .35rem); flex: 1 1 calc(50% - .35rem); padding: .65rem .75rem; }
  .hero-stat-label { font-size: .75rem; }
  .hero-stat-value { font-size: 1.45rem; }
}
.btn-primary-custom { background: var(--primary); border: none; }
.btn-primary-custom:hover { background: var(--primary-dark); }
.chat-float { position: fixed; right: 24px; bottom: 24px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat-float .btn-chat { position: relative; display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px; width: auto; height: auto; min-width: 0; max-width: none; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--primary); color:#fff; border:none; box-shadow: var(--shadow); font-size: .95rem; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: visible; }
.chat-float .btn-chat .bi { font-size: 1.1rem; flex-shrink: 0; line-height: 1; }
.chat-float .btn-chat-label { line-height: 1.2; white-space: nowrap; flex-shrink: 0; }
.cs-qr-stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; width: min(220px, calc(100vw - 36px)); max-width: 100%; }
.cs-qr-card { width: 100%; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 28px rgba(15,23,42,.14); }
.cs-qr-head { color: #fff; text-align: center; font-weight: 600; font-size: .9rem; padding: 8px 10px; }
.cs-qr-body { padding: 12px; text-align: center; }
.cs-qr-img { width: 100%; max-width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; margin: 0 auto; border-radius: 4px; }
.cs-qr-placeholder { width: 100%; max-width: 100%; aspect-ratio: 1 / 1; margin: 0 auto; border: 1px dashed #cbd5e1; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #94a3b8; font-size: .78rem; background: #f8fafc; }
.cs-qr-placeholder .bi { font-size: 2rem; }
.cs-qr-account { margin-top: 10px; font-size: .8rem; color: #475569; line-height: 1.4; word-break: break-all; }
.chat-unread-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; display: none; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.chat-panel { display:none; position:fixed; right:24px; bottom:90px; width:340px; max-height:420px; background:#fff; border-radius:var(--radius); box-shadow:0 8px 40px rgba(0,0,0,.15); z-index:999; flex-direction:column; }
.chat-panel.show { display:flex; }
.chat-panel .chat-head { background:var(--primary); color:#fff; padding:12px 16px; border-radius:var(--radius) var(--radius) 0 0; font-weight:600; }
.chat-head-bar { display:flex; align-items:center; justify-content:space-between; gap:8px; cursor:move; user-select:none; }
.chat-head-bar .chat-panel-close { cursor:pointer; }
.chat-panel.is-dragged { right:auto !important; bottom:auto !important; }
.chat-head-title-wrap { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.95rem; }
.chat-panel-close { border:none; background:transparent; color:#fff; font-size:1.5rem; line-height:1; padding:0 4px; cursor:pointer; opacity:.9; flex-shrink:0; }
.chat-panel-close:hover { opacity:1; }
.chat-panel .chat-body { flex:1; overflow-y:auto; padding:12px; max-height:280px; }
.chat-panel .chat-foot { padding:12px; border-top:1px solid #eee; }
.msg-bubble { max-width:85%; padding:8px 12px; border-radius:12px; margin-bottom:8px; font-size:.875rem; }
.msg-bubble.user { background:#eef2ff; margin-left:auto; }
.msg-bubble.admin { background:#f1f5f9; }
.chat-float .btn-chat.chat-has-new { animation: chat-pulse 1s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(79,70,229,.45); }
@keyframes chat-pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(79,70,229,.45);} 50%{ box-shadow: 0 0 0 10px rgba(79,70,229,0);} }
.chat-tip-banner { position: fixed; right: 24px; bottom: 100px; z-index: 997; max-width: 320px; margin: 0; font-size: .875rem; }
.complaint-tip-banner { position: fixed; right: 24px; bottom: 520px; z-index: 997; max-width: 340px; margin: 0; font-size: .875rem; cursor: pointer; }
.complaint-order-panel { right:24px; left:auto; bottom:520px; z-index:1000; border:2px solid #f59e0b; width:340px; }
@media (max-width:768px){
.complaint-order-panel { right:12px; left:auto; width:auto; max-width:calc(100vw - 80px); bottom:480px; }
.chat-panel:not(.complaint-order-panel) { right:12px; left:12px; width:auto; bottom:80px; }
.chat-float { right:12px; bottom:12px; }
.cs-qr-stack { width: min(200px, calc(100vw - 24px)); }
.complaint-tip-banner { right:12px; bottom:460px; max-width:calc(100vw - 24px); }
}
.complaint-order-panel .complaint-head { background: linear-gradient(135deg,#f59e0b,#d97706); }
.complaint-unread-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; margin-left: 8px; vertical-align: middle; box-shadow: 0 0 0 2px #fff; }
.footer-shop { text-align:center; padding:2rem; color:var(--muted); font-size:.875rem; }
.goods-desc { line-height: 1.75; color: var(--text); font-size: .95rem; }
.goods-intro-section {
  margin-top: .5rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  min-height: 120px;
}
.goods-intro-head {
  padding: .75rem 1rem;
  background: linear-gradient(90deg, #f8fafc, #fff);
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
}
.goods-intro-head i { color: var(--primary); margin-right: .35rem; }
.goods-intro-body { padding: 1rem 1.15rem; color: var(--muted); }
.goods-subsidy-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .35rem;
  font-size: .95rem;
  line-height: 1.4;
}
.goods-subsidy-badge .goods-subsidy-amount {
  font-size: 1.1rem;
}
/* 列表模式 */
.goods-list-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.goods-list-table thead { background: #f8fafc; font-size: .85rem; color: var(--muted); }
.goods-list-table tbody tr { transition: background .15s; }
.goods-list-table tbody tr:hover { background: #f8fafc; }
.goods-list-name { color: var(--text); font-weight: 600; }
.goods-list-name:hover { color: var(--primary); }
.goods-filter { border: 1px solid #e2e8f0; }
/* 交易卡片网格（首页） */
.goods-home { max-width: 1600px; }
.goods-trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
@media (min-width: 1400px) {
  .goods-trade-grid { grid-template-columns: repeat(7, 1fr); }
}
.trade-filter {
  background: #0f1419;
  border: 1px solid rgba(0, 255, 200, 0.25);
  border-radius: 10px;
  padding: 1rem;
}
.trade-filter .form-select,
.trade-filter .form-control {
  background: #1a2229;
  border-color: rgba(0, 255, 200, 0.2);
  color: #e8f4f0;
}
.trade-filter .form-select:focus,
.trade-filter .form-control:focus {
  background: #1a2229;
  border-color: rgba(0, 255, 200, 0.5);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 255, 200, 0.15);
}
.btn-trade-search {
  background: transparent;
  border: 1px solid rgba(0, 255, 200, 0.55);
  color: #5eead4;
  font-weight: 600;
  border-radius: 8px;
  padding: .5rem 1rem;
  transition: background .15s, color .15s;
}
.btn-trade-search:hover {
  background: rgba(0, 255, 200, 0.12);
  color: #99f6e4;
}
.goods-trade-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: #0d1117;
  border: 1px solid rgba(0, 255, 200, 0.35);
  border-radius: 8px;
  padding: 12px 12px 10px;
  min-height: 100%;
  color: #dce8e4;
  font-size: 12px;
  line-height: 1.45;
  transition: border-color .2s, box-shadow .2s;
}
.goods-trade-card:hover {
  border-color: rgba(0, 255, 200, 0.65);
  box-shadow: 0 0 18px rgba(0, 255, 200, 0.12);
}
.trade-badge-type {
  flex: 0 0 auto;
  margin-left: auto;
}
.goods-trade-card .trade-card-sales {
  color: #ef4444 !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  margin: -2px 0 6px;
  max-width: 100%;
  word-break: break-word;
}
.goods-trade-card .trade-card-sales .trade-card-sales-num {
  color: #ef4444 !important;
  font-weight: 800;
}
.trade-badge-sell {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.45);
}
.trade-badge-buy {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.45);
}
.trade-card-head {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
  min-height: 22px;
}
.trade-card-badges-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  max-width: 38%;
  min-width: 0;
}
.trade-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  padding-right: 52px;
}
.trade-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.trade-badge-cat {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.trade-badge-recommend {
  flex: 1 1 0;
  min-width: 0;
  align-self: center;
  background: transparent;
  color: #ef4444;
  border: none;
  font-weight: 700;
  font-size: 11px;
  padding: 0 2px;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.trade-badge-recommend p {
  margin: 0;
  display: inline;
}
.trade-badge-recommend * {
  font-size: inherit !important;
  line-height: inherit;
  max-width: 100%;
}
.trade-card-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.35;
  color: #fff;
}
.trade-card-title a {
  color: inherit;
  text-decoration: none;
}
.trade-card-title a:hover { color: #5eead4; }
.trade-card-meta {
  margin: 0 0 10px;
  flex: 1;
}
.trade-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.trade-meta-row dt {
  flex-shrink: 0;
  color: #94a3b8;
  font-weight: 500;
  margin: 0;
}
.trade-meta-row dd {
  margin: 0;
  text-align: right;
  word-break: break-all;
}
.trade-meta-row .trade-price {
  color: #facc15;
  font-weight: 700;
}
.trade-after-sale {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-bottom: 8px;
}
.trade-merchant-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  word-break: break-word;
  color: #cbd5e1;
}
.trade-after-head {
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 6px;
}
.trade-after-row {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  word-break: break-word;
}
.trade-after-label {
  flex-shrink: 0;
  color: #64748b;
}
.trade-after-scope span:last-child {
  flex: 1;
  white-space: pre-wrap;
}
.trade-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  margin-top: auto;
  background: #151b22;
  border: 1px solid rgba(0, 255, 200, 0.35);
  border-radius: 6px;
  color: #5eead4;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background .15s;
}
.trade-card-btn:hover {
  background: rgba(0, 255, 200, 0.1);
  color: #99f6e4;
}
.trade-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: #64748b;
}
.trade-empty i { font-size: 3rem; display: block; margin-bottom: .75rem; opacity: .5; }
.trade-pagination .pagination .page-link {
  background: #1a2229;
  border-color: rgba(0, 255, 200, 0.25);
  color: #94a3b8;
}
.trade-pagination .pagination .page-item.active .page-link {
  background: rgba(0, 255, 200, 0.2);
  border-color: rgba(0, 255, 200, 0.5);
  color: #5eead4;
}
.goods-extra-info {
  padding: .75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
/* 登录/注册页 */
.auth-page {
  width: 100%;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 45%, #fdf4ff 100%);
}
.auth-shell {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(79, 70, 229, 0.14);
  overflow: hidden;
  min-height: 560px;
}
@media (min-width: 768px) {
  .auth-shell { grid-template-columns: 1.05fr 1fr; }
}
.auth-visual {
  display: none;
  background: linear-gradient(145deg, #667eea 0%, #764ba2 55%, #5b21b6 100%);
  color: #fff;
  padding: 3rem 2.5rem;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .auth-visual { display: flex; }
}
.auth-visual h2 { font-size: 2rem; font-weight: 800; line-height: 1.25; margin-bottom: 1rem; }
.auth-visual p { opacity: .92; line-height: 1.7; margin-bottom: 1.5rem; }
.auth-visual ul { list-style: none; padding: 0; margin: 0; }
.auth-visual li { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; font-size: .95rem; }
.auth-visual li i { font-size: 1.1rem; opacity: .95; }
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.auth-brand { text-align: center; margin-bottom: 1.75rem; }
.auth-brand .auth-logo {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin-bottom: 1rem;
  box-shadow: 0 12px 30px rgba(102, 126, 234, .35);
}
.auth-brand h1 { font-size: 1.6rem; font-weight: 800; margin: 0 0 .35rem; color: var(--text); }
.auth-brand p { color: var(--muted); font-size: .92rem; margin: 0; }
.auth-form { width: 100%; }
.auth-field {
  display: flex; align-items: center;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: .8rem 1rem; margin-bottom: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.auth-field:focus-within {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
  background: #fff;
}
.auth-field i { color: var(--muted); margin-right: .75rem; font-size: 1.05rem; flex-shrink: 0; }
.auth-field input {
  border: none; background: transparent; flex: 1; outline: none;
  font-size: .95rem; min-width: 0;
}
.auth-field .btn { flex-shrink: 0; white-space: nowrap; }
.auth-captcha-img {
  height: 38px; width: 120px; border-radius: 8px; cursor: pointer;
  flex-shrink: 0; border: 1px solid #e2e8f0; background: #fff;
}
.auth-captcha-row input { min-width: 0; }
.btn-auth {
  display: block; width: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none; color: #fff !important;
  padding: .85rem 1rem; border-radius: 14px;
  font-weight: 700; font-size: 1rem;
  margin-top: .25rem;
  box-shadow: 0 10px 24px rgba(102, 126, 234, .28);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(102, 126, 234, .34); opacity: .96; color: #fff; }
.auth-footer { text-align: center; margin-top: 1.35rem; color: var(--muted); font-size: .92rem; }
.auth-footer a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.goods-desc img { max-width: 100%; height: auto; border-radius: 8px; margin: .5rem 0; }
.goods-desc p:last-child { margin-bottom: 0; }
.goods-desc ul, .goods-desc ol { padding-left: 1.25rem; }

/* 首页广告 */
.home-ad-carousel { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.home-ad-carousel .carousel-inner { position: relative; width: 100%; overflow: hidden; }
.home-ad-carousel .carousel-item { display: none; width: 100%; }
.home-ad-carousel .carousel-item.active,
.home-ad-carousel .carousel-item-next,
.home-ad-carousel .carousel-item-prev { display: block; }
.home-ad-carousel .home-carousel-img { width: 100%; height: auto; display: block; }
.home-ad-carousel .carousel-item img { width: 100%; height: auto; display: block; }
.home-ad-carousel .home-carousel-text,
.home-carousel-stack .home-carousel-text {
  min-height: auto; padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; font-size: 1rem; font-weight: 500; text-align: left;
  border-radius: var(--radius); overflow: hidden;
}
.home-ad-carousel .home-carousel-text.is-pinned,
.home-carousel-stack .home-carousel-text.is-pinned { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.home-ad-carousel .home-carousel-link,
.home-carousel-stack .home-carousel-link { display: block; text-decoration: none; color: inherit; }
.home-carousel-stack { display: flex; flex-direction: column; gap: .75rem; }
.home-carousel-stack-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.home-top-ads { display: flex; flex-direction: column; gap: .75rem; }
.home-top-ad {
  display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #fff; text-decoration: none; color: var(--text); border: 1px solid #e2e8f0;
}
.home-top-ad.is-pinned { border-color: #f59e0b; box-shadow: 0 4px 20px rgba(245, 158, 11, .25); }
.home-top-ad img { width: 100%; height: auto; display: block; vertical-align: top; }
.home-top-ad-text { display: block; padding: .85rem 1rem; font-weight: 600; background: linear-gradient(90deg, #eef2ff, #f0fdf4); }
.home-top-ad.is-pinned .home-top-ad-text { background: linear-gradient(90deg, #fff7ed, #fef3c7); }
.home-ad-rich { line-height: 1.6; word-break: break-word; }
.home-ad-rich img { max-width: 100%; height: auto; border-radius: 8px; }
.home-ad-rich p:last-child { margin-bottom: 0; }
.home-carousel-text.home-ad-rich { text-align: left; font-size: 1rem; font-weight: 500; }
