/* ============================================================
   羊毛AIHUB · 设计系统 v3 — 灰白极简风（浅色唯一主题）
   浅灰底 + 白卡片 + 1px 细线 + 大圆角 + 红包红强调
   全站零佣金字样，前端统一用「优惠」表述。
   ============================================================ */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono",
    Consolas, "Liberation Mono", monospace;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --sidebar-w: 220px;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eef0f3;
  --hairline: #e8eaee;
  --hairline-2: #dde0e5;
  --text: #191c20;
  --text-2: #5a6170;
  --text-3: #9aa1ac;
  --red: #d93832;
  --red-strong: #c22b26;
  --red-bg: rgba(217, 56, 50, 0.07);
  --red-border: rgba(217, 56, 50, 0.22);
  --gold: #b8862d;
  --gold-bg: rgba(184, 134, 45, 0.09);
  --gold-border: rgba(184, 134, 45, 0.28);
  --img-ph: #eef0f3;
  --shadow-card: 0 1px 2px rgba(20, 24, 30, 0.04);
  --shadow-hover: 0 6px 20px rgba(20, 24, 30, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--red-bg); }

/* ============ 布局：左栏 + 主区 ============ */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex: none;
  background: var(--surface);
  border-right: 1px solid var(--hairline);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 18px 12px;
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600; font-family: var(--font-mono);
  box-shadow: 0 2px 6px rgba(217, 56, 50, 0.25);
}
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.brand-name small { display: block; font-size: 10px; color: var(--text-3); font-family: var(--font-mono); letter-spacing: 0.08em; font-weight: 400; }
.brand .logo-svg { width: 32px; height: 32px; border-radius: 9px; flex: none; }

.nav-group { margin-bottom: 6px; }
.nav-label {
  font-size: 11px; color: var(--text-3); font-weight: 500;
  padding: 12px 8px 6px; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 6px;
}

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.side-nav a svg { flex: none; opacity: 0.7; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.active { background: var(--red-bg); color: var(--red); font-weight: 500; }
.side-nav a.active svg { opacity: 1; }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.side-row { display: flex; gap: 8px; }
.side-chip {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--text-2);
  border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: 7px 10px; background: var(--surface);
  transition: color 0.15s, border-color 0.15s;
}
.side-chip:hover { color: var(--text); border-color: var(--hairline-2); }
.side-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: inline-block; }

.main { flex: 1; min-width: 0; }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 245, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  height: 54px; display: flex; align-items: center;
  padding: 0 28px; gap: 14px;
}
.topbar .crumb { font-size: 13px; color: var(--text-2); }
.topbar .crumb b { color: var(--text); font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar .demo-chip {
  font-family: var(--font-mono); font-size: 11px; color: var(--red);
  background: var(--red-bg); border: 1px solid var(--red-border); border-radius: 99px; padding: 3px 10px;
  display: flex; align-items: center; gap: 6px;
}
.topbar .demo-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ============ 双11 红包专区（首页顶部） ============ */
.rp-band {
  max-width: 1120px; margin: 0 auto;
  padding: 28px 28px 0;
}
.rp-band-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.rp-band-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.rp-band-head .tag { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.rp-band-head .line { flex: 1; height: 1px; background: var(--hairline); }
.rp-band-head .cd { font-family: var(--font-mono); font-size: 12px; color: var(--red); }

.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rp-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.rp-card:hover { border-color: var(--red-border); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.rp-card.jd:hover { border-color: var(--gold-border); }
.rp-card::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--red-bg); pointer-events: none;
}
.rp-card.jd::after { background: var(--gold-bg); }
.rp-top { display: flex; align-items: center; gap: 10px; position: relative; }
.rp-logo {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 19px;
  background: var(--surface-3); border: 1px solid var(--hairline);
}
.rp-card.tb .rp-logo { background: var(--red-bg); border-color: var(--red-border); }
.rp-card.jd .rp-logo { background: var(--gold-bg); border-color: var(--gold-border); }
.rp-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.rp-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.rp-desc { font-size: 12.5px; color: var(--text-2); position: relative; }
/* 京享红包口令：一键复制，去京东 APP 搜索粘贴 */
.rp-word {
  align-self: flex-start; margin-top: 2px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 99px; cursor: pointer;
  background: var(--gold-bg); border: 1px dashed var(--gold-border);
  color: var(--gold); font-size: 12px; font-family: var(--font-mono);
  transition: background 0.15s, border-color 0.15s;
}
.rp-word::before { content: "🔑"; font-family: inherit; }
.rp-word:hover { border-style: solid; }
.rp-word[hidden] { display: none; }
.rp-btn {
  margin-top: 4px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 18px; border-radius: 99px;
  background: var(--red); color: #fff; border: none;
  font-size: 13px; font-weight: 500;
  transition: background 0.15s, transform 0.15s;
  position: relative;
}
.rp-btn:hover { background: var(--red-strong); transform: translateY(-1px); }
.rp-card.jd .rp-btn { background: var(--gold); }
.rp-card.jd .rp-btn:hover { filter: brightness(1.08); }

/* ============ 首页主体：对话 + 秒杀 两栏 ============ */
.home-grid {
  max-width: 1120px; margin: 0 auto;
  padding: 22px 28px 0;
  display: grid; grid-template-columns: 1fr 320px; gap: 16px;
  align-items: start;
}

/* ---- 对话区 ---- */
.chat-panel {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  min-height: 560px; max-height: 720px;
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--hairline);
}
.chat-avatar {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 15px;
}
.chat-head .t { font-size: 14px; font-weight: 600; }
.chat-head .s { font-size: 11.5px; color: var(--text-3); }
.chat-head .spacer { flex: 1; }
.chat-head .mode-chip {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--red);
  background: var(--red-bg); border: 1px solid var(--red-border);
  border-radius: 99px; padding: 2px 9px;
}

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
}

/* 欢迎屏 */
.chat-welcome { text-align: center; padding: 34px 20px 26px; }
.chat-welcome .big { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 12px 0 6px; }
.chat-welcome .sub { font-size: 13px; color: var(--text-2); max-width: 380px; margin: 0 auto 20px; }
.welcome-emoji {
  width: 52px; height: 52px; border-radius: 16px; margin: 0 auto;
  background: var(--red-bg); border: 1px solid var(--red-border);
  display: grid; place-items: center; font-size: 26px;
}
.welcome-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wchip {
  font-size: 12px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 99px; padding: 7px 14px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.wchip:hover { color: var(--red); border-color: var(--red-border); background: var(--red-bg); }

/* 消息气泡 */
.msg { display: flex; gap: 10px; max-width: 100%; }
.msg-user { justify-content: flex-end; }
.msg-av {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-size: 14px;
  background: var(--surface-3); border: 1px solid var(--hairline);
}
.msg-user .msg-av { background: var(--red-bg); border-color: var(--red-border); order: 2; }
.bubble {
  padding: 10px 14px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.75;
  max-width: 86%; word-break: break-word;
}
.msg-user .bubble {
  background: var(--red); color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-ai .bubble {
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-bottom-left-radius: 4px;
}
.bubble b { font-weight: 600; }
.msg-user .bubble b { color: #fff; }

/* AI 消息里的商品/红包卡 */
.msg-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; min-width: 0; }
.msg-cards .pcard { padding: 10px; }
.msg-cards .pcard-title { font-size: 12.5px; min-height: 0; }
.msg-cards .pcard-img { width: 46px; height: 46px; }
.msg-cards .price-now { font-size: 18px; }

.rp-msg-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--red-border);
  border-radius: var(--r-md); padding: 10px 12px;
}
.rp-msg-card.jd { border-color: var(--gold-border); }
.rp-msg-ico {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--red-bg); display: grid; place-items: center; font-size: 16px;
}
.rp-msg-card.jd .rp-msg-ico { background: var(--gold-bg); }
.rp-msg-info { flex: 1; min-width: 0; }
.rp-msg-name { font-size: 13px; font-weight: 600; }
.rp-msg-url {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rp-msg-actions { display: flex; gap: 6px; flex: none; }
.rp-msg-btn {
  height: 28px; padding: 0 12px; border-radius: var(--r-sm);
  background: var(--red); color: #fff; border: none; font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.rp-msg-btn.ghost { background: transparent; border: 1px solid var(--hairline-2); color: var(--text-2); }
.rp-msg-btn:hover { filter: brightness(1.05); }

/* 转链卡里的淘口令行：口令比链接长，允许换行 + 等宽显示，一眼能核对 */
.conv-tao {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 6px; padding: 6px 8px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px dashed var(--hairline-2);
}
.conv-tao-k {
  flex: none; font-size: 11px; font-weight: 600; color: var(--gold);
  padding: 1px 6px; border-radius: 4px; background: var(--gold-bg);
}
.conv-tao-v {
  flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text-2); word-break: break-all;
}

/* 窄屏（手机）下转链卡改两行：信息占整行，按钮换行到下面，
 * 否则右侧两个固定宽按钮把信息区挤成一个字一行的竖排 */
@media (max-width: 480px) {
  .rp-msg-card { flex-wrap: wrap; }
  .rp-msg-actions { width: calc(100% - 44px); margin-left: 44px; margin-top: 8px; justify-content: flex-end; }
}

.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-3);
  animation: tp 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tp { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* 输入区 */
.chat-input {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--hairline);
  padding: 12px 14px;
}
.chat-input .box {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--hairline-2);
  border-radius: 99px; padding: 0 6px 0 16px;
  transition: border-color 0.2s, background 0.2s;
}
.chat-input .box:focus-within { border-color: var(--red); background: var(--surface); }
.chat-input input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 13.5px; font-family: var(--font-sans); height: 38px;
}
.chat-input input::placeholder { color: var(--text-3); }
.send-btn {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--red); color: #fff; border: none;
  display: grid; place-items: center;
  transition: background 0.15s, transform 0.15s;
}
.send-btn:hover { background: var(--red-strong); transform: scale(1.05); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---- 今日秒杀（首页右栏） ---- */
.sk-panel {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.sk-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 12px; border-bottom: 1px solid var(--hairline);
}
.sk-head .t { font-size: 14px; font-weight: 600; }
.sk-head .tag {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--red);
  background: var(--red-bg); border-radius: 99px; padding: 2px 8px;
}
.sk-head .line { flex: 1; }
.sk-head .more { font-size: 11.5px; color: var(--text-3); }
.sk-head .more:hover { color: var(--red); }
.sk-list { display: flex; flex-direction: column; }
.sk-item {
  display: flex; gap: 10px; align-items: center;
  padding: 11px 14px; border-bottom: 1px solid var(--hairline);
  transition: background 0.15s;
  cursor: pointer;
}
.sk-item:last-child { border-bottom: none; }
.sk-item:hover { background: var(--surface-2); }
.sk-img {
  width: 48px; height: 48px; border-radius: var(--r-sm); flex: none;
  background: var(--img-ph); border: 1px solid var(--hairline);
  overflow: hidden; display: grid; place-items: center;
  font-size: 18px; color: var(--text-3);
}
.sk-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sk-info { flex: 1; min-width: 0; }
.sk-title {
  font-size: 12.5px; font-weight: 500; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sk-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.sk-price { display: flex; align-items: baseline; gap: 6px; margin-top: 3px; }
.sk-price .now { font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: var(--red); }
.sk-price .now::before { content: "¥"; font-size: 10px; margin-right: 1px; }
.sk-price .old { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); text-decoration: line-through; }
.sk-price .coupon {
  font-family: var(--font-mono); font-size: 10px; color: var(--red);
  background: var(--red-bg); border-radius: 4px; padding: 0 5px;
}

