/* ============================================================
   衡水敏德教育 · 资料库（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;}
/* 本地文件模式：无页内联页预览（空壳宽度塌陷），无公告条（内容与标题重复）——均隐藏 */
body.pg_keke_doc .pageinfosubbox{display:none !important;}
body.pg_keke_doc .noticeidtxt,body.pg_keke_doc .noticeid{display:none !important;}

/* ---------- 解除旧主题固定宽度（#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:12px !important;padding-right:12px !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-600:#1A6FE8;--brand-700:#1257b8;
  --brand-50:#e8f1fe;--brand-100:#dbeafe;
  --gold:#C9A227;--gold-50:#fdf7e6;
  --ink-900:#0f172a;--ink-700:#334155;--ink-500:#64748b;--ink-300:#cbd5e1;
  --bg:#f8fafc;--line:#e2e8f0;--line-soft:#f1f5f9;
  --danger:#dc2626;--warn:#d97706;--ok:#16a34a;
  --brand-d:var(--brand-700);--brand-l:var(--brand-50);
  --ink:var(--ink-900);--ink2:var(--ink-700);--muted:var(--ink-500);--muted2:var(--ink-500);
  --line2:var(--line-soft);--radius:10px;--radius-s:8px;
  --radius-sm:6px;--radius-md:8px;--radius-lg:10px;--radius-xl:12px;
  --shadow-card:0 1px 2px rgba(15,23,42,.05);--shadow-hover:0 8px 24px rgba(15,23,42,.08);
  --shadow-focus:0 0 0 3px rgba(26,111,232,.15);--shadow-modal:0 20px 40px rgba(15,23,42,.12);
  --shadow:var(--shadow-card);
  --shadow-h:var(--shadow-hover);
  --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 16px;}

/* ---------- 顶部条 ---------- */
#eduShell .edu-topbar{background:var(--ink-900);color:var(--ink-300);font-size:12px;line-height:36px;}
#eduShell .edu-topbar .edu-wrap{display:flex;justify-content:space-between;}
#eduShell .edu-topbar a{color:var(--ink-300);}
#eduShell .edu-topbar a:hover{color:#fff;}
#eduShell .edu-topbar .tb-l span{margin-right:16px;}
#eduShell .edu-topbar .tb-r{color:var(--ink-300);}

/* ---------- 头部 ---------- */
#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:24px;}
#eduShell .edu-logo{display:flex;align-items:center;gap:12px;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:12px;color:var(--ink-500);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(--ink-900);font-weight:500;}
#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:12px;flex:0 0 auto;}
#eduShell .edu-btn{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 20px;border-radius:var(--radius-md);font-size:15px;font-weight:500;line-height:1;cursor:pointer;border:1px solid transparent;transition:background-color .18s ease,border-color .18s ease,color .18s ease;text-align:center;font-family:inherit;white-space:nowrap;}
#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(--line-soft);font-size:13px;color:var(--ink-500);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:var(--ink-300);}

/* ---------- 页脚 ---------- */
#eduShellFooter{margin-top:0;}
#eduShellFooter .edu-footer{background:var(--ink-900);color:var(--ink-300);padding:48px 0 0;}
#eduShellFooter .edu-wrap{max-width:1200px;margin:0 auto;padding:0 16px;}
#eduShellFooter .fgrid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);gap:32px;padding-bottom:32px;border-bottom:1px solid rgba(255,255,255,.08);}
#eduShellFooter .flogo{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
#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:14px;line-height:1.7;color:var(--ink-500);margin:0;}
#eduShellFooter h4{color:#fff;font-size:16px;margin:0 0 16px;font-weight:600;}
#eduShellFooter .fgrid li{margin-bottom:8px;}
#eduShellFooter .fgrid li a{color:var(--ink-300);font-size:14px;}
#eduShellFooter .fgrid li a:hover{color:#fff;}
#eduShellFooter .copy{padding:16px 0 24px;font-size:14px;color:var(--ink-500);text-align:center;line-height:1.7;}
#eduShellFooter .copy a{color:var(--ink-300);}
#eduShellFooter .copy a:hover{color:#fff;}
#eduShellFooter .copy .sep{margin:0 8px;color:var(--ink-500);}

/* ---------- 响应式 ---------- */
@media (max-width:960px){
  #eduShell .edu-nav>li>a{padding:0 12px;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;}
}
