/* ============================================================
   SOLO TIER TESTS · 全站主题 v4（荣誉殿堂）
   作用域：body.theme-v4
   只覆盖观感，不改结构与逻辑
   ============================================================ */

body.theme-v4 {
  --ink: #07080a;
  --ink-2: #0b0d11;
  --panel-bg: rgba(16, 19, 24, 0.72);
  --hair: rgba(255, 255, 255, 0.09);
  --hair-2: rgba(255, 255, 255, 0.16);
  --gold: #d8b26a;
  --gold-2: #f3dfae;
  --gold-dim: rgba(216, 178, 106, 0.6);
  --serif: "Didot", "Bodoni MT", "Playfair Display", "Songti SC", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;

  background:
    radial-gradient(1200px 600px at 50% -14%, rgba(216, 178, 106, 0.055), transparent 64%),
    var(--ink) !important;
  color: #eef1f5;
}

/* ---------------- 页头 / 导航 ---------------- */

body.theme-v4 .site-header {
  background: rgba(7, 8, 10, 0.82) !important;
  border-bottom: 1px solid var(--hair) !important;
  backdrop-filter: blur(16px);
}

body.theme-v4 .brand b { font-family: var(--serif); font-weight: 400; letter-spacing: 0.02em; font-size: 19px; }
body.theme-v4 .brand span { color: var(--gold); }

body.theme-v4 .nav-link {
  border-radius: 2px !important;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(226, 232, 238, 0.72) !important;
}

body.theme-v4 .nav-link:hover { background: rgba(216, 178, 106, 0.07) !important; color: var(--gold-2) !important; }

body.theme-v4 .nav-link.is-active {
  background: rgba(216, 178, 106, 0.1) !important;
  color: var(--gold-2) !important;
  box-shadow: inset 0 0 0 1px rgba(216, 178, 106, 0.28);
}

body.theme-v4 .site-header .btn,
body.theme-v4 .nav .btn {
  background: linear-gradient(180deg, #f9e9c6, #dcb872) !important;
  color: #17110a !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  border-radius: 2px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ---------------- 页头标题 ---------------- */

body.theme-v4 .page-head { padding: 8px 0 4px; }

body.theme-v4 .page-eyebrow {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.32em !important;
  color: var(--gold-dim) !important;
  text-transform: uppercase;
  margin-bottom: 14px !important;
}

body.theme-v4 .page-title {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
  font-size: clamp(34px, 4.4vw, 58px) !important;
  line-height: 1.12 !important;
  color: #f6f3ee !important;
}

body.theme-v4 .page-desc {
  color: rgba(226, 232, 238, 0.62) !important;
  font-size: 13px !important;
  line-height: 1.9 !important;
  margin-top: 12px !important;
}

/* ---------------- 区块标题 ---------------- */

body.theme-v4 .section-title,
body.theme-v4 h2.section-title {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
  color: #f5f2ec !important;
}

body.theme-v4 .section-title::before { display: none !important; }

body.theme-v4 .section-title::after {
  content: none !important;
}

body.theme-v4 .section-desc {
  color: rgba(226, 232, 238, 0.58) !important;
  font-size: 12.5px !important;
  line-height: 1.85 !important;
}

/* ---------------- 卡片 / 面板 ---------------- */

body.theme-v4 .panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0)) ,
    rgba(14, 16, 21, 0.72) !important;
  border: 1px solid var(--hair) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}

body.theme-v4 .panel::before { opacity: 0 !important; }

/* ---------------- 按钮 ---------------- */

body.theme-v4 .btn {
  border-radius: 2px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.24s, border-color 0.2s, background 0.2s, color 0.2s;
}

body.theme-v4 .btn:hover { transform: translateY(-2px); }

