/* ============================================================
   nuea.cn 专属主题 · 靛蓝书卷风 (Indigo Scroll)
   ------------------------------------------------------------
   目的：与 gcwzj 等 12 站共用的「深绿/深金杂志风」异质化。
   做法：只覆盖视觉 CSS 变量 + 少量深色硬编码兜底；
        不改共用文件 wb-unify-v11.css / wb-home-v13.css，
        不动 DOM / href / TDK / canonical / 统计 / 数据库。
   必须最后加载（在 wb-unify-v11 与 wb-home-v13 之后）。
   ============================================================ */

/* ---------- 1) 主题变量：浅米白纸底 + 靛蓝 + 细金线 ---------- */
:root{
  /* theme-v8.css 使用的变量族 */
  --bg:#f4f1e9;          /* 米白纸底 */
  --surf:#fffdf8;        /* 卡片纸面 */
  --surf2:#ece7d9;       /* 浅褐衬底 */
  --ink:#1b2a4a;         /* 靛蓝墨字 */
  --muted:#5c6a86;       /* 次要灰蓝 */
  --line:#d8d2bf;        /* 淡金灰分隔线 */
  --acc:#2f4c8f;         /* 靛蓝主色 */
  --acc2:#b08d3f;        /* 细金点缀 */
  --radius:6px;
}
/* wb-unify-v11.css 的 --wb-* 变量族 */
html body{
  --wb-bg:#f4f1e9!important;
  --wb-surf:#fffdf8!important;
  --wb-surf2:#ece7d9!important;
  --wb-ink:#1b2a4a!important;
  --wb-mut:#5c6a86!important;
  --wb-line:#d8d2bf!important;
  --wb-acc:#2f4c8f!important;
  --wb-acc2:#b08d3f!important;
  --wb-radius:8px!important;
}
/* wb-home-v13.css 首页专用 --wbh-* 变量族 */
html body{
  --wbh-bg:#f4f1e9!important; --wbh-surf:#fffdf8!important; --wbh-surf2:#ece7d9!important;
  --wbh-line:#d8d2bf!important; --wbh-ink:#1b2a4a!important; --wbh-mut:#5c6a86!important;
  --wbh-acc:#2f4c8f!important; --wbh-acc2:#b08d3f!important;
}

/* ---------- 2) 纸张质感底 + 墨色字 ---------- */
html body{
  background:
    linear-gradient(90deg,rgba(47,76,143,.035) 1px,transparent 1px) 0 0/28px 28px,
    linear-gradient(rgba(47,76,143,.028) 1px,transparent 1px) 0 0/28px 28px,
    #f4f1e9!important;
  color:#1b2a4a!important;
}
html body a{color:inherit!important}
html body a:hover{color:#2f4c8f!important}

/* ---------- 3) 顶部细金线（覆盖共用 CSS 的隐藏/绿线） ---------- */
html body::before{
  content:""!important;display:block!important;height:3px!important;
  background:linear-gradient(90deg,#b08d3f,#2f4c8f 55%,#b08d3f)!important;
}

/* ---------- 4) 导航条：靛蓝纸面 ---------- */
html body #navbox,
html body #box_head{
  background:#fffdf8!important;
  border-top:1px solid #d8d2bf!important;
  border-bottom:2px solid #2f4c8f!important;
}
html body #navbox ul.nav li a{color:#5c6a86!important}
html body #navbox ul.nav li a:hover,
html body #navbox ul.nav li a.active{color:#2f4c8f!important}

/* ---------- 5) 详情标题区/牌匾：靛蓝印鉴风覆盖深色金匾 ---------- */
html body .actor_show .wb-art,
html body #v-poster .wb-art{
  color:#f4f1e9!important;
  background:
    radial-gradient(90% 70% at 50% 6%,rgba(176,141,63,.20),transparent 62%),
    linear-gradient(160deg,#2f4c8f 0%,#1b2a4a 58%,#16213c 100%)!important;
  border:1px solid rgba(176,141,63,.55)!important;
  box-shadow:
    inset 0 0 0 5px rgba(244,241,233,.10),
    inset 0 0 0 6px rgba(176,141,63,.35),
    inset 0 18px 44px rgba(0,0,0,.25),
    0 8px 22px rgba(27,42,74,.18)!important;
}
html body .actor_show .wb-art::before,
html body #v-poster .wb-art::before{border-color:rgba(176,141,63,.5)!important}
html body .actor_show .wb-art::after,
html body #v-poster .wb-art::after{background:linear-gradient(90deg,transparent,rgba(176,141,63,.85),transparent)!important}
html body .actor_show .wb-art-label,
html body #v-poster .wb-art-label{
  border-color:rgba(176,141,63,.6)!important;
  background:rgba(176,141,63,.12)!important;
  color:#e8d5a8!important;
}
html body .actor_show .wb-art-title,
html body #v-poster .wb-art-title{
  color:#f6efd9!important;
  text-shadow:0 2px 0 rgba(0,0,0,.28),0 0 18px rgba(176,141,63,.35)!important;
}
html body .actor_show .wb-art-sub,
html body #v-poster .wb-art-sub{color:rgba(244,241,233,.72)!important}

