/* =========================================================
   DY女菩萨 · Design System v1.0
   主题: light / oled 双主题 · 完全响应式
   ========================================================= */
:root {
  --brand: #ff5a3c;
  --brand-2: #ffb454;
  --brand-grad: linear-gradient(135deg, #ff7a3c 0%, #ff5a3c 48%, #ffb454 130%);
  --brand-glow: rgba(255, 90, 60, 0.35);

  --bg: #f5f6f8;
  --bg-soft: #ffffff;
  --bg-elev: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --text: #161823;
  --text-2: #5b5f6c;
  --text-3: #767b8c;
  --border: rgba(22, 24, 35, 0.09);
  --shadow: 0 10px 34px rgba(22, 24, 35, 0.08);
  --shadow-sm: 0 4px 16px rgba(22, 24, 35, 0.06);
  --radius: 18px;
  --radius-sm: 12px;

  --ok: #07b33c;
  --warn: #ff9500;
  --danger: #ec2d46;
  --chip-bg: #f0f1f4;
  --banner-plain: #eceef2;
  --line: rgba(22, 24, 35, 0.10);
  --text-40: rgba(22, 24, 35, 0.42);
  --text-50: rgba(22, 24, 35, 0.54);
  --text-60: rgba(22, 24, 35, 0.68);
  --gold: #b45309;

  --font-main: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html[data-theme='oled'] {
  --bg: #000000;
  --bg-soft: #0a0a0d;
  --bg-elev: #101014;
  --bg-glass: rgba(16, 16, 20, 0.78);
  --text: #f5f5f7;
  --text-2: #b0b3bd;
  --text-3: #82879a;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --chip-bg: rgba(255, 255, 255, 0.06);
  --banner-plain: #17171c;
  --line: rgba(255, 255, 255, 0.12);
  --text-40: rgba(255, 255, 255, 0.44);
  --text-50: rgba(255, 255, 255, 0.56);
  --text-60: rgba(255, 255, 255, 0.70);
  --gold: #ffd166;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }
img { display: block; }
kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--chip-bg);
  border-bottom: 2px solid var(--border);
}

.hidden { display: none !important; }

/* ---------- 背景粒子 ---------- */
#bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
html[data-theme='oled'] #bg-particles { opacity: 0.75; }

/* ---------- 应用容器 ---------- */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* =========================================================
   Header
   ========================================================= */
.v2-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  margin: 0 -20px;
  padding: 0 20px;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
}
.header-brand-group { display: flex; align-items: center; flex-shrink: 0; }
.brand-link { display: flex; align-items: center; gap: 10px; }
.brand-mask {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 4px 14px var(--brand-glow);
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 12px;
  overflow: hidden;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-search-wrap { flex: 1; min-width: 120px; }
.search-box {
  position: relative;
  max-width: 460px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.search-icon { color: var(--text-3); flex-shrink: 0; }
#global-search {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
#global-search::placeholder { color: var(--text-3); }
.search-clear-btn {
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  color: var(--text-3);
}
.search-clear-btn:hover { color: var(--text); background: var(--chip-bg); }
.key-shortcut { color: var(--text-3); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-grad {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 4px 16px var(--brand-glow);
}
.btn-grad:hover { transform: translateY(-1px); box-shadow: 0 6px 22px var(--brand-glow); }
.btn-ghost {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger {
  background: rgba(236, 45, 70, 0.1);
  color: var(--danger);
}
.btn-danger:hover { background: rgba(236, 45, 70, 0.18); }

.theme-toggle-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.theme-toggle-btn:hover { color: var(--brand); border-color: var(--brand); }

/* =========================================================
   Hero
   ========================================================= */
.hero-section {
  margin: 26px 0 22px;
  border-radius: 24px;
  padding: 34px 34px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 340px at 15% -10%, rgba(255, 122, 60, 0.16), transparent 60%),
    radial-gradient(900px 300px at 90% 10%, rgba(255, 180, 84, 0.13), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 30px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: var(--brand);
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.15;
}
.shiny-text {
  background: linear-gradient(90deg, var(--text) 30%, var(--brand) 70%, var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme='oled'] .shiny-text {
  background: linear-gradient(90deg, #fff 25%, #ff8a5c 65%, #ffb454);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-description {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15px;
}

.hero-capsule {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px;
  box-shadow: var(--shadow-sm);
}
.capsule-item { display: flex; align-items: center; gap: 10px; }
.capsule-ico {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.ico-brand { background: rgba(255, 90, 60, 0.12); color: var(--brand); }
.ico-cyan { background: rgba(255, 180, 84, 0.16); color: var(--warn); }
.ico-gold { background: rgba(255, 149, 0, 0.13); color: var(--warn); }
.capsule-num { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.capsule-label { font-size: 12px; color: var(--text-3); }
.capsule-divider { width: 1px; height: 20px; background: var(--border); }
@media (max-width: 560px) { .capsule-divider { display: none; } }

/* ---------- Spotlight ---------- */
.hero-spotlight {
  border-radius: 20px;
  padding: 22px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--warn);
  margin-bottom: 12px;
}
.spotlight-loading { color: var(--text-3); font-size: 14px; padding: 18px 0; }
.spot-user { display: flex; gap: 14px; align-items: flex-start; }
.spot-avatar {
  width: 60px; height: 60px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--brand);
  flex-shrink: 0;
  background: var(--chip-bg);
}
.spot-info { min-width: 0; flex: 1; }
.spot-name {
  font-weight: 800; font-size: 17px;
  display: flex; align-items: center; gap: 6px;
}
.spot-handle { color: var(--text-2); font-size: 13px; font-family: var(--font-mono); }
.spot-metrics { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.spot-heat {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.spot-bio {
  color: var(--text-2); font-size: 13px;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spot-stats { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.spot-stat { font-size: 12px; color: var(--text-3); }
.spot-stat b { color: var(--text); font-weight: 700; margin-right: 3px; }
.btn-shuffle {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
  background: var(--chip-bg);
  color: var(--text-2);
  border-radius: 12px;
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
}
.btn-shuffle:hover { background: rgba(255, 90, 60, 0.1); color: var(--brand); }

/* =========================================================
   Discovery bar
   ========================================================= */
.discovery-bar { margin: 4px 0 18px; }
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }

/* 排序 pills (替代筛选区) */
.sort-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 3px;
  background: var(--chip-bg);
  border-radius: 14px;
}
.sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  transition: all 0.18s ease;
}
.sort-pill:hover { color: var(--brand); background: rgba(255, 90, 60, 0.08); }
.sort-pill.active {
  background: var(--bg-soft);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.f-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: all 0.18s ease;
}
.f-pill:hover { color: var(--brand); border-color: var(--brand); }
.f-pill.active {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--brand-glow);
}
.pill-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--chip-bg);
  color: var(--text-3);
  padding: 1px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.f-pill.active .pill-badge { background: rgba(255, 255, 255, 0.22); color: #fff; }

.view-tabs { display: flex; gap: 4px; background: var(--chip-bg); border-radius: 12px; padding: 4px; }
.view-tab {
  width: 34px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  color: var(--text-3);
  transition: all 0.18s;
}
.view-tab.active { background: var(--bg-soft); color: var(--brand); box-shadow: var(--shadow-sm); }

.discovery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.results-indicator { font-size: 13px; color: var(--text-3); }
.sort-ctrl { display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 13px; color: var(--text-3); }
.sort-select { position: relative; }
.sort-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.sort-trigger:hover { border-color: var(--brand); }
.sort-menu {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  min-width: 190px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 30;
}
.sort-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2);
}
.sort-item:hover { background: var(--chip-bg); color: var(--text); }
.sort-item.active { color: var(--brand); font-weight: 700; }

/* =========================================================
   Creator cards
   ========================================================= */
.gallery-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1180px) { .gallery-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .gallery-wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .gallery-wall { grid-template-columns: 1fr; } }
.gallery-wall.is-list { grid-template-columns: 1fr; }
.gallery-wall.is-compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
  cursor: pointer;
  position: relative;
  animation: card-in 0.4s ease both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.card-banner {
  height: 74px;
  background-color: var(--banner-plain);
  opacity: 0.9;
  background-size: cover;
  background-position: center;
}

/* 卡片顶部: 评级 + 综合得分 */
.card-top {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}
.rate-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.chip-sm { font-size: 10px; padding: 2px 8px; box-shadow: none; }
.ratings { display: flex; gap: 8px; flex-wrap: wrap; }
.rate-chip.clickable { cursor: pointer; opacity: 0.5; box-shadow: none; transition: opacity 0.15s, transform 0.15s; }
.rate-chip.clickable:hover { opacity: 0.85; transform: translateY(-1px); }
.rate-chip.clickable.active { opacity: 1; outline: 2px solid var(--text); outline-offset: 2px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); }
.r-夯 { background: linear-gradient(135deg, #ffd166, #ff8c42); color: #3a2400; }
.r-顶级 { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.r-人上人 { background: linear-gradient(135deg, #22d3ee, #0891b2); color: #042f35; }
.r-NPC { background: linear-gradient(135deg, #64748b, #475569); }
.r-拉完了 { background: linear-gradient(135deg, #94a3b8, #5b6270); color: #14161c; }
.r-none { background: rgba(20, 22, 28, 0.62); color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(6px); }
.card-score {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #ffd166;
  background: rgba(10, 10, 14, 0.66);
  border: 1px solid rgba(255, 209, 102, 0.35);
  padding: 2px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.score-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(255, 90, 60, 0.1);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.d-banner {
  height: 130px;
  border-radius: 14px;
  margin: 0 0 16px;
  background-color: var(--brand-grad);
  background-size: cover;
  background-position: center;
}
.card-body { padding: 0 16px 16px; }
.card-avatar-row { display: flex; align-items: flex-end; gap: 12px; }
.card-avatar-wrap { position: relative; margin-top: -32px; margin-bottom: 10px; flex-shrink: 0; }
.card-titlebox { min-width: 0; flex: 1; padding-bottom: 6px; }
.card-avatar {
  width: 68px; height: 68px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid var(--bg-soft);
  background: var(--chip-bg);
  box-shadow: var(--shadow-sm);
}
.verify-badge {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  border: 2px solid var(--bg-soft);
}
.card-name {
  font-weight: 800; font-size: 16px;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden;
}
.card-handle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-bio {
  font-size: 13px;
  color: var(--text-2);
  margin: 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.card-stat-row { display: flex; gap: 6px; flex-wrap: wrap; }
.card-stat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--chip-bg);
  padding: 4px 9px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.card-stat b { font-weight: 700; color: var(--text); }

/* 卡片底部: 热度 + 访问博主 */
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.card-heat {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}
.card-heat::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 6px;
  box-shadow: 0 0 8px rgba(255, 90, 60, 0.8);
}
.btn-card-visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 4px 14px var(--brand-glow);
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-card-visit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--brand-glow); }
.card-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  backdrop-filter: blur(6px);
}
.card-tag.gold { background: linear-gradient(135deg, #ffd166, #ff8c42); color: #3a2400; }

/* ---- 紧凑视图小卡片 ---- */
.card-mini { position: relative; }
.mini-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 8px;
}
.mini-avatar {
  width: 44px; height: 44px;
  border-radius: 13px;
  object-fit: cover;
  background: var(--chip-bg);
  flex-shrink: 0;
}
.mini-title { min-width: 0; flex: 1; }
.mini-name { font-size: 14px; }
.mini-bio {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  padding: 0 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 36px;
}
.mini-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px 12px;
}
.mini-stat { font-size: 11px; color: var(--text-3); }
.mini-stat b { font-size: 12px; color: var(--text-2); font-weight: 700; }
.mini-heat {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}
.mini-heat::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 5px;
  vertical-align: middle;
}

/* 无头图变体 */
.card.no-banner .card-body { padding-top: 16px; }

/* ---- skeleton ---- */
.skeleton {
  min-height: 286px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery-wall.is-compact .skeleton { min-height: 150px; }
.gallery-wall.is-list .skeleton { min-height: 62px; }
.sk-banner {
  height: 74px;
  flex-shrink: 0;
}
.sk-block {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}
.gallery-wall.is-list .sk-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
}
.sk-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
}
.sk-lines { display: flex; flex-direction: column; gap: 9px; }
.sk-lines.grow { flex: 1; min-width: 0; }
.sk-line { height: 12px; border-radius: 6px; }
.sk-line.w60 { width: 60%; }
.sk-line.w55 { width: 55%; }
.sk-line.w50 { width: 50%; }
.sk-line.w40 { width: 40%; }
.sk-line.w35 { width: 35%; }
.sk-line.w30 { width: 30%; }
.skeleton,
.sk-banner,
.sk-avatar,
.sk-line {
  background: linear-gradient(90deg, var(--chip-bg) 25%, var(--bg-elev) 52%, var(--chip-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
.gallery-wall.is-compact .sk-block,
.gallery-wall.is-list .skeleton { padding: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- 分页 ---- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 6px;
}
.pager-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--chip-bg);
  color: var(--text-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.18s;
}
.pager-btn:hover:not(:disabled) { color: var(--brand); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.pager-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pager-info {
  font-size: 13px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  min-width: 150px;
  text-align: center;
}

/* ---- 空状态 ---- */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-2);
}
.empty-state .big-ico {
  width: 70px; height: 70px;
  margin: 0 auto 18px;
  border-radius: 22px;
  display: grid; place-items: center;
  background: var(--chip-bg);
  color: var(--brand);
}
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 14px; margin-bottom: 16px; }

/* ---- 无限滚动 ---- */
.scroll-sentinel {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 24px 0;
  color: var(--text-3);
  font-size: 13px;
}
.spinner {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid var(--chip-bg);
  border-top-color: var(--brand);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   抽卡 Modal
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade-in 0.2s ease;
}
@keyframes fade-in { from { opacity: 0; } }
.roulette-card {
  width: min(400px, 100%);
  background: var(--bg-elev);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: pop-in 0.28s cubic-bezier(0.2, 1.2, 0.3, 1);
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.9) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.roulette-banner {
  height: 110px;
  background: var(--brand-grad);
}
.roulette-inner {
  padding: 0 22px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.roulette-avatar {
  width: 96px; height: 96px;
  border-radius: 28px;
  object-fit: cover;
  border: 4px solid var(--bg-elev);
  background: var(--chip-bg);
  margin-top: -52px;
  position: relative;
}
.roulette-name { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.roulette-handle { font-family: var(--font-mono); color: var(--text-2); font-size: 13px; }
.roulette-bio { color: var(--text-2); font-size: 14px; margin-top: 10px; min-height: 22px; text-align: center; }
.roulette-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn-roulette { flex: 1; justify-content: center; }
.btn-reshuffle { flex: 1; justify-content: center; background: var(--chip-bg); color: var(--text-2); }
.btn-reshuffle:hover { color: var(--brand); background: rgba(255, 90, 60, 0.1); }
.roulette-hint { text-align: center; margin-top: 12px; font-size: 11px; color: var(--text-3); }

/* =========================================================
   详情抽屉
   ========================================================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  animation: fade-in 0.2s ease;
}
.drawer {
  width: min(430px, 100%);
  height: 100%;
  background: var(--bg-elev);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  animation: slide-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  overflow: hidden;
}
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-title { font-weight: 700; font-size: 14px; }
.drawer-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--text-2);
}
.drawer-close:hover { background: rgba(255, 90, 60, 0.12); color: var(--brand); }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; }
.d-profile { display: flex; gap: 16px; align-items: flex-start; }
.d-rating-box {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 2px;
}
.d-score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.35);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.d-heat-bar { margin-top: 14px; }
.d-heat-bar span { font-size: 12px; color: var(--text-3); display: flex; align-items: center; justify-content: space-between; }
.d-heat-num { color: var(--brand); font-weight: 800; }
.d-heat-track {
  height: 6px;
  border-radius: 999px;
  background: var(--chip-bg);
  margin-top: 6px;
  overflow: hidden;
}
.d-heat-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand-grad);
  transition: width 0.5s ease;
}
.d-avatar {
  width: 84px; height: 84px;
  border-radius: 24px;
  object-fit: cover;
  border: 3px solid var(--brand);
  background: var(--chip-bg);
}
.d-name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.d-handle { font-family: var(--font-mono); color: var(--text-2); font-size: 13px; margin-top: 2px; }
.d-bio { color: var(--text-2); font-size: 14px; margin-top: 12px; white-space: pre-wrap; }
.d-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.d-meta {
  background: var(--chip-bg);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.d-meta b { font-size: 17px; font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
.d-meta span { font-size: 11px; color: var(--text-3); }
.d-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.d-row .k { color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.d-row .v { font-weight: 600; max-width: 65%; text-align: right; }
.d-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.d-out {
  justify-content: center;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 4px 16px var(--brand-glow);
}
.d-out:hover { transform: translateY(-1px); }

/* =========================================================
   Toast
   ========================================================= */
.toast-wrap {
  position: fixed;
  top: 74px;
  right: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 11px 16px;
  font-size: 13px;
  animation: toast-in 0.3s ease;
  max-width: 320px;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
@keyframes toast-in { from { transform: translateX(30px); opacity: 0; } }

/* =========================================================
   Footer
   ========================================================= */
.v2-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}
.footer-flex a:hover { color: var(--brand); }
.footer-disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
}

/* =========================================================
   投稿页
   ========================================================= */
.page-wrap { max-width: 760px; margin: 0 auto; }
.page-head { margin: 30px 0 20px; }
.page-title { font-size: clamp(24px, 4vw, 32px); font-weight: 800; }
.page-sub { color: var(--text-2); font-size: 14px; margin-top: 6px; }

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.panel .hint { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
html[data-theme='oled'] .input,
html[data-theme='oled'] .textarea {
  background: #1b1b21;
  border-color: rgba(255, 255, 255, 0.16);
}
html[data-theme='oled'] .input::placeholder,
html[data-theme='oled'] .textarea::placeholder { color: rgba(255, 255, 255, 0.34); }
.textarea { resize: vertical; min-height: 72px; }

/* 解析预览 */
.preview-box {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 14px;
  background: var(--bg-soft);
}
.preview-box img {
  width: 56px; height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--chip-bg);
  flex-shrink: 0;
}
.pv-name { font-weight: 800; font-size: 15px; }
.pv-handle { font-family: var(--font-mono); color: var(--text-3); font-size: 12px; }
.pv-bio { font-size: 13px; color: var(--text-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preview-box.pv-card {
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.pv-card .pv-banner {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: var(--chip-bg);
}
.pv-card .pv-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: -28px;
  padding: 0 16px;
}
.pv-card .pv-head img {
  width: 56px; height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid var(--bg-soft);
  background: var(--chip-bg);
  flex-shrink: 0;
}
.pv-card .pv-bio { margin: 8px 16px 0; }
.pv-stats {
  display: flex;
  gap: 20px;
  margin: 12px 16px 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.pv-stat { font-size: 12px; color: var(--text-3); }
.pv-stat b { display: block; font-size: 16px; color: var(--text); line-height: 1.4; }

.btn-block { width: 100%; justify-content: center; margin-top: 6px; }

/* =========================================================
   管理端
   ========================================================= */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-side {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 80px;
}
@media (max-width: 900px) { .admin-side { position: static; display: flex; gap: 8px; overflow-x: auto; } }
.admin-nav-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.15s;
}
.admin-nav-btn:hover { background: var(--chip-bg); color: var(--text); }
.admin-nav-btn.active { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 14px var(--brand-glow); }
.admin-main { min-width: 0; }

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.admin-title { font-size: 20px; font-weight: 800; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 1000px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.stat-num { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 15px; color: var(--text-3); font-weight: 600; }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.stat-accent { background: linear-gradient(135deg, rgba(254,44,85,0.1), rgba(37,244,238,0.08)); border-color: transparent; }

/* 管理表格 */
.table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: var(--chip-bg);
  white-space: nowrap;
}
.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255, 90, 60, 0.03); }
.tbl-avatar { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; background: var(--chip-bg); }
.tbl-name { font-weight: 700; }
.tbl-handle { font-family: var(--font-mono); color: var(--text-3); font-size: 12px; }
.tbl-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-btn {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--chip-bg);
  color: var(--text-2);
}
.mini-btn:hover { color: var(--brand); }
.mini-btn.good { background: rgba(7, 179, 60, 0.12); color: var(--ok); }
.mini-btn.bad { background: rgba(236, 45, 70, 0.1); color: var(--danger); }
.mini-btn.warn { background: rgba(255, 149, 0, 0.12); color: var(--warn); }

.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  background: var(--chip-bg); color: var(--text-3);
}
.status-pill.on  { background: rgba(7, 179, 60, 0.12); color: var(--ok); }
.status-pill.off { background: rgba(139, 143, 156, 0.16); color: var(--text-3); }
.status-pill.blocked { background: rgba(255, 149, 0, 0.14); color: var(--warn); }
.status-pill.lost { background: rgba(236, 45, 70, 0.12); color: var(--danger); }

.pager {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-2);
}

/* Modal (通用) */
.modal { display: grid; place-items: center; padding: 20px; }
.modal-box {
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-elev);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  padding: 24px;
  animation: pop-in 0.25s ease;
}
.modal-box.wide { width: min(700px, 100%); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.modal-head h3 { font-size: 17px; font-weight: 800; }

.seg {
  display: inline-flex;
  background: var(--chip-bg);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.seg button.active { background: var(--bg-soft); color: var(--brand); box-shadow: var(--shadow-sm); }

.login-box {
  width: min(400px, 100%);
  margin: 8vh auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 32px;
}
.login-box h2 { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.pw-input { width: 100%; }
.btn-login { width: 100%; margin-top: 4px; justify-content: center; }

.progress-track { margin-top: 12px; }
.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--chip-bg);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--brand-grad);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.progress-text { font-size: 12px; color: var(--text-3); margin-top: 8px; }

/* =========================================================
   登录 / 通用
   ========================================================= */
.center-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 20px; }

@media (max-width: 640px) {
  .header-inner { gap: 8px; flex-wrap: wrap; height: auto; padding: 8px 0; row-gap: 8px; }
  .brand-name { display: none; }
  .header-search-wrap { order: 3; width: 100%; flex-basis: 100%; min-width: 100%; }
  .search-box { margin: 0 auto; max-width: none; padding: 7px 12px; }
  #global-search { min-width: 0; }
  .key-shortcut { display: none; }
  .hero-section { margin: 18px 0 16px; padding: 22px 18px; border-radius: 20px; }
  .hero-content-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-eyebrow { margin-bottom: 8px; }
  .hero-description { margin-top: 8px; font-size: 14px; }
  .hero-capsule { margin-top: 16px; }
  .hero-spotlight { padding: 18px; }
  .app-container { padding: 0 12px 30px; }
  .v2-header { margin: 0 -12px; padding: 0 12px; }
  .btn-text-hide span { display: none; }
  .view-tabs { display: none; }
}

@media (max-width: 560px) {
  .hero-capsule {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 6px;
    padding: 12px 10px;
    justify-content: stretch;
  }
  .capsule-item { flex-direction: column; gap: 2px; text-align: center; }
  .capsule-ico { display: none; }
  .capsule-num { font-size: 15px; }
  .capsule-label { font-size: 11px; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 21px; }
}

@media (max-width: 520px) {
  .filter-row { align-items: flex-start; }
  .sort-pills {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }
  .sort-pill { padding: 7px 14px; }
  .discovery-meta { justify-content: center; text-align: center; }
  .results-indicator { text-align: center; }
  .card-top { top: 8px; left: 8px; right: 8px; }
  .btn-card-visit { padding: 7px 12px; font-size: 12px; gap: 4px; }
  .card-heat { font-size: 11px; }
  .d-profile { flex-wrap: wrap; }
  .d-rating-box { margin-left: 0; flex-direction: row; align-items: center; }
  .hero-title { font-size: 24px; }
  .gallery-wall { gap: 12px; }
  .pager { gap: 10px; margin: 18px 0 4px; }
  .pager-info { min-width: 0; font-size: 12px; }
  .pager-btn { width: 40px; height: 40px; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 游客大众评级 ---------- */
.vote-n { font-weight: 700; margin-left: 3px; opacity: .9; font-size: .92em; }

.d-votes-slot { margin-top: 16px; }
.d-votes {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.d-votes-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
}
.d-votes-total { color: var(--text-50); font-weight: 500; font-size: 11px; }
.vote-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.vote-row {
  display: grid;
  grid-template-columns: 64px 1fr 42px;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  text-align: left;
  transition: transform .12s ease, filter .12s ease, border-color .12s ease;
}
.vote-row:hover { transform: translateX(2px); border-color: var(--text-40); filter: brightness(1.08); }
.vote-row:active { transform: scale(.98); }
.vote-row.active { border-color: var(--brand); outline: 1px solid var(--brand); outline-offset: 1px; background: var(--chip-bg); }
.vote-row-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--chip-bg);
  overflow: hidden;
}
.vote-row-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width .5s cubic-bezier(.2,.7,.3,1);
}
.vote-row.r-夯 .vote-row-bar i { background: linear-gradient(90deg, #ffd166, #ff8c42); }
.vote-row.r-顶级 .vote-row-bar i { background: linear-gradient(90deg, #c084fc, #7c3aed); }
.vote-row.r-人上人 .vote-row-bar i { background: linear-gradient(90deg, #22d3ee, #0891b2); }
.vote-row.r-NPC .vote-row-bar i { background: linear-gradient(90deg, #64748b, #475569); }
.vote-row.r-拉完了 .vote-row-bar i { background: linear-gradient(90deg, #94a3b8, #5b6270); }
.vote-row-n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  text-align: right;
}
.vote-row.active .vote-row-n { color: var(--brand); }
.d-votes-foot {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-50);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.d-votes-foot .v-my { color: var(--brand); }
#d-unvote {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-60);
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 12px;
  cursor: pointer;
}
#d-unvote:hover { color: #e5484d; border-color: #e5484d; }
.d-votes-loading { font-size: 12px; color: var(--text-50); padding: 4px; }

.d-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.d-tag {
  font-size: 11px;
  color: var(--text-60);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.d-tag-verify { color: var(--brand); border-color: var(--brand-30, rgba(255,120,70,.35)); }

/* ---------- 抽卡增强 ---------- */
.roulette-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin: 12px 0 6px;
}
.r-score {
  font-size: 12px;
  color: var(--text-50);
  font-weight: 600;
}
.r-score::before { content: "综合 "; font-weight: 400; }
.roulette-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-50);
}
.r-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  width: 100%;
}
.r-stat {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.r-stat b { font-size: 14px; }
.r-stat span { font-size: 10px; color: var(--text-50); }