/* ============================================================
   暖墨配色（Warm Ink）· 首页
   金 + 暖灰 + 白，青色退场
   ============================================================ */

body.h4 {
  --ink: #0b0a08;
  --ink-2: #12100c;
  --panel: rgba(22, 19, 15, 0.78);
  --hair: rgba(255, 244, 226, 0.075);
  --hair-2: rgba(255, 244, 226, 0.14);
  --text: #f4efe6;
  --dim: #a89e90;
  --faint: #6f6659;
  --gold: #d9b36b;
  --gold-2: #f2dfb6;
  --cyan: #c9bda8;

  background:
    radial-gradient(1200px 640px at 50% -12%, rgba(217, 179, 107, 0.07), transparent 64%),
    radial-gradient(900px 520px at 8% 22%, rgba(120, 96, 62, 0.10), transparent 62%),
    #0b0a08 !important;
}

/* 首屏背景换成暖黑 */
.w-hero { background: #0a0907; }

.w-hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 9, 7, 0.97) 0%, rgba(10, 9, 7, 0.9) 34%, rgba(10, 9, 7, 0.45) 62%, rgba(10, 9, 7, 0.15) 82%, rgba(10, 9, 7, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 9, 7, 0.85) 0%, transparent 30%, transparent 62%, rgba(10, 9, 7, 0.95) 100%);
}

.w-hero-fade { background: linear-gradient(180deg, transparent, #0b0a08); }

.w-hero-glow { background: radial-gradient(circle, rgba(217, 179, 107, 0.20), transparent 62%); }

.w-hero::after {
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 238, 208, 0.03) 46%,
    rgba(255, 244, 220, 0.075) 50%,
    rgba(255, 238, 208, 0.03) 54%,
    transparent 100%);
}