body.theme-v4 .btn-primary {
  background: linear-gradient(180deg, #f9e9c6, #dcb872) !important;
  color: #17110a !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 28px rgba(216, 178, 106, 0.18);
}

body.theme-v4 .btn-primary:hover { box-shadow: 0 16px 36px rgba(216, 178, 106, 0.26); }

body.theme-v4 .btn-ghost {
  background: rgba(216, 178, 106, 0.04) !important;
  border-color: rgba(216, 178, 106, 0.4) !important;
  color: rgba(243, 223, 174, 0.92) !important;
}

body.theme-v4 .btn-ghost:hover {
  border-color: rgba(216, 178, 106, 0.85) !important;
  background: rgba(216, 178, 106, 0.1) !important;
  color: #fff6e2 !important;
}

/* ---------------- 表格 / 榜单 ---------------- */

body.theme-v4 table,
body.theme-v4 .rank-table {
  border-color: var(--hair) !important;
}

body.theme-v4 thead th,
body.theme-v4 .rank-head {
  font-family: var(--mono) !important;
  font-size: 9.5px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  color: rgba(226, 232, 238, 0.42) !important;
  border-bottom: 1px solid var(--hair-2) !important;
}

body.theme-v4 td,
body.theme-v4 .rank-row {
  border-bottom: 1px solid var(--hair) !important;
}

body.theme-v4 .rank-row:hover,
body.theme-v4 tbody tr:hover { background: rgba(216, 178, 106, 0.045) !important; }

body.theme-v4 .rank-num,
body.theme-v4 .rank-pts {
  font-family: var(--mono) !important;
  font-variant-numeric: tabular-nums;
}

body.theme-v4 .rank-pts { color: var(--gold-2) !important; }

/* ---------------- 等级徽章 ---------------- */

body.theme-v4 .badge {
  border-radius: 2px !important;
  font-family: var(--mono) !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em;
  border-color: currentColor !important;
  background: transparent !important;
}

/* ---------------- 玩家卡 / 干员卡 ---------------- */

body.theme-v4 .op-card,
body.theme-v4 .player-hero {
  border-radius: 3px !important;
  border-color: var(--hair) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0)),
    rgba(14, 16, 21, 0.72) !important;
}

body.theme-v4 .op-card:hover { border-color: rgba(216, 178, 106, 0.42) !important; }

/* ---------------- 输入 / 表单 ---------------- */

body.theme-v4 input,
body.theme-v4 select,
body.theme-v4 textarea {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(216, 178, 106, 0.22) !important;
  border-radius: 2px !important;
  color: #eef1f5 !important;
  font-family: inherit;
}

body.theme-v4 input:focus,
body.theme-v4 select:focus,
body.theme-v4 textarea:focus {
  border-color: rgba(216, 178, 106, 0.7) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 178, 106, 0.08);
}

body.theme-v4 label { color: rgba(226, 232, 238, 0.72) !important; }

/* ---------------- 链接 ---------------- */

body.theme-v4 main a:not(.btn):not(.nav-link):not(.brand) { color: var(--gold-2); }
body.theme-v4 main a:not(.btn):not(.nav-link):not(.brand):hover { color: #fff3d8; }

/* ---------------- 页脚 ---------------- */

body.theme-v4 .site-footer {
  border-top: 1px solid var(--hair) !important;
  background: #060709 !important;
  color: rgba(226, 232, 238, 0.42) !important;
}

body.theme-v4 .site-footer a { color: rgba(226, 232, 238, 0.6) !important; }
body.theme-v4 .site-footer a:hover { color: var(--gold-2) !important; }

/* ---------------- 空状态 / 提示 ---------------- */

body.theme-v4 .empty,
body.theme-v4 .empty-state {
  border-radius: 3px !important;
  border-color: var(--hair) !important;
  color: rgba(226, 232, 238, 0.5) !important;
}

body.theme-v4 .skeleton-row {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)) !important;
  background-size: 200% 100% !important;
  border-radius: 2px !important;
}

/* ---------------- 细节点缀 ---------------- */

