/* ============================================================
   元演 — 前端样式
   设计语言：暗色编辑风 / 强时尚感 / 瀑布流 / 全端适配
   ============================================================ */
:root {
  --bg: #14110d;
  --bg-soft: #1a160f;
  --surface: #1f1b15;
  --surface-2: #261f16;
  --line: #3a3128;
  --text: #f3ece1;
  --muted: #b6a890;
  --accent-a: #c9a063;
  --accent-b: #d9b87a;
  --accent-c: #b8895a;
  --grad: linear-gradient(120deg, #c9a063, #d9b87a);
  --grad-soft: linear-gradient(120deg, rgba(201,160,99,.18), rgba(217,184,122,.14));
  --pink: #c9a063;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.7);
  --shadow-glow: 0 0 0 1px rgba(201,160,99,.25), 0 18px 60px -20px rgba(201,160,99,.35);
  --maxw: 1320px;
  /* 语义化别名：统一兼容历史样式中使用的变量名 */
  --fg: var(--text);
  --border: var(--line);
  --accent: var(--accent-a);
  --text-3: var(--muted);
  /* 次级文字（标签 / hover 态）：原缺失定义，浏览器会回退为 initial，此处补齐 */
  --text-secondary: #cabfa9;
  /* 三级提示文字（类目说明等）：比 --muted 更弱，形成「金 active tab → 次级 label → 三级 hint」层级 */
  --hint: #938876;
  font-synthesis: none;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(201,160,99,.16), transparent 60%),
              radial-gradient(900px 500px at -10% 0%, rgba(184,137,90,.12), transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
img { display: block; max-width: 100%; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: auto; user-select: auto; -webkit-touch-callout: default; }
.kf-qrcode { -webkit-touch-callout: default; }
::selection { background: var(--accent-a); color: #fff; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(20,17,13,.72);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .5px; flex: 0 0 auto; white-space: nowrap; }
.brand .brand-logo {
  width: 34px; height: 34px; border-radius: 10px; object-fit: cover;
  box-shadow: var(--shadow-glow); flex-shrink: 0;
}
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search {
  flex: 1; max-width: 460px; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; color: var(--muted);
}
.search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px; }
.search input::placeholder { color: var(--muted); }
.spacer { flex: 1; }
.topbar-nav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.btn {
  border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 600;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); border: none; color: #fff; box-shadow: var(--shadow-glow); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 13px; font-size: 13px; }

/* ---------------- Hero ---------------- */
.hero { max-width: var(--maxw); margin: 26px auto 8px; padding: 0 22px; }
.hero h1 {
  font-size: clamp(26px, 4.4vw, 46px); font-weight: 850; letter-spacing: -.5px; line-height: 1.1;
}
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin-top: 10px; max-width: 620px; font-size: 15px; }

/* ---------------- 签约播报滚动栏 ---------------- */
.sign-board {
  max-width: var(--maxw); margin: 14px auto 0; padding: 9px 14px;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, rgba(201,160,99,.10), rgba(217,184,122,.05));
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.sb-label {
  flex: 0 0 auto; font-size: 13px; font-weight: 800; color: var(--accent);
  padding-right: 12px; border-right: 1px solid var(--line);
  white-space: nowrap; letter-spacing: .5px;
}
.sb-viewport {
  flex: 1 1 auto; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.sb-track {
  display: inline-flex; align-items: center; white-space: nowrap; will-change: transform;
  animation: sbScroll 34s linear infinite;
}
.sign-board:hover .sb-track { animation-play-state: paused; }
.sb-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text); padding: 4px 22px;
  cursor: pointer; transition: color .2s; position: relative;
}
.sb-item::after { content: '·'; position: absolute; right: -4px; color: var(--muted); font-size: 18px; }
.sb-item:last-child::after { content: ''; }
.sb-item:hover { color: var(--accent); text-decoration: underline; }
.sb-item .sb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex: 0 0 auto; }
@keyframes sbScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 768px) { .sb-label { font-size: 12px; padding-right: 8px; } .sb-item { font-size: 13px; padding: 4px 16px; } }
.seo-intro { max-width: var(--maxw); margin: 4px auto 26px; padding: 20px 22px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 16px; }
.seo-intro-title { font-size: 17px; font-weight: 800; margin: 0 0 12px; color: var(--text); }
.seo-intro p { margin: 0 0 10px; color: #9aa0b5; line-height: 1.75; font-size: 14px; }
.seo-intro p:last-child { margin-bottom: 0; }
.seo-intro strong { color: #c8cce0; }
@media (max-width: 768px) { .seo-intro { padding: 16px; margin: 4px 14px 22px; } }

/* ---------------- 分类导航 ---------------- */
/* ===== 首页一级导航：Tab 栏（精选栏目 / 专业艺人 / 按场景找） ===== */
.tab-nav {
  display: flex; gap: 0; margin: 20px auto 0; padding: 0;
  max-width: var(--maxw); background: var(--surface);
  border-radius: 13px; border: 1px solid var(--border); overflow: hidden;
}
.tab-item {
  flex: 1; text-align: center; padding: 12px 0;
  font-size: 14px; font-weight: 600; color: var(--muted);
  cursor: pointer; position: relative; transition: all .2s;
  border: none; background: transparent; -webkit-tap-highlight-color: transparent;
}
.tab-item.active { color: var(--accent); }
.tab-item.active::after {
  content: ''; position: absolute; bottom: 0; left: 18%; right: 18%;
  height: 2.5px; background: var(--grad); border-radius: 2px;
}
.tab-item:hover:not(.active) { color: var(--text-secondary); background: rgba(255,255,255,.02); }

/* ===== 分类筛选区（精选栏目 chips + 专业艺人下拉） ===== */
.cats {
  max-width: var(--maxw); margin: 16px auto 4px; padding: 2px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.cats-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cats-row--all { margin-bottom: 2px; }
.cats-label {
  flex: 0 0 auto; font-size: 13px; font-weight: 700;
  color: var(--text-secondary); letter-spacing: .03em;
  padding-right: 2px; white-space: nowrap;
}
.cats-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
  transition: all .18s; -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: var(--text); border-color: var(--accent-b); }
/* 选中态：淡金底 + 金色文字 + 金色边框（不再用渐变填充） */
.chip.active {
  background: rgba(201,160,99,.10);
  border-color: rgba(201,160,99,.32);
  color: var(--accent); font-weight: 600;
}
/* 「全部」特殊选中态：描边无填充，视觉权重最低 */
.chip.all-active {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent); font-weight: 600;
}
.chip .emoji { font-size: 15px; }
/* 精选栏目/专业艺人类目说明：三级 hint 色，弱于标签与金色 active tab */
.cats-note { font-size: 12.5px; color: var(--hint); padding: 2px 0 0 0; line-height: 1.55; }
.cats-note a { color: var(--accent); font-weight: 700; text-decoration: none; }
.cats-note a:hover { text-decoration: underline; }
.cats-row--pro { margin-top: 4px; }
/* 专业艺人区域标签：次级文字色（与明星栏目标签一致），不抢金色 active tab */
.cats-row--pro .cats-label { color: var(--text-secondary); }
/* 专业艺人说明：降级为三级 hint 色（原暖金色易被误读为 CTA） */
.cats-row--pro + .cats-note { color: var(--hint); opacity: 1; }
.pro-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  flex: 1 1 auto; max-width: 360px; min-width: 200px;
  padding: 9px 34px 9px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: 13.5px; color: var(--accent-a); cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%23c9a063' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: border-color .18s, box-shadow .18s;
}
.pro-select:hover { border-color: var(--accent-a); }
.pro-select:focus { outline: none; border-color: var(--accent-a); box-shadow: 0 0 0 3px rgba(201,160,99,.22); }
.pro-select option { color: #111; }

/* Tab 内容面板显隐控制 */
.tab-panel { display: none; }
.tab-panel.show { display: block; }

/* ---------------- 瀑布流 ---------------- */
.wrap { max-width: var(--maxw); margin: 10px auto 60px; padding: 0 22px; }
/* 行优先网格：第一行从左到右即热度 No.1、2、3、4… */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1180px) { .masonry { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .masonry { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 380px)  { .masonry { grid-template-columns: 1fr; } }

/* ===== 首页模块化布局（按类目分行展示 Top N） ===== */
.home-section { margin-bottom: 36px; }
.home-section-head {
  display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.home-section-title {
    font-size: 18px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px;
    letter-spacing: -0.02em;
}
.home-section-more {
    font-size: 13.5px; color: var(--text-3); text-decoration: none; white-space: nowrap;
    transition: color .2s; font-weight: 500;
}
.home-section-more:hover { color: var(--accent-a); }

/* 横向卡片行：PC 每行最多 6 张，可横向滚动；H5 更紧凑 */
.home-row {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px; /* 给滚动条留空间 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent;
    align-items: stretch; /* 行内卡片等高对齐 */
}
.home-row::-webkit-scrollbar { height: 5px; }
.home-row::-webkit-scrollbar-track { background: transparent; }
.home-row::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }

/* 行内紧凑卡片：固定宽度，不随网格拉伸；等高对齐 */
.card--row {
    flex: 0 0 auto; width: 180px; min-width: 160px; scroll-snap-align: start;
    display: flex; flex-direction: column;
}
.cover--row { aspect-ratio: 4 / 5; flex: 0 0 auto; }
.card-body--row { padding: 10px 12px; flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.card-title--row { font-size: 14px; line-height: 1.3; }
.pill--sm { font-size: 11px; padding: 2px 8px; }

@media (max-width: 768px) {
    .home-section { margin-bottom: 28px; }
    .home-section-head { margin-bottom: 10px; }
    .home-section-title { font-size: 16px; }
    .card--row { width: 150px; min-width: 140px; }
    .cover--row { aspect-ratio: 4 / 5; }
    .home-row { gap: 12px; }
}

/* 列表视图时恢复 masonry 网格（模块化视图下 masonry 变成块级容器） */
.masonry:not(:has(.home-section)) { display: grid; }
.masonry:has(.home-section) { display: block; }

/* 首页 Tab 自动轮换期间：根据当前激活 Tab 过滤瀑布流内容
   - 专业艺人：只留非明星栏目的「素人」段
   - 按场景找：同样不混入明星栏目段（场景板块单独显示）
   - 明星栏目（默认）：全部可见。
   注意：不要加「无内容则隐藏整块 masonry」的兜底，否则专业艺人列表视图
   和按场景找都可能把正常内容误隐藏。 */
body.cats-tab-pro .home-section[data-featured="1"],
body.cats-tab-scenarios .home-section[data-featured="1"] { display: none; }

.card {
  break-inside: avoid; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .25s, border-color .2s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: transparent; }
.cover {
  position: relative; display: grid; place-items: center; color: #fff;
  font-size: 46px; overflow: hidden; aspect-ratio: 4 / 5;
}
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: #0c0c12; }
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
}
.cover .emoji { position: relative; z-index: 2; filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)); }
.cover .play { position: absolute; right: 12px; bottom: 12px; z-index: 3; font-size: 12px;
  background: rgba(0,0,0,.5); padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(4px); }
