/* ============================================================
   衡水敏德教育 · 资料库（keke_doc）外壳样式
   作用：1) 隐藏旧主题 chrome  2) 提供与新站一致的头部/页脚
   全部规则作用域限定在 #eduShell / #eduShellFooter，避免污染插件样式
   2026-10-02
   ============================================================ */

/* ---------- 隐藏旧主题头部 / 演示导航 / 旧页脚 ---------- */
body.pg_keke_doc .login-info-wrap,
body.pg_keke_doc .nvbing5_ywkd,
body.pg_keke_doc #hd,
body.pg_keke_doc .n5_dhys,
body.pg_keke_doc .n5_ejdh,
body.pg_keke_doc .n5_xlys,
body.pg_keke_doc #mu,
body.pg_keke_doc #ft,
body.pg_keke_doc #scrolltop,
body.pg_keke_doc .n5_wbtp{display:none !important;}

/* 让插件主体占满并去掉主题留下的顶部空白 */
body.pg_keke_doc #wp{padding-top:0 !important;}
/* 统一正文字体，避免插件默认字体与新站不一致 */
body.pg_keke_doc{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;text-align:left;}
html,body.pg_keke_doc{overflow-x:hidden;}

/* ---------- 解除旧主题固定宽度（#wp / .wp 的 min-width:1200px） ---------- */
@media (max-width:1240px){
  body.pg_keke_doc #wp,
  body.pg_keke_doc .wp{min-width:0 !important;width:auto !important;max-width:1200px !important;margin-left:auto !important;margin-right:auto !important;box-sizing:border-box !important;}
}
@media (max-width:768px){
  body.pg_keke_doc #wp,
  body.pg_keke_doc .wp{padding-left:10px !important;padding-right:10px !important;}
  body.pg_keke_doc .kekebigbox,
  body.pg_keke_doc .kekedoc_indexhd,
  body.pg_keke_doc .mods,
  body.pg_keke_doc .mod_top_nav,
  body.pg_keke_doc .top_nav_breadcrumb,
  body.pg_keke_doc .mod_list{width:auto !important;min-width:0 !important;box-sizing:border-box !important;}

  /* --- 插件首页 hero：老式绝对定位布局，移动端改为精简堆叠 --- */
  body.pg_keke_doc .kekedoc_indexhd{position:static !important;height:auto !important;padding-bottom:14px !important;}
  body.pg_keke_doc #slideBox{display:none !important;}
  /* 下拉式分类菜单依赖 hover，移动端不可用，直接隐藏（下方 .mods 各分类块仍可导航） */
  body.pg_keke_doc .hd_left{display:none !important;}
  body.pg_keke_doc .hd_right_box{position:static !important;width:auto !important;padding:0 !important;}
  body.pg_keke_doc .hd_right{height:auto !important;padding:16px 14px !important;background-image:none !important;}
  body.pg_keke_doc .hd_right .advantage{display:flex;}
  body.pg_keke_doc .hd_right .advantage li{float:none !important;width:33.333% !important;box-sizing:border-box !important;}
  body.pg_keke_doc .hd_right .fwbz{margin-top:14px !important;}
  body.pg_keke_doc .hd_right .fwbz dd{height:auto !important;}

  /* --- 详情页：文档信息框解除固定宽度 ---
     .docinfobox 内含 absolute 定位封面 + 摘要 + 价格块，min-content 约 525px，
     max-width 无法约束；该框信息与下方 .doc_box 正文区重复，移动端直接隐藏。 */
  body.pg_keke_doc .docinfobox{display:none !important;}

  /* --- 详情页：主体左右栏：由上到下堆叠 --- */
  body.pg_keke_doc .newleft,
  body.pg_keke_doc .right_userlist,
  body.pg_keke_doc .newright{float:none !important;width:auto !important;min-width:0 !important;}
  body.pg_keke_doc .newleft .bd ul li{float:none !important;width:auto !important;white-space:normal !important;line-height:1.7 !important;padding:4px 0 !important;}
}

/* ---------- 公共变量 ---------- */
#eduShell,#eduShellFooter{
  --brand:#1A6FE8;--brand-d:#1257b8;--brand-l:#e8f1fe;--gold:#C9A227;
  --ink:#1f2733;--ink2:#2b3a4d;--muted:#5b6675;--muted2:#93a0b0;
  --line:#e6ecf3;--line2:#eef2f7;--radius:10px;--radius-s:8px;
  --shadow:0 2px 10px rgba(20,45,85,.06);
  --shadow-h:0 6px 22px rgba(20,45,85,.14);
  --serif:"Source Han Serif SC","Songti SC","SimSun",Georgia,serif;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:16px;line-height:1.8;color:var(--ink);text-align:left;
}
#eduShell *,#eduShellFooter *{box-sizing:border-box;}
#eduShell a,#eduShellFooter a{text-decoration:none;color:inherit;}
#eduShell ul,#eduShellFooter ul{list-style:none;margin:0;padding:0;}
#eduShell img,#eduShellFooter img{max-width:100%;border:0;}
#eduShell .edu-wrap{max-width:1200px;margin:0 auto;padding:0 20px;}