body.theme-v4 ::selection { background: rgba(216, 178, 106, 0.3); color: #fff; }

body.theme-v4 .container { max-width: 1180px; }

/* 主内容与页头之间加一条发丝线 */
body.theme-v4 main > .container:first-child { padding-top: 40px !important; }

@media (max-width: 860px) {
  body.theme-v4 .page-title { font-size: clamp(30px, 8vw, 42px) !important; }
  body.theme-v4 .nav-link { font-size: 12px; }
}


/* ===== 收尾：标题统一衬线、编号统一金色 ===== */
body.theme-v4 main h2,
body.theme-v4 main h2.section-title,
body.theme-v4 .panel h2 {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
  color: #f5f2ec !important;
}

body.theme-v4 .section-title { font-size: clamp(21px, 2.2vw, 26px) !important; }

body.theme-v4 .rule-title {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(20px, 2.2vw, 26px) !important;
}

body.theme-v4 .rule-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  margin-right: 12px;
  padding: 4px 7px;
  border: 1px solid rgba(216, 178, 106, 0.4);
  border-radius: 2px;
  background: rgba(216, 178, 106, 0.08);
  color: var(--gold-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  vertical-align: middle;
}

/* 表单按钮统一金 */
body.theme-v4 button:not(.btn):not(.nav-link),
body.theme-v4 .form-submit {
  border-radius: 2px !important;
}


/* ===== 暖墨版（全站） ===== */
body.theme-v4 {
  --ink: #0b0a08;
  --ink-2: #12100c;
  --hair: rgba(255, 244, 226, 0.075);
  --hair-2: rgba(255, 244, 226, 0.14);
  --gold: #d9b36b;
  --gold-2: #f2dfb6;
  --gold-dim: rgba(217, 179, 107, 0.6);

  background:
    radial-gradient(1200px 600px at 50% -14%, rgba(217, 179, 107, 0.065), transparent 64%),
    #0b0a08 !important;
  color: #f4efe6;
}

body.theme-v4 .site-header { background: rgba(11, 10, 8, 0.84) !important; }
body.theme-v4 .site-footer { background: #090806 !important; }
body.theme-v4 .panel,
body.theme-v4 .op-card,
body.theme-v4 .player-hero {
  background: linear-gradient(180deg, rgba(255, 244, 226, 0.028), rgba(255, 255, 255, 0)), rgba(20, 17, 13, 0.74) !important;
  border-color: rgba(255, 244, 226, 0.075) !important;
}

body.theme-v4 .page-eyebrow { color: rgba(217, 179, 107, 0.72) !important; }
body.theme-v4 .page-title { color: #f7f2e8 !important; }
body.theme-v4 .section-title { color: #f5efe3 !important; }

body.theme-v4 .btn-primary {
  background: linear-gradient(180deg, #f7e7c2, #d8b26a) !important;
  color: #17110a !important;
}

body.theme-v4 .btn-ghost {
  border-color: rgba(217, 179, 107, 0.42) !important;
  color: rgba(242, 223, 182, 0.92) !important;
  background: rgba(217, 179, 107, 0.05) !important;
}

body.theme-v4 input, body.theme-v4 select, body.theme-v4 textarea {
  background: rgba(255, 244, 226, 0.035) !important;
  border-color: rgba(217, 179, 107, 0.24) !important;
}

body.theme-v4 .rule-title span {
  border-color: rgba(217, 179, 107, 0.4);
  background: rgba(217, 179, 107, 0.08);
  color: var(--gold-2);
}


/* 表头 / 侧栏 / 小徽标去冷色 */
body.theme-v4 thead,
body.theme-v4 .rank-head,
body.theme-v4 .board-head,
body.theme-v4 .table-head {
  background: rgba(255, 244, 226, 0.035) !important;
  border-bottom-color: rgba(255, 244, 226, 0.14) !important;
}

body.theme-v4 .side-panel,
body.theme-v4 .board-panel {
  background: linear-gradient(180deg, rgba(255, 244, 226, 0.028), rgba(255, 255, 255, 0)), rgba(20, 17, 13, 0.74) !important;
}

body.theme-v4 .side-panel a.active,
body.theme-v4 .side-item.active {
  background: rgba(217, 179, 107, 0.12) !important;
  border-color: rgba(217, 179, 107, 0.4) !important;
  color: #f2dfb6 !important;
}

body.theme-v4 .board-title,
body.theme-v4 .panel-title {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  color: #f5efe3 !important;
}
