/* ============================================================
 * 选品网站 Demo · 共享样式
 * 前台（导购卡片流）+ 后台（管理台）共用一套设计令牌
 * 淘客行业惯例：券后价/券额 红色，佣金/省钱 绿色
 * ============================================================ */
:root {
  --brand: #ff5000;
  --brand-deep: #e64500;
  --brand-grad: linear-gradient(135deg, #ff7a18 0%, #ff3d2e 100%);
  --price: #f5222d;
  --price-soft: #fff1f0;
  --comm: #00b578;
  --comm-soft: #e6f7f1;
  --bg: #f5f6f9;
  --card: #ffffff;
  --text: #1f2329;
  --text-2: #51565e;
  --muted: #8a9099;
  --line: #eceff3;
  --line-strong: #dde1e7;
  --gold: #ffb300;
  --blue: #2f5fd0;
  --violet: #7c5cbf;

  --shadow-1: 0 1px 3px rgba(20, 24, 33, .06);
  --shadow-2: 0 6px 20px rgba(20, 24, 33, .10);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --font: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
  --font-num: "DIN Alternate", "Bahnschrift", "Roboto Condensed", var(--font);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }
img { display: block; max-width: 100%; }
::selection { background: rgba(255, 80, 0, .18); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; transition: all .18s var(--ease);
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 12px rgba(255, 61, 46, .25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 61, 46, .32); }
.btn-ghost { background: #fff; color: var(--text-2); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); }
.btn-danger { background: #fff; color: #f5222d; border-color: #f5c2c5; }
.btn-danger:hover { background: #fff1f0; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }

/* ---------- 徽标 / 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 1;
}
.tag-red { background: var(--price-soft); color: var(--price); }
.tag-green { background: var(--comm-soft); color: var(--comm); }
.tag-gold { background: #fff7e6; color: #d48806; }
.tag-violet { background: #f2edfb; color: var(--violet); }
.tag-blue { background: #eef3ff; color: var(--blue); }
.tag-gray { background: #f1f2f5; color: var(--muted); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  height: 58px; display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -.5px; cursor: pointer; user-select: none; }
.brand:hover { opacity: .8; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 8px; background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 900; flex: none;
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand .brand-name { font-size: 18px; font-weight: 800; color: var(--text); }
.brand .brand-slogan { font-size: 11px; font-weight: 600; color: var(--brand); letter-spacing: .5px; margin-top: 2px; }
.brand em { font-style: normal; color: var(--brand); }

.searchbox {
  position: relative; flex: 1; max-width: 420px; height: 38px; display: flex; align-items: center;
  background: #f1f3f6; border-radius: 20px; padding: 0 14px; gap: 8px;
  border: 1px solid transparent; transition: all .2s var(--ease);
}
.search-history {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20,24,33,.12); z-index: 60;
  padding: 6px; display: none; max-height: 280px; overflow-y: auto;
}
.sh-title { font-size: 11px; color: var(--muted); padding: 4px 8px 6px; }
.sh-item { padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--text); cursor: pointer; }
.sh-item:hover { background: #f5f6f8; }
.searchbox:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,80,0,.1); }
.searchbox svg { flex: none; color: var(--muted); }
.searchbox input { flex: 1; border: none; background: none; outline: none; color: var(--text); }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- 分类导航 ---------- */
.catnav { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 8px; overflow-x: auto; }
.catnav::-webkit-scrollbar { display: none; }
.cat {
  flex: none; height: 34px; padding: 0 16px; border-radius: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--text-2); font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); transition: all .18s var(--ease);
}
.cat:hover { color: var(--brand); border-color: var(--brand); }
.cat.active { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 10px rgba(255,61,46,.22); }

/* ---------- 榜单切换条 ---------- */
.boardbar {
  max-width: 1200px; margin: 0 auto; padding: 14px 16px 4px;
  display: flex; align-items: center; gap: 8px;
}
.boardbar .seg { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button {
  height: 30px; padding: 0 14px; border-radius: 7px; font-size: 13px; font-weight: 600;
  color: var(--text-2); transition: all .16s var(--ease);
}
.seg button.active { background: var(--brand); color: #fff; }
.boardbar .hint { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ---------- 商品网格 ---------- */
.grid-wrap { max-width: 1200px; margin: 0 auto; padding: 14px 16px 60px; }
.seo-intro { max-width: 1200px; margin: 0 auto; padding: 12px 16px 20px; text-align: center; }
.seo-intro h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.seo-intro p { font-size: 12px; color: #b3b3b3; line-height: 1.6; margin: 0; }
.grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 500px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- 商品卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-1); border: 1px solid var(--line);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  display: flex; flex-direction: column; position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #ffd7c2; }
.card.card-kaiqun { background: #f0f6ff; }
.card.card-kaiqun:hover { border-color: #c6dcff; }
.card-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fafafa;
  display: flex; align-items: center; justify-content: center;
}
.card-media .ph {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: #fff; font-weight: 700;
}
.ph .emo { font-size: 40px; }
.ph .nm { font-size: 13px; max-width: 80%; text-align: center; opacity: .95; }
.card-media .rank {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 800;
  font-family: var(--font-num);
}
.card-media .rank.top3 { background: var(--brand-grad); }
.card-media .media-backup {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700;
}
.card-media .off-mask {
  position: absolute; inset: 0; background: rgba(255,255,255,.72);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: 2px;
}
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title {
  font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.card-price .now {
  color: var(--price); font-family: var(--font-num); font-size: 22px; font-weight: 800; letter-spacing: -.5px;
}
.card-price .now .rmb { font-size: 13px; font-weight: 700; margin-right: 1px; }
.card-price .orig { color: var(--muted); font-size: 12px; text-decoration: line-through; }
.card-price .coupon {
  margin-left: auto; font-size: 12px; color: var(--price); font-weight: 700;
  background: var(--price-soft); padding: 2px 7px; border-radius: 4px;
}
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: auto; }
.card-meta .comm { color: var(--comm); font-weight: 700; }
.card-meta .sep { color: var(--line-strong); }
.card-schedule { font-size: 11px; color: var(--muted); }
.card-copy {
  margin-top: 8px; height: 32px; border-radius: 8px; width: 100%;
  background: var(--brand-grad); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity .18s var(--ease); box-shadow: 0 3px 10px rgba(255,61,46,.18);
}
.card-copy:hover { opacity: .92; }

/* ---------- 状态提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: rgba(20,24,33,.92); color: #fff; padding: 10px 20px; border-radius: 10px;
  font-size: 13px; z-index: 200; opacity: 0; pointer-events: none;
  transition: all .3s var(--ease); box-shadow: var(--shadow-2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: var(--muted);
}
.empty .big { font-size: 46px; margin-bottom: 10px; }

/* ---------- 实时同步呼吸点 ---------- */
.sync-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--comm); }
.sync-dot i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--comm);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,181,120,.5); }
  70% { box-shadow: 0 0 0 7px rgba(0,181,120,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,181,120,0); }
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line); padding: 24px 16px; text-align: center;
  color: var(--muted); font-size: 12px; background: #fff;
}
.footer a { color: var(--text-2); }
.footer-slogan { color: var(--brand); font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.footer-icp { margin-top: 8px; }
.footer-icp a { color: var(--muted); text-decoration: none; }
.footer-icp a:hover { color: var(--brand); }

/* ============================================================
 * 后台专属样式
 * ============================================================ */
.admin-shell { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.admin-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-head h1 { font-size: 20px; font-weight: 800; }
.admin-head .sub { color: var(--muted); font-size: 13px; }
.admin-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 640px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px; box-shadow: var(--shadow-1);
}
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 800; font-family: var(--font-num); margin-top: 4px; }
.stat .v small { font-size: 14px; font-weight: 500; color: var(--muted); }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); overflow: hidden;
}
.panel-head {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.panel-head h2 { font-size: 15px; font-weight: 700; }

.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.toolbar input[type=text], .toolbar select {
  height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; outline: none;
}
.toolbar input[type=text]:focus, .toolbar select:focus { border-color: var(--brand); }

/* 后台商品列表 */
.row {
  display: grid; grid-template-columns: 52px 64px 1fr 110px 90px 90px 80px 180px;
  align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line);
  transition: background .15s var(--ease);
}
.row:last-child { border-bottom: none; }
.row:hover { background: #fafbfc; }
.row.off { opacity: .55; }
.row .thumb {
  width: 52px; height: 52px; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; flex: none;
}
.row .t-title { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.row .t-short { font-size: 11px; color: var(--muted); margin-top: 2px; }
.row .t-num { font-family: var(--font-num); font-weight: 700; font-size: 14px; }
.row .t-price { color: var(--price); }
.row .t-comm { color: var(--comm); }
.row .row-ops { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  background: #f1f2f5; color: var(--text-2); font-size: 14px; transition: all .15s var(--ease);
}
.icon-btn:hover { background: var(--brand); color: #fff; }
.icon-btn.danger:hover { background: #f5222d; }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

@media (max-width: 900px) {
  .row { grid-template-columns: 44px 1fr 90px 60px; }
  .row .hide-md { display: none; }
}

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 300; background: rgba(20,24,33,.45);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); overflow-y: auto;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 560px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); transform: translateY(12px); transition: transform .25s var(--ease);
}
.modal-mask.show .modal { transform: translateY(0); }
.modal-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-head h3 { font-size: 16px; font-weight: 800; }
.modal-close { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.modal-close:hover { background: #f1f2f5; }
.modal-body { padding: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12px; color: var(--text-2); font-weight: 600; margin-bottom: 6px; }
.field label em { color: var(--price); font-style: normal; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: 8px; outline: none; transition: border .15s var(--ease); background: #fff; color: var(--text);
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,80,0,.08); }
.modal-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 批量导入弹窗 ---------- */
.batch-hint { font-size: 12px; color: var(--muted); background: #f7f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; line-height: 1.8; }
.batch-hint code { font-family: var(--font-num); color: var(--brand); font-size: 12px; }
.merge-list { max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.merge-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; }
.merge-item:hover { border-color: var(--brand); background: #fff8f5; }
.merge-item input { flex: none; width: 16px; height: 16px; }
.merge-item-title { font-size: 13px; font-weight: 600; color: var(--text); flex: none; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merge-item-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 合并多选模式：浮动操作条 + 卡片复选框 */
.merge-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: none; align-items: center; gap: 12px; background: #1f2329; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.28); }
.merge-bar.visible { display: flex; }
.merge-bar-info { font-size: 14px; }
.merge-bar-info b { color: var(--brand); font-size: 16px; }
body.merge-mode .admin-card { cursor: pointer; }
body.merge-mode .admin-card .drag-ghost { display: none; }
.admin-card.merge-sel { outline: 3px solid var(--brand); outline-offset: -3px; }
.merge-check { position: absolute; top: 8px; left: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; cursor: pointer; }
.merge-check.checked { background: var(--brand); }
.admin-backup-badge { position: absolute; top: 8px; right: 8px; z-index: 3; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s; }
.admin-backup-badge:hover, .admin-backup-badge.on { background: var(--brand); }
.admin-card.backup-card:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.admin-card.group-open { background: #fff8e6; }
.admin-card.group-open .card-body { background: transparent; }
#batchText { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.6; resize: vertical; min-height: 220px; outline: none; color: var(--text); background: #fff; }
#batchText:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,80,0,.08); }

/* ---------- 前台商品详情弹窗 ---------- */
.detail-mask { position: fixed; inset: 0; z-index: 300; background: rgba(20,24,33,.5); display: flex; align-items: flex-start; justify-content: center; padding: 30px 14px; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); overflow-y: auto; }
.detail-mask.show { opacity: 1; pointer-events: auto; }
.detail-card { background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 780px; box-shadow: 0 20px 60px rgba(0,0,0,.28); transform: translateY(12px); transition: transform .25s var(--ease); overflow: hidden; padding: 20px; }
.detail-mask.show .detail-card { transform: translateY(0); }
.detail-top { display: flex; gap: 20px; align-items: flex-start; }
.detail-left { flex: none; width: 300px; display: flex; flex-direction: column; }
.detail-info { flex: 1; min-width: 0; }
.detail-media { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; color: #fff; position: relative; border-radius: 10px; overflow: hidden; background: #f0f0f0; }
.detail-media img { width: 100%; height: 100%; object-fit: contain; }
.detail-media .ph { font-size: 18px; font-weight: 700; text-align: center; max-width: 80%; }
.detail-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.detail-title { font-size: 18px; font-weight: 700; line-height: 1.5; word-break: break-all; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.detail-price { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 12px; }
.detail-price .now { color: var(--price); font-family: var(--font-num); font-size: 34px; font-weight: 800; }
.detail-price .now .rmb { font-size: 16px; margin-right: 2px; }
.detail-price .orig { color: var(--muted); font-size: 14px; text-decoration: line-through; }
.detail-price .coupon { background: var(--price-soft); color: var(--price); font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 5px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-2); padding: 12px 0; border-top: 1px solid var(--line); }
.detail-meta b { color: var(--comm); font-family: var(--font-num); }
.detail-link { font-size: 12px; color: var(--blue); word-break: break-all; display: block; margin: 8px 0; }
.detail-actions { display: flex; gap: 8px; margin-top: 8px; }
.detail-actions .btn { flex: 1; height: 40px; font-size: 14px; padding: 0 6px; white-space: nowrap; }
.detail-actions-top { margin-top: 12px; }
.detail-backups { margin: 16px 0 0; }
@media (max-width: 640px) {
  .detail-card { padding: 14px; }
  .detail-top { flex-direction: column; }
  .detail-left { width: 100%; }
  .detail-media { aspect-ratio: 16/9; }
}

/* ---------- 后台卡片布局（跟前台一致，可拖拽管理） ---------- */
.admin-grid { padding: 14px 16px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 960px) { .admin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 500px) { .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.admin-card { cursor: grab; }
.admin-card:active { cursor: grabbing; }
.admin-card.off { opacity: .55; }
.admin-card.off .card-media img { filter: grayscale(.8); }
.admin-card.dragging { opacity: .35; transform: scale(.97); }
.admin-card.drag-over { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,80,0,.18); }
.admin-card .drag-ghost {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(0,0,0,.5); color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center; cursor: grab;
}
.admin-ops {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
  display: flex; gap: 3px; justify-content: space-between;
}
.admin-ops .icon-btn { width: auto; height: 26px; font-size: 12px; flex: 1; min-width: 0; padding: 0 4px; }

/* ---------- 发布预览弹窗 ---------- */
.preview-modal { max-width: 900px; }
.preview-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; max-height: 60vh; overflow-y: auto; }
@media (max-width: 520px) { .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 备用链接标记（同款商品） ---------- */
.backup-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  height: 22px; padding: 0 7px; border-radius: 6px;
  background: rgba(0,0,0,.55); color: #ffd166; font-size: 11px; font-weight: 700;
  display: flex; align-items: center;
}

/* ---------- 详情备用链接 ---------- */
.backups-title { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.backup-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px;
}
.backup-item.backup-pending { background: #f2f3f5; border-color: #e3e5e8; }
.backup-item.backup-pending .backup-thumb { filter: grayscale(.6); }
.backup-main { flex: 1; min-width: 0; }
.backup-head { display: flex; gap: 8px; align-items: flex-start; }
.backup-btns { flex: none; width: 200px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.sch-pending {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
  background: #fff7e6; color: #d48806; font-size: 11px; font-weight: 700; white-space: nowrap;
}
@media (max-width: 600px) {
  .backup-item { flex-direction: column; }
  .backup-btns { width: 100%; grid-template-columns: repeat(3, 1fr); }
}
.backup-btn {
  height: 40px; border-radius: 9px; background: var(--brand-grad); border: none;
  color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 3px 10px rgba(255,61,46,.18);
}
.backup-btn:hover { opacity: .92; }
.backup-copyall {
  flex: none; height: 40px; padding: 0 16px; border-radius: 9px;
  background: var(--brand-grad); border: none; color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255,61,46,.18);
}
.backup-copyall:hover { opacity: .92; }
.backup-thumb {
  flex: none; width: 75px; height: 75px; border-radius: 8px;
  object-fit: cover; background: #f1f2f5;
}
.backup-thumb-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--muted);
}
.backup-idx { flex: none; width: 22px; height: 22px; border-radius: 6px; background: #f1f2f5; color: var(--muted); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.backup-links { flex: 1; min-width: 0; }
.backup-links a { font-size: 12px; color: var(--blue); word-break: break-all; }
.backup-mid { font-size: 11px; color: var(--muted); margin-top: 2px; word-break: break-all; }

/* ---------- 详情：标题下紧跟链接 + 顶部按钮 ---------- */
.detail-actions-top { margin: 10px 0 12px; }
.detail-actions-top .btn { flex: 1; height: 40px; font-size: 14px; }

/* ---------- 备用链接：复制按钮带文字 ---------- */
.backup-copy {
  flex: none; height: 28px; padding: 0 12px; border-radius: 7px;
  background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 700;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(255,61,46,.2);
}
.backup-copy:hover { opacity: .9; }

/* ---------- 后台卡片：图片调小、卡片更紧凑 ---------- */
.admin-card .card-media { aspect-ratio: 4 / 3; }
.admin-card .card-title { min-height: 0; -webkit-line-clamp: 2; }
.admin-card .card-body { gap: 4px; padding: 8px 10px 10px; }
.admin-card .card-tags { gap: 4px; }

/* ---------- 后台卡片：宝贝链接 / 佣金 / 复制按钮 ---------- */
.card-link { font-size: 11px; color: var(--blue); word-break: break-all; display: block; line-height: 1.4; }
.card-link:hover { text-decoration: underline; }
.comm-inline { color: var(--comm); font-weight: 700; font-family: var(--font-num); font-size: 12px; margin-left: 6px; }
.card-copyall {
  margin-left: auto; height: 24px; padding: 0 10px; border-radius: 6px;
  background: var(--brand-grad); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.card-copyall:hover { opacity: .9; }

/* ---------- 智能识别 ---------- */
.smart-zone { margin-bottom: 14px; }
.smart-zone textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px;
  font-size: 13px; line-height: 1.6; resize: vertical; min-height: 64px; outline: none; color: var(--text); background: #fff;
}
.smart-zone textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,80,0,.08); }

/* ---------- 粘贴图片 ---------- */
.paste-zone {
  border: 2px dashed var(--line-strong); border-radius: 10px; padding: 40px 20px; text-align: center;
  color: var(--muted); font-size: 14px; cursor: text; outline: none; transition: border .15s var(--ease);
}
.paste-zone:focus { border-color: var(--brand); color: var(--text-2); background: #fff8f6; }

/* ---------- 搜索按钮 / 排序 ---------- */
.search-btn {
  flex: none; height: 30px; padding: 0 14px; border-radius: 16px;
  background: var(--brand-grad); color: #fff; font-size: 13px; font-weight: 700;
}
.search-btn:hover { opacity: .92; }
.sortbox { display: flex; align-items: center; gap: 6px; }
.sort-label { font-size: 12px; color: var(--muted); }
.sortbox select {
  height: 30px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 7px;
  outline: none; font-size: 13px; color: var(--text-2); background: #fff;
}
.sortbox select:focus { border-color: var(--brand); }
#sortDir { width: 30px; height: 30px; border-radius: 7px; background: #fff; border: 1px solid var(--line-strong); color: var(--text-2); font-size: 14px; font-weight: 700; }
#sortDir:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 前台卡片备用链接按钮 ---------- */
.card-backup-btn {
  margin-top: 6px; height: 28px; width: 100%; border-radius: 8px;
  background: #f1f2f5; color: var(--text-2); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.card-backup-btn:hover { background: #e8eaf0; color: var(--brand); }

/* ---------- 备用链接逐行显示 ---------- */
.backup-line { font-size: 12px; line-height: 1.7; color: var(--text-2); word-break: break-all; }
.backup-line a { color: var(--blue); }
.backup-label { display: inline-block; min-width: 42px; color: var(--muted); font-weight: 600; }

/* ============================================================
 * 美化：大气稳重版（覆盖增强）
 * ============================================================ */

/* 顶栏更沉稳，加清晰阴影分层 */
.topbar { box-shadow: 0 2px 14px rgba(20, 24, 33, .07); }
.topbar-inner { height: 64px; }
.brand { font-size: 20px; font-weight: 800; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px; font-size: 19px;
  background: var(--brand-grad); box-shadow: 0 3px 10px rgba(255, 61, 46, .3);
}
.brand em { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: .5px; }

/* 板块切换更清晰 */
.seg { padding: 4px; border-radius: 12px; box-shadow: var(--shadow-1); }
.seg button { height: 34px; padding: 0 18px; border-radius: 8px; font-size: 14px; }
.seg button.active { background: var(--brand-grad); box-shadow: 0 4px 12px rgba(255, 61, 46, .25); }

/* 卡片：更大圆角、柔和阴影、克制上浮 */
.card { border-radius: 14px; box-shadow: 0 2px 10px rgba(20, 24, 33, .06); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(20, 24, 33, .13); border-color: #ffd7c2; }

/* 按钮：更稳重的层次 */
.btn { height: 40px; border-radius: 10px; font-weight: 600; letter-spacing: .2px; }
.btn-sm { height: 32px; border-radius: 8px; }
.btn-primary { background: var(--brand-grad); box-shadow: 0 4px 14px rgba(255, 61, 46, .26); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(255, 61, 46, .34); }
.btn-ghost { background: #fff; border: 1px solid var(--line-strong); color: var(--text-2); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); background: #fff7f3; }
.btn-danger { background: #fff; border: 1px solid #f5c2c5; color: #e02e24; }
.btn-danger:hover { background: #fff1f0; border-color: #e02e24; }

/* 提示 toast 更醒目 */
.toast {
  background: #1f2329; color: #fff; border-radius: 12px; padding: 12px 22px;
  font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .08);
}

/* 空状态更大气 */
.empty { padding: 100px 20px; }
.empty .big { font-size: 56px; margin-bottom: 14px; }
.empty { color: var(--muted); font-size: 14px; }

/* 后台统计卡更清晰 */
.stat { border-radius: 14px; padding: 18px; box-shadow: 0 2px 10px rgba(20,24,33,.05); }
.stat .k { font-size: 13px; letter-spacing: .5px; }
.stat .v { font-size: 28px; }

/* 页脚更稳重 */
.footer { background: #fff; color: var(--muted); padding: 28px 16px; }

/* 搜索框更精致 */
.searchbox { height: 40px; border-radius: 22px; background: #f1f3f6; }

/* 详情弹窗更精致 */
.detail-card { border-radius: 18px; }
.detail-title { font-size: 20px; }
.detail-actions-top .btn { border-radius: 10px; }

/* 排序控件右对齐，板块与排序分区清晰 */
.sortbox { margin-left: auto; }
.boardbar .hint { margin-left: 12px; }

/* ---------- 前台卡片：预告/已开始日期 + 备用链接文字 + 佣金大字 ---------- */
.tag-preview { background: #d9dbe1; color: #6b7079; font-weight: 700; }
.tag-date { background: #fff; color: var(--text-2); border: 1px solid var(--line-strong); font-weight: 600; }
.backup-count { font-size: 12px; color: var(--brand); font-weight: 700; }
.comm-big { margin-left: auto; color: var(--comm); font-weight: 800; font-family: var(--font-num); font-size: 16px; }

/* ---------- 后台密码保护 ---------- */
.auth-mask {
  position: fixed; inset: 0; z-index: 10000;
  background: linear-gradient(135deg, #f7f8fa 0%, #eef0f4 100%);
  display: flex; align-items: center; justify-content: center;
}
.auth-box {
  background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(20,24,33,.14);
  padding: 40px 36px; width: 360px; max-width: 90vw; text-align: center;
  display: flex; flex-direction: column; gap: 16px;
}
.auth-sub { color: var(--muted); font-size: 14px; }
.auth-box input {
  height: 46px; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 0 16px; font-size: 15px; text-align: center; outline: none; letter-spacing: 3px;
}
.auth-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,80,0,.1); }
.auth-err { color: var(--price); font-size: 13px; display: none; }

/* ---------- 备用链接标题 + 复制全部推广信息按钮 ---------- */
.backups-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.backup-copyall-btn { flex: none; }

/* ---------- 前台卡片：打开放单宝 + 复制全部消息（左右排布） ---------- */
.card-btns { display: flex; gap: 8px; margin-top: 8px; }
.card-btns .card-copy { flex: 1; margin-top: 0; width: auto; }
.card-fbd {
  flex: 1; height: 32px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line-strong); color: var(--text-2);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.card-fbd:hover { border-color: var(--brand); color: var(--brand); background: #fff7f3; }

/* ---------- 后台卡片：宝贝id ---------- */
.card-itemid { font-size: 11px; color: var(--muted); font-family: var(--font-num); line-height: 1.4; }

/* ---------- 后台分组：备用卡片缩进 + 展开按钮 ---------- */
.backup-card { border-left: 3px solid var(--brand); margin-left: 8px; opacity: .92; }
.rank-backup { background: rgba(0,0,0,.4); }
.group-toggle {
  display: block; width: 100%; height: 24px; margin-top: 4px; border-radius: 6px;
  background: #f1f2f5; color: var(--text-2); font-size: 11px; font-weight: 700;
}
.group-toggle:hover { background: #ffe9e0; color: var(--brand); }
.group-toggle.set-default { background: #fff7e6; color: #d48806; }
.group-toggle.set-default:hover { background: #ffefc4; }

/* ---------- 前台卡片三按钮统一（白字橙底同一行） ---------- */
.card-btns .card-copy { flex: 1; margin-top: 0; width: auto; }
.card-fbd, .card-doc {
  flex: 1; height: 32px; border-radius: 8px;
  background: var(--brand-grad); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(255,61,46,.18);
}
.card-fbd:hover, .card-doc:hover { opacity: .92; }

/* ---------- 爆品标记 ---------- */
.hot-badge {
  position: absolute; top: 36px; left: 8px; z-index: 3;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px;
  background: var(--brand-grad); color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(255,61,46,.4);
}
.admin-card .rank { left: 8px; }
.admin-card .rank.rank-backup { left: 8px; }
.icon-btn.hot-on { background: var(--brand-grad); color: #fff; }
.icon-btn.pinned-on { background: var(--brand-grad); color: #fff; }

/* ---------- 检查天降按钮（统一放单宝红底风格） ---------- */
.card-check {
  flex: 1; height: 30px; border-radius: 8px;
  background: var(--brand-grad); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(255,61,46,.18);
}
.card-check:hover { opacity: .92; }
.card-check:active { transform: scale(.98); }

/* ---------- 前台排序三按钮 ---------- */
.sort-btn {
  height: 30px; padding: 0 14px; border-radius: 7px;
  background: #fff; border: 1px solid var(--line-strong); color: var(--text-2);
  font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.sort-btn:hover { border-color: var(--brand); color: var(--brand); }
.sort-btn.active { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(255,61,46,.2); }

/* ---------- 前台排期筛选按钮 ---------- */
.sch-btn {
  height: 30px; padding: 0 14px; border-radius: 7px;
  background: #fff; border: 1px solid var(--line-strong); color: var(--text-2);
  font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.sch-btn:hover { border-color: var(--brand); color: var(--brand); }
.sch-btn.active { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(255,61,46,.2); }
.sch-date {
  height: 30px; padding: 0 10px; border-radius: 7px;
  border: 1px solid var(--brand); color: var(--text);
  font-size: 13px; outline: none; margin-left: 4px;
}

/* ---------- 前台公告栏 ---------- */
.notice-bar {
  max-width: 1200px; margin: 10px auto 0; padding: 10px 16px;
  background: #fff7e6; border: 1px solid #ffd591; border-radius: 10px;
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: #8a5a00; line-height: 1.6;
}
.notice-ico { flex: none; }
.notice-txt { white-space: pre-wrap; word-break: break-word; }

/* ---------- 后台公告编辑 ---------- */
.notice-edit { display: flex; flex-direction: column; gap: 8px; }
.notice-head { display: flex; align-items: baseline; gap: 10px; }
.notice-head label { font-size: 14px; font-weight: 700; color: var(--text); }
.notice-edit textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 10px 12px; font-size: 13px; line-height: 1.6; resize: vertical;
  min-height: 48px; outline: none; color: var(--text); background: #fff;
}
.notice-edit textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,80,0,.08); }
.notice-edit .btn { align-self: flex-start; }

/* ---------- 宝贝id复制按钮 ---------- */
.card-itemid { display: flex; align-items: center; gap: 6px; }
.card-itemid .iid { font-family: var(--font-num); }
.icon-btn.mini { width: 20px; height: 20px; font-size: 12px; flex: none; }

/* ---------- 移动端优化（微信等窄屏） ---------- */
@media (max-width: 600px) {
  /* 顶部栏压缩 */
  .topbar-inner { height: 50px; gap: 8px; padding: 0 10px; }
  .brand { font-size: 15px; gap: 6px; flex: none; }
  .brand .logo { display: none; }
  .brand .brand-slogan { display: none; }
  .brand em { display: none; }
  .searchbox { height: 32px; max-width: none; min-width: 0; flex: 1; padding: 0 10px; }
  .searchbox input { font-size: 16px; }
  .top-actions .sync-dot { font-size: 11px; }

  /* 榜单条：纵向排列，各组横向滚动 */
  .boardbar { flex-direction: column; align-items: stretch; padding: 10px 12px 2px; gap: 6px; }
  .boardbar .seg { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .boardbar .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: none; white-space: nowrap; height: 30px; padding: 0 12px; }
  .sortbox { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-left: 0; }
  .sortbox::-webkit-scrollbar { display: none; }
  #schBox { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #schBox::-webkit-scrollbar { display: none; }
  .sort-btn, .sch-btn { flex: none; height: 30px; padding: 0 12px; font-size: 12px; }
  .boardbar .hint { display: none; }

  /* 商品网格：卡片更紧凑 */
  .grid-wrap { padding: 10px 10px 60px; }
  .card-check, .card-fbd, .card-doc, .card-copy { font-size: 11px; height: 30px; }

  /* 详情页 */
  .detail-page { padding: 10px; }
  .detail-actions { gap: 6px; }
  .detail-actions .btn { height: 40px; font-size: 13px; padding: 0 6px; }
  .detail-actions-top .btn { height: 38px; font-size: 13px; padding: 0 6px; }
  .backup-btn { font-size: 12px; height: 38px; }
}

/* ---------- 空状态引导 + 查看全部按钮 ---------- */
.empty-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.empty-btn {
  margin-top: 16px; height: 38px; padding: 0 22px; border: none; border-radius: 19px;
  background: var(--brand-grad); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,61,46,.22); transition: transform .15s ease;
}
.empty-btn:hover { transform: translateY(-1px); }

/* ---------- 右上角联系方式 ---------- */
.top-actions { position: relative; }
.contact {
  display: flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px;
  border-radius: 17px; border: 1px solid var(--line); background: #fff; color: var(--text-2);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .18s var(--ease);
}
.contact:hover { color: var(--brand); border-color: var(--brand); }
.contact-pop {
  position: absolute; top: calc(100% + 8px); right: 0; width: 224px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20,24,33,.14); padding: 14px; z-index: 60;
}
.contact-pop-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.contact-pop-wx { font-size: 14px; color: var(--text); margin-bottom: 10px; word-break: break-all; }
.contact-pop-wx b { color: var(--brand); font-weight: 800; }
.contact-copy {
  width: 100%; height: 34px; border: none; border-radius: 8px;
  background: var(--brand-grad); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
}

/* ---------- 空筛选按钮置灰 ---------- */
.seg button.disabled, .sort-btn.disabled, .sch-btn.disabled {
  opacity: .38; cursor: not-allowed; pointer-events: none;
}

/* ---------- 后台公告时效输入 ---------- */
.notice-time { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.notice-time label { font-size: 12px; color: var(--muted); }
.notice-time input { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--text); background: #fff; }

/* ---------- 后台打烊状态按钮 ---------- */
.sold-btn { height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: #f5f7f9; color: var(--muted); font-size: 13px; cursor: pointer; transition: all .2s; }
.sold-btn.sold-on { background: #fff1ef; border-color: #ff6b5e; color: #e04032; font-weight: 600; }
.sold-btn:hover { opacity: .9; }

/* ---------- 前台打烊提示 ---------- */
.sold-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 6px; background: #fff1ef; color: #e04032; font-size: 12px; font-weight: 600; vertical-align: middle; }