/* ============ 通用 section ============ */
.section { max-width: 1120px; margin: 0 auto; padding: 40px 28px 0; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.section-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.section-tag { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.section-head .line { flex: 1; height: 1px; background: var(--hairline); }
.section-desc { font-size: 13px; color: var(--text-2); margin: 0 0 18px; }

/* ============ 商品卡 ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pcard {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 13px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.pcard:hover { border-color: var(--hairline-2); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.pcard-top { display: flex; gap: 10px; align-items: flex-start; }
.pcard-img {
  width: 54px; height: 54px; border-radius: var(--r-sm); flex: none;
  background: var(--img-ph); border: 1px solid var(--hairline);
  overflow: hidden; display: grid; place-items: center;
  font-size: 20px; color: var(--text-3);
}
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-title {
  font-size: 13px; font-weight: 500; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.9em;
}
.pcard-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-top: 4px; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-family: var(--font-mono); font-size: 21px; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; }
.price-now::before { content: "¥"; font-size: 12px; margin-right: 1px; }
.price-old { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.badge-coupon {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--red); background: var(--red-bg);
  border: 1px solid var(--red-border); border-radius: 4px; padding: 1px 6px;
}
.save-text { font-family: var(--font-mono); font-size: 12px; color: var(--red); }
.pcard-foot { display: flex; gap: 8px; border-top: 1px solid var(--hairline); padding-top: 10px; }
.btn-coupon {
  flex: 1; height: 30px; border-radius: var(--r-sm);
  background: var(--red); border: none; color: #fff; font-size: 12px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: background 0.15s;
}
.btn-coupon:hover { background: var(--red-strong); }
.btn-copy {
  height: 30px; padding: 0 10px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--hairline-2);
  color: var(--text-2); font-size: 12px; font-family: var(--font-mono);
  transition: color 0.15s, border-color 0.15s;
}
.btn-copy:hover { color: var(--text); border-color: var(--text-3); }

/* ============ Tabs ============ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); margin-bottom: 18px; }
.tab {
  background: transparent; border: none; color: var(--text-2);
  font-size: 13px; padding: 9px 14px; position: relative;
}
.tab.active { color: var(--red); font-weight: 500; }
.tab.active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px;
  height: 2px; background: var(--red); border-radius: 2px 2px 0 0;
}

/* ============ 活动会场 ============ */
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.act-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 15px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.act-card:hover { border-color: var(--hairline-2); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.act-card.hot { border-color: var(--red-border); }
.act-top { display: flex; align-items: center; gap: 8px; }
.act-platform {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-2);
  background: var(--surface-3); border-radius: 4px; padding: 2px 7px; flex: none;
}
.act-card.hot .act-platform { color: var(--red); background: var(--red-bg); }
.act-name { font-size: 13px; font-weight: 600; }
.act-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.act-btn {
  margin-top: auto; height: 30px; border-radius: var(--r-sm);
  border: 1px solid var(--red-border); background: var(--red-bg); color: var(--red);
  font-size: 12px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: background 0.15s, color 0.15s;
}
.act-btn:hover { background: var(--red); color: #fff; }

/* ============ 工具箱（凑单 + 日历） ============ */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.tool-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 20px;
  box-shadow: var(--shadow-card);
}
.tool-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.tool-card .tool-sub { font-size: 12.5px; color: var(--text-2); margin-bottom: 16px; }

.coutao-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--text-2); }
.field input {
  width: 120px; height: 36px;
  background: var(--surface-2); border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm); padding: 0 12px;
  color: var(--text); font-size: 14px; font-family: var(--font-mono); outline: none;
}
.field input:focus { border-color: var(--red); }
.coutao-result {
  margin-top: 16px; padding: 14px 16px;
  background: var(--red-bg); border: 1px solid var(--red-border);
  border-radius: var(--r-md); font-size: 14px;
}
.coutao-result b { font-family: var(--font-mono); color: var(--red); font-size: 20px; font-weight: 600; padding: 0 2px; }
.coutao-hint { font-size: 12px; color: var(--text-3); margin-top: 10px; }
.coutao-list { margin-top: 16px; }

/* 日历 */
.tl-list { display: flex; flex-direction: column; }
.tl-node {
  display: flex; gap: 14px; padding: 11px 0;
  border-bottom: 1px dashed var(--hairline);
}
.tl-node:last-child { border-bottom: none; }
.tl-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); width: 92px; flex: none; padding-top: 2px; }
.tl-body { flex: 1; min-width: 0; }
.tl-body h4 { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.tl-body p { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hairline-2); flex: none; }
.tl-node.active .tl-dot { background: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.tl-node.active h4 { color: var(--red); }
.tl-node.past { opacity: 0.55; }
.cd-box {
  margin-top: 14px; padding: 14px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-md);
}
.cd-box .lbl { font-size: 12px; color: var(--text-2); }
.cd-box .val { font-family: var(--font-mono); font-size: 22px; font-weight: 600; margin: 4px 0 2px; }
.cd-box .nm { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

/* ============ 页脚 ============ */
footer { border-top: 1px solid var(--hairline); margin-top: 56px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; max-width: 1120px; margin: 0 auto; padding: 36px 28px 26px; }
.foot-grid h4 { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--text-2); }
.foot-grid p, .foot-grid li { font-size: 12px; color: var(--text-3); line-height: 1.8; list-style: none; }
.foot-grid a:hover { color: var(--text-2); }
.foot-bottom {
  border-top: 1px solid var(--hairline);
  padding: 13px 28px; display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
  max-width: 1120px; margin: 0 auto;
}

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(16px);
  background: var(--surface-3); border: 1px solid var(--hairline-2);
  color: var(--text); font-size: 13px; border-radius: var(--r-sm);
  padding: 9px 18px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s; z-index: 100;
  box-shadow: var(--shadow-hover);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 空态 ============ */
.empty-note {
  grid-column: 1/-1; text-align: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
  padding: 26px 0;
}

/* ============ 顶部导航（跨页面） ============ */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 247, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  height: 56px; display: flex; align-items: center; gap: 16px;
  padding: 0 22px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); flex: none; }
