/* ============================================================
   SOLO TIER TESTS · 终极配色「Black Tie」
   中性炭黑 + 象牙白 + 香槟金
   最后加载，覆盖此前所有暖褐/纯黑设定
   ============================================================ */

:root {
  --bt-bg: #0f0f11;
  --bt-surface: #161619;
  --bt-surface-2: #1b1b1f;
  --bt-line: rgba(255, 255, 255, 0.085);
  --bt-line-strong: rgba(255, 255, 255, 0.16);
  --bt-text: #f4f2ec;
  --bt-dim: #a09c94;
  --bt-faint: #6d6a65;
  --bt-gold: #c9a86a;
  --bt-gold-soft: #e3cfa4;
  --bt-num: "Bahnschrift", "DIN Alternate", "Oswald", "Arial Narrow", ui-monospace, monospace;
  --bt-serif: "Didot", "Bodoni MT", "Playfair Display", "Songti SC", Georgia, serif;
}

/* ================= 全站 ================= */
body,
body.theme-v4,
body.h4 {
  background: var(--bt-bg) !important;
  background-image: none !important;
  color: var(--bt-text) !important;
}

/* 页头 / 公告 / 页脚：与页面同色，只留一条发丝线 */
body .site-header,
body.theme-v4 .site-header,
body.h4 .site-header {
  background: rgba(15, 15, 17, 0.9) !important;
  border-bottom: 1px solid var(--bt-line) !important;
  backdrop-filter: blur(14px) !important;
}

body #announceBar,
body.theme-v4 #announceBar,
body.h4 #announceBar {
  background: transparent !important;
  border-bottom: 1px solid var(--bt-line) !important;
  color: rgba(227, 207, 164, 0.8) !important;
}

body .site-footer,
body.theme-v4 .site-footer,
body.h4 .site-footer {
  background: transparent !important;
  border-top: 1px solid var(--bt-line) !important;
  color: var(--bt-faint) !important;
}

/* 导航 */
body .nav-link, body.theme-v4 .nav-link, body.h4 .nav-link {
  color: rgba(244, 242, 236, 0.66) !important;
  border-radius: 2px !important;
}

body .nav-link:hover, body.theme-v4 .nav-link:hover, body.h4 .nav-link:hover {
  color: var(--bt-gold-soft) !important;
  background: transparent !important;
}

body .nav-link.is-active, body.theme-v4 .nav-link.is-active, body.h4 .nav-link.is-active {
  color: var(--bt-gold-soft) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .nav-link.is-active::after, body.theme-v4 .nav-link.is-active::after, body.h4 .nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bt-gold), transparent);
}

/* ================= 卡片 / 面板 ================= */
body.theme-v4 .panel,
body.theme-v4 .board-panel,
body.theme-v4 .side-panel,
body.theme-v4 .player-hero,
body.theme-v4 .op-card {
  background: var(--bt-surface) !important;
  border: 1px solid var(--bt-line) !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
}

body.theme-v4 .side-panel { border: 1px solid var(--bt-line) !important; }

/* 表头带 */
body.theme-v4 thead th,
body.theme-v4 .rank-table thead th {
  background: var(--bt-surface-2) !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--bt-line-strong) !important;
  color: var(--bt-faint) !important;
  font-family: var(--bt-num) !important;
  letter-spacing: 0.18em !important;
}

body.theme-v4 .rank-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.theme-v4 .rank-table tbody tr:hover {
  background: rgba(201, 168, 106, 0.05) !important;
}

/* 名次与数字 */
body.theme-v4 .rank-medal,
body.theme-v4 .rank-medal.top1,
body.theme-v4 .rank-medal.top2,
body.theme-v4 .rank-medal.top3 {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: var(--bt-num) !important;
  color: rgba(244, 242, 236, 0.5) !important;
}

body.theme-v4 .rank-medal.top1 { color: var(--bt-gold-soft) !important; }

/* 头像：象牙描边字章 */
body.theme-v4 .avatar,
body.theme-v4 .player-cell > .avatar {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--bt-line-strong) !important;
  border-radius: 50% !important;
  color: var(--bt-text) !important;
}