/* 金属字：暖银 / 暖金 */
.w-title-line {
  background-image: linear-gradient(178deg,
    #fbf7ee 0%,
    #efe9dd 16%,
    #c9c0b0 34%,
    #fffdf6 45%,
    #e6dfd1 51%,
    #ada393 68%,
    #f0e9db 88%,
    #fdf9f1 100%);
}

.w-title-gold {
  background-image: linear-gradient(178deg,
    #fff6e0 0%,
    #f4dcaa 14%,
    #d9b36b 30%,
    #fff8e6 44%,
    #ecd29a 50%,
    #b98f4a 68%,
    #e9cd92 86%,
    #fdf4de 100%);
  filter: drop-shadow(0 14px 50px rgba(217, 179, 107, 0.24));
}

/* 段落与细线 */
.w-sec { border-top-color: rgba(255, 244, 226, 0.08); }
.w-ticker { border-color: rgba(255, 244, 226, 0.08); background: rgba(255, 244, 226, 0.014); }
.w-ticker::before { background: linear-gradient(90deg, #0b0a08, transparent); }
.w-ticker::after { background: linear-gradient(270deg, #0b0a08, transparent); }

/* 卡片：暖黑玻璃 */
.w-throne {
  border-color: rgba(217, 179, 107, 0.3);
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 244, 226, 0.013) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(217, 179, 107, 0.08), rgba(255, 255, 255, 0.012) 40%, rgba(255, 255, 255, 0)),
    rgba(20, 17, 13, 0.78);
}

.w-pod {
  border-color: rgba(255, 244, 226, 0.08);
  background: linear-gradient(180deg, rgba(255, 244, 226, 0.03), rgba(255, 255, 255, 0));
}

.w-pod-1 {
  border-color: rgba(217, 179, 107, 0.38);
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 244, 226, 0.015) 0 1px, transparent 1px 3px),
    radial-gradient(420px 220px at 50% 0%, rgba(217, 179, 107, 0.17), transparent 72%),
    linear-gradient(180deg, rgba(255, 244, 226, 0.032), rgba(255, 255, 255, 0));
}

.w-pod:hover { border-color: rgba(217, 179, 107, 0.45); }

/* 天梯行 */
.w-board { border-top-color: rgba(255, 244, 226, 0.16); }
.w-board-head { border-bottom-color: rgba(255, 244, 226, 0.08); }
.w-trow { border-bottom-color: rgba(255, 244, 226, 0.075); }
.w-trow:hover { background: rgba(217, 179, 107, 0.05); }

/* 等级阶梯 */
.w-tiers { border-color: rgba(255, 244, 226, 0.14); }
.w-tier { border-right-color: rgba(255, 244, 226, 0.075); }

/* 输入框 */
.w-search input {
  background: rgba(255, 244, 226, 0.035);
  border-color: rgba(217, 179, 107, 0.24);
}

/* 按钮：暖金 */
.w-btn-gold {
  background: linear-gradient(180deg, #f7e7c2 0%, #d8b26a 100%) !important;
  color: #17110a !important;
  border-color: rgba(255, 246, 226, 0.24) !important;
}

.w-btn-line {
  border-color: rgba(217, 179, 107, 0.44);
  color: rgba(242, 223, 182, 0.94);
  background: rgba(217, 179, 107, 0.05);
}

/* CTA 区 */
.w-cta {
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(217, 179, 107, 0.1), transparent 70%),
    #0a0907;
  border-top-color: rgba(255, 244, 226, 0.08);
}

/* 吸底 */
.w-sticky {
  border-color: rgba(217, 179, 107, 0.32);
  background: rgba(12, 10, 8, 0.94);
}

.w-sticky a {
  background: linear-gradient(180deg, #f7e7c2, #d8b26a);
}

/* 青色退场：干员小圆点、刻章边框去蓝 */
.w-op { background: rgba(255, 244, 226, 0.05); border-color: rgba(255, 244, 226, 0.1); }

.w-mono {
  background:
    radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--c, #8e98a3) 20%, #d9b36b 8%), transparent 68%),
    rgba(255, 244, 226, 0.035);
}

/* 等级色稍微去饱和，融入暖调 */
.w-grade.s { color: #e6c27e; }
.w-grade.a { color: #f4d79c; }
.w-grade.b { color: #a9c9a6; }
.w-grade.c { color: #b9c6c8; }
.w-grade.d { color: #9a938a; }

.w-tier[data-g="s"] b { color: #e6c27e; }
.w-tier[data-g="a"] b { color: #f4d79c; }
.w-tier[data-g="b"] b { color: #a9c9a6; }
.w-tier[data-g="c"] b { color: #b9c6c8; }
.w-tier[data-g="d"] b { color: #9a938a; }


/* 页头与头像同样暖化 */
body.h4 .site-header {
  background: rgba(11, 10, 8, 0.84) !important;
  border-bottom-color: rgba(255, 244, 226, 0.08) !important;
}

body.h4 .nav-link.is-active {
  background: rgba(217, 179, 107, 0.12) !important;
  color: var(--gold-2) !important;
}

body.h4 .nav-link:hover { color: var(--gold-2) !important; background: rgba(217, 179, 107, 0.07) !important; }

body.h4 .header .btn, body.h4 .site-header .btn {
  background: linear-gradient(180deg, #f7e7c2, #d8b26a) !important;
  color: #17110a !important;
}

body.h4 .w-mono { filter: saturate(0.82); }

body.h4 .site-footer { background: #090806 !important; border-top-color: rgba(255, 244, 226, 0.08) !important; }


/* 顶部公告条：去掉橄榄色底，改成暖黑 + 金线 */
body.h4 #announceBar,
body.theme-v4 #announceBar {
  background: linear-gradient(90deg, rgba(217, 179, 107, 0.10), rgba(217, 179, 107, 0.03)) !important;
  border-bottom: 1px solid rgba(216, 178, 106, 0.16) !important;
  color: rgba(242, 223, 182, 0.9) !important;
}

body.h4 #announceBar b,
body.theme-v4 #announceBar b {
  background: rgba(217, 179, 107, 0.16) !important;
  color: #f2dfb6 !important;
  border-radius: 2px !important;
}

/* 导航高亮：改下划线，不用色块 */
body.h4 .nav-link.is-active {
  background: transparent !important;
  box-shadow: none !important;
  color: #f2dfb6 !important;
  position: relative;
}

body.h4 .nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 179, 107, 0.9), transparent);
}

body.theme-v4 .nav-link.is-active {
  background: transparent !important;
  box-shadow: none !important;
  color: #f2dfb6 !important;
  position: relative;
}

body.theme-v4 .nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 179, 107, 0.9), transparent);
}


/* 荣誉台：冠军居中（左亚、中冠、右季） */
.w-podium .w-pod { order: 9; }
.w-podium .w-pod-2 { order: 1; }
.w-podium .w-pod-1 { order: 2; }
.w-podium .w-pod-3 { order: 3; }

/* 去小标后，标题上方补一点呼吸 */
.w-title { margin-top: 8px; }

@media (max-width: 860px) {
  .w-podium .w-pod-1 { order: 0; }
}


/* ===== 首页一体感 ===== */
body.h4 {
  background:
    radial-gradient(1500px 900px at 50% -12%, rgba(217, 179, 107, 0.10), transparent 62%),
    radial-gradient(1100px 700px at 88% 6%, rgba(160, 120, 70, 0.07), transparent 60%),
    linear-gradient(180deg, #0d0c0a 0%, #0b0a08 46%, #0a0907 100%) !important;
  background-attachment: fixed !important;
}

/* 天梯表去掉外框 */
body.h4 .w-board {
  border: 0 !important;
  border-top: 1px solid rgba(255, 244, 226, 0.14) !important;
  background: transparent !important;
}

body.h4 .w-board-head { border-bottom: 1px solid rgba(255, 244, 226, 0.1) !important; }
body.h4 .w-trow { border-bottom: 1px solid rgba(255, 244, 226, 0.055) !important; }
body.h4 .w-trow:hover { background: rgba(217, 179, 107, 0.05) !important; }

/* 荣誉台：只保留冠军卡有体积，二三名融进背景 */
body.h4 .w-pod:not(.w-pod-1) {
  background: transparent !important;
  border-color: transparent !important;
  border-bottom: 1px solid rgba(255, 244, 226, 0.07) !important;
}

body.h4 .w-pod:not(.w-pod-1):hover {
  background: rgba(217, 179, 107, 0.03) !important;
  border-bottom-color: rgba(217, 179, 107, 0.28) !important;
}

/* 等级阶梯：不要竖框，留横线 */
body.h4 .w-tiers { border-left: 0; border-right: 0; }
body.h4 .w-tier { border-right-color: rgba(255, 244, 226, 0.055) !important; }

/* 段落之间靠留白，不靠边框 */
body.h4 .w-sec { border-top: 1px solid rgba(255, 244, 226, 0.055) !important; }

/* 页头与首屏同色 */
body.h4 .site-header {
  background: rgba(13, 12, 10, 0.72) !important;
  border-bottom: 1px solid rgba(255, 244, 226, 0.06) !important;
}

/* 页脚收尾 */
body.h4 .site-footer {
  background: transparent !important;
  border-top: 1px solid rgba(255, 244, 226, 0.06) !important;
}


/* 首页同样：均匀底，无中心亮斑 */
body.h4 {
  background: #0b0a08 !important;
  background-image: linear-gradient(180deg, #0c0b09 0%, #0b0a08 44%, #0a0907 100%) !important;
  background-attachment: scroll !important;
}

body.h4 .site-header { background: transparent !important; border-bottom: 0 !important; backdrop-filter: none !important; }
body.h4 #announceBar { background: transparent !important; border-bottom: 0 !important; }
body.h4 .site-footer { background: transparent !important; border-top: 0 !important; }


/* 首页同样清掉 main 光晕 */
body.h4 main::before,
body.h4 main::after,
body.h4 .container::before,
body.h4 .container::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

body.h4 { background: #0b0a08 !important; background-image: none !important; }


/* ===== 首页：暖褐灰底，与首屏自然过渡 ===== */
body.h4 {
  --ink: #17130f;
  --ink-2: #1d1812;
  --hair: rgba(255, 246, 230, 0.075);
  background: #17130f !important;
  background-image: none !important;
}

/* 首屏底色略深于页面，用长渐隐接住 */
.w-hero { background: #120f0b; }

.w-hero-fade {
  height: 34% !important;
  background: linear-gradient(180deg, rgba(23, 19, 15, 0) 0%, rgba(23, 19, 15, 0.55) 52%, #17130f 100%) !important;
}

.w-hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 15, 11, 0.96) 0%, rgba(18, 15, 11, 0.88) 34%, rgba(18, 15, 11, 0.42) 62%, rgba(18, 15, 11, 0.14) 82%, rgba(18, 15, 11, 0.5) 100%),
    linear-gradient(180deg, rgba(18, 15, 11, 0.8) 0%, transparent 28%, transparent 58%, rgba(18, 15, 11, 0.9) 100%) !important;
}

.w-ticker::before { background: linear-gradient(90deg, #17130f, transparent) !important; }
.w-ticker::after { background: linear-gradient(270deg, #17130f, transparent) !important; }

.w-throne {
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 246, 230, 0.014) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(217, 179, 107, 0.09), rgba(255, 255, 255, 0.015) 40%, rgba(255, 255, 255, 0)),
    rgba(30, 25, 19, 0.82) !important;
}

.w-cta { background: #14100c !important; }
.w-sticky { background: rgba(24, 20, 15, 0.95) !important; }

/* 行线在浅底上更清楚 */
.w-trow { border-bottom-color: rgba(255, 246, 230, 0.07) !important; }
.w-board-head { border-bottom-color: rgba(255, 246, 230, 0.13) !important; }

/* 首屏底部数据行分隔 */
.w-hero-meta { border-top-color: rgba(255, 246, 230, 0.12) !important; }


/* 首页同档 */
body.h4 {
  background: #1c1813 !important;
  background-image: radial-gradient(1400px 800px at 50% -10%, rgba(217, 179, 107, 0.06), transparent 68%) !important;
}
.w-hero { background: #171310 !important; }
.w-hero-fade { background: linear-gradient(180deg, rgba(28, 24, 19, 0) 0%, rgba(28, 24, 19, 0.55) 52%, #1c1813 100%) !important; }
.w-ticker::before { background: linear-gradient(90deg, #1c1813, transparent) !important; }
.w-ticker::after { background: linear-gradient(270deg, #1c1813, transparent) !important; }
.w-cta { background: #191510 !important; }
body.h4 .site-footer { background: transparent !important; }


/* 首页：天梯区一层极淡托底光 */
body.h4 #ladder .w-wrap {
  background: radial-gradient(130% 80% at 50% 0%, rgba(255, 246, 230, 0.026), transparent 74%);
}

/* 荣誉台二三名：薄底，恢复一点点体积 */
body.h4 .w-pod:not(.w-pod-1) {
  background: linear-gradient(180deg, rgba(255, 246, 230, 0.022), rgba(255, 246, 230, 0.004)) !important;
  border-bottom: 0 !important;
}

body.h4 .w-pod:not(.w-pod-1):hover {
  background: linear-gradient(180deg, rgba(255, 246, 230, 0.035), rgba(255, 246, 230, 0.008)) !important;
}


/* 首页：表格与荣誉台恢复细边 */
body.h4 .w-board {
  border: 1px solid rgba(255, 246, 230, 0.10) !important;
  border-radius: 3px !important;
  background: rgba(255, 246, 230, 0.014) !important;
  overflow: hidden;
}

body.h4 .w-pod {
  border: 1px solid rgba(255, 246, 230, 0.10) !important;
  border-radius: 3px !important;
  background: rgba(255, 246, 230, 0.018) !important;
}

body.h4 .w-pod-1 {
  border-color: rgba(217, 179, 107, 0.42) !important;
  background: rgba(217, 179, 107, 0.04) !important;
}

body.h4 .w-throne {
  border: 1px solid rgba(217, 179, 107, 0.34) !important;
  border-radius: 4px !important;
}

/* 等级阶梯恢复细线框 */
body.h4 .w-tiers {
  border: 1px solid rgba(255, 246, 230, 0.10) !important;
  border-radius: 3px !important;
}