.nav-brand .logo-svg { width: 30px; height: 30px; display: block; border-radius: 9px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: 13px; color: var(--text-2); padding: 7px 12px; border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--red); font-weight: 600; background: var(--red-bg); }
.nav-links .rp-mini {
  color: var(--red); background: var(--red-bg); border: 1px solid var(--red-border);
  font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
}
.nav-links .rp-mini:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ============ 首页口号 Hero ============ */
.hero {
  max-width: 1120px; margin: 0 auto; padding: 30px 28px 4px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.hero-main { min-width: 0; }
.hero-slogan {
  font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
  background: linear-gradient(100deg, var(--text) 0%, var(--red) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 13.5px; color: var(--text-2); margin-top: 8px; max-width: 540px; }
.hero-by { font-size: 12px; color: var(--text-3); margin-top: 10px; display: flex; align-items: center; gap: 7px; }
.hero-by b { color: var(--text-2); font-weight: 600; }
.hero-by .creator-pill {
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 99px;
  padding: 3px 11px; font-size: 12px; color: var(--text-2);
}
.hero-mascot {
  width: 96px; height: 96px; flex: none; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--hairline); display: grid; place-items: center;
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.hero-mascot .logo-svg { width: 70px; height: 70px; }

/* ============ 线报广场 ============ */
.wire-head { max-width: 1120px; margin: 0 auto; padding: 26px 28px 0; }
.wire-head-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.wire-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.wire-head p { font-size: 13px; color: var(--text-2); margin-top: 6px; max-width: 660px; }
.wire-head-side { display: flex; align-items: center; gap: 10px; padding-top: 5px; }
.wire-live {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-size: 12px; font-weight: 600; color: #1a9e50;
  background: rgba(26, 158, 80, 0.08); border: 1px solid rgba(26, 158, 80, 0.25);
  border-radius: 999px; padding: 5px 12px;
}
.wire-dot { width: 7px; height: 7px; border-radius: 50%; background: #1a9e50; animation: wire-pulse 1.8s ease infinite; }
@keyframes wire-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.78); } }
.wire-refresh {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 12px; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 5px 12px;
  transition: color 0.15s, border-color 0.15s;
}
.wire-refresh:hover { color: var(--text); border-color: var(--hairline-2); }
.wire-refresh:disabled { opacity: 0.6; cursor: default; }
.wire-refresh.spinning svg { animation: wire-spin 0.8s linear infinite; }
@keyframes wire-spin { to { transform: rotate(360deg); } }
/* tabs：pill 分段控件 + 吸顶（贴在 56px 顶栏下方） */
.wire-tabs {
  position: sticky; top: 56px; z-index: 40;
  max-width: 1120px; margin: 16px auto 0; padding: 10px 28px;
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(244, 245, 247, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.wire-tab {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--hairline);
  color: var(--text-2); font-size: 13px; padding: 6px 14px; border-radius: 999px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.wire-tab:hover { color: var(--text); border-color: var(--hairline-2); }
.wire-tab.active { color: #fff; background: var(--red); border-color: var(--red); font-weight: 600; }
.wire-tab-ico { font-size: 13px; line-height: 1; }
.wire-meta { max-width: 1120px; margin: 0 auto; padding: 12px 28px 0; font-size: 12px; color: var(--text-3); min-height: 18px; }

/* 分类提示条：京东 tab 显京享红包密令，其余 tab 提醒先领红包 */
/* 红包提示条：金渐变小条，醒目（原来是一行灰字，用户要求调醒目） */
#wireTip {
  max-width: 1064px; margin: 10px auto 0; padding: 10px 14px;
  border-radius: var(--r-md); border: 1px solid #f0d9a8;
  background: linear-gradient(100deg, #fff8e8, #ffeecd 60%, #ffe5c8);
  font-size: 13px; color: #8a5a12; line-height: 1.6;
  box-shadow: 0 1px 0 rgba(160, 120, 40, .06);
}
#wireTip b { color: #b8531a; font-weight: 700; }
@media (max-width: 720px) { #wireTip { margin-left: 16px; margin-right: 16px; } }
.wire-meta b { color: var(--text-2); font-weight: 600; }
.wire-list { max-width: 1120px; margin: 0 auto; padding: 12px 28px 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.wire-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.wire-card:hover { border-color: var(--hairline-2); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.wire-card-top { display: flex; align-items: center; gap: 8px; }
.wire-pf {
  font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; flex: none;
  background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border);
}
.wire-pf.jd { background: var(--gold-bg); color: var(--gold); border-color: var(--gold-border); }
.wire-pf.fz { background: rgba(43, 109, 232, 0.07); color: #2b6de8; border-color: rgba(43, 109, 232, 0.22); }
.wire-pf.tb { background: rgba(232, 89, 12, 0.07); color: #e8590c; border-color: rgba(232, 89, 12, 0.22); }
.wire-cate { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wire-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-left: auto; flex: none; }
.wire-lines { display: flex; flex-direction: column; gap: 10px; }
.wire-line {
  font-size: 13px; line-height: 1.75; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: 9px 11px; white-space: pre-wrap; word-break: break-word;
}
.wire-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.wire-imgs img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--hairline); background: var(--img-ph); transition: transform 0.2s; }
.wire-imgs img:hover { transform: scale(1.05); }
.wire-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.wire-btn {
  height: 32px; padding: 0 15px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 500;
  background: var(--red); color: #fff; border: none; display: inline-flex; align-items: center; gap: 5px;
  transition: background 0.15s;
}
.wire-btn:hover { background: var(--red-strong); }
.wire-btn.ghost { background: transparent; border: 1px solid var(--hairline-2); color: var(--text-2); }
.wire-btn.ghost:hover { color: var(--text); border-color: var(--text-3); }
.wire-btn:disabled { opacity: 0.55; cursor: not-allowed; }
/* 线报商品行里的「收藏」星标：跟转链按钮并排，做成胶囊小按钮 */
.wire-foot > .star-btn {
  position: static; top: auto; right: auto;
  width: auto; height: 32px; padding: 0 13px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border-color: var(--hairline-2); color: var(--text-2);
}
.wire-foot > .star-btn span { font-size: 12.5px; font-weight: 500; line-height: 1; }
.wire-foot > .star-btn:hover { color: var(--gold); border-color: var(--gold-border); background: var(--gold-bg); transform: none; }
.wire-foot > .star-btn.on { color: #b8860b; border-color: rgba(224, 168, 0, .5); background: #fff8e1; }
/* 「专属优惠」小标 —— 表示该入口能生成带推广标识的链接 */
.rebate-dot {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; line-height: 16px; font-weight: 600; letter-spacing: 0.2px;
  color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 26%, transparent);
  vertical-align: middle; white-space: nowrap;
}
.rebate-dot.soon {
  color: var(--text-3);
  background: var(--surface-3);
  border-color: var(--hairline-2);
}
/* 骨架屏 */
.wire-sk {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 16px; display: flex; flex-direction: column; gap: 11px;
}
.wire-sk-top { display: flex; align-items: center; gap: 10px; }
.wire-sk-badge { width: 46px; height: 20px; border-radius: 999px; flex: none; }
.wire-sk-line { height: 12px; border-radius: 6px; }
.wire-sk-line.w90 { width: 90%; } .wire-sk-line.w75 { width: 75%; } .wire-sk-line.w60 { width: 60%; } .wire-sk-line.w40 { width: 40%; }
.wire-sk-imgs { display: flex; gap: 8px; }
.wire-sk-imgs span { width: 88px; height: 88px; border-radius: var(--r-sm); }
.wire-sk-btn { width: 128px; height: 32px; border-radius: var(--r-sm); }
.wire-sk-badge, .wire-sk-line, .wire-sk-imgs span, .wire-sk-btn {
  background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%);
  background-size: 200% 100%; animation: wire-shimmer 1.4s ease infinite;
}
@keyframes wire-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
/* 空态 / 错误态 */
.wire-empty {
  grid-column: 1 / -1; text-align: center; padding: 52px 20px;
  background: var(--surface); border: 1px dashed var(--hairline-2); border-radius: var(--r-md);
}
.wire-empty-ico { font-size: 36px; margin-bottom: 10px; }
.wire-empty-text { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.wire-empty-btn {
  font-size: 12.5px; font-weight: 500; color: var(--red);
  background: var(--red-bg); border: 1px solid var(--red-border);
  border-radius: 999px; padding: 7px 18px; transition: all 0.15s;
}
.wire-empty-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.wire-note { font-size: 12px; color: var(--text-3); }
.wire-jd-tip { font-size: 12px; color: var(--gold); background: var(--gold-bg); border: 1px solid var(--gold-border); border-radius: var(--r-sm); padding: 9px 12px; }

/* ============ 羊毛集合（红包 + 本地生活） ============ */
.coll-head { max-width: 1120px; margin: 0 auto; padding: 26px 28px 0; }
.coll-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.coll-head p { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.coll-section { max-width: 1120px; margin: 0 auto; padding: 24px 28px 0; }
.coll-section h2 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.coll-section h2 .tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); font-weight: 400; }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.coll-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 16px; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--shadow-card);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.coll-card:hover { border-color: var(--hairline-2); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.coll-card.hot { border-color: var(--red-border); }
.coll-top { display: flex; align-items: center; gap: 8px; }
.coll-pf { font-family: var(--font-mono); font-size: 10px; color: var(--text-2); background: var(--surface-3); border-radius: 4px; padding: 2px 7px; flex: none; }
.coll-card.hot .coll-pf { color: var(--red); background: var(--red-bg); }
.coll-name { font-size: 14px; font-weight: 600; }
.coll-desc { font-size: 12.5px; color: var(--text-2); }
.coll-btn {
  margin-top: auto; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--red-border);
  background: var(--red-bg); color: var(--red); font-size: 12px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 5px; transition: background 0.15s, color 0.15s;
}
.coll-btn:hover { background: var(--red); color: #fff; }
.coll-btn.disabled { background: var(--surface-2); border-color: var(--hairline); color: var(--text-3); cursor: not-allowed; }
.coll-soon {
  margin-top: auto; font-size: 11.5px; color: var(--text-3); border: 1px dashed var(--hairline-2);
  border-radius: var(--r-sm); padding: 8px 10px; text-align: center;
}
.life-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.life-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-card);
}
.life-top { display: flex; align-items: center; gap: 10px; }
.life-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-3); border: 1px solid var(--hairline); display: grid; place-items: center; font-size: 19px; flex: none; overflow: hidden; }
.life-ico.img { background: #fff; }
.life-ico.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.life-name { font-size: 14px; font-weight: 600; }
.life-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.life-desc { font-size: 12.5px; color: var(--text-2); }
.status-badge { font-size: 11px; padding: 2px 8px; border-radius: 99px; flex: none; }
.status-badge.on { color: var(--red); background: var(--red-bg); border: 1px solid var(--red-border); }
.status-badge.soon { color: var(--text-3); background: var(--surface-3); border: 1px solid var(--hairline); }
.life-btn {
  margin-top: auto; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--hairline-2);
  background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 5px; transition: color 0.15s, border-color 0.15s;
}
.life-btn:hover { color: var(--text); border-color: var(--text-3); }
.life-btn.on { background: var(--red); border-color: var(--red); color: #fff; }
.life-btn.on:hover { background: var(--red-strong); }
.coll-note {
  max-width: 1120px; margin: 18px auto 0; padding: 0 28px;
  font-size: 12px; color: var(--text-3); line-height: 1.7;
}

/* ============ Hero CTA ============ */
.hero-cta {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 22px; border-radius: 99px;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(217, 56, 50, 0.25);
  transition: background 0.15s, transform 0.15s;
}
.hero-cta:hover { background: var(--red-strong); transform: translateY(-1px); }

/* ============ 双11 福利清单（红包专区横幅） ============ */
.rp-wide {
  margin-top: 14px; display: flex; align-items: center; gap: 16px;
  background: linear-gradient(100deg, var(--surface) 0%, #fff8f0 100%);
  border: 1px solid var(--gold-border); border-radius: var(--r-lg);
  padding: 18px 22px; box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.rp-wide:hover { border-color: var(--gold); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.rp-wide-ico {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center; font-size: 22px;
  background: var(--gold-bg); border: 1px solid var(--gold-border);
}
.rp-wide-body { flex: 1; min-width: 0; }
.rp-wide-title { font-size: 15px; font-weight: 700; }
.rp-wide-copy { font-size: 12.5px; color: var(--text-2); margin-top: 3px; line-height: 1.7; }
.rp-wide-btn {
  flex: none; height: 36px; padding: 0 18px; border-radius: 99px;
  background: var(--gold); color: #fff; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.rp-wide-btn:hover { filter: brightness(1.08); }

/* ============ 首页找券入口卡 ============ */
.chat-cta {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 26px 28px; display: flex; gap: 20px; align-items: flex-start;
}
.cta-mascot {
  width: 76px; height: 76px; border-radius: 20px; flex: none;
  background: var(--red-bg); border: 1px solid var(--red-border);
  display: grid; place-items: center;
}
.cta-mascot .logo-svg { width: 56px; height: 56px; }
.cta-body { flex: 1; min-width: 0; }
.cta-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.cta-sub { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.7; }
.cta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cta-chips .wchip { cursor: pointer; }
.cta-btn {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 22px; border-radius: 99px;
  background: var(--red); color: #fff; font-size: 13.5px; font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}
.cta-btn:hover { background: var(--red-strong); transform: translateY(-1px); }

/* ============ 工具箱入口 ============ */
.tool-links { display: flex; flex-direction: column; gap: 8px; }
.tool-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--hairline);
  transition: border-color 0.15s, background 0.15s;
}
.tool-link:hover { border-color: var(--red-border); background: var(--red-bg); }
.tl-ico {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 18px;
  background: var(--surface); border: 1px solid var(--hairline);
}
.tl-body { flex: 1; min-width: 0; }
.tl-body b { display: block; font-size: 13.5px; font-weight: 600; }
.tl-body i { display: block; font-size: 11.5px; color: var(--text-3); font-style: normal; margin-top: 2px; }
.tl-go { font-size: 18px; color: var(--text-3); flex: none; }
.tool-link:hover .tl-go { color: var(--red); }

/* ============ 通用子页面（对话/微信群/创作者/凑单/消灭小红包） ============ */
.page-wrap { max-width: 1120px; margin: 0 auto; padding: 28px 28px 40px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
.page-head p { font-size: 13px; color: var(--text-2); margin-top: 7px; line-height: 1.7; }
.page-head p b { color: var(--red); }

/* ---- 对话页 ---- */
.chat-page { max-width: 880px; margin: 0 auto; padding: 18px 22px 40px; }
.rp-pin {
  position: sticky; top: 56px; z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 10px 0 12px;
}
.rp-pin-card {
  display: flex; align-items: center; gap: 9px; text-align: left;
  background: var(--surface); border: 1px solid var(--red-border);
  border-radius: var(--r-md); padding: 10px 12px;
  box-shadow: var(--shadow-card); cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.rp-pin-card:hover { border-color: var(--red); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.rp-pin-card.jd { border-color: var(--gold-border); }
.rp-pin-card.jd:hover { border-color: var(--gold); }
.rp-pin-card.list { border-color: var(--gold-border); background: linear-gradient(100deg, var(--surface) 0%, #fff8f0 100%); }
.rp-pin-card.list:hover { border-color: var(--gold); }
.rp-pin-ico {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-size: 16px;
  background: var(--red-bg); border: 1px solid var(--red-border);
}
.rp-pin-card.jd .rp-pin-ico, .rp-pin-card.list .rp-pin-ico { background: var(--gold-bg); border-color: var(--gold-border); }
.rp-pin-body { flex: 1; min-width: 0; }
.rp-pin-name { display: block; font-size: 12.5px; font-weight: 600; }
.rp-pin-sub { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.rp-pin-go { flex: none; font-size: 11.5px; font-weight: 600; color: var(--red); }
.rp-pin-card.jd .rp-pin-go, .rp-pin-card.list .rp-pin-go { color: var(--gold); }

.chat-page-panel { min-height: 62vh; max-height: 68vh; }
.chat-back {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-size: 17px;
  background: var(--surface-2); border: 1px solid var(--hairline); color: var(--text-2);
}
.chat-back:hover { color: var(--text); border-color: var(--hairline-2); }
.chat-page-tip { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 14px; }

/* ---- 微信群页 ---- */
.wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.wx-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 18px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.wx-card:hover { border-color: var(--red-border); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.wx-qr {
  width: 180px; height: 180px; border-radius: var(--r-md);
  border: 1px solid var(--hairline); background: var(--img-ph);
  overflow: hidden; display: grid; place-items: center;
}
.wx-qr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.wx-tag {
  font-size: 10.5px; font-weight: 500; color: var(--red);
  background: var(--red-bg); border: 1px solid var(--red-border);
  border-radius: 99px; padding: 1px 8px;
}
.wx-desc { font-size: 12px; color: var(--text-2); text-align: center; }
.wx-save {
  height: 30px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--red-border); background: var(--red-bg); color: var(--red);
  font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px;
}
.wx-save:hover { background: var(--red); color: #fff; }
.wx-note {
  margin-top: 22px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 18px 22px;
}
.wx-note h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.wx-note ol { padding-left: 20px; }
.wx-note li { font-size: 12.5px; color: var(--text-2); line-height: 2; }
.wx-note a { color: var(--red); }
.wx-note a:hover { text-decoration: underline; }

/* ---- 创作者介绍页 ---- */
.about-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 26px 28px; margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  display: flex; gap: 22px; align-items: flex-start;
}
.about-mascot {
  width: 96px; height: 96px; border-radius: 22px; flex: none;
  background: var(--red-bg); border: 1px solid var(--red-border);
  display: grid; place-items: center;
}
.about-mascot .logo-svg { width: 68px; height: 68px; }
.about-body { flex: 1; min-width: 0; }
.about-body h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.about-body p { font-size: 13.5px; color: var(--text-2); line-height: 1.9; margin-bottom: 10px; }
.about-body p b { color: var(--text); }
.about-features { list-style: none; margin: 6px 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.about-features li {
  font-size: 12.5px; color: var(--text-2); line-height: 1.6;
  padding-left: 18px; position: relative;
}
.about-features li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.about-features li b { color: var(--text); }
.about-punch { font-size: 14px; color: var(--text); font-weight: 600; background: rgba(217, 56, 50, .06); border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; padding: 11px 15px; line-height: 1.8; }
.about-free {
  font-size: 12.5px; color: var(--red); font-weight: 600;
  background: var(--red-bg); border: 1px solid var(--red-border);
  border-radius: var(--r-sm); padding: 8px 12px; display: inline-block;
}
.about-card.creator { border-color: var(--red-border); background: linear-gradient(140deg, var(--surface) 0%, #fffafa 100%); }
.creator-badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--red); background: var(--red-bg); border: 1px solid var(--red-border);
  border-radius: 99px; padding: 2px 11px; margin-bottom: 8px;
}
.about-card.creator h2 { font-size: 20px; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.social-card {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 13px 14px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.social-card:hover { border-color: var(--red-border); background: var(--red-bg); transform: translateY(-2px); }
.social-ico {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 19px;
  background: var(--surface); border: 1px solid var(--hairline);
}
.social-info { flex: 1; min-width: 0; }
.social-name { font-size: 13.5px; font-weight: 600; }
.social-id { font-size: 11px; font-weight: 400; color: var(--text-3); }
.social-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.social-go { flex: none; font-size: 11.5px; font-weight: 600; color: var(--red); }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.support-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 14px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.support-item:hover { border-color: var(--gold-border); background: var(--gold-bg); transform: translateY(-2px); }
.support-ico { font-size: 21px; flex: none; }
.support-item b { display: block; font-size: 13px; font-weight: 600; }
.support-item i { display: block; font-size: 11px; color: var(--text-3); font-style: normal; margin-top: 2px; }

/* ---- 凑单工具页 ---- */
.ct-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.ct-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.ct-count {
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--red);
  background: var(--red-bg); border-radius: 99px; padding: 2px 9px;
}
.ct-add-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: stretch; }
.ct-add-row textarea {
  flex: 1; min-height: 66px; resize: vertical;
  background: var(--surface-2); border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm); padding: 10px 12px;
  color: var(--text); font-size: 13px; font-family: var(--font-sans); outline: none;
}
.ct-add-row textarea:focus { border-color: var(--red); background: var(--surface); }
.ct-add-row input {
  flex: 1; min-width: 0; height: 38px;
  background: var(--surface-2); border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm); padding: 0 12px;
  color: var(--text); font-size: 13.5px; font-family: var(--font-sans); outline: none;
}
.ct-add-row input:focus { border-color: var(--red); background: var(--surface); }
.ct-add-row input.grow { flex: 2; }
.ct-btn {
  flex: none; height: 38px; padding: 0 18px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--hairline-2);
  color: var(--text); font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ct-btn:hover { border-color: var(--red); color: var(--red); }
.ct-btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.ct-btn.primary:hover { background: var(--red-strong); }
.ct-btn.small { height: 30px; padding: 0 12px; font-size: 12px; }
.ct-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ct-add-note { font-size: 11.5px; color: var(--text-3); line-height: 1.7; }
.ct-search-result {
  margin-top: 14px; border: 1px solid var(--hairline);
  border-radius: var(--r-md); overflow: hidden;
}
.ct-sr-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--hairline);
  font-size: 13px; font-weight: 600;
}
.ct-sr-close { cursor: pointer; color: var(--text-3); padding: 0 4px; }
.ct-sr-close:hover { color: var(--text); }
.ct-sr-list { display: flex; flex-direction: column; max-height: 380px; overflow-y: auto; }
.ct-sr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--hairline);
}
.ct-sr-item:last-child { border-bottom: none; }
.ct-rows { display: flex; flex-direction: column; }
.ct-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px; border-bottom: 1px dashed var(--hairline);
}
.ct-row:last-child { border-bottom: none; }
.ct-row.manual { opacity: 0.85; }
.ct-row-img {
  width: 48px; height: 48px; border-radius: var(--r-sm); flex: none;
  background: var(--img-ph); border: 1px solid var(--hairline);
  overflow: hidden; display: grid; place-items: center;
  font-size: 16px; color: var(--text-3);
}
.ct-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-row-noimg { font-size: 13px; color: var(--text-3); }
.ct-row-main { flex: 1; min-width: 0; }
.ct-row-title {
  font-size: 13px; font-weight: 500; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ct-row-tag {
  font-size: 10px; font-weight: 400; color: var(--text-3);
  border: 1px solid var(--hairline-2); border-radius: 4px; padding: 0 5px; margin-left: 6px;
}
.ct-row-price { display: flex; align-items: baseline; gap: 7px; margin-top: 3px; flex-wrap: wrap; }
.ct-row-now { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--red); }
.ct-row-now::before { content: "¥"; font-size: 10px; margin-right: 1px; }
.ct-row-old { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); text-decoration: line-through; }
.ct-row-coupon {
  font-family: var(--font-mono); font-size: 10px; color: var(--red);
  background: var(--red-bg); border-radius: 4px; padding: 0 5px;
}
.ct-row-qty { display: flex; align-items: center; gap: 4px; flex: none; }
.ct-qty-btn {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--hairline-2);
  color: var(--text-2); font-size: 13px; line-height: 1;
  display: grid; place-items: center;
}
.ct-qty-btn:hover { color: var(--red); border-color: var(--red-border); }
.ct-qty-input {
  width: 40px; height: 24px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--hairline-2);
  border-radius: 6px; color: var(--text);
  font-size: 12px; font-family: var(--font-mono); outline: none;
}
.ct-row-del {
  width: 26px; height: 26px; border-radius: 6px; flex: none;
  background: transparent; border: none; color: var(--text-3); font-size: 12px;
}
.ct-row-del:hover { color: var(--red); background: var(--red-bg); }
.ct-empty {
  text-align: center; font-size: 12.5px; color: var(--text-3);
  padding: 26px 0; border: 1px dashed var(--hairline-2); border-radius: var(--r-md);
}
.ct-rule { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.ct-rule .field input { width: 100px; }
.ct-rule-note { font-size: 12px; color: var(--text-2); padding-bottom: 8px; }
.ct-summary {
  margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.ct-sum-item {
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 13px 14px; text-align: center;
}
.ct-sum-num { display: block; font-family: var(--font-mono); font-size: 19px; font-weight: 700; }
.ct-sum-num.warn { color: var(--gold); }
.ct-sum-num.ok { color: #1a9e5c; }
.ct-sum-num.save { color: var(--red); }
.ct-sum-lbl { display: block; font-size: 11px; color: var(--text-3); margin-top: 3px; }
.ct-rec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 14px; }
.ct-rec {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 11px 12px;
  transition: border-color 0.15s;
}
.ct-rec:hover { border-color: var(--red-border); }
.ct-rec-img {
  width: 46px; height: 46px; border-radius: var(--r-sm); flex: none;
  background: var(--img-ph); border: 1px solid var(--hairline);
  overflow: hidden; display: grid; place-items: center;
}
.ct-rec-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-rec-main { flex: 1; min-width: 0; }
.ct-rec-title {
  font-size: 12.5px; font-weight: 500; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ct-rec-price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; flex-wrap: wrap; }
.ct-rec-badge {
  display: inline-block; margin-top: 4px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--gold);
  background: var(--gold-bg); border-radius: 4px; padding: 1px 7px;
}

/* ---- 消灭小红包专区 ---- */
.xhd-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.xhd-tip { font-size: 12.5px; color: var(--text-2); }
.xhd-spacer { flex: 1; }
.xhd-link { font-size: 12.5px; color: var(--red); font-weight: 500; }
.xhd-link:hover { text-decoration: underline; }
.xhd-badge {
  font-size: 11px; font-weight: 600; color: var(--gold);
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: 4px; padding: 1px 7px;
}

/* ---- 淘金币：首页紧凑横幅 + 独立页 ---- */
a.coin-banner {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  max-width: 1120px; margin: 26px auto 0; padding: 16px 22px;
  background: linear-gradient(100deg, #fffaf0 0%, #fff7ea 55%, #fff3d6 100%);
  border: 1px solid #f0dcb4; border-radius: var(--r-lg);
  transition: box-shadow 0.18s, transform 0.18s;
}
a.coin-banner:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
a.coin-banner .coin-emoji { font-size: 24px; line-height: 1; }
.coin-banner-body { flex: 1; min-width: 0; }
.coin-banner-body b { display: block; font-size: 14px; color: #8a5a12; margin-bottom: 3px; }
.coin-banner-body i { display: block; font-style: normal; font-size: 12px; color: #a97b2c; }
a.coin-banner .coin-btn {
  flex: none; font-size: 12px; font-weight: 600; color: #8a5a12;
  background: rgba(255,255,255,0.75);
  border: 1px solid #e6c98f;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
a.coin-banner:hover .coin-btn { background: #f0a92e; color: #fff; border-color: #f0a92e; }

.coin-page .coin-hero-card {
  background: linear-gradient(100deg, #fffaf0 0%, #fff3da 60%, #ffedcb 100%);
  border: 1px solid #f2ddb0;
}
.coin-taoword {
  margin-top: 12px; font-size: 12px; color: #a97b2c;
  background: rgba(255,255,255,0.65); border: 1px dashed #e6c98f;
  border-radius: var(--r-sm); padding: 8px 12px; user-select: all;
}
.coin-steps-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.coin-tips, .coin-updates {
  margin-top: 18px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 18px 22px;
}
.coin-tips-head { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.coin-tips p, .coin-updates p { font-size: 13px; line-height: 1.7; color: var(--text-2); margin: 0; }
.coin-tips a { color: var(--red); font-weight: 600; text-decoration: none; }
.coin-tips a:hover { text-decoration: underline; }
.coin-updates ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.coin-updates li { font-size: 13px; line-height: 1.65; color: var(--text-2); }
.coin-updates li b { color: var(--text); }
.page-back { margin-top: 22px; }
.page-back a { font-size: 13px; color: var(--text-2); text-decoration: none; }
.page-back a:hover { color: var(--red); }

/* ============ 响应式 ============ */

/* ---- 首页紧凑对话（与独立页共用核心，仅尺寸更紧凑） ---- */
.home-chat { min-height: 500px; max-height: 640px; }
.home-chat .chat-body { padding: 14px 16px; }
.home-chat .chat-welcome { padding: 20px 14px 16px; }
.home-chat .chat-welcome .big { font-size: 18px; }
.home-chat .chat-welcome .sub { font-size: 12.5px; margin-bottom: 14px; }
.chat-head .more { font-size: 12px; color: var(--red); white-space: nowrap; }
.chat-head .more:hover { text-decoration: underline; }

/* ---- 淘金币互动（双11 瓜分20亿） ---- */
.coin-card {
  display: flex; gap: 22px; align-items: stretch;
  background: linear-gradient(135deg, #fff9ec 0%, #fff3d6 55%, #ffe9c2 100%);
  border: 1px solid #f2d9a0; border-radius: var(--r-lg);
  padding: 24px 26px; box-shadow: var(--shadow-card);
}
.coin-main { flex: 1; min-width: 0; }
.coin-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #8a5a00;
  background: rgba(255, 255, 255, 0.72); border: 1px solid #ecc877;
  border-radius: 99px; padding: 5px 13px; margin-bottom: 12px;
}
.coin-badge b { color: var(--red); font-size: 14px; }
.coin-title { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; color: #4a3200; }
.coin-desc { font-size: 13px; color: #7a5c1e; margin: 8px 0 16px; max-width: 560px; }
.coin-steps { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.coin-step {
  flex: 1; min-width: 150px;
  background: rgba(255, 255, 255, 0.66); border: 1px solid #f0dcae;
  border-radius: var(--r-md); padding: 12px 14px;
}
.coin-step i {
  font-style: normal; display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  margin-right: 7px;
}
.coin-step b { font-size: 13px; color: #4a3200; }
.coin-step span { display: block; font-size: 12px; color: #8a6c2c; margin-top: 4px; }
.coin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.coin-btn {
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  color: #fff; background: var(--red); border: 1px solid var(--red);
  border-radius: var(--r-sm); padding: 10px 20px;
  transition: background 0.15s, transform 0.15s;
}
.coin-btn:hover { background: var(--red-strong); transform: translateY(-1px); }
.coin-btn.ghost { color: #8a5a00; background: rgba(255,255,255,0.7); border-color: #e5c477; }
.coin-btn.ghost:hover { background: #fff; }
.coin-note { font-size: 11.5px; color: #a07c2e; margin-top: 12px; }
.coin-side {
  flex: none; width: 168px; align-self: stretch;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: rgba(255, 255, 255, 0.55); border: 1px dashed #e8c887;
  border-radius: var(--r-md); padding: 18px 10px;
}
.coin-emoji { font-size: 34px; }
.coin-big { font-size: 26px; font-weight: 800; color: var(--red); letter-spacing: -0.02em; }
.coin-side-sub { font-size: 11.5px; color: #8a6c2c; }

/* ---- Skill 页 ---- */
.skill-hero {
  max-width: 880px; margin: 0 auto; padding: 30px 22px 8px; text-align: center;
}
.skill-hero .skill-ico { font-size: 44px; }
.skill-hero h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 8px; }
.skill-hero .sub { font-size: 14px; color: var(--text-2); max-width: 560px; margin: 0 auto; }
.skill-hero .skill-cmd {
  display: inline-block; margin-top: 16px; font-family: var(--font-mono);
  font-size: 14px; color: var(--red); background: var(--red-bg);
  border: 1px solid var(--red-border); border-radius: var(--r-sm); padding: 9px 18px;
}
.skill-body { max-width: 880px; margin: 0 auto; padding: 22px 22px 50px; }
.skill-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.skill-feat {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-card);
}
.skill-feat .ico { font-size: 24px; }
.skill-feat h3 { font-size: 14.5px; margin: 10px 0 6px; }
.skill-feat p { font-size: 12.5px; color: var(--text-2); }
.skill-sec {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.skill-sec h2 { font-size: 17px; margin-bottom: 12px; }
.skill-sec ol, .skill-sec ul { padding-left: 20px; display: grid; gap: 9px; }
.skill-sec li { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.skill-sec li b { color: var(--text); }
.skill-sec code {
  font-family: var(--font-mono); font-size: 12px; color: var(--red);
  background: var(--red-bg); border-radius: 5px; padding: 1.5px 7px;
}
.skill-note {
  font-size: 12.5px; color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--hairline); border-left: 3px solid var(--gold);
  border-radius: var(--r-sm); padding: 12px 16px; line-height: 1.7;
}

@media (max-width: 1020px) {
  .home-grid { grid-template-columns: 1fr; }
  .chat-panel { min-height: 480px; max-height: 620px; }
}
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static;
    flex-direction: row; align-items: center; gap: 10px;
    border-right: none; border-bottom: 1px solid var(--hairline);
    padding: 10px 14px; overflow-x: auto;
  }
  .brand { padding: 0 8px 0 2px; }
  .nav-label, .nav-group, .side-foot { display: none; }
  .side-nav { flex-direction: row; }
  .side-nav a { white-space: nowrap; }
  .topbar { padding: 0 16px; }
  .rp-band, .home-grid, .section { padding-left: 16px; padding-right: 16px; }
  .rp-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  /* 新页面 */
  .rp-pin { position: static; grid-template-columns: 1fr; }
  .chat-cta { flex-direction: column; align-items: center; text-align: center; }
  .cta-chips { justify-content: center; }
  .about-card { flex-direction: column; }
  .about-features, .social-grid, .support-grid { grid-template-columns: 1fr; }
  .ct-summary { grid-template-columns: repeat(2, 1fr); }
  .rp-wide { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .topnav { padding: 0 14px; gap: 10px; }
  .nav-brand span { display: none; }
  .nav-links a { padding: 6px 9px; font-size: 12px; }
  .hero { padding: 20px 16px 4px; }
  .hero-slogan { font-size: 23px; }
  .hero-mascot { width: 72px; height: 72px; border-radius: 18px; }
  .hero-mascot .logo-svg { width: 52px; height: 52px; }
  .rp-band, .home-grid, .section, .wire-head, .wire-tabs, .wire-list, .coll-head, .coll-section, .coll-note, .wire-meta { padding-left: 16px; padding-right: 16px; }
  .wire-list { grid-template-columns: 1fr; }
  .wire-head-side { width: 100%; }
  .rp-grid { grid-template-columns: 1fr; }
  /* 新页面 */
  .page-wrap { padding: 20px 16px 32px; }
  .chat-page { padding: 12px 14px 32px; }
  .chat-page-panel { max-height: none; min-height: 56vh; }
  .wx-qr { width: 150px; height: 150px; }
  .ct-add-row { flex-wrap: wrap; }
  .ct-add-row .ct-btn { flex: 1; }
  .ct-row-qty { display: none; }
  .ct-rec-list { grid-template-columns: 1fr; }
}

/* ---- 新增模块响应式 ---- */
@media (max-width: 900px) {
  .coin-card { flex-direction: column; padding: 18px 16px; }
  .coin-side { width: 100%; flex-direction: row; gap: 10px; padding: 12px; }
  .coin-emoji { font-size: 24px; }
  .coin-big { font-size: 20px; }
  .skill-feats { grid-template-columns: 1fr; }
  .skill-hero h1 { font-size: 22px; }
  .home-chat { min-height: 440px; max-height: 560px; }
}

/* about 页 code 行内样式 */
.about-card code {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--red);
  background: var(--red-bg); border: 1px solid var(--red-border);
  border-radius: 6px; padding: 2px 7px;
}

/* ---- 独立页可隐藏侧栏（chat/tipoff/coutao/xhd/coin/collection/wechat/about/skill） ---- */
.page-sidebar {
  position: fixed; top: 56px; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 60;
  display: flex; flex-direction: column; gap: 18px; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--hairline);
  padding: 16px 12px;
  transition: transform 0.22s ease;
}
body.has-page-side .page-main-wrap { margin-left: var(--sidebar-w); transition: margin-left 0.22s ease; }
body.has-page-side.ps-closed .page-main-wrap { margin-left: 0; }
body.has-page-side.ps-closed .page-sidebar { transform: translateX(-100%); }
/* 侧栏开关：边缘拉手式。展开态贴在侧栏右边缘（left=sidebar-w-15，压在侧栏
    自身上，不挡内容）；收起态贴屏幕左边缘（left:0）。细长条+方向箭头，
    垂直居中，悬停微涨并染强调色 */
.side-toggle {
  position: fixed; top: 50%; transform: translateY(-50%);
  left: calc(var(--sidebar-w) - 15px); z-index: 62;
  width: 15px; height: 72px; padding: 0; cursor: pointer;
  border: 1px solid var(--hairline); border-left: none;
  border-radius: 0 10px 10px 0;
  background: var(--surface); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  transition: left 0.22s ease, width 0.18s ease, color 0.15s, border-color 0.15s, background 0.15s;
}
.side-toggle:hover {
  width: 22px; color: var(--red);
  border-color: var(--red-border); background: var(--surface-2);
}
body.has-page-side.ps-closed .side-toggle { left: 0; }
body.has-page-side.ps-closed .side-toggle:hover { left: 0; }
.side-scrim {
  display: none; position: fixed; inset: 0; z-index: 59;
  background: rgba(20, 24, 30, 0.35);
}
@media (max-width: 900px) {
  .side-scrim { display: block; }
  body.ps-closed .side-scrim { display: none; }
}
@media (max-width: 900px) {
  body.has-page-side .page-main-wrap { margin-left: 0; }
}

/* ---- Skill 页：详细安装教程 ---- */
.sk-steps { display: grid; gap: 14px; }
.sk-path {
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 14px;
}
.sk-path.best { border-color: var(--red-border); box-shadow: inset 3px 0 0 var(--red); }
.sk-path-head { margin-bottom: 4px; }
.sk-path-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--red); background: var(--red-bg); border: 1px solid var(--red-border);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 8px;
}
.sk-path h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.sk-path p { font-size: 13px; line-height: 1.75; color: var(--text-2); margin: 0 0 6px; }
.sk-path code, .sk-step code {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-2); word-break: break-all;
}
.sk-ol { margin: 6px 0 4px; padding-left: 20px; display: grid; gap: 7px; }
.sk-ol li { font-size: 13px; line-height: 1.7; color: var(--text-2); }
.sk-ol b { color: var(--text); }
.sk-dim { color: var(--faint); font-size: 12.5px; }
.sk-step {
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 16px 18px;
}
.sk-step-no {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--red); background: var(--red-bg); border: 1px solid var(--red-border);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 8px;
}
.sk-step h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.sk-step p { font-size: 13px; line-height: 1.75; color: var(--text-2); margin: 0 0 6px; }
.sk-find, .sk-examples { margin: 6px 0 4px; padding-left: 18px; display: grid; gap: 5px; }
.sk-find li, .sk-examples li { font-size: 13px; line-height: 1.7; color: var(--text-2); }
.sk-find b { color: var(--text); }
.skill-cmd.sm { display: inline-block; font-size: 15px; padding: 8px 16px; margin: 4px 0 6px; }
.sk-alt { font-size: 12.5px; }
.sk-alt code { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); word-break: break-all; }

/* ---- 热门省钱搜索（长尾词入口） ---- */
.hotsearch { margin: 44px 0 0; padding: 26px 28px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--surface-2); }
.hotsearch h2 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.hs-sub { font-size: 13px; color: var(--text-3); margin: 0 0 16px; }
.hs-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.hs-tags a {
  display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--surface-3); border: 1px solid var(--hairline);
  transition: color .15s, border-color .15s, background .15s;
}
.hs-tags a:hover { color: var(--red); border-color: var(--red); background: transparent; }

/* ============================================================
   v2.12 · 我的星标宝贝 + 省钱日报
   ============================================================ */

/* ---- 星标按钮：任何卡片都能挂 ---- */
.act-card, .coll-card, .life-card, .wire-card, .pcard, .sk-item { position: relative; }

.star-btn {
  position: absolute; top: 7px; right: 7px; z-index: 3;
  width: 25px; height: 25px; padding: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--hairline); border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: var(--text-3);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.star-btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; display: block; }
.star-btn:hover { color: var(--gold); border-color: var(--gold-border); background: var(--gold-bg); transform: scale(1.08); }
.star-btn.on { color: #e0a800; border-color: rgba(224, 168, 0, .42); background: #fff8e1; }
.star-btn.on svg { fill: #f8cb47; stroke: #d9a000; }

/* 放在 flex 行里（会场/线报标题行）时：改成静态、靠右 */
.act-top > .star-btn, .coll-top > .star-btn, .life-top > .star-btn, .wire-card-top > .star-btn {
  position: static; margin-left: auto; flex: none;
  background: transparent; border-color: transparent;
}
.act-top > .star-btn:hover, .coll-top > .star-btn:hover,
.life-top > .star-btn:hover, .wire-card-top > .star-btn:hover {
  background: var(--gold-bg); border-color: var(--gold-border);
}
.sk-item > .star-btn { top: 8px; right: 10px; }
.sk-item .sk-info { padding-right: 26px; }

/* ---- 侧栏星标计数角标 ---- */
.side-badge {
  margin-left: auto; min-width: 18px; height: 17px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  display: inline-grid; place-items: center; line-height: 1;
}

/* ---- 首页「我的省钱日报」条 ---- */
.daily-band { max-width: 1120px; margin: 18px auto 0; padding: 0 28px; }
.daily-band:empty { display: none; }
.db-card {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 14px 18px;
  box-shadow: var(--shadow-card);
}
.db-ico { font-size: 22px; }
.db-body { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 3px; }
.db-t { font-size: 13.5px; font-weight: 600; }
.db-s { font-size: 12.5px; color: var(--text-2); }
.db-s b { color: var(--red); font-family: var(--font-mono); }
.db-btn {
  padding: 7px 14px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 500;
  background: var(--red); color: #fff; border: 1px solid var(--red);
  transition: opacity .15s, color .15s, background .15s;
}
.db-btn:hover { opacity: .88; }
.db-btn.ghost { background: transparent; color: var(--gold); border-color: var(--gold-border); }
.db-btn.ghost:hover { background: var(--gold-bg); opacity: 1; }

/* ---- 星标宝贝页 ---- */
.star-head { max-width: 1120px; margin: 0 auto; padding: 26px 28px 0; }
.star-head-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.star-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.star-head p { font-size: 13px; color: var(--text-2); margin-top: 6px; max-width: 680px; }
.star-head-side { padding-top: 6px; }
.star-stat-chip {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  color: var(--gold); font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
}

.star-section { max-width: 1120px; margin: 0 auto; padding: 20px 28px 0; }
.star-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); box-shadow: var(--shadow-card);
}
.star-toolbar .spacer { flex: 1; }
.star-check-all { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; user-select: none; }
.star-check-all input { width: 15px; height: 15px; accent-color: var(--red); cursor: pointer; }
.star-sel-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.star-tool-btn {
  padding: 7px 14px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 500;
  background: var(--red); color: #fff; border: 1px solid var(--red); transition: opacity .15s;
}
.star-tool-btn:hover { opacity: .88; }
.star-tool-btn.ghost { background: transparent; color: var(--text-2); border-color: var(--hairline-2); }
.star-tool-btn.ghost:hover { color: var(--red); border-color: var(--red); background: var(--red-bg); opacity: 1; }

/* 星标分类筛选：实时线报 / 线报好物 / 好价商品 分开看 */
.star-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.star-filter:empty { display: none; }
.star-filter-chip {
  height: 30px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--hairline); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.star-filter-chip:hover { color: var(--text); border-color: var(--text-3); }
.star-filter-chip.on { background: var(--red); color: #fff; border-color: var(--red); }

.star-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-top: 14px; }
.star-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  transition: border-color .15s, box-shadow .15s;
}
.star-card:hover { box-shadow: var(--shadow-hover); }
.star-card.pick { border-color: var(--red-border); background: var(--red-bg); }
.star-pick { flex: none; padding-top: 3px; }
.star-pick input { width: 15px; height: 15px; accent-color: var(--red); cursor: pointer; }
.star-thumb {
  width: 62px; height: 62px; flex: none; border-radius: var(--r-sm);
  background: var(--img-ph); border: 1px solid var(--hairline);
  overflow: hidden; display: grid; place-items: center;
}
.star-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.star-ph { font-size: 22px; }
.star-body { flex: 1; min-width: 0; }
.star-title {
  font-size: 13px; font-weight: 500; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.star-shop { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.star-desc {
  font-size: 12px; color: var(--text-2); line-height: 1.6; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.star-price { display: flex; align-items: baseline; gap: 7px; margin-top: 5px; flex-wrap: wrap; }
.star-price .now { font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: var(--red); }
.star-price .now::before { content: "¥"; font-size: 10px; margin-right: 1px; }
.star-price .old { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); text-decoration: line-through; }
.star-price .save {
  font-family: var(--font-mono); font-size: 11px; color: var(--red);
  background: var(--red-bg); border-radius: 4px; padding: 1px 6px;
}
.star-meta { display: flex; align-items: center; gap: 9px; margin-top: 6px; flex-wrap: wrap; }
.star-type { font-size: 11px; color: var(--gold); background: var(--gold-bg); border-radius: 4px; padding: 1px 6px; }
.star-time { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.star-acts { display: flex; flex-direction: column; gap: 6px; flex: none; }
.star-go, .star-drop {
  padding: 5px 11px; border-radius: var(--r-sm); font-size: 12px; white-space: nowrap;
  border: 1px solid var(--hairline-2); background: transparent; color: var(--text-2);
  transition: color .15s, border-color .15s, background .15s;
}
.star-go { background: var(--red); color: #fff; border-color: var(--red); }
.star-go:hover { opacity: .88; }
.star-drop:hover { color: var(--red); border-color: var(--red); background: var(--red-bg); }

/* 星标 · 实时线报「完整快照」卡：一条线报占满一整行，直接看全文、逐行点开商品 */
.star-card-wire { grid-column: 1 / -1; }
.star-wtop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.star-wlines { display: flex; flex-direction: column; }
.star-wline {
  font-size: 12.5px; line-height: 1.78; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}
.star-wfoot { margin: 4px 0 8px; }
.star-wbtn {
  padding: 4px 12px; border-radius: var(--r-sm); font-size: 12px; font-weight: 500;
  background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border);
  transition: background .15s, color .15s;
}
.star-wbtn:hover { background: var(--red); color: #fff; }
.star-wbtn:disabled { opacity: .55; cursor: default; }
.star-wimgs { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.star-wimgs img {
  width: 78px; height: 78px; object-fit: cover;
  border-radius: var(--r-sm); border: 1px solid var(--hairline);
  background: var(--img-ph);
}
.star-wnote { font-size: 11.5px; line-height: 1.65; color: var(--text-3); margin-top: 5px; }

.star-sum {
  margin-top: 14px; padding: 16px 18px; border-radius: var(--r-md);
  background: linear-gradient(180deg, #fff8f7, var(--surface));
  border: 1px solid var(--red-border);
}
.sum-head { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.sum-cell {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 12px 10px; text-align: center;
}
.sum-cell b { display: block; font-family: var(--font-mono); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.sum-cell span { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.sum-cell.hi { border-color: var(--red-border); background: var(--red-bg); }
.sum-cell.hi b { color: var(--red); }
.sum-note { font-size: 12px; color: var(--text-2); margin-top: 11px; line-height: 1.7; }

.star-empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; }
.star-empty-ico { font-size: 40px; }
.star-empty-t { font-size: 15px; font-weight: 600; margin-top: 10px; }
.star-empty-s { font-size: 13px; color: var(--text-2); margin-top: 7px; max-width: 460px; margin-left: auto; margin-right: auto; line-height: 1.75; }
.star-empty-acts { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.star-empty-btn {
  padding: 9px 18px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
  background: var(--red); color: #fff; border: 1px solid var(--red);
}
.star-empty-btn.ghost { background: transparent; color: var(--text-2); border-color: var(--hairline-2); }
.star-empty-btn.ghost:hover { color: var(--red); border-color: var(--red); }
.star-foot-note { font-size: 12px; color: var(--text-3); margin: 18px 0 40px; line-height: 1.7; }

/* ---- 省钱日报页 ---- */
.daily-head { max-width: 1120px; margin: 0 auto; padding: 26px 28px 0; }
.daily-head-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.daily-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.daily-head p { font-size: 13px; color: var(--text-2); margin-top: 6px; max-width: 680px; }
.daily-head-side { display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.daily-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
.daily-refresh {
  padding: 6px 13px; border-radius: var(--r-sm); font-size: 12.5px;
  border: 1px solid var(--hairline-2); background: var(--surface); color: var(--text-2);
}
.daily-refresh:hover { color: var(--red); border-color: var(--red); }

.daily-section { max-width: 1120px; margin: 0 auto; padding: 26px 28px 0; }
.daily-h2 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.daily-tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); font-weight: 400; }

.daily-mine { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin-top: 14px; }
.mine-hero {
  padding: 22px 22px; border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(135deg, #d93832, #a92420);
  box-shadow: 0 10px 24px rgba(217, 56, 50, .22);
}
.mine-label { font-size: 12.5px; opacity: .85; }
.mine-num { display: flex; align-items: baseline; gap: 2px; margin-top: 6px; }
.mine-num .cur { font-size: 16px; opacity: .9; }
.mine-num b { font-family: var(--font-mono); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.mine-sub { font-size: 12.5px; opacity: .9; margin-top: 10px; line-height: 1.6; }
.mine-sub a { text-decoration: underline; }
.mine-cards { display: grid; grid-template-rows: repeat(3, 1fr); gap: 10px; }
.mine-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-card);
}
.mine-card b { font-family: var(--font-mono); font-size: 19px; font-weight: 700; color: var(--red); }
.mine-card span { font-size: 12.5px; color: var(--text-2); }

.daily-chart-wrap { margin-top: 14px; padding: 16px 18px 10px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.daily-chart-title { font-size: 12.5px; color: var(--text-2); margin-bottom: 12px; }
.daily-chart { display: flex; align-items: flex-end; gap: 8px; height: 132px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.chart-val { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); height: 14px; }
.chart-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.chart-bar {
  width: 100%; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #e8695f, #d93832);
  min-height: 3px;
}
.chart-day { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); margin-top: 6px; }
.daily-tip { font-size: 12.5px; color: var(--text-2); margin-top: 12px; line-height: 1.75; }
.daily-tip b { color: var(--red); }

.daily-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.daily-card {
  padding: 16px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); box-shadow: var(--shadow-card);
}
.daily-card.hi { border-color: var(--red-border); background: linear-gradient(180deg, #fff8f7, var(--surface)); }
.daily-card.wide { grid-column: 1 / -1; }
.dc-k { font-size: 12px; color: var(--text-3); }
.dc-v { font-family: var(--font-mono); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.daily-card.hi .dc-v { color: var(--red); }
.dc-u { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 4px; }
.dc-s { font-size: 11.5px; color: var(--text-2); margin-top: 6px; line-height: 1.6; }
.daily-sk { height: 104px; border-radius: var(--r-md); background: var(--surface-3); animation: dbPulse 1.3s ease-in-out infinite; }
@keyframes dbPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.daily-top { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.top-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.top-row:hover { border-color: var(--red-border); box-shadow: var(--shadow-hover); }
.top-rank {
  width: 22px; height: 22px; flex: none; border-radius: 6px;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  background: var(--surface-3); color: var(--text-3);
}
.top-rank.r1 { background: #d93832; color: #fff; }
.top-rank.r2 { background: #e8695f; color: #fff; }
.top-rank.r3 { background: #f0a89f; color: #fff; }
.top-thumb { width: 42px; height: 42px; flex: none; border-radius: var(--r-sm); overflow: hidden; background: var(--img-ph); border: 1px solid var(--hairline); display: grid; place-items: center; }
.top-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-ph { font-family: var(--font-mono); font-size: 14px; color: var(--text-3); }
.top-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.top-title { font-size: 13px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.top-price { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.top-price s { color: var(--text-3); margin-left: 4px; }
.top-save { flex: none; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--red); }

.daily-push {
  margin-top: 14px; padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card);
}
.daily-push p { font-size: 13px; color: var(--text-2); line-height: 1.8; }
.daily-push ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.daily-push li { font-size: 12.5px; color: var(--text-2); line-height: 1.75; }
.push-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.push-btn {
  padding: 9px 18px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
  background: var(--red); color: #fff; border: 1px solid var(--red);
}
.push-btn:hover { opacity: .88; }
.push-btn.ghost { background: transparent; color: var(--text-2); border-color: var(--hairline-2); }
.push-btn.ghost:hover { color: var(--red); border-color: var(--red); }
.push-note { font-size: 11.5px; color: var(--text-3); margin-top: 12px; }

/* ---- 线报「加载更多」 ---- */
.wire-more {
  display: block; width: 100%; margin: 14px 0 0; padding: 12px;
  border: 1px dashed var(--hairline-2); border-radius: var(--r-md);
  background: transparent; color: var(--text-2); font-size: 13px;
}
.wire-more:hover { color: var(--red); border-color: var(--red); background: var(--red-bg); }

@media (max-width: 720px) {
  .star-grid { grid-template-columns: 1fr; }
  .daily-mine { grid-template-columns: 1fr; }
  .mine-cards { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .mine-card { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; }
  .mine-num b { font-size: 32px; }
  .star-head, .star-section, .daily-head, .daily-section, .daily-band { padding-left: 16px; padding-right: 16px; }
  .star-card { flex-wrap: wrap; }
  .star-acts { flex-direction: row; width: 100%; }
}


/* 窄屏补丁（必须放在文件末尾：基础规则在后面会覆盖前面的 media query） */
@media (max-width: 720px) {
  /* 淘金币三步卡：三列网格被 min-width:150px 撑破导致横向溢出，窄屏改单列 */
  .coin-steps-page { grid-template-columns: 1fr; }
}

/* ============================================================
   淘金币互助广场（coin.html）
   —— 发布口令 / 助力回访 / 组队拉人，全在这套样式里
   ============================================================ */
.pg-banner {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r-md);
  background: linear-gradient(100deg, #fff8e8, #ffeecd 55%, #ffe5c8);
  border: 1px solid #f2dcae; color: #7d5b1c; font-size: 12.5px; line-height: 1.5;
}
.pg-banner b { color: #a8701a; }
.pg-banner i { font-style: normal; color: #b08b45; }

/* ---- 发布卡 ---- */
.pg-pub {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 15px 16px;
  box-shadow: var(--shadow-card); margin-bottom: 14px;
}
.pg-pub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 11px; }
.pg-pub-head b { font-size: 15px; letter-spacing: -0.01em; }
.pg-quota { display: flex; gap: 6px; flex-wrap: wrap; }
.pg-q {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--hairline); color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.pg-q b { color: var(--text); }
.pg-q.full { color: var(--red); border-color: var(--red-border); background: var(--red-bg); }
.pg-q.full b { color: var(--red); }

.pg-text {
  width: 100%; min-height: 72px; resize: vertical; display: block;
  padding: 11px 12px; border: 1px solid var(--hairline-2); border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.6;
  background: var(--surface-2); color: var(--text); outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.pg-text::placeholder { color: var(--text-3); font-family: var(--font-sans); }
.pg-text:focus { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px var(--red-bg); }

.pg-team { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.pg-team input, .pg-team select {
  padding: 9px 11px; border-radius: var(--r-md); border: 1px solid var(--hairline-2);
  background: var(--surface-2); font-size: 13px; color: var(--text); outline: none;
  font-family: inherit;
}
.pg-team input { flex: 1; min-width: 170px; }
.pg-team input:focus, .pg-team select:focus { border-color: var(--red); background: #fff; }

.pg-actions { display: flex; gap: 8px; align-items: center; margin-top: 11px; flex-wrap: wrap; }
.pg-btn {
  border: 1px solid var(--red); background: var(--red); color: #fff;
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  transition: background .18s, transform .12s, opacity .18s;
}
.pg-btn:hover { background: var(--red-strong); transform: translateY(-1px); }
.pg-btn:active { transform: none; }
.pg-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.pg-btn.ghost { background: #fff; color: var(--text-2); border-color: var(--hairline-2); }
.pg-btn.ghost:hover { color: var(--red); border-color: var(--red); background: var(--red-bg); }
.pg-hint { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.pg-hint.warn { color: var(--red); font-weight: 600; }

/* ---- Tab ---- */
.pg-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.pg-tab {
  flex: 1; padding: 10px 8px; border-radius: var(--r-md);
  border: 1px solid var(--hairline); background: var(--surface);
  font-size: 13.5px; color: var(--text-2); font-weight: 600;
  transition: background .18s, color .18s, border-color .18s;
}
.pg-tab b { font-size: 12px; opacity: .75; margin-left: 3px; font-variant-numeric: tabular-nums; }
.pg-tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.pg-tab.active b { opacity: .9; }

/* ---- 卡片流 ---- */
.pg-list { display: grid; gap: 10px; }
.pg-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 12px 14px 13px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .18s, border-color .18s;
}
.pg-card:hover { box-shadow: var(--shadow-hover); }
.pg-card.mine { border-color: var(--gold-border); background: linear-gradient(180deg, #fffdf6, #fff 55%); }
.pg-card.done { opacity: .6; }

.pg-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }
.pg-tag {
  padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border);
}
.pg-tag.team { background: var(--gold-bg); color: #8a5a12; border-color: var(--gold-border); }
.pg-tag.owner { background: #fff3d6; color: #9a6a00; border-color: #f0d9a8; }
.pg-time { margin-left: auto; white-space: nowrap; }

.pg-word {
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  letter-spacing: .2px; color: var(--text); margin: 7px 0 0;
  word-break: break-all; line-height: 1.45;
}
.pg-name { font-size: 14px; font-weight: 700; margin: 6px 0 0; color: var(--text); }
.pg-note { font-size: 12.5px; color: var(--text-2); margin-top: 3px; word-break: break-all; }
.pg-bar { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 10px 0 5px; }
.pg-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f3c04a, #e08b1e); transition: width .35s; }
.pg-bar.help i { background: linear-gradient(90deg, #f0705a, #d93832); }
.pg-meta { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pg-meta b { color: var(--text-2); }

.pg-card-acts { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.pg-sbtn {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--hairline-2); background: #fff; color: var(--text-2);
  transition: all .18s;
}
.pg-sbtn:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.pg-sbtn.pri { background: var(--red); border-color: var(--red); color: #fff; }
.pg-sbtn.pri:hover { background: var(--red-strong); color: #fff; }
.pg-sbtn.ok { background: #159f57; border-color: #159f57; color: #fff; }
.pg-sbtn.ok:hover { background: #118548; color: #fff; }
.pg-sbtn:disabled { opacity: .45; cursor: not-allowed; }

.pg-empty {
  text-align: center; padding: 32px 18px; color: var(--text-3); font-size: 13px;
  background: var(--surface); border: 1px dashed var(--hairline-2); border-radius: var(--r-lg);
  line-height: 1.8;
}
.pg-empty b { display: block; font-size: 26px; margin-bottom: 8px; }
.pg-sk { height: 92px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: pgSk 1.1s linear infinite; }
@keyframes pgSk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.pg-more {
  display: block; width: 100%; margin: 12px 0 0; padding: 11px;
  border: 1px dashed var(--hairline-2); border-radius: var(--r-md);
  background: transparent; color: var(--text-2); font-size: 13px;
}
.pg-more:hover { color: var(--red); border-color: var(--red); background: var(--red-bg); }

/* ---- 玩法说明 ---- */
.pg-how {
  margin-top: 18px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 15px 17px; box-shadow: var(--shadow-card);
}
.pg-how h3 { font-size: 15px; margin-bottom: 10px; letter-spacing: -0.01em; }
.pg-how ol { padding-left: 19px; display: grid; gap: 7px; font-size: 13px; color: var(--text-2); line-height: 1.65; }
.pg-how b { color: var(--text); }
.pg-how .pg-warn {
  margin-top: 12px; padding: 9px 12px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--hairline);
  font-size: 12px; color: var(--text-3); line-height: 1.65;
}

@media (max-width: 720px) {
  .pg-pub { padding: 13px 14px; }
  .pg-word { font-size: 14px; }
  .pg-card-acts .pg-sbtn { flex: 1; text-align: center; }
  .pg-tab { font-size: 13px; padding: 9px 6px; }
}

.pg-team[hidden] { display: none !important; }   /* display:flex 会盖掉 hidden 属性，必须显式压回来 */

/* ============================================================
   v2.20 互助规则升级：助力留淘宝昵称（登记弹窗）+ 助力者名单
   ============================================================ */
.pg-cta {
  margin-top: 8px; padding: 7px 11px; border-radius: var(--r-md);
  background: linear-gradient(100deg, #fff6e0, #ffe9c6);
  border: 1px solid #f0d9a8; color: #8a5a12;
  font-size: 12.5px; font-weight: 600; line-height: 1.5;
}

.pg-helpers {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  margin-top: 9px; font-size: 11.5px; color: var(--text-3);
}
.pg-hlabel { white-space: nowrap; }
.pg-hchip {
  padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  color: var(--text-2); font-variant-numeric: tabular-nums;
}

/* ---- 登记弹窗（助力 / 入队留淘宝昵称） ---- */
.pg-mask {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(17, 18, 20, .46);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: pgFade .16s ease;
}
@keyframes pgFade { from { opacity: 0; } to { opacity: 1; } }
.pg-modal {
  width: 100%; max-width: 340px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 18px 18px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  animation: pgPop .18s ease;
}
@keyframes pgPop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.pg-modal b { font-size: 15.5px; letter-spacing: -0.01em; }
.pg-modal p {
  margin: 7px 0 12px; font-size: 12.5px; color: var(--text-2); line-height: 1.6;
}
.pg-modal input {
  width: 100%; padding: 10px 12px; border-radius: var(--r-md);
  border: 1px solid var(--hairline-2); background: var(--surface-2);
  font-size: 14px; color: var(--text); outline: none; font-family: inherit;
}
.pg-modal input:focus { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px var(--red-bg); }
.pg-modal-acts { display: flex; gap: 9px; margin-top: 14px; }
.pg-modal-acts .pg-btn { flex: 1; padding: 9px 0; }

.pg-mask[hidden] { display: none !important; }   /* 同 .pg-team：flex 会盖掉 hidden 属性 */

/* ============================================================
   v2.21 素材商品卡（宠物/美妆 tab）
   素材接口返的是商品结构（没有线报的 lines/images），单独一套卡
   ============================================================ */
.mat-card { gap: 10px; }
.mat-row { display: flex; gap: 11px; align-items: flex-start; }
.mat-imgbox { position: relative; flex: none; }
.mat-img { border-radius: var(--r-md); background: var(--surface-2); object-fit: cover; }
.mat-img.noimg {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-3);
}
.mat-main { flex: 1; min-width: 0; }
.mat-title {
  font-size: 13.5px; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.9em;
}
.mat-price-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.mat-price { font-size: 17px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.mat-old { font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.mat-coupon {
  font-size: 11px; padding: 1px 6px; border-radius: 4px;
  background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border);
}
.mat-sub { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

@media (max-width: 720px) {
  .mat-title { font-size: 13px; }
  .mat-price { font-size: 16px; }
}

/* ============================================================
   v2.21 首页每日红包提醒弹窗（每天首次打开弹一次）
   ============================================================ */
.rp-pop-mask {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(20, 16, 10, .5);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  animation: rpPopFade .18s ease;
}
@keyframes rpPopFade { from { opacity: 0; } to { opacity: 1; } }
.rp-pop {
  position: relative; width: 100%; max-width: 360px;
  background: linear-gradient(180deg, #fffdf8, #fff 40%);
  border: 1px solid #f0d9a8; border-radius: 20px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 60px rgba(80, 50, 10, .28);
  animation: rpPopIn .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes rpPopIn { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.rp-pop-close {
  position: absolute; top: 10px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  color: #b8a275; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.rp-pop-close:hover { background: #f7eeda; color: #8a5a12; }
.rp-pop-head {
  font-size: 19px; font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(100deg, #d93832, #e8791a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.rp-pop-sub { font-size: 12.5px; color: #9a8260; margin: 5px 0 16px; line-height: 1.5; }
.rp-pop-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 14px;
  background: #fff; border: 1px solid #f2e3c2;
  margin-bottom: 9px;
}
.rp-pop-logo {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: linear-gradient(135deg, #ffe9d2, #ffd9b8);
}
.rp-pop-logo.jd { background: linear-gradient(135deg, #ffe1e1, #ffc9c9); }
.rp-pop-body { flex: 1; min-width: 0; }
.rp-pop-body b { display: block; font-size: 13.5px; color: #3d2c12; }
.rp-pop-body span { display: block; font-size: 11px; color: #a8906e; margin-top: 1px; }
.rp-pop-word {
  display: inline-block; margin-top: 5px; padding: 2px 9px;
  border-radius: 6px; background: #fff6e3; border: 1px dashed #e3b95e;
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; color: #b8531a;
  letter-spacing: .4px;
}
.rp-pop-btn {
  flex: none; padding: 7px 13px; border-radius: 999px;
  background: linear-gradient(100deg, #ff7a45, #f04f2c); color: #fff;
  font-size: 12.5px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(240, 79, 44, .3);
  transition: transform .12s, box-shadow .15s;
}
.rp-pop-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(240, 79, 44, .36); }
.rp-pop-btn.jd { background: linear-gradient(100deg, #f2534d, #d93832); box-shadow: 0 3px 10px rgba(217, 56, 50, .3); }
.rp-pop-go {
  width: 100%; margin-top: 6px; padding: 11px;
  border-radius: 999px; font-size: 14px; font-weight: 700; color: #8a5a12;
  background: linear-gradient(100deg, #ffe9c2, #ffdca3);
  border: 1px solid #ecc984;
  transition: filter .15s, transform .12s;
}
.rp-pop-go:hover { filter: brightness(1.04); transform: translateY(-1px); }

/* 深色模式：弹窗保持金暖色（红包场景刻意不做暗色，和 .pg-banner 一个思路） */

@media (max-width: 480px) {
  .rp-pop-mask { padding: 16px; align-items: flex-end; }
  .rp-pop { max-width: none; border-radius: 18px 18px 0 0; padding-bottom: 24px; }
  @keyframes rpPopIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

.rp-pop-mask[hidden] { display: none !important; }   /* display:flex 会盖掉 hidden 属性 */

/* ============================================================
   v2.21 凑单工具：平台满减预设（今年淘宝 200-25）
   ============================================================ */
.ct-presets {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: 10px;
}
.ct-presets-label { font-size: 12px; color: var(--text-3); }
.ct-preset {
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--hairline-2); background: #fff; color: var(--text-2);
  transition: all .16s;
}
.ct-preset:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.ct-preset.active {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 2px 8px rgba(217, 56, 50, .22);
}

/* ============================================================
   v2.24 线报广场：hero 卡（标题/介绍/搜索一体化，搜索内嵌分区）
   ============================================================ */
.wire-head { max-width: 1120px; margin: 0 auto; padding: 20px 16px 0; }
.wire-hero {
  background: linear-gradient(128deg, #ffffff 0%, #fffaf6 52%, #fff5ed 100%);
  border: 1px solid var(--hairline-2);
  border-radius: 16px;
  padding: 20px 22px 16px;
  box-shadow: 0 1px 2px rgba(20, 12, 4, 0.03);
}
.wire-search {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 0; padding: 13px 0 0;
  border-top: 1px dashed var(--hairline-2);
  max-width: none;
}
.wire-search-box {
  flex: 1; min-width: 0; height: 40px; padding: 0 15px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--hairline-2); border-radius: 999px;
  background: #fff;
  transition: border-color .16s, box-shadow .16s;
}
.wire-search-box:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-bg);
}
.wire-search-box input {
  flex: 1; min-width: 0; height: 100%;
  border: none; outline: none; background: transparent;
  color: var(--text-1); font-size: 13.5px;
}
.wire-search-box input::placeholder { color: var(--text-3); }
.wire-search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.wire-search-ico { color: var(--text-3); flex-shrink: 0; }
.wire-search button {
  height: 40px; padding: 0 20px; border: none; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: opacity .16s, transform .16s;
}
.wire-search button:hover { opacity: .88; }
.wire-search button:active { transform: scale(.97); }
.wire-tabs { margin-top: 12px; }
@media (max-width: 640px) {
  .wire-head { padding: 14px 12px 0; }
  .wire-hero { padding: 16px 16px 13px; border-radius: 14px; }
  .wire-head-side { width: 100%; }
  .wire-search { margin-top: 12px; padding-top: 11px; }
  .wire-search-box { height: 37px; }
  .wire-search-box input { font-size: 13px; }
  .wire-search button { height: 37px; padding: 0 15px; font-size: 13px; }
}

/* ============================================================
   v2.25 凑单工具：购物车总价快捷模式 + 虚拟条目
   ============================================================ */
.ct-cart {
  background: linear-gradient(128deg, #fffaf4 0%, #fff6ea 60%, #ffefdb 100%);
  border: 1px solid #f0d9a8;
  border-radius: 12px;
  padding: 13px 15px 14px;
  margin-bottom: 14px;
}
.ct-cart-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ct-cart-title { font-size: 14px; font-weight: 700; color: #8a5a12; }
.ct-cart-note { font-size: 12px; color: #a4762f; }
.ct-cart-row { display: flex; align-items: center; gap: 10px; }
.ct-cart-field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 14px;
  background: #fff; border: 1px solid #e8c98f; border-radius: 999px;
  transition: border-color .16s, box-shadow .16s;
}
.ct-cart-field:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.ct-cart-yen { font-size: 15px; font-weight: 700; color: #8a5a12; flex-shrink: 0; }
.ct-cart-field input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 15px; color: var(--text-1);
}
.ct-cart-field input::placeholder { color: var(--text-3); font-size: 13px; }
.ct-cart-row .ct-btn { height: 42px; padding: 0 22px; font-size: 14px; }

/* 已选列表里的「购物车总价」虚拟条目 */
.ct-row.virtual { background: linear-gradient(128deg, #fffdf8, #fff8ec); border-color: #f0d9a8; }
.ct-row.virtual .ct-row-title { font-weight: 600; }
.ct-row-tag.cart { background: #f6c544; color: #5c4300; }
.ct-cart-edit-wrap { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: var(--red); }
.ct-cart-edit {
  width: 84px; border: none; border-bottom: 1px dashed #e8c98f; background: transparent;
  font-size: 15px; font-weight: 700; color: var(--red); outline: none; padding: 2px 4px;
}
.ct-cart-edit:focus { border-bottom-color: var(--red); }
@media (max-width: 640px) {
  .ct-cart { padding: 12px 13px 13px; }
  .ct-cart-row .ct-btn { height: 40px; padding: 0 16px; }
  .ct-cart-field { height: 40px; }
}

/* ============================================================
   v2.25 线报卡：整段复制按钮（星标旁）
   ============================================================ */
.wire-copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 9px; margin-left: 6px;
  border: 1px solid var(--hairline-2); border-radius: 999px;
  background: #fff; color: var(--text-2);
  font-size: 11.5px; line-height: 1; cursor: pointer;
  transition: color .16s, border-color .16s, transform .1s;
}
.wire-copy-btn:hover { color: var(--red); border-color: var(--red); }
.wire-copy-btn:active { transform: scale(.94); }
.wire-copy-btn svg { flex-shrink: 0; }

/* ============================================================
   v2.25 手机端导航：汉堡按钮 + 侧栏抽屉（替换原横向滚动条）
   ============================================================ */
.nav-burger {
  display: none; flex-shrink: 0;
  width: 36px; height: 36px; margin-left: -6px;
  align-items: center; justify-content: center;
  border: none; border-radius: var(--r-sm);
  background: transparent; color: var(--text-2);
  cursor: pointer; transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger:active { background: var(--surface-2); color: var(--text); }
.nav-burger.on { color: var(--red); }
@media (max-width: 900px) {
  .nav-burger { display: inline-flex; }
  /* 抽屉有汉堡入口了，桌面拉手在窄屏隐藏，避免双重入口 */
  .side-toggle { display: none !important; }
  /* index 的 sidebar：横向滚动条 → 左侧 fixed 抽屉（含分组标签，竖向排） */
  .layout .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 90;
    width: 272px; height: auto;
    flex-direction: column; align-items: stretch; gap: 14px;
    background: var(--surface);
    border-right: 1px solid var(--hairline); border-bottom: none;
    padding: 16px 12px; overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .24s ease;
    -webkit-overflow-scrolling: touch;
  }
  body:not(.ps-closed) .layout .sidebar { transform: none; box-shadow: 0 0 48px rgba(15, 18, 22, 0.16); }
  .layout .sidebar .nav-group { display: block; }
  .layout .sidebar .nav-label { display: block; }
  .layout .sidebar .side-nav { flex-direction: column; }
  .layout .sidebar .side-nav a { white-space: normal; }
  .layout .sidebar .brand { padding: 4px 8px 8px; }
  .layout .sidebar .side-foot { display: block; }
  /* 其他页的 page-sidebar：顶栏同高改全高抽屉 */
  .page-sidebar { top: 0; z-index: 90; width: 272px; }
}
@media (max-width: 480px) {
  .layout .sidebar { width: min(272px, 82vw); }
  .page-sidebar { width: min(272px, 82vw); }
}

/* ============================================================
   v2.25 国内访问诊断横幅（数据加载失败时出现，可重试/关闭）
   ============================================================ */
.net-banner {
  position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 200;
  display: flex; align-items: center; gap: 11px;
  max-width: 620px; margin: 0 auto; padding: 12px 14px;
  background: linear-gradient(128deg, #fffdf5, #fff7e6);
  border: 1px solid #f0d9a8; border-radius: 14px;
  box-shadow: 0 8px 28px rgba(120, 80, 10, 0.14);
  font-size: 13px; color: #6b4d12;
}
.net-banner[hidden] { display: none !important; }
.net-banner-ico { font-size: 20px; flex-shrink: 0; }
.net-banner-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.net-banner-txt b { font-size: 13.5px; color: #8a5a12; }
.net-banner-txt span { font-size: 12px; line-height: 1.5; color: #a4762f; }
.net-banner-btn {
  flex-shrink: 0; height: 32px; padding: 0 16px;
  border: none; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: opacity .15s;
}
.net-banner-btn:hover { opacity: .88; }
.net-banner-close {
  flex-shrink: 0; width: 28px; height: 28px;
  border: none; border-radius: 999px; background: transparent;
  color: #b08b3e; font-size: 13px; cursor: pointer;
}
.net-banner-close:hover { background: rgba(176, 139, 62, 0.12); }
@media (max-width: 480px) {
  .net-banner { left: 8px; right: 8px; bottom: 10px; padding: 10px 12px; gap: 9px; }
  .net-banner-txt span { font-size: 11.5px; }
  .net-banner-btn { height: 30px; padding: 0 13px; }
}