/* 按钮 */
body .btn-primary, body.theme-v4 .btn-primary, body.h4 .btn-primary,
body .site-header .btn, body.theme-v4 .site-header .btn {
  background: linear-gradient(180deg, #efe3c8, #cfae74) !important;
  color: #16130c !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 3px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
}

body .btn-ghost, body.theme-v4 .btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(201, 168, 106, 0.42) !important;
  color: var(--bt-gold-soft) !important;
  border-radius: 3px !important;
}

/* 输入 */
body.theme-v4 input, body.theme-v4 select, body.theme-v4 textarea,
body.h4 .w-search input {
  background: #101013 !important;
  border: 1px solid var(--bt-line-strong) !important;
  border-radius: 3px !important;
  color: var(--bt-text) !important;
}

body.theme-v4 input:focus, body.theme-v4 textarea:focus, body.h4 .w-search input:focus {
  border-color: rgba(201, 168, 106, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.1) !important;
}

/* 标题 */
body.theme-v4 .page-title,
body.theme-v4 .section-title,
body.theme-v4 h2 {
  font-family: var(--bt-serif) !important;
  font-weight: 400 !important;
  color: var(--bt-text) !important;
}

body.theme-v4 .page-eyebrow,
body.theme-v4 .kicker {
  color: rgba(201, 168, 106, 0.8) !important;
  font-family: var(--bt-num) !important;
  letter-spacing: 0.3em !important;
}

/* ================= 首页 ================= */
body.h4 .w-hero { background: #0c0c0e !important; }

body.h4 .w-hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 12, 14, 0.97) 0%, rgba(12, 12, 14, 0.9) 34%, rgba(12, 12, 14, 0.42) 62%, rgba(12, 12, 14, 0.12) 82%, rgba(12, 12, 14, 0.5) 100%),
    linear-gradient(180deg, rgba(12, 12, 14, 0.86) 0%, transparent 28%, transparent 58%, rgba(12, 12, 14, 0.92) 100%) !important;
}

body.h4 .w-hero-fade {
  height: 34% !important;
  background: linear-gradient(180deg, rgba(15, 15, 17, 0) 0%, rgba(15, 15, 17, 0.6) 52%, #0f0f11 100%) !important;
}

body.h4 .w-hero-glow {
  background: radial-gradient(circle, rgba(201, 168, 106, 0.18), transparent 62%) !important;
}

/* 首屏标题：银 + 香槟金 */
body.h4 .w-title-line {
  background-image: linear-gradient(178deg,
    #ffffff 0%, #f2f2f0 16%, #c9c9c6 34%, #ffffff 45%,
    #e9e9e6 51%, #b0b0ac 68%, #f0f0ec 88%, #ffffff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

body.h4 .w-title-gold {
  background-image: linear-gradient(178deg,
    #fdf6e6 0%, #f0dfba 14%, #cfae74 30%, #fff9ec 44%,
    #e6cf9f 50%, #ab8750 68%, #e2c793 86%, #fbf3e2 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 14px 50px rgba(201, 168, 106, 0.22)) !important;
}

/* 榜首卡 */
body.h4 .w-throne {
  background: var(--bt-surface) !important;
  background-image: none !important;
  border: 1px solid rgba(201, 168, 106, 0.32) !important;
  border-radius: 4px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55) !important;
}

body.h4 .w-throne-label { color: rgba(201, 168, 106, 0.85) !important; }
body.h4 .w-throne-foot b { color: var(--bt-gold-soft) !important; }
body.h4 .w-throne-note { border-top-color: var(--bt-line) !important; color: var(--bt-faint) !important; }

/* 天梯表 */
body.h4 .w-board {
  border: 1px solid var(--bt-line) !important;
  border-radius: 4px !important;
  background: var(--bt-surface) !important;
  overflow: hidden;
}

body.h4 .w-board-head {
  background: var(--bt-surface-2) !important;
  border-bottom: 1px solid var(--bt-line-strong) !important;
}

body.h4 .w-trow { border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; }
body.h4 .w-trow:hover { background: rgba(201, 168, 106, 0.05) !important; }
body.h4 .w-trow-pts { color: var(--bt-text) !important; }
body.h4 .w-trow:nth-child(1) .w-trow-pts { color: var(--bt-gold-soft) !important; }

/* 荣誉台 */
body.h4 .w-pod {
  background: var(--bt-surface) !important;
  border: 1px solid var(--bt-line) !important;
  border-radius: 4px !important;
}

body.h4 .w-pod-1 {
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.08), rgba(255, 255, 255, 0)), var(--bt-surface) !important;
  border-color: rgba(201, 168, 106, 0.4) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5) !important;
}

body.h4 .w-pod-name { color: var(--bt-text) !important; }
body.h4 .w-pod-sub { color: var(--bt-faint) !important; }

/* 等级阶梯 */
body.h4 .w-tiers {
  border: 1px solid var(--bt-line) !important;
  border-radius: 4px !important;
  background: var(--bt-surface) !important;
}

body.h4 .w-tier { border-right: 1px solid rgba(255, 255, 255, 0.05) !important; }
body.h4 .w-tier i { color: var(--bt-faint) !important; }
body.h4 .w-tier[data-g="s"] i { color: var(--bt-gold-soft) !important; }

/* 动态条 */
body.h4 .w-ticker {
  background: var(--bt-surface) !important;
  border-top: 1px solid var(--bt-line) !important;
  border-bottom: 1px solid var(--bt-line) !important;
}

body.h4 .w-ticker::before { background: linear-gradient(90deg, #0f0f11, transparent) !important; }
body.h4 .w-ticker::after { background: linear-gradient(270deg, #0f0f11, transparent) !important; }

/* CTA */
body.h4 .w-cta {
  background: radial-gradient(900px 360px at 50% 0%, rgba(201, 168, 106, 0.08), transparent 70%), var(--bt-bg) !important;
  border-top: 1px solid var(--bt-line) !important;
}

body.h4 .w-sticky {
  background: rgba(20, 20, 23, 0.95) !important;
  border: 1px solid var(--bt-line-strong) !important;
}

/* 按钮 */
body.h4 .w-btn-gold {
  background: linear-gradient(180deg, #f2e7cf, #cfae74) !important;
  color: #16130c !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 3px !important;
}

body.h4 .w-btn-line {
  background: transparent !important;
  border: 1px solid rgba(201, 168, 106, 0.44) !important;
  color: var(--bt-gold-soft) !important;
  border-radius: 3px !important;
}

/* 分段标题与小字 */
body.h4 .w-kicker { color: rgba(201, 168, 106, 0.62) !important; }
body.h4 .w-desc { color: var(--bt-dim) !important; }
body.h4 .w-lede { color: rgba(244, 242, 236, 0.7) !important; }
body.h4 .w-hero-meta { border-top: 1px solid var(--bt-line) !important; color: var(--bt-faint) !important; }
body.h4 .w-hero-meta b { color: var(--bt-gold-soft) !important; }

/* 等级色：更克制 */
body.h4 .w-grade.s { color: #d9bd88; }
body.h4 .w-grade.a { color: #e8d3a6; }
body.h4 .w-grade.b { color: #a7c3a0; }
body.h4 .w-grade.c { color: #a9bcbf; }
body.h4 .w-grade.d { color: #8f8b84; }

body.h4 .w-tier[data-g="s"] b { color: #d9bd88; }
body.h4 .w-tier[data-g="a"] b { color: #e8d3a6; }
body.h4 .w-tier[data-g="b"] b { color: #a7c3a0; }
body.h4 .w-tier[data-g="c"] b { color: #a9bcbf; }
body.h4 .w-tier[data-g="d"] b { color: #8f8b84; }


/* 导航栏组合标 */
 .brand-combo {
  height: 36px;
  width: auto;
  display: block;
}

@media (max-width: 860px) {
  .brand-combo { height: 30px; }
}