/* ---------- 顶部条 ---------- */
#eduShell .edu-topbar{background:#0f2242;color:#c7d6ee;font-size:13px;line-height:36px;}
#eduShell .edu-topbar .edu-wrap{display:flex;justify-content:space-between;}
#eduShell .edu-topbar a{color:#c7d6ee;}
#eduShell .edu-topbar a:hover{color:#fff;}
#eduShell .edu-topbar .tb-l span{margin-right:18px;}
#eduShell .edu-topbar .tb-r{color:#8fa6c8;}

/* ---------- 头部 ---------- */
#eduShell .edu-header{background:#fff;box-shadow:var(--shadow);position:sticky;top:0;z-index:60;}
#eduShell .edu-header .edu-wrap{display:flex;align-items:center;height:74px;gap:26px;}
#eduShell .edu-logo{display:flex;align-items:center;gap:10px;flex:0 0 auto;}
#eduShell .edu-logo img{width:46px;height:46px;border-radius:50%;}
#eduShell .edu-logo .lg-t b{display:block;font-size:20px;color:var(--brand);letter-spacing:1px;font-family:var(--serif);font-weight:700;line-height:1.2;}
#eduShell .edu-logo .lg-t i{display:block;font-size:10px;color:var(--muted2);letter-spacing:2px;font-style:normal;}
#eduShell .edu-nav{display:flex;align-items:center;gap:4px;flex:1;margin:0;padding:0;}
#eduShell .edu-nav>li{position:relative;}
#eduShell .edu-nav>li>a{display:block;height:74px;line-height:74px;padding:0 16px;font-size:16px;color:var(--ink2);}
#eduShell .edu-nav>li>a:hover,#eduShell .edu-nav>li.on>a{color:var(--brand);font-weight:600;}
#eduShell .edu-nav>li.on>a:after{content:"";position:absolute;left:14px;right:14px;bottom:0;height:3px;background:var(--brand);border-radius:3px 3px 0 0;}
#eduShell .edu-cta{display:flex;align-items:center;gap:10px;flex:0 0 auto;}
#eduShell .edu-btn{display:inline-block;padding:9px 20px;border-radius:var(--radius-s);font-size:14px;line-height:1.4;cursor:pointer;border:1px solid transparent;transition:all .18s;text-align:center;font-family:inherit;}
#eduShell .edu-btn-p{background:var(--brand);color:#fff !important;}
#eduShell .edu-btn-p:hover{background:var(--brand-d);color:#fff;}

/* ---------- 面包屑（供插件页顶部使用） ---------- */
#eduShell .edu-crumb{background:#fff;border-bottom:1px solid var(--line2);font-size:13.5px;color:var(--muted);line-height:52px;}
#eduShell .edu-crumb .edu-wrap{display:flex;align-items:center;flex-wrap:wrap;}
#eduShell .edu-crumb a{color:var(--muted);}
#eduShell .edu-crumb a:hover{color:var(--brand);}
#eduShell .edu-crumb .sep{margin:0 8px;color:#c6d0dc;}

/* ---------- 页脚 ---------- */
#eduShellFooter{margin-top:0;}
#eduShellFooter .edu-footer{background:#0f2242;color:#a9bcd8;padding:46px 0 0;}
#eduShellFooter .edu-wrap{max-width:1200px;margin:0 auto;padding:0 20px;}
#eduShellFooter .fgrid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);gap:30px;padding-bottom:30px;border-bottom:1px solid rgba(255,255,255,.08);}
#eduShellFooter .flogo{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
#eduShellFooter .flogo img{width:40px;height:40px;border-radius:50%;}
#eduShellFooter .flogo b{color:#fff;font-size:18px;font-family:var(--serif);letter-spacing:1px;}
#eduShellFooter .fabout{font-size:13.5px;line-height:1.9;color:#8ea6c6;margin:0;}
#eduShellFooter h4{color:#fff;font-size:15px;margin:0 0 14px;font-weight:600;}
#eduShellFooter .fgrid li{margin-bottom:9px;}
#eduShellFooter .fgrid li a{color:#a9bcd8;font-size:14px;}
#eduShellFooter .fgrid li a:hover{color:#fff;}
#eduShellFooter .copy{padding:18px 0 26px;font-size:13px;color:#7d93b3;text-align:center;line-height:2;}
#eduShellFooter .copy a{color:#7d93b3;}
#eduShellFooter .copy a:hover{color:#c7d6ee;}
#eduShellFooter .copy .sep{margin:0 8px;color:#3d5878;}

/* ---------- 响应式 ---------- */
@media (max-width:960px){
  #eduShell .edu-nav>li>a{padding:0 11px;font-size:15px;}
  #eduShellFooter .fgrid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
}
@media (max-width:768px){
  #eduShell .edu-topbar{display:none;}
  #eduShell .edu-header .edu-wrap{height:60px;gap:12px;}
  #eduShell .edu-logo img{width:38px;height:38px;}
  #eduShell .edu-logo .lg-t b{font-size:17px;}
  #eduShell .edu-nav{display:none;}
  #eduShell .edu-cta{margin-left:auto;}
  #eduShellFooter .fgrid{grid-template-columns:minmax(0,1fr);gap:22px;}
}