.card-body { padding: 14px 15px 15px; }
.card-title { font-size: 15.5px; font-weight: 700; line-height: 1.35; }

/* ===== 热度徽章 ===== */
.heat-badge{ display:inline-flex; align-items:center; gap:2px; font-size:11.5px; font-weight:700;
  padding:2px 8px; border-radius:999px; margin-left:6px; vertical-align:middle; white-space:nowrap;
  line-height:1.6; letter-spacing:.2px; }
.heat-badge.heat-hot{ background:linear-gradient(135deg,#ff3b30,#ff8a00); color:#fff; box-shadow:0 2px 8px rgba(255,80,40,.35); }
.heat-badge.heat-warm{ background:linear-gradient(135deg,#ff6a3d,#ffb347); color:#fff; }
.heat-badge.heat-mild{ background:rgba(255,160,60,.18); color:#ffb877; border:1px solid rgba(255,160,60,.35); }
.heat-badge.heat-cool{ background:rgba(120,140,180,.16); color:#a9b6cc; border:1px solid rgba(120,140,180,.3); }

/* 封面左上角 TOP3 排名角标 */
.rank-chip{ position:absolute; left:10px; top:10px; z-index:3; font-size:12px; font-weight:800;
  padding:3px 9px; border-radius:999px; backdrop-filter:blur(4px); color:#fff; }
.rank-chip.rank-1{ background:linear-gradient(135deg,#f6c73c,#ff9d00); box-shadow:0 3px 10px rgba(246,180,0,.5); }
.rank-chip.rank-2{ background:linear-gradient(135deg,#c9d3e0,#8a97a8); }
.rank-chip.rank-3{ background:linear-gradient(135deg,#e0a06a,#b5763f); }

/* 主持人库名册：排名序号 + 热度值 */
.hl-idx{ flex:0 0 auto; width:26px; text-align:center; font-size:12.5px; font-weight:700; color:var(--muted); }
.hl-idx-1,.hl-idx-2,.hl-idx-3{ font-size:15px; }
.hl-heat{ margin-left:auto; flex:0 0 auto; font-size:12px; font-weight:700; color:#ff8a5c; }
.hl-tag-heat{ background:rgba(255,90,60,.16)!important; color:#ff8a5c!important; border-color:rgba(255,90,60,.3)!important; }
.card-meta { margin-top: 9px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.cat { background: var(--grad-soft); color: #ffd6ec; border-color: transparent; }
.price { margin-left: auto; font-size: 13px; font-weight: 700; color: #fff; }
.city { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.card-actions { margin-top: 13px; display: flex; gap: 8px; }
.card-actions .btn { flex: 1; text-align: center; }

/* ---------------- 弹层 / 模态 ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(5,5,9,.72);
  backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.overlay.show { display: flex; }
.modal {
  width: min(720px, 100%); background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); overflow: visible; animation: pop .25s ease;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; }
.x { background: var(--surface-2); width: 34px; height: 34px; border-radius: 10px; color: var(--muted); font-size: 18px; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; min-height: 0; }
/* 支付确认弹层 */
.pay-amount { font-size: 34px; font-weight: 800; color: var(--accent, #f0873a); text-align: center; margin: 6px 0; }
.pay-desc { text-align: center; color: var(--muted); margin: 0 0 14px; }
.pay-methods { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.pay-m { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.btn-block { width: 100%; }
.pay-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 12px 0 0; }
.detail-cover { height: 220px; border-radius: 16px; display: grid; place-items: center; font-size: 70px; margin-bottom: 16px; position: relative; overflow: hidden; }
.detail-cover::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg,transparent 40%,rgba(0,0,0,.5)); }
.detail-cover .emoji { position: relative; z-index: 2; }
.detail-cover-img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; background: #0c0c12; }
.detail-title { font-size: 22px; font-weight: 800; }
.detail-row { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.detail-bio { margin-top: 16px; color: #d7d7e4; font-size: 14.5px; line-height: 1.7; }
.detail-experience { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.detail-experience h3 { font-size: 16px; margin-bottom: 10px; color: #fff; }
.detail-experience .exp-body { color: #d7d7e4; font-size: 14.5px; line-height: 1.85; }
.detail-experience .exp-para { margin: 0 0 14px; position: relative; padding-left: 0; }
.detail-experience .exp-para:last-child { margin-bottom: 0; }
.detail-experience .exp-year {
  display: inline-block; background: rgba(124,92,255,.15); color: #b8a3ff;
  font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 6px;
  margin: 0 8px 4px 0; vertical-align: baseline;
}

/* ---------------- 详情页分享按钮 ---------------- */
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font-size: 20px; line-height: 1; cursor: pointer;
  margin-right: 6px; transition: .15s;
}
.icon-btn:hover { background: var(--surface); border-color: var(--accent-b); }
.share-link-row { display: flex; gap: 8px; }
.share-link-row input {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; color: var(--text); font-size: 13px;
}
.share-link-row .btn { flex: 0 0 auto; }

/* ---------------- 我的作品缩略 ---------------- */
.mw-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s; }
.mw-item:hover { border-color: var(--accent-b); }
.mw-thumb { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; background: #1a1a24; }
.mw-thumb.ph { display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg,#3a2a5a,#1a2a4a); }
.mw-main { flex: 1; min-width: 0; }
.mw-main .mw-actions { margin-top: 10px; }

/* ---------------- 文件预览（详情页） ---------------- */
.files-section { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.fs-title { font-size: 16px; margin-bottom: 12px; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.thumb { width: 132px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; flex: 0 0 auto; scroll-snap-align: start; transition: transform .15s, border-color .15s; }
.thumb:hover { transform: scale(1.03); border-color: var(--accent-b); }
.doc-preview { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.doc-head { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge.ok { background: #1f9d5522; color: #5fe39b; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; }
.badge.warn { background: #ffb02022; color: #ffc861; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; }
.doc-embed { width: 100%; height: 68vh; max-height: 680px; border: 0; border-radius: 10px; background: #fff; }
.doc-actions { margin-top: 10px; }
.video-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; margin-bottom: 12px; }
.vc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-size: 18px; color: #fff; flex: 0 0 auto; }
.vc-info { flex: 1; min-width: 0; }
.vc-title { font-size: 14.5px; font-weight: 700; }
.vc-url { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 灯箱 */
.lb-img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow); }
.lb-close { position: fixed; top: 20px; right: 20px; }
#videoModal .modal-body { padding: 0; }
@media (max-width: 640px) {
  .doc-embed { height: 64vh; }
  .thumb { width: 110px; height: 82px; }
}

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; color: var(--text); font-size: 14px; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-b); }
.field textarea { resize: vertical; min-height: 84px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.cover-preview { margin-top: 10px; }
.cover-prev-img { width: 120px; height: 160px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.note-box { background: var(--grad-soft); border: 1px solid rgba(201,160,99,.3); border-radius: 12px; padding: 11px 13px; font-size: 12.5px; color: #ffd6ec; margin-bottom: 16px; }
/* 百度百科链接分类提示 */
.warn-box { border-radius: 12px; padding: 11px 13px; font-size: 12.5px; line-height: 1.6; margin: 4px 0 16px; }
.warn-box.warn { background: rgba(255,59,48,.12); border: 1px solid rgba(255,59,48,.5); color: #ffb3ad; }
.warn-box.ok { background: rgba(0,229,255,.10); border: 1px solid rgba(0,229,255,.4); color: #a9ecff; }
.warn-box b { color: inherit; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* 上传表单分区 */
.form-sec { margin-bottom: 18px; padding-bottom: 4px; }
.form-sec-h {
  font-size: 13px; font-weight: 800; color: var(--accent-c);
  margin: 2px 0 12px; letter-spacing: .4px;
  padding-left: 10px; border-left: 3px solid var(--accent-c);
  line-height: 1.2;
}
/* 必填项校验标红 */
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: #ff3b30 !important;
  box-shadow: 0 0 0 3px rgba(255,59,48,.18);
}
/* 认证多选（平台官方认证 / 蓝V） */
.checks { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 4px; }
.ck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); cursor: pointer; }
.ck input { width: 16px; height: 16px; accent-color: var(--accent-c); }
.cover-preview:empty { display: none; }
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 20px; border-radius: 999px; z-index: 100000; opacity: 0; transition: .25s; font-size: 14px;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #1f9d55; border-color: #1f9d55; color: #fff; font-weight: 600; }

/* ---------------- 登录 / 注册 弹窗（分栏式重新设计） ---------------- */
.auth-modal { position: relative; width: min(860px, 100%); flex-direction: row; }
.auth-modal .x { position: absolute; top: 14px; right: 14px; z-index: 5; }
/* 左侧品牌区 */
.auth-aside {
  flex: 0 0 300px; padding: 38px 30px; color: #fff;
  background: linear-gradient(150deg, #2e2415, #1a160f 62%, #14110d);
  border-radius: 22px 0 0 22px; gap: 14px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.auth-brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-glow); }
.auth-aside h2 { font-size: 26px; font-weight: 850; line-height: 1.2; }
.auth-aside p { color: #c9b8e8; font-size: 13.5px; line-height: 1.7; }
.auth-points { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.auth-points li { font-size: 13px; color: #e7dcff; }

.auth-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.auth-title { font-size: 20px; font-weight: 800; margin: 4px 0 16px; }

.auth-tip-bar {
  font-size: 12.5px; line-height: 1.6; color: #9a6a2f;
  background: linear-gradient(0deg, #fff7e9, #fff7e9);
  border: 1px solid #f0d9a8; border-radius: 10px;
  padding: 9px 12px; margin-bottom: 16px;
}
.auth-tip-bar strong { color: #8a5a1e; }

.auth-tabs {
  display: flex; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.auth-tab {
  flex: 1; padding: 13px 0; font-size: 14px; color: var(--muted);
  background: transparent; border-bottom: 2px solid transparent;
  transition: .2s; position: relative; top: 1px;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active {
  color: var(--accent-a); font-weight: 600;
  border-bottom-color: var(--accent-a);
}
.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-msg { font-size: 12.5px; margin: 2px 0 12px; min-height: 0; }
.auth-msg.err { color: #ff8095; }
.auth-msg.ok { color: #5fe39b; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.auth-switch a { color: var(--accent-a); font-weight: 600; }
.req { color: #ff3b30; font-weight: 700; margin-left: 2px; }

.pwd-strength { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.pwd-strength span { flex: 1; height: 4px; border-radius: 999px; background: var(--surface-2); transition: .2s; }
.pwd-strength span.on-1 { background: #ff3b5c; }
.pwd-strength span.on-2 { background: #ffb020; }
.pwd-strength span.on-3 { background: #1f9d55; }
.pwd-strength em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: 4px; }

.auth-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 4px 0 2px; cursor: pointer; }
.auth-agree input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent-a); flex: 0 0 auto; }
.auth-agree a { color: var(--accent-c); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.wechat-icon-lg {
  width: 160px; height: 160px; margin: 0 auto; border-radius: 20px;
  background: var(--surface); border: 2px dashed var(--line);
  display: grid; place-items: center; font-size: 56px;
}

/* 移动端：分栏堆叠，隐藏品牌区次要信息 */
@media (max-width: 680px) {
  .auth-modal { flex-direction: column; }
  .auth-aside { flex: none; border-radius: 22px 22px 0 0; padding: 26px 22px; }
  .auth-aside p, .auth-points { display: none; }
  .auth-aside h2 { font-size: 20px; }
}

/* ---------------- 空态 / 加载 ---------------- */
.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
/* 未登录占位：文字 + 可点击的「前往登录/注册」按钮 */
.login-prompt { display: flex; flex-direction: column; align-items: center; gap: 14px; line-height: 1.7; }
.login-prompt .btn { width: auto; min-width: 168px; }
.skeleton { height: 220px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: sh 1.2s infinite; margin-bottom: 18px; }
@keyframes sh { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.foot { max-width: var(--maxw); margin: 0 auto; padding: 30px 22px 50px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); text-align: center; }
.foot a { color: var(--accent-c); }
.beian-wrap { margin-top: 10px; }
.beian { display: inline-block; font-size: 12.5px; color: var(--accent-c); text-decoration: none; opacity: .85; }
.beian:hover { opacity: 1; text-decoration: underline; }

/* 分享横幅（分享页专用） */
.share-banner { background: var(--grad-soft); border: 1px solid rgba(217,184,122,.3); border-radius: 14px; padding: 12px 16px; font-size: 13px; color: #e7d6ff; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }

/* 移动端：顶栏精简 */
@media (max-width: 640px) {
  .topbar-inner { padding: 11px 14px; gap: 10px; flex-wrap: wrap; }
  .brand span.txt { display: none; }
  .search { max-width: none; }
  /* topbar-nav 样式已由 768px 抽屉查询统一管理，此处不再覆盖 */
  .hero { padding: 0 14px; margin-top: 18px; }
  .cats, .wrap, .scenarios { padding-left: 14px; padding-right: 14px; }
  .grid2 { grid-template-columns: 1fr; }
  /* 顶栏更矮，左侧菜单紧贴其下、高度随之收 */

  .pc-side { top: 61px; height: calc(100vh - 61px); }
}

/* H5 适配：禁用横向滚动回弹、适配刘海 */
@supports (padding: env(safe-area-inset-top)) {
  .topbar { padding-top: env(safe-area-inset-top); }
  .foot { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
}

/* ---------------- 状态徽章 / 代码（公开站复用） ---------------- */
.badge { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; }
.b-pending { background: #ffb02022; color: #ffc861; }
.b-approved { background: #1f9d5522; color: #5fe39b; }
.b-rejected { background: #ff3b5c22; color: #ff8095; }
.b-violation { background: rgba(224,121,94,.13); color: #e0795e; border: 1px solid rgba(224,121,94,.4); }
.b-info { background: #2f6df622; color: #7fa8ff; }
.b-hot { background: #f0873a22; color: #ffab6b; }
.pc-muted { color: var(--muted); font-size: 12.5px; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 12px; color: #c9b8ff; }

/* ---------------- 我的作品 管理 ---------------- */
.mw-list { display: flex; flex-direction: column; gap: 14px; }
.mw-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; }
.mw-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mw-title { font-size: 16px; font-weight: 700; }
.mw-meta { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.mw-vio { color: #e0947e; font-size: 12.5px; margin-top: 8px; line-height: 1.6; background: rgba(224,121,94,.10); border: 1px solid rgba(224,121,94,.32); border-radius: 10px; padding: 9px 11px; }
.mw-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------------- 全国主持人库 ---------------- */
.hl-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px 40px; }
.hl-header { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.hl-title { font-size: 20px; font-weight: 700; color: var(--text); margin: 0; white-space: nowrap; }
.hl-search { margin-left: auto; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; width: 220px; max-width: 40vw; }
.hl-search:focus { border-color: var(--accent-b); outline: none; }
.hl-body { display: flex; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; height: calc(100vh - 180px); min-height: 480px; }
.hl-col { background: var(--bg); overflow-y: auto; }
.hl-stations { width: 200px; flex-shrink: 0; }
.hl-hosts { width: 230px; flex-shrink: 0; }
.hl-detail { flex: 1; padding: 24px; }
.hl-region { font-size: 11px; color: var(--muted); padding: 12px 14px 4px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.hl-station { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; cursor: pointer; font-size: 13px; color: var(--text); transition: background .12s; }
.hl-station:hover { background: rgba(255,255,255,.04); }
.hl-station.active { background: rgba(124,92,255,.16); }
.hl-station.active .hl-sname { color: #b8a3ff; font-weight: 600; }
.hl-sname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-count { font-size: 11px; color: var(--muted); background: rgba(255,255,255,.06); border-radius: 10px; padding: 1px 7px; flex-shrink: 0; }
.hl-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; height: 100%; color: var(--muted); font-size: 14px; text-align: center; padding: 24px; gap: 12px; }
.hl-hint { font-size: 12px; color: #999; max-width: 360px; line-height: 1.6; opacity: .85; }
.hl-hosts-header { padding: 10px 14px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.hl-host { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; transition: background .12s; }
.hl-host:hover { background: rgba(255,255,255,.04); }
.hl-host.active { background: rgba(124,92,255,.16); }
.hl-host.active .hl-hostname { color: #b8a3ff; font-weight: 600; }
.hl-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hl-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 600; }
.hl-hostname { font-size: 14px; color: var(--text); }
.hl-detail-cover { width: 150px; height: 188px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; flex-shrink: 0; }
.hl-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.hl-detail-name { font-size: 24px; font-weight: 700; color: var(--text); margin: 0 0 10px; }
.hl-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.hl-tag { font-size: 12px; padding: 3px 10px; border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.hl-tag-station { background: rgba(124,92,255,.15); color: #b8a3ff; font-weight: 500; }
.hl-detail-bio { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 16px; opacity: .85; }
.hl-detail-exp { margin-bottom: 16px; }
.hl-detail-exp .exp-para { font-size: 14px; line-height: 1.85; color: var(--text); opacity: .8; margin-bottom: 12px; }
.hl-detail-exp .exp-year { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: rgba(124,92,255,.15); color: #b8a3ff; margin-right: 6px; font-weight: 600; }
.hl-ext-link { display: inline-block; font-size: 13px; color: var(--accent-b); text-decoration: none; padding: 8px 18px; border: 1px solid rgba(124,92,255,.3); border-radius: 10px; transition: background .12s; }
.hl-ext-link:hover { background: rgba(124,92,255,.08); }
@media (max-width: 768px) {
  .hl-body { flex-direction: column; height: auto; }
  .hl-stations { width: 100%; max-height: 280px; }
  .hl-hosts { width: 100%; max-height: 320px; }
  .hl-detail { padding: 16px; }
  .hl-search { width: 140px; }
}

/* ==================== 企微客服悬浮按钮 ==================== */
.kf-fab {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right));
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #07c160, #06ad56);
  box-shadow: 0 4px 20px rgba(7,193,96,.4), 0 2px 8px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .22s, box-shadow .22s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.kf-fab:hover { transform: scale(1.08); box-shadow: 0 6px 26px rgba(7,193,96,.5), 0 3px 10px rgba(0,0,0,.35); }
.kf-fab:active { transform: scale(.95); }
.kf-icon {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}
/* 脉冲动画 */
.kf-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(7,193,96,.5);
  animation: kfPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes kfPulse {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* 企微客服弹窗 */
#kfOverlay .kf-popup {
  max-width: 340px;
  width: 92%;
  padding: 32px 24px 24px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 60px rgba(7,193,96,.12);
  position: relative;
  animation: kfPopIn .25s ease-out;
}
@keyframes kfPopIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.kf-qrcode {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

/* ============ 列表视图筛选条（主持人多维度筛选） ============ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  padding: 12px 14px;
  margin: 14px 0 6px;
  background: linear-gradient(135deg, rgba(124,43,255,.10), rgba(0,229,255,.08));
  border: 1px solid rgba(124,43,255,.22);
  border-radius: var(--radius);
}
.fb-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fb-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.fb-select {
  background: var(--surface); color: var(--fg); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; outline: none;
}
.fb-clear {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; cursor: pointer;
}
.fb-clear:hover { color: var(--fg); border-color: var(--accent); }
.filter-bar .chip {
  background: var(--surface); color: var(--fg); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 13px; font-size: 13px; cursor: pointer; transition: .15s;
}
.filter-bar .chip:hover { border-color: var(--accent); }
.filter-bar .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============ 首页「按场景找专业艺人」入口卡（重设计：去副标题、4列紧凑） ============ */
.scenarios { max-width: var(--maxw); margin: 8px auto; padding: 0 22px; }
.scenarios-head {
  font-size: 15.5px; font-weight: 700; color: var(--text);
  margin: 14px 0 12px; display: flex; align-items: center; gap: 6px;
}
.scenarios-head b { color: var(--accent); }
.scenarios-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: start;
}
.scenario-card {
  position: relative; text-align: center;
  padding: 16px 8px 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.scenario-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.scenario-card:active { transform: scale(.97); }
.scenario-emoji { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.scenario-name {
  font-weight: 700; font-size: 13.5px; color: var(--text);
  letter-spacing: .02em;
}
/* 副标签保留 CSS 但默认隐藏（用户要求去掉；如需恢复删掉 display:none） */
.scenario-sub { display: none; }
@media (max-width: 900px) { .scenarios-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .scenarios-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
@media (max-width: 400px) { .scenarios-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============ 人气排行榜频道页 ============ */
.rank-view { display: none; }
.rank-view.show { display: block; }
.rank-tabs { display: flex; gap: 10px; margin: 14px 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.rank-tabs::-webkit-scrollbar { height: 6px; }
.rank-tabs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.rank-tab {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--fg); cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; flex: 0 0 auto;
}
.rank-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: .15s;
}
.rank-row:hover { border-color: var(--accent); transform: translateX(2px); }
.rank-no {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
  border-radius: 50%; font-weight: 800; font-size: 15px; background: var(--surface-2); color: var(--muted);
}
.rank-row.top1 .rank-no { background: linear-gradient(135deg,#ffd200,#ff8a00); color:#3a2a00; }
.rank-row.top2 .rank-no { background: linear-gradient(135deg,#e3e8ef,#aab4c4); color:#2a2f38; }
.rank-row.top3 .rank-no { background: linear-gradient(135deg,#ff9a5a,#ff6a3d); color:#fff; }
.rank-cover { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.rank-main { flex: 1; min-width: 0; }
.rank-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rank-score { text-align: right; flex: 0 0 auto; }
.rank-score b { font-size: 18px; color: var(--accent); }
.rank-score span { display: block; font-size: 11px; color: var(--muted); }

/* ---- 平台认证徽章（P1） ---- */
.verified-badge {
  display: inline-block; vertical-align: middle; margin-left: 5px;
  font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: 999px;
  color: #1a160f; background: linear-gradient(120deg, #b8895a, #a9c47e);
  letter-spacing: .3px; white-space: nowrap;
}

/* ---- 会员中心（P1） ---- */
.mc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mc-avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--grad-soft); border: 1px solid var(--line); }
.mc-name { font-size: 17px; font-weight: 800; }
.mc-tier { font-size: 13px; color: var(--muted); margin-top: 3px; }
.mc-vok { color: #5fe39b; }
.mc-note { font-size: 13px; padding: 10px 12px; border-radius: 12px; margin: 4px 0 12px; }
.mc-note.ok { background: #1f9d5522; color: #5fe39b; }
.mc-h { font-size: 15px; margin: 6px 0 12px; }
.mc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mc-plan { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mc-plan.active { border-color: var(--accent-a); box-shadow: var(--shadow-glow); }
.mc-plan-name { font-weight: 800; font-size: 15px; }
.mc-plan-price { font-size: 20px; font-weight: 800; color: var(--accent-a); }
.mc-plan-price span { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.mc-plan-hl { list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); flex: 1; }
.mc-plan-hl li::before { content: "✓ "; color: #5fe39b; }
.mc-cur { font-size: 12px; color: var(--accent-a); font-weight: 700; text-align: center; }
.mc-months { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; font-size: 13px; color: var(--muted); }
.mc-months select { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.mc-paynote { font-size: 12px; color: var(--muted); line-height: 1.7; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }

/* 素材文件管理器（已上传素材编辑 / 新选文件预览：加文字、删除） */
.up-file-mgr { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.up-file-mgr:empty { display: none; }
.ufm-item { display: flex; gap: 11px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.ufm-item > a { flex: none; line-height: 0; }
.ufm-thumb { width: 62px; height: 78px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.ufm-thumb.ph { font-size: 13px; font-weight: 800; color: var(--muted); }
.ufm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.ufm-name { font-size: 12.5px; color: var(--text); word-break: break-all; line-height: 1.4; }
.ufm-cap { width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 13px; }
.ufm-ops { display: flex; gap: 8px; }
.ufm-del { align-self: flex-start; }
.up-filecount { margin-left: 10px; font-size: 12.5px; color: var(--muted); }
/* 上传进度条 */
.up-progress { height: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.up-progress .bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #5b9bff); transition: width .2s ease; }

/* ---------------- 全屏编辑页（上传/编辑作品） ---------------- */
.overlay.editor-page {
  background: var(--bg);
  backdrop-filter: none;
  flex-direction: column; /* 必须列向：ep-head 顶部 sticky、ep-body 占剩余高度；否则 row 会把 ep-body 挤到 viewport 外 */
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
  z-index: 300;
}
.editor-page .ep-head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid var(--accent);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.editor-page .ep-title { font-size: 18px; font-weight: 900; white-space: nowrap; color: #fff; letter-spacing: 1px; }
.editor-page .ep-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.editor-page .ep-actions .btn {
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25);
}
.editor-page .ep-actions .btn:hover {
  background: rgba(255,255,255,.2); border-color: var(--accent);
}
.editor-page .ep-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
.editor-page .ep-inner { max-width: 680px; margin: 0 auto; padding: 18px 16px 80px; }

/* 复选框行对齐 */
.ck-row { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ck-row input[type="checkbox"] { flex: none; width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
/* 推广预算开关 - 红字突出 */
.promo-toggle { color: #ff4d6d !important; font-weight: 800 !important; font-size: 15px !important; }
.promo-toggle span { color: #ff4d6d !important; font-weight: 800 !important; }

.draft-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 12px; padding: 11px 14px; margin-bottom: 14px;
  font-size: 13.5px;
}
.draft-bar .draft-btns { display: flex; gap: 8px; flex: none; }

@media (max-width: 560px) {
  .editor-page .ep-head { padding: 11px 12px; gap: 8px; }
  .editor-page .ep-title { font-size: 15px; }
  .editor-page .ep-actions { gap: 6px; }
  .editor-page .ep-actions .btn { padding: 6px 9px; font-size: 12px; white-space: nowrap; }
  .editor-page .ep-inner { padding: 14px 12px 70px; }
}
@media (max-width: 380px) {
  .editor-page .ep-actions .btn { padding: 5px 7px; font-size: 11.5px; }
  .editor-page .ep-actions .btn .emoji,
  .editor-page .ep-actions .btn[data-emoji] { }
}

/* ============================================================
   二级分销 / 艺人推广预算 — 前端样式
   ============================================================ */

/* 详情页「高佣推广」徽章 */
.promo-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #c9a063, #d9b87a);
  color: #fff; font-weight: 700; font-size: 13px;
  padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(201,160,99,.35);
  margin-left: 8px; vertical-align: middle;
}
.promo-badge::before { content: '🔥'; }

/* 详情页分销卡片（含意向表单） */
.dist-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 16px; padding: 18px; margin: 18px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.dist-card h3 { margin: 0 0 6px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.dist-card .dc-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.dist-card .field { margin-bottom: 12px; }
.dist-card label { display: block; font-size: 13px; margin-bottom: 5px; color: var(--muted); }
.dist-card input {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 14px;
}
.dist-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.dist-card .field.invalid input { border-color: #ff4d6d; }
.dist-card .err { color: #ff6b85; font-size: 12px; min-height: 14px; margin-top: 4px; }
.dist-card .dc-note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* 分段选择按钮（不推广/基础/强力/顶级） */
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.seg-btn {
  flex: 1 1 0; min-width: 90px; padding: 10px 8px; cursor: pointer;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 13px; text-align: center;
  transition: all .15s ease;
}
.seg-btn .seg-ratio { display: block; font-weight: 700; font-size: 15px; }
.seg-btn.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--bg));
  color: var(--accent); font-weight: 700;
}

/* 推广预算实时计算器 */
.promo-calc {
  margin-top: 12px; padding: 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
}
.promo-calc .pc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--line);
}
.promo-calc .pc-row:last-child { border-bottom: none; }
.promo-calc .pc-row .pc-k { color: var(--muted); }
.promo-calc .pc-row .pc-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.promo-calc .pc-row.total .pc-v { color: var(--accent); font-size: 16px; }
.promo-calc .pc-row .pc-v.l1 { color: #c9a063; }
.promo-calc .pc-row .pc-v.l2 { color: #d9b87a; }
.promo-calc .pc-row .pc-v.pf { color: #00c2a8; }

/* 上传页「推广设置」折叠区 */
.promo-wrap { margin-top: 10px; }
.promo-warn {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  background: rgba(255,193,7,.12); border: 1px solid rgba(255,193,7,.4); color: #ffce5a;
}
.promo-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.promo-agree input { margin-top: 2px; }

/* 分销中心（distributor.html）通用卡片 */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.dash-cell { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.dash-cell .dc-label { font-size: 12.5px; color: var(--muted); }
.dash-cell .dc-num { font-size: 24px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dash-cell .dc-num.l1 { color: #c9a063; }
.dash-cell .dc-num.l2 { color: #d9b87a; }
.dash-cell .dc-num.pf { color: #00c2a8; }

.mat-card {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--bg);
}
.mat-card .mc-cover { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; flex: none; background: #222; }
.mat-card .mc-info { flex: 1; min-width: 0; }
.mat-card .mc-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-card .mc-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mat-card .mc-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.mat-link { font-size: 11px; color: var(--muted); word-break: break-all; margin-top: 6px; }

/* 适用场景多选（上传表单） */
.chk-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chk-group .chk {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-size: 13px; background: var(--bg); user-select: none; transition: .15s;
}
.chk-group .chk:hover { border-color: var(--pink, #c9a063); }
.chk-group .chk input { accent-color: #c9a063; margin: 0; }
.chk-group .chk:has(input:checked) { border-color: #c9a063; background: #c9a06315; color: #c9a063; font-weight: 600; }

/* ============ 婚礼模式：视频链接动态多行 ============ */
.link-rows { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 10px; }
.link-row { display: flex; align-items: center; gap: 8px; }
.link-input {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 13.5px;
}
.link-input:focus { outline: none; border-color: #c9a063; box-shadow: 0 0 0 3px #c9a06322; }
.link-del {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1;
}
.link-del:hover { border-color: #ff4d6d; color: #ff4d6d; background: #ff4d6d12; }

/* ============ 个人中心（左侧边栏布局） ============ */
.pc-layout { display: none; }
.pc-layout.show { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 62px); }
.pc-side {
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 20px 14px; position: sticky; top: 0; height: calc(100vh - 62px);
  overflow-y: auto; display: flex; flex-direction: column;
}
.pc-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; margin-bottom: 24px; padding: 0 6px; color: var(--text); }
.pc-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pc-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 10px; background: transparent;
  color: var(--muted); font-size: 14px; cursor: pointer; border: none; transition: .15s;
  filter: grayscale(1); opacity: .6;
}
.pc-nav button i { font-style: normal; font-size: 16px; width: 22px; text-align: center; }
.pc-nav button:hover { background: transparent; color: var(--text); opacity: 1; filter: grayscale(.3); }
.pc-nav button.active { background: var(--grad, linear-gradient(120deg,#c9a063,#d9b87a)); color: #fff; box-shadow: 0 4px 16px rgba(201,160,99,.25); filter: none; opacity: 1; }
.pc-side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.pc-badge { margin-left: auto; background: #ff4d4f; color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.pc-nav button.active .pc-badge { background: #fff; color: #ff4d4f; }
/* 个人中心：个人资料 + 我的消息（自包含暗色卡片） */
.pc-card { background: var(--surface-2,#171b2e); border: 1px solid var(--line,#262b45); border-radius: 14px; padding: 18px; margin: 14px 0; }
.pc-card h3 { font-size: 16px; margin: 0 0 12px; color: var(--text,#fff); }
.pc-field { display:block; font-size: 13px; color: var(--muted,#cbd2e8); margin: 10px 0 4px; }
.pc-input, .pc-card textarea { width: 100%; padding: 10px; border-radius: 9px; border: 1px solid var(--line,#2a2f4a); background: var(--surface,#0f1220); color: var(--text,#fff); font-size: 14px; font-family: inherit; box-sizing: border-box; }
.pc-btn { width: 100%; padding: 11px; border: 0; border-radius: 10px; background: var(--grad,linear-gradient(120deg,#c9a063,#d9b87a)); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.pc-btn.ghost { background: var(--surface-3,#2a2f4a); }
.pc-msgbar { display:flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pc-msg { display:flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line,#262b45); border-radius: 12px; margin-bottom: 10px; background: var(--surface,#11141f); cursor: pointer; transition: .15s; }
.pc-msg:hover { border-color: var(--accent,#3a4066); }
.pc-msg.unread { border-left: 3px solid var(--brand,#f0873a); background: var(--surface-2,#161a2e); }
.pc-msg .ico { width: 36px; height: 36px; border-radius: 9px; flex: 0 0 36px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: var(--surface-2,#1f243c); }
.pc-msg .mbody { flex: 1; min-width: 0; }
.pc-msg .mttl { font-weight: 600; color: var(--text,#fff); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pc-msg .mtxt { font-size: 13px; color: var(--muted,#9aa3c0); margin: 4px 0 6px; line-height: 1.5; }
.pc-msg .mmeta { font-size: 11px; color: #6b7494; }
.pc-tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.pc-tag.ok{background:#16331f;color:#5ad17a}.pc-tag.err{background:#3a1a1a;color:#ff8a8a}.pc-tag.warn{background:#3a2e16;color:#f0a93a}
.pc-tag.info{background:#16263a;color:#7cc0ff}.pc-tag.gold{background:#3a3216;color:#f0c93a}.pc-tag.vip{background:#2c1f3a;color:#c89bff}
.pc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand,#f0873a); flex: 0 0 8px; }
.pc-av-edit { display:flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.pc-av-edit .pc-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--surface-2,#2a2f4a); border: 1px solid var(--line,#3a4066); display:flex; align-items:center; justify-content:center; font-weight:700; color: var(--brand,#f0873a); font-size: 26px; overflow:hidden; }
.pc-filebtn { position: relative; overflow: hidden; display: inline-block; }
.pc-filebtn input { position: absolute; left: 0; top: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.pc-filebtn .pc-btn { width: auto; margin: 0; padding: 9px 16px; font-size: 13px; }

/* ---- 我的发票 ---- */
.pc-inp { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 14px; box-sizing: border-box; font-family: inherit; }
.pc-inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.pc-seg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.pc-seg label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.pc-link { color: var(--accent); font-size: 13px; text-decoration: none; }
.pc-link:hover { text-decoration: underline; }
/* 评价弹窗星级选择 */
.rv-stars { display: flex; gap: 6px; font-size: 28px; line-height: 1; margin: 4px 0 12px; }
.rv-stars span { color: #ddd; cursor: pointer; transition: color .12s; user-select: none; }
.rv-stars span.on { color: #f5a623; }
.rv-stars span:hover { color: #f7b955; }
/* 评价弹窗：图片上传 */
.rv-upload { margin: 4px 0 4px; }
.rv-upload-btn { display: inline-block; padding: 8px 14px; border-radius: 9px; background: var(--surface-2, #f4f1ea); border: 1px dashed var(--gold, #c9a063); color: var(--gold, #b8860b); font-size: 13px; cursor: pointer; }
.rv-upload-btn:hover { background: #f8f3e8; }
.rv-img-prev { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rv-thumb { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line, #ece6da); }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-thumb-x { position: absolute; top: 1px; right: 1px; width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 12px; background: rgba(0,0,0,.55); color: #fff; border-radius: 0 0 0 8px; cursor: pointer; }
.inv-list { display: flex; flex-direction: column; gap: 12px; }
.inv-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.inv-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.inv-no { font-size: 12px; color: var(--muted); }
.inv-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.inv-meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.inv-reason { font-size: 12px; color: #ff8a8a; background: #3a1a1a; padding: 8px 10px; border-radius: 8px; margin-bottom: 8px; }
.inv-date { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }

.pc-main { padding: 26px 30px; max-width: 1100px; overflow-y: auto; }
.pc-topbar { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.pc-topbar h2 { font-size: 20px; font-weight: 800; margin: 0; color: var(--text); }
.pc-sub { font-size: 13px; color: var(--muted); margin: 0; }
.pc-body { min-height: 300px; }

/* ---- 钱包（内聚到 SPA） ---- */
.pw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.pw-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.pw-card h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.pw-card .pw-val { font-size: 24px; font-weight: 800; color: var(--accent-a); }
.pw-card .pw-val span { font-size: 13px; color: var(--muted); font-weight: 500; }
.pw-section { margin-top: 24px; }
.pw-section > h3 { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.pw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pw-table th { text-align: left; padding: 9px 10px; background: var(--surface); color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.pw-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--text); }
.pw-empty { text-align: center; color: var(--muted); padding: 24px; font-size: 13px; }

/* ---- 分销中心（内聚到 SPA） ---- */
.dc-apply { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.dc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.dc-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.dc-stat .dc-sv { font-size: 22px; font-weight: 800; color: var(--accent-a); }
.dc-stat .dc-sl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.dc-mat-list { display: flex; flex-direction: column; gap: 10px; }
.dc-mat-item { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.dc-mat-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.dc-mat-info { flex: 1; min-width: 0; }
.dc-mat-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-mat-info span { font-size: 12px; color: var(--muted); }
.dc-wd-history { margin-top: 16px; max-height: 260px; overflow-y: auto; }
.dc-mat-col-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin: 2px 0 10px; }
.dc-hl-tag { display:inline-block; padding:2px 8px; border-radius:10px; background:var(--grad-soft); color:var(--accent-a); font-size:11.5px; font-weight:600; }
.dc-picked-btn { background: var(--grad-soft) !important; color: var(--accent-a) !important; border:1px solid var(--line) !important; }
.dc-share-sub { font-size:12.5px; color:var(--muted); margin:0 0 14px; line-height:1.6; }
.dc-share-note { background:var(--grad-soft); border:1px solid var(--line); border-radius:12px; padding:12px 14px; }
.claim-modal { position:fixed; inset:0; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; z-index:9999; padding:16px; }
.claim-box { background:var(--surface); border:1px solid var(--line); border-radius:16px; max-width:460px; width:100%; padding:24px 22px; position:relative; box-shadow:0 10px 40px rgba(0,0,0,.3); }
.claim-box h3 { margin:0 0 6px; font-size:18px; color:var(--text); }
.claim-close { position:absolute; top:12px; right:14px; border:none; background:transparent; color:var(--muted); font-size:24px; line-height:1; cursor:pointer; }

/* 移动端适配：左列竖向菜单（全部菜单项常驻左侧） */
@media (max-width: 768px) {
  .pc-layout.show { grid-template-columns: minmax(116px, 33vw) 1fr; align-items: start; min-height: auto; }
  .pc-side {
    position: sticky; top: 67px; height: calc(100vh - 67px);
    padding: 12px 8px; border-right: 1px solid var(--line); border-bottom: none;
    flex-direction: column; align-items: stretch; gap: 4px; overflow-y: auto;
  }
  .pc-brand { margin-bottom: 16px; flex-shrink: 0; font-size: 13.5px; white-space: nowrap; justify-content: flex-start; gap: 6px; }
  .pc-nav { flex-direction: column; gap: 4px; flex: unset; }
  .pc-nav button { padding: 10px 8px; font-size: 12.5px; white-space: nowrap; }
  .pc-nav button i { display: inline-block; font-size: 14px; width: 18px; } /* 手机端显示图标 */
  .pc-side-foot { display: none; }
  .pc-main { padding: 14px; }
}

@media (max-width: 480px) {
  .pc-layout.show { grid-template-columns: minmax(108px, 30vw) 1fr; }
  .pc-nav button { padding: 9px 6px; font-size: 12px; }
  .pc-nav button i { width: 16px; font-size: 13px; }
}

/* 我的作品：批量操作条 */
.mw-batch {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap;
}
.mw-batch .ck-row { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.mw-batch .ck-row input { accent-color: #c9a063; }
.mw-batch-info { font-size: 13px; color: var(--muted); }
.mw-batch-info b { color: var(--text); }
.mw-check { display: inline-flex; align-items: center; padding: 0 6px 0 2px; flex: 0 0 auto; }
.mw-check input { width: 18px; height: 18px; accent-color: #c9a063; cursor: pointer; }
.mw-item { position: relative; }
.mw-item .mw-check { position: absolute; left: 10px; top: 14px; z-index: 2; }
.mw-item { padding-left: 30px; }

/* 置顶推广档位选择 */
.promo-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.promo-tier {
  text-align: center; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; transition: .15s;
}
.promo-tier:hover { border-color: var(--pink, #c9a063); }
.promo-tier.active { border-color: #c9a063; background: #c9a06315; box-shadow: 0 0 0 2px #c9a06355 inset; }
.promo-tier-name { font-weight: 700; font-size: 14px; }
.promo-tier-price { margin-top: 6px; font-size: 16px; font-weight: 800; color: var(--accent-a, #c9a063); }
.promo-tier-price span { font-size: 11px; color: var(--muted); font-weight: 500; }
.promo-calc-row { margin: 14px 0 12px; font-size: 15px; color: var(--text); }
.promo-calc-row b { font-size: 22px; color: var(--accent-a, #c9a063); margin-left: 6px; }

/* 微信支付弹层（扫码） */
.pay-qr-wrap { text-align: center; margin: 8px 0 4px; }
.pay-qr {
  width: 220px; height: 220px; margin: 0 auto; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.pay-qr img { display: block; }
.pay-qr-text { font-size: 11px; word-break: break-all; color: var(--muted); max-height: 200px; overflow: auto; text-align: left; }
.pay-qr-tip { margin: 10px 0 2px; font-size: 13px; color: var(--muted); }
.pay-qr-tip b { color: #07c160; }
.pay-status { margin: 10px 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.pay-status.ok { color: #07c160; }
.pay-status.fail { color: #e64340; }

/* ===== AI 推荐助手（小龙虾）===== */
.btn-ai { background: linear-gradient(135deg,#ff7a45,#ff4d4f); color:#fff; border:none; font-weight:600; }
.btn-ai:hover { filter: brightness(1.05); }
.ai-chat-overlay {
  position: fixed; inset: 0; z-index: 1300; background: rgba(15,18,30,.55);
  display: flex; align-items: center; justify-content: center; padding: 0;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.ai-chat-panel {
  width: min(760px, 100vw); height: min(88vh, 100vh);
  background: var(--bg, #fff); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.38); display: flex; flex-direction: column;
}
.ai-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; background: linear-gradient(135deg,#ff7a45,#ff4d4f); color: #fff; font-size: 16px; font-weight: 600;
}
.ai-chat-head .x { background: rgba(255,255,255,.2); border: none; color: #fff; width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 16px; }
.ai-chat-head .x:hover { background: rgba(255,255,255,.32); }
.ai-chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--bg-2, #f7f8fa); }
.ai-msg { display: flex; gap: 10px; align-items: flex-start; }
.ai-msg.ai-user { flex-direction: row-reverse; }
.ai-avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff1ea; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; }
.ai-bubble { max-width: 82%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.ai-bot .ai-bubble { background: #fff; color: #222 !important; border: 1px solid var(--border, #ececec); border-top-left-radius: 3px; }
.ai-user .ai-bubble { background: #ff7a45; color: #fff; border-top-right-radius: 3px; }
.ai-chat-input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border, #ececec); background: var(--bg, #fff); align-items: flex-end; }
.ai-chat-input textarea { flex: 1; min-width: 0; border: 1.5px solid #e0e0e0; border-radius: 16px; padding: 11px 16px; font-size: 14px; line-height: 1.5; font-family: inherit; background: #f8f9fa; color: #222; resize: none; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; max-height: 120px; }
.ai-chat-input textarea::placeholder { color: #b0b0b0; }
.ai-chat-input textarea:focus { border-color: #ff7a45; box-shadow: 0 0 0 3px rgba(255,122,69,.12); background: #fff; }
.ai-chat-input button#aiChatSend { background: linear-gradient(135deg,#ff7a45,#ff4d4f); color: #fff; border: none; border-radius: 14px; padding: 0 24px; height: 42px; font-size: 14px; font-weight: 600; cursor: pointer; flex: 0 0 auto; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.ai-chat-input button#aiChatSend:hover:not(:disabled) { transform: scale(1.04); box-shadow: 0 2px 12px rgba(255,77,79,.3); }
.ai-chat-input button#aiChatSend:active:not(:disabled) { transform: scale(.97); }
.ai-chat-input button#aiChatSend:disabled { opacity: .55; cursor: default; }
.ai-card-line { margin-top: 6px; font-size: 14px; line-height: 1.7; color: #222; }
.ai-card-link { color: #222 !important; text-decoration: underline; font-weight: 600; cursor: pointer; word-break: break-word; }
.ai-card-link:hover { color: #ff4d4f !important; }
.ai-card-price { color: #ff4d4f; font-weight: 600; font-size: 13px; margin-left: 4px; }
.ai-card-meta { color: #888; font-size: 12px; margin-left: 2px; }
.ai-typing { font-size: 12px; color: var(--muted, #999); padding: 2px 2px 0; }
.ai-handoff { display: flex; gap: 10px; align-items: flex-start; background: linear-gradient(135deg,#eafaf1,#f3fbf6); border: 1px solid #bfe9cf; border-radius: 12px; padding: 12px; }
.ai-handoff-icon { font-size: 22px; line-height: 1; }
.ai-handoff-body { flex: 1; min-width: 0; }
.ai-handoff-title { font-size: 13px; font-weight: 700; color: #1a8a4f; margin-bottom: 3px; }
.ai-handoff-text { font-size: 12.5px; color: #2c3e36; line-height: 1.5; margin-bottom: 8px; }
.ai-handoff-source { font-size: 12.5px; color: #1a8a4f; background: #eafaf1; border: 1px dashed #bfe9cf; border-radius: 8px; padding: 6px 9px; margin-bottom: 8px; line-height: 1.5; }
.ai-handoff-source b { color: #146b3e; }
.ai-handoff-btn { display: inline-block; background: linear-gradient(135deg,#2aae67,#1f9a59); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 9px; text-decoration: none; box-shadow: 0 2px 8px rgba(42,174,103,.25); }
.ai-handoff-btn:hover { filter: brightness(1.05); }
.ai-handoff-qr { display: block; width: 116px; height: 116px; object-fit: contain; background: #fff; border: 1px solid #bfe9cf; border-radius: 10px; margin: 4px 0 6px; }
.ai-handoff-tip { font-size: 11px; color: #7aa78d; margin-top: 6px; }
@media (max-width: 560px) {
  .ai-chat-panel { width: 100vw; height: 100vh; border-radius: 0; }
  .ai-bubble { max-width: 88%; }
}

/* ==================== 通告广场 ==================== */
.btn-tg {
  background: var(--grad-soft);
  border: 1px solid rgba(201,160,99,.45);
  color: #ffd7ea;
  font-weight: 600;
}
.btn-tg:hover { border-color: var(--accent-a); color: #fff; }
.tg-view { max-width: var(--maxw); margin: 10px auto 60px; padding: 0 22px; }
.tg-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.tg-title-wrap { flex: 1 1 auto; min-width: 180px; }
.tg-h { font-size: 24px; font-weight: 800; margin: 0; }
.tg-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.tg-updated { opacity: .8; }
.tg-head-actions { display: flex; gap: 8px; }
.tg-benefit { font-size: 13px; line-height: 1.5; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.tg-benefit.ok { background: rgba(95,227,155,.12); border: 1px solid rgba(95,227,155,.4); color: #1f9d5c; }
.tg-benefit.lock { background: rgba(255,196,84,.12); border: 1px solid rgba(255,196,84,.45); color: #9a6b00; }
.tg-benefit b { color: inherit; }
.tg-benefit a { color: var(--accent-c); font-weight: 700; text-decoration: none; cursor: pointer; }
.tg-benefit a:hover { text-decoration: underline; }
.tg-filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 18px;
}
.tg-input {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; font-size: 14px; outline: none; min-width: 150px;
}
.tg-input:focus { border-color: var(--accent-b); }
#tgKeyword { flex: 1 1 240px; }
.tg-check { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.tg-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px;
}
.tg-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tg-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-glow); }
.tg-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tg-cat { font-size: 15px; font-weight: 700; color: var(--text); }
.tg-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.tg-badge { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tg-badge-urgent { background: rgba(255,77,79,.16); color: #ff6b6b; border: 1px solid rgba(255,77,79,.4); }
.tg-badge-official { background: rgba(0,229,255,.14); color: var(--accent-c); border: 1px solid rgba(0,229,255,.4); }
.tg-badge-member { background: rgba(217,184,122,.16); color: #c79bff; border: 1px solid rgba(217,184,122,.4); }
.tg-desc { font-size: 14px; line-height: 1.6; color: #e7e7f2; margin: 0; white-space: pre-wrap; word-break: break-word; }
.tg-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tg-pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.tg-tags { font-size: 12.5px; color: var(--accent-c); opacity: .9; }
.tg-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.tg-pub { font-size: 12.5px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-empty { margin-top: 40px; }
@media (max-width: 640px) {
  .tg-list { grid-template-columns: 1fr; }
  .tg-head-actions { width: 100%; }
  .tg-head-actions .btn { flex: 1; }
}

/* 通告联系方式弹层（会员可见） */
.tg-co-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; margin-bottom: 12px; }
.tg-co-label { font-size: 13px; color: var(--muted, #8a90a2); margin-bottom: 6px; }
.tg-co-value { font-size: 20px; font-weight: 700; color: var(--text, #1b1f2a); letter-spacing: .3px; word-break: break-all; }
.tg-co-tip { font-size: 12.5px; color: var(--muted, #8a90a2); line-height: 1.6; margin: 0; }
.tg-co-lock { text-align: center; padding: 12px 4px 4px; }
.tg-co-lock-ico { font-size: 38px; margin-bottom: 8px; }
.tg-co-lock-title { font-size: 15px; font-weight: 600; color: var(--text, #1b1f2a); margin: 0 0 6px; }
.tg-co-lock-sub { font-size: 13px; color: var(--muted, #8a90a2); margin: 0 0 14px; }

/* ==================== 手机端导航抽屉（Hamburger Drawer） ==================== */
/* 桌面端：导航按钮在 <nav class="topbar-nav"> 内，随 header 正常内联显示 */
/* 手机端：隐藏内联导航，使用独立 .mobile-drawer 侧滑面板 */

.nav-toggle {
  display: none; /* 默认隐藏，仅移动端显示 */
  background: none; border: none; color: var(--text);
  font-size: 22px; cursor: pointer; padding: 6px 10px;
  border-radius: 10px; transition: background .15s;
  align-items: center; justify-content: center; line-height: 1;
}
.nav-toggle:hover { background: var(--surface-2); }

/* 遮罩层 */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 298;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.nav-overlay.show { display: block; }

/* 移动端抽屉面板（独立于 header，避免 backdrop-filter containing block） */
.mobile-drawer {
  display: none; /* 桌面端隐藏 */
}
.nav-drawer-head { display: none; } /* 桌面端隐藏抽屉头部 */

/* 打开菜单时禁止背景滚动 */
body.nav-open { overflow: hidden !important; }

@media (max-width: 768px) {
  /* 禁用顶栏 backdrop-filter，避免创建 containing block 破坏子元素 fixed 定位 */
  .topbar { backdrop-filter: none !important; background: var(--bg, #14110d); }

  .nav-toggle { display: flex; } /* 显示汉堡按钮 */
  .nav-drawer-head { display: flex; align-items: center; gap: 10px; padding: 4px 2px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
  .nav-drawer-head img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-glow); flex-shrink: 0; }
  .nav-drawer-head b { font-size: 18px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

  /* 隐藏桌面端内联导航 */
  .topbar-nav { display: none !important; }

  /* 抽屉面板：左侧滑出 */
  .mobile-drawer {
    display: block;
    position: fixed; top: 0; left: 0; right: auto; bottom: 0;
    width: min(280px, 78vw);
    flex-direction: column; align-items: stretch;
    gap: 4px; padding: 60px 16px 24px;
    background: var(--bg, #14110d);
    border-right: 1px solid var(--line);
    box-shadow: 8px 0 32px rgba(0,0,0,.45);
    transform: translateX(-106%);
    transition: transform .3s cubic-bezier(.2,.9,.2,1);
    z-index: 299; overflow-y: auto;
  }
  .mobile-drawer.open { transform: translateX(0); }
  .drawer-buttons { display: flex; flex-direction: column; gap: 4px; }
  .drawer-buttons .btn {
    flex: 0 0 auto; text-align: left; justify-content: flex-start;
    padding: 13px 16px; font-size: 15px; border-radius: 12px;
  }
  /* 关闭按钮（抽屉内顶部右端） */
  #navClose {
    display: block; position: absolute; top: 14px; right: 14px;
    background: none; border: none; color: var(--muted);
    font-size: 28px; cursor: pointer; padding: 6px 10px; line-height: 1;
    z-index: 5;
  }
}

/* 桌面端隐藏关闭按钮 */
#navClose { display: none; }

/* ==================== 编辑器页面 · 移动端强化 ==================== */
@media (max-width: 768px) {
  .overlay.editor-page {
    padding: 0 !important; /* 清除 overlay 默认的 40px 内边距 */
  }
  .editor-page .ep-inner { padding: 14px 12px 80px !important; }
  .field { margin-bottom: 12px; }
  .field label { font-size: 12.5px; }
  .field input, .field textarea, .field select {
    padding: 10px 12px; font-size: 14px;
    -webkit-appearance: none; appearance: none;
  }
  .grid2 { grid-template-columns: 1fr !important; } /* 双列变单列 */
  .form-sec-h { font-size: 12.5px; }
  .checks { gap: 8px 14px; }
}

/* ==================== 手机端全局体验增强（2026-07-28 UI 重设计） ==================== */
@media (max-width: 768px) {
  /* 防止个别组件溢出引发横向滚动；clip 不会破坏 sticky 顶栏 */
  html { overflow-x: clip; }

  /* 触控目标放大：保证可点区域 ≥ 40px，提升移动端可达性 */
  .rank-tab,
  .filter-bar .chip,
  .fb-select,
  .fb-clear,
  .tab-item {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .tab-item { min-height: 42px; font-size: 13.5px; }

  /* 搜索框字体 ≥ 16px，避免 iOS 聚焦时自动放大页面 */
  .search input { font-size: 16px; }

  /* 分类说明在小屏重置左侧大缩进 */
  .cats-note { padding-left: 0; padding-right: 4px; }

  /* Tab 导航栏在小屏收紧内边距 */
  .tab-nav { margin-left: 12px; margin-right: 12px; border-radius: 11px; }
  .tab-item { font-size: 13.5px; padding: 11px 0; }

  /* 场景卡片移动端更紧凑 */
  .scenario-card { padding: 14px 6px 12px; border-radius: 12px; }
  .scenario-emoji { font-size: 26px; margin-bottom: 6px; }
  .scenario-name { font-size: 13px; }

  /* 编辑页输入 ≥ 16px，避免 iOS 聚焦放大 */
  .editor-page .field input,
  .editor-page .field textarea,
  .editor-page .field select { font-size: 16px; }
}

/* ============ 滑块拼图验证码 ============ */
.cap-widget { position: relative; display: flex; flex-direction: column; gap: 10px; }
.cap-img { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: #221a12; line-height: 0; }
.cap-img svg { display: block; width: 100%; height: auto; }
.cap-track { position: relative; height: 44px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; touch-action: none; }
.cap-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(201,160,99,.22); border-radius: 999px; transition: width .05s linear; }
.cap-handle { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #e9c789, #b8893f); color: #2b2118; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: grab; box-shadow: 0 2px 6px rgba(0,0,0,.3); z-index: 2; user-select: none; touch-action: none; }
.cap-handle:active { cursor: grabbing; }
.cap-tip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); pointer-events: none; z-index: 1; }
.cap-refresh { position: absolute; top: -6px; right: -6px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent-a); font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; line-height: 1; }
.cap-widget.ok .cap-track { border-color: #3fae6b; }
.cap-widget.ok .cap-fill { background: rgba(63,174,107,.25); }
.cap-widget.ok .cap-handle { background: linear-gradient(135deg, #5fd28c, #3fae6b); color: #08210f; }
.cap-tip.ok { color: #3fae6b; font-weight: 700; }
.cap-tip.err { color: #e06b6b; }
.cap-widget.shake { animation: capShake .4s; }
@keyframes capShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .cap-widget.shake { animation: none; } }

/* 极窄屏（≤560px）：进一步压缩顶栏与票务栅格 */
@media (max-width: 560px) {
  .topbar-inner { gap: 8px; }
  .search { padding: 8px 12px; }
  .promo-tiers { grid-template-columns: 1fr; }
  .rank-tabs { gap: 8px; }
  .rank-tab { padding: 8px 14px; }
}

/* ============================================================
   桌面端适配（≥769px）
   策略：在移动端优先基础上，用 min-width 断点"增强"桌面体验。
   所有规则仅影响 ≥769px 视口，移动端（≤768px）零改动。
   ============================================================ */
@media (min-width: 769px) {

  /* ---- 全局容器：增加内边距，利用宽屏空间 ---- */
  .topbar-inner    { padding: 14px 36px; }
  .hero           { padding: 0 36px; margin-top: 36px; }
  .hero h1        { font-size: clamp(32px, 4vw, 52px); }
  .hero p         { font-size: 16px; max-width: 700px; }
  .cats           { padding: 2px 36px; }
  .wrap           { padding: 0 36px; }
  .scenarios      { padding: 0 36px; }
  .hl-wrap        { padding: 0 36px 48px; }
  .seo-intro      { padding: 24px 36px; }
  .foot           { padding: 40px 36px 60px; }

  /* ---- Tab 导航：桌面端图标 + 卡片化分隔 + 强选中态 ---- */
  .tab-nav        {
    margin: 28px auto 0;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px;
    gap: 4px;
  }
  .tab-item       {
    flex: 1;
    padding: 14px 8px;
    font-size: 15px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    background: transparent;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: .02em;
  }
  /* 图标 */
  .tab-item[data-tab="featured"]::before { content: '⭐'; font-size: 17px; }
  .tab-item[data-tab="pro"]::before        { content: '🎭'; font-size: 17px; }
  .tab-item[data-tab="scenarios"]::before   { content: '🔍'; font-size: 17px; }

  /* 未选中态：可点击按钮感 */
  .tab-item:not(.active) {
    color: var(--text-secondary);
    border-color: rgba(201,160,99,.18);
  }
  .tab-item:not(.active):hover {
    color: var(--accent-a);
    background: rgba(201,160,99,.08);
    border-color: rgba(201,160,99,.35);
    transform: translateY(-1px);
  }

  /* 选中态：金色填充 + 底部渐变线 */
  .tab-item.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(201,160,99,.22), rgba(201,160,99,.10));
    border-color: var(--accent-a);
    box-shadow: 0 2px 12px rgba(201,160,99,.18), inset 0 1px 0 rgba(255,255,255,.06);
  }
  .tab-item.active::after {
    height: 3px;
    left: 28%;
    right: 28%;
  }

  /* ---- 分类 chips：增大触控区与间距 ---- */
  .cats-row       { gap: 12px; }
  .cats-chips     { gap: 10px; }
  .chip           { padding: 9px 18px; font-size: 14px; border-radius: 999px; }
  .cats-label     { font-size: 14px; }
  .cats-note      { font-size: 13px; }

  /* ---- 专业艺人下拉：稍宽 ---- */
  .pro-select     { max-width: 420px; min-width: 240px; font-size: 14px; padding: 10px 38px 10px 16px; }

  /*
   * ===== 首页模块卡片网格（核心修复） =====
   * 移动端：flex + overflow-x 横向滚动（窄卡片 180px）
   * 桌面端：CSS Grid 自动填充，卡片自适应宽度
   */
  .home-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 20px;
    overflow-x: visible;
    padding-bottom: 0;
    scrollbar-width: none;
  }
  .home-row::-webkit-scrollbar { display: none; }

  /* 卡片：取消固定宽度，让 Grid 控制尺寸 */
  .card--row {
    width: auto;
    min-width: 0;
    max-width: 280px;
    justify-self: center;
  }

  /* 封面图：桌面端稍微修长一点（4:5 → 3:4），更有质感 */
  .cover--row      { aspect-ratio: 3 / 4; }

  /* 卡片内容区：更多内边距 */
  .card-body--row  { padding: 14px 16px; gap: 10px; }
  .card-title--row { font-size: 15px; }
  .pill--sm        { font-size: 11.5px; padding: 3px 10px; }

  /* Section 标题区：更大字号与间距 */
  .home-section       { margin-bottom: 48px; }
  .home-section-head  { margin-bottom: 18px; padding-bottom: 12px; }
  .home-section-title { font-size: 20px; }
  .home-section-more  { font-size: 14px; }

  /* ---- 场景卡片网格：桌面更宽松 ---- */
  .scenarios-grid  { gap: 14px; }
  .scenario-card   { padding: 20px 18px 18px; border-radius: 16px; }
  .scenario-emoji  { font-size: 32px; margin-bottom: 8px; }
  .scenario-name   { font-size: 15px; }

  /* ---- 列表视图 masonry 网格：桌面可显示更多列 ---- */
  .masonry         { gap: 22px; }
  .card            { border-radius: 20px; }
  .card:hover      { transform: translateY(-6px); }

  /* ---- 热度榜/排名：桌面双列更紧凑 ---- */
  .hl-body         { gap: 2px; }
  .hl-stations     { width: 220px; }
  .hl-hosts        { width: 260px; }
  .hl-detail       { padding: 32px; }
  .hl-detail-cover { width: 170px; height: 212px; margin-bottom: 24px; }

  /* ---- 筛选栏：桌面横向排列更舒适 ---- */
  .filter-bar      { gap: 12px; }
  .fb-select       { font-size: 14px; min-width: 140px; }

  /* ---- 登录模态框：桌面更宽 ---- */
  .auth-modal      { max-width: 900px; }
  .auth-aside      { padding: 48px 36px; }
  .auth-aside h2   { font-size: 26px; }

  /* ---- AI 聊天：桌面更宽敞 ---- */
  .ai-chat-modal   { max-width: 520px; }
  .ai-chat-msgs    { padding: 24px; gap: 18px; }

  /* ---- 会员中心：桌面栅格更宽松 ---- */
  .mc-plans        { gap: 16px; }
  .mc-plan         { padding: 18px; }

  /* ---- 分享横幅 ---- */
  .share-banner    { padding: 14px 20px; font-size: 14px; }
}

/* 大屏优化（≥1280px）：卡片网格可以更宽 */
@media (min-width: 1280px) {
  .home-row {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
  }
  .card--row { max-width: 300px; }

  .hero           { padding: 0 48px; margin-top: 44px; }
  .cats           { padding: 2px 48px; }
  .wrap           { padding: 0 48px; }
  .scenarios      { padding: 0 48px; }
  .topbar-inner    { padding: 14px 48px; }
  .foot           { padding: 48px 48px 72px; }
}