/* ---------- 6) 正文区：白纸卡 + 靛蓝字 ---------- */
html body .wb-article,html body #content_hx,html body .wb-section,
html body .content,html body #actor_content{
  background:#fffdf8!important;color:#1b2a4a!important;
}
html body .wb-article h1,html body #content_hx h1,html body #title h1,
html body .wb-article h2,html body #content_hx h2,
html body .wb-article h3,html body #content_hx h3{
  color:#1b2a4a!important;
}
html body .wb-body,html body .wb-article p,html body #content_hx p,
html body .wb-article li,html body #content_hx li,
html body .wb-article span,html body .wb-article div{
  color:#33415f!important;
}
html body .wb-article a,html body .wb-section a,html body #content_hx a{color:#2f4c8f!important}

/* ---------- 7) 按钮/徽章文字：深色底金字 → 靛蓝底白字 ----------
   注意：不使用宽泛的 `.on/.active`（会误伤 .wbh-tabpane.on 把整个面板染色），
   只精确命中导航链接类。 */
html body .wbh-tabs li a.on,
html body #navbox ul.nav li a.active,
html body #inner_nav dd ul li a.on{background:#2f4c8f!important;color:#fff!important}

/* ---------- 8) 首页 hero：靛蓝书卷（覆盖深色遮罩） ---------- */
html body .wbh-hero{border-color:#d8d2bf!important;box-shadow:0 14px 40px rgba(27,42,74,.16)!important}
html body .wbh-hero-slide::after{
  background:linear-gradient(90deg,rgba(244,241,233,.96) 0%,rgba(244,241,233,.72) 42%,rgba(244,241,233,.05) 100%)!important;
}
html body .wbh-hero-cap .kicker,
html body .wbh-hero-cap .wbh-hero-cta{
  color:#fff!important;
  background:linear-gradient(135deg,#2f4c8f,#b08d3f)!important;
}
html body .wbh-hero-cap h2{color:#1b2a4a!important;text-shadow:0 2px 12px rgba(244,241,233,.9)!important}
html body .wbh-hero-cap h2 a{color:#1b2a4a!important}
html body .wbh-hero-cap p{color:#33415f!important}
html body .wbh-hero-dots a{background:rgba(27,42,74,.25)!important}
html body .wbh-hero-dots a.active{background:#2f4c8f!important}

/* ---------- 9) 面板/卡片：纸面 + 金灰边 ---------- */
html body .wbh-panel{background:#fffdf8!important;border-color:#d8d2bf!important;box-shadow:0 6px 22px rgba(27,42,74,.08)!important}
html body .wbh-panel-hd{border-bottom-color:#d8d2bf!important}
html body .wbh-panel-hd h3{color:#1b2a4a!important}
html body .wbh-panel-hd h3::before{background:linear-gradient(180deg,#b08d3f,#2f4c8f)!important}
html body .wbh-panel-hd .wbh-panel-more{color:#5c6a86!important;background:#ece7d9!important;border-color:#d8d2bf!important}
html body .wbh-panel-hd .wbh-panel-more:hover{color:#2f4c8f!important;border-color:#2f4c8f!important}
html body .wbh-card-cover{background:#ece7d9!important;border-color:#d8d2bf!important}
html body .wbh-card:hover .wbh-card-cover{border-color:#2f4c8f!important;box-shadow:0 10px 26px rgba(27,42,74,.16)!important}
html body .wbh-card h4,html body .wbh-card h4 a{color:#1b2a4a!important}
html body .wbh-card p,html body .wbh-card p a{color:#5c6a86!important}
html body .wbh-badge{color:#fff!important;background:rgba(47,76,143,.92)!important}
html body .wbh-tabs li a{color:#5c6a86!important;background:#ece7d9!important;border-color:#d8d2bf!important}
html body .wbh-tabs li a:hover{color:#2f4c8f!important;border-color:#2f4c8f!important}
html body .wbh-rank li{border-bottom-color:#d8d2bf!important}
html body .wbh-rank .no{background:#ece7d9!important;color:#5c6a86!important}
html body .wbh-rank li:nth-child(-n+3) .no{background:#2f4c8f!important;color:#fff!important}
html body .wbh-rank a{color:#1b2a4a!important}
html body .wbh-tags a,html body .wbh-inline-links a{color:#5c6a86!important;background:#ece7d9!important;border-color:#d8d2bf!important}
html body .wbh-stars h5,html body .wbh-stars h5 a{color:#1b2a4a!important}
html body .wbh-stars p{color:#5c6a86!important}
html body .wbh-star-cover{background:#ece7d9!important;border-color:#d8d2bf!important}

/* ---------- 10) 面包屑 / 内导航（保留 body 上移修复的结构，只换色） ---------- */
html body #bread{color:#5c6a86!important}
html body #bread a{color:#2f4c8f!important}
html body #inner_nav dl{background:#fffdf8!important;border:1px solid #d8d2bf!important}
html body #inner_nav dt.font{color:#1b2a4a!important}
html body #inner_nav dd ul li a{color:#5c6a86!important}
html body #inner_nav dd ul li a.on,
html body #inner_nav dd ul li a.active{background:#2f4c8f!important;color:#fff!important}

/* ---------- 10.5) 卡片艺术字封面：内联绿金渐变 → 靛蓝书卷渐变 ----------
   PHP 渲染时在内联 style 写死了 --wb-c1/--wb-c2（绿金），这里用 !important
   覆盖变量，让所有封面统一为靛蓝系（与书卷风一致）。 */
html body .wb-art{
  --wb-c1:#2f4c8f!important;--wb-c2:#1b2a4a!important;
}
html body .wbh-card-cover .wb-art,
html body .wbh-star-cover .wb-art{
  background:linear-gradient(145deg,#34518f 0%,#1b2a4a 60%,#16213c 100%)!important;
  border-color:rgba(176,141,63,.55)!important;
}
html body .wb-art-title{color:#f6efd9!important;text-shadow:0 2px 0 rgba(0,0,0,.28),0 0 16px rgba(176,141,63,.35)!important}
html body .wb-art-label{color:#e8d5a8!important}
html body .wb-art-rule{background:linear-gradient(90deg,transparent,#b08d3f,transparent)!important}
html body .wb-art-sub{color:rgba(244,241,233,.72)!important}

/* ---------- 11) 移动端纸底兜底 ---------- */
@media(max-width:768px){
  html body{background:#f4f1e9!important}
  html body .wbh-panel,html body .content,html body .wb-article{background:#fffdf8!important}
}
