/* ============================================================
   C++ 考级竞赛知识体系 —— 现代学习文档站风格
   主色 #1A3A63 / 强调 #00A896 / #FF8C00
   保留全部既有类名与 id，仅增强视觉层级、间距、圆角、阴影与配色
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* html { scroll-behavior: smooth; } 已移除：点击导航需瞬时直达，避免任何平滑滚动 */
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
  background: #f5f7fa;
  color: #2d333b;
  line-height: 1.8;
  font-size: 15px;
}
a { text-decoration: none; color: #0e7490; transition: color .15s; }
a:hover { color: #00A896; }
img { max-width: 100%; vertical-align: middle; }
code { font-family: Consolas, "Courier New", "Source Code Pro", monospace; }

/* ============ 顶部导航（白底现代风） ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e6ebf2;
  box-shadow: 0 1px 6px rgba(26, 58, 99, .06);
}
.navbar {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; height: 62px; padding: 0 18px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; color: #1A3A63; font-size: 17px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.nav-logo:hover { color: #00A896; text-decoration: none; }
.nav-logo .nav-logo-img { height: 32px; width: auto; }
.nav-logo .nav-logo-text { line-height: 1.25; }
.logo-badge {
  background: linear-gradient(135deg, #00A896, #0d8f80); color: #fff;
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 168, 150, .35);
}
.nav-search { margin-left: auto; position: relative; display: flex; align-items: center; }
.nav-search input {
  border: 1px solid #e2e8f0; border-radius: 20px 0 0 20px; padding: 8px 16px; width: 230px;
  outline: none; font-size: 13px; color: #2d333b; background: #f1f5f9;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.nav-search input:focus { border-color: #00A896; background: #fff; box-shadow: 0 0 0 3px rgba(0, 168, 150, .15); }
.nav-search button {
  border: 1px solid #00A896; background: #00A896; color: #fff; border-radius: 0 20px 20px 0;
  padding: 8px 18px; cursor: pointer; font-size: 13px; font-weight: 700;
  transition: background .15s;
}
.nav-search button:hover { background: #0d8f80; }
/* 搜索结果下拉 */
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; width: 100%; min-width: 300px;
  background: #fff; border: 1px solid #e6ebf2; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(26, 58, 99, .16);
  padding: 8px; z-index: 200; max-height: 340px; overflow-y: auto;
}
.search-results.hidden { display: none; }
.search-results .sr-title { font-size: 12px; color: #98a2b3; padding: 4px 10px 6px; font-weight: 800; letter-spacing: .5px; }
.search-results a { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; border-radius: 8px; color: #334155; font-size: 13.5px; }
.search-results a:hover { background: #f0fdfa; color: #00A896; text-decoration: none; }
.search-results a .sr-no { font-family: Consolas, monospace; color: #94a3b8; font-size: 12px; min-width: 24px; }
.search-results .sr-empty { padding: 12px 10px; color: #94a3b8; font-size: 13px; text-align: center; }
.nav-links { display: flex; gap: 4px; margin-left: 18px; }
.nav-links a { color: #4a5568; padding: 7px 13px; border-radius: 10px; font-size: 14px; white-space: nowrap; font-weight: 500; }
.nav-links a:hover, .nav-links a.current { background: #eef4fb; color: #1A3A63; text-decoration: none; }
.nav-links a.current { background: linear-gradient(135deg, #1A3A63, #2b5b8f); color: #fff; box-shadow: 0 2px 8px rgba(26, 58, 99, .25); }
.nav-links a.current:hover { color: #fff; }

/* ============ 页面布局（三栏卡片化） ============ */
.page-wrap {
  max-width: 1360px; margin: 82px auto 0;
  display: flex; align-items: flex-start; gap: 20px;
  padding: 0 18px 36px;
}
.sidebar {
  flex: 0 0 252px; min-width: 252px;
  background: #fff; border: 1px solid #e8ecf2; border-radius: 16px;
  padding: 16px 12px; position: sticky; top: 80px;
  max-height: calc(100vh - 96px); overflow-y: auto;
  box-shadow: 0 2px 12px rgba(26, 58, 99, .05);
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #d4dce6; border-radius: 3px; }
.side-cat {
  font-size: 12px; color: #8a94a6; font-weight: 800; margin: 16px 10px 6px; letter-spacing: 1.5px;
}
.side-cat:first-child { margin-top: 2px; }
.side-link {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; margin: 2px 0; border-radius: 10px;
  color: #475569; font-size: 13.5px; border-left: 3px solid transparent;
  transition: background .15s, color .15s;
}
.side-link:hover { background: #f0fdfa; color: #00A896; text-decoration: none; }
.side-link .no { color: #9aa7b8; font-size: 12px; font-family: Consolas, monospace; min-width: 20px; }
.side-link.active { background: linear-gradient(135deg, #1A3A63, #2b5b8f); color: #fff; border-left-color: #00A896; box-shadow: 0 4px 12px rgba(26, 58, 99, .22); }
.side-link.active .no { color: #5eead4; }
.side-link.active:hover { background: linear-gradient(135deg, #1A3A63, #2b5b8f); color: #fff; }

.content, .main-content { flex: 1 1 auto; min-width: 0; background: #fff; border: 1px solid #e8ecf2; border-radius: 16px; padding: 32px 38px; box-shadow: 0 2px 12px rgba(26, 58, 99, .05); }
.toc-side {
  flex: 0 0 218px; min-width: 218px;
  background: #fff; border: 1px solid #e8ecf2; border-radius: 16px; padding: 18px 16px;
  position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto;
  box-shadow: 0 2px 12px rgba(26, 58, 99, .05);
}
.toc-side .toc-title { font-size: 14px; font-weight: 800; color: #1A3A63; border-bottom: 2px solid #00A896; padding-bottom: 8px; margin-bottom: 10px; }
.toc-side a { display: block; color: #64748b; font-size: 13px; padding: 4px 8px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; transition: all .15s; }
.toc-side a:hover { color: #00A896; border-left-color: #00A896; text-decoration: none; background: #f0fdfa; }
.toc-side a.lv2 { padding-left: 12px; }
.toc-side a.lv3 { padding-left: 22px; font-size: 12.5px; color: #94a3b8; }

/* ============ 文章正文 ============ */
.article h1 {
  font-size: 26px; color: #1A3A63; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 2px solid #eef2f7;
}
.article .lead-note {
  background: linear-gradient(90deg, #eef9f7, #f8fcfa); border-left: 4px solid #00A896;
  padding: 12px 16px; border-radius: 8px; margin: 12px 0 20px; color: #14564d; font-size: 14px;
}
.article h2 { font-size: 20px; color: #1A3A63; margin: 30px 0 12px; padding: 8px 0 6px; border-bottom: 2px solid #eef2f7; }
.article h3 { font-size: 17px; color: #23506e; margin: 22px 0 10px; }
.article p { margin: 10px 0; }
.article strong { color: #b45309; }
.article ul, .article ol { margin: 10px 0 10px 26px; }
.article li { margin: 5px 0; }
.article li.task { list-style: none; margin-left: -18px; }
.article li.task::before { content: "\2610"; color: #00A896; margin-right: 8px; font-size: 16px; }
.article blockquote {
  background: #f0fdfa; border-left: 4px solid #00A896;
  padding: 12px 18px; margin: 14px 0; color: #155e54; border-radius: 0 10px 10px 0;
}
.article blockquote p { margin: 4px 0; }
.article a code, .article li code, .article p code {
  background: #eef2f7; border: 1px solid #e2e8f0; border-radius: 6px;
  padding: 1px 7px; font-size: 13px; color: #d6336c;
}

/* ============ 表格 ============ */
.md-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; font-size: 14px; border: 1px solid #e8ecf2; border-radius: 12px; overflow: hidden; }
.md-table th, .md-table td { border-bottom: 1px solid #eef2f7; padding: 10px 14px; text-align: left; }
.md-table th { background: linear-gradient(135deg, #1A3A63, #24517f); color: #fff; font-weight: 600; }
.md-table tr:last-child td { border-bottom: none; }
.md-table tr:nth-child(even) td { background: #f8fafc; }
.md-table tr:hover td { background: #f0fdfa; }
.md-table td code { background: transparent; border: none; padding: 0; color: #d6336c; }

/* ============ 代码实例块（现代深色主题 · 类 VS Code / GitHub Dark） ============ */
.code-box {
  border: 1px solid #30363d; border-radius: 12px; margin: 18px 0;
  overflow: hidden; background: #0d1117;
  box-shadow: 0 8px 24px rgba(1, 4, 9, .45), 0 2px 6px rgba(1, 4, 9, .3);
}
.code-head {
  display: flex; align-items: center; gap: 12px;
  background: #161b22; padding: 10px 16px; border-bottom: 1px solid #30363d;
}
/* 窗口控制点（红黄绿） */
.code-dots { display: inline-flex; gap: 8px; flex: 0 0 auto; }
.code-dots i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.code-dots .dot-r { background: #ff5f56; }
.code-dots .dot-y { background: #ffbd2e; }
.code-dots .dot-g { background: #27c93f; }
.code-lang {
  font-size: 12px; color: #8b949e; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; user-select: none;
}
.code-actions { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.btn-copy {
  background: #21262d; color: #c9d1d9; border: 1px solid #30363d; border-radius: 6px;
  padding: 4px 14px; font-size: 12px; cursor: pointer; font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-copy:hover { background: #30363d; border-color: #8b949e; color: #fff; }
.code-box pre { margin: 0; padding: 14px 0; overflow-x: auto; background: #0d1117; }
.code-box code {
  display: block; min-width: max-content;
  font-size: 13.5px; line-height: 1.75; color: #c9d1d9; white-space: pre;
  counter-reset: line; font-family: Consolas, "Courier New", monospace;
}
.code-line { display: block; padding-right: 18px; }
.code-line:hover { background: #161b22; }
.code-line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block; min-width: 44px; margin-right: 16px; padding-right: 14px;
  text-align: right; color: #484f58; user-select: none;
  border-right: 1px solid #21262d;
}
/* 深色背景语法高亮配色（GitHub Dark） */
.tok-kw  { color: #ff7b72; font-weight: 600; }
.tok-str { color: #a5d6ff; }
.tok-cm  { color: #8b949e; font-style: italic; }
.tok-num { color: #79c0ff; }
.tok-pp  { color: #ff7b72; }
.tok-fn  { color: #d2a8ff; }

/* ============ 上一章 / 下一章 ============ */
.page-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 34px; padding-top: 24px; border-top: 1px solid #eef2f7;
}
.page-nav a {
  flex: 0 1 48%; background: #fff; border: 1px solid #e8ecf2; border-radius: 12px;
  padding: 14px 18px; color: #2d333b; transition: all .18s; box-shadow: 0 1px 4px rgba(26, 58, 99, .04);
}
.page-nav a:hover { border-color: #00A896; background: #f0fdfa; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 168, 150, .14); }
.page-nav .dir { font-size: 12px; color: #94a3b8; display: block; }
.page-nav .ttl { font-size: 15px; color: #1A3A63; font-weight: 700; }
.page-nav a.next { text-align: right; margin-left: auto; }

/* ============ 返回顶部 ============ */
#backTop {
  position: fixed; bottom: 42px; right: 34px; width: 46px; height: 46px;
  border-radius: 50%; background: linear-gradient(135deg, #1A3A63, #2b5b8f); color: #fff; border: none;
  font-size: 22px; cursor: pointer; z-index: 99;
  box-shadow: 0 4px 14px rgba(26, 58, 99, .35); display: none;
  transition: transform .15s;
}
#backTop:hover { background: #2c5b9e; transform: translateY(-2px); }

/* ============ Toast ============ */
#toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: rgba(20, 30, 46, .92); color: #fff;
  padding: 12px 22px; border-radius: 10px; font-size: 14px;
  opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 300;
  max-width: 80%; text-align: center;
}
#toast.show { opacity: 1; }

/* ============ 页脚 ============ */
.site-footer {
  background: linear-gradient(135deg, #1A3A63, #123052); color: #b9c7da; text-align: center;
  padding: 26px 16px; font-size: 13px; line-height: 1.9;
}
.site-footer a { color: #d7e3f0; }
.site-footer .footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.site-footer .footer-logo { height: 26px; width: auto; }

/* ============ 首页：Hero / 卡片 ============ */
.landing { max-width: 1180px; margin: 82px auto 0; padding: 0 18px 48px; }
.hero {
  background: linear-gradient(135deg, #1A3A63 0%, #0f7a6e 58%, #00A896 100%);
  color: #fff; border-radius: 20px; padding: 46px 42px; margin: 22px 0 30px;
  box-shadow: 0 14px 34px rgba(26, 58, 99, .30);
  position: relative; overflow: hidden;
}
.hero::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .07); top: -120px; right: -80px; }
.hero::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .05); bottom: -90px; left: -60px; }
.hero-logo { display: inline-flex; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); margin-bottom: 18px; position: relative; }
.hero-logo img { height: 64px; width: auto; }
.hero h1 { font-size: 32px; margin-bottom: 12px; letter-spacing: 1px; position: relative; }
.hero p { font-size: 15px; color: #e3f2ef; max-width: 880px; position: relative; }
.hero .badges { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.hero .badge {
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .32);
  padding: 5px 16px; border-radius: 18px; font-size: 13px; color: #fff;
}
.hero .cta {
  display: inline-block; margin-top: 24px; background: #FF8C00; color: #fff;
  padding: 11px 30px; border-radius: 24px; font-weight: 800; font-size: 15px; position: relative;
  box-shadow: 0 6px 18px rgba(255, 140, 0, .4); transition: transform .15s, box-shadow .15s, background .15s;
}
.hero .cta:hover { background: #ff9f2e; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 140, 0, .45); text-decoration: none; }

.section-title {
  font-size: 22px; color: #1A3A63; margin: 38px 0 14px;
  padding-left: 14px; border-left: 5px solid #00A896;
}
.section-desc { color: #64748b; font-size: 14px; margin-bottom: 16px; }

.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.level-card {
  background: #fff; border: 1px solid #e8ecf2; border-radius: 16px; padding: 22px;
  box-shadow: 0 2px 10px rgba(26, 58, 99, .05); transition: transform .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.level-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.level-card.gesp::before { background: linear-gradient(90deg, #00A896, #5eead4); }
.level-card.cspj::before { background: linear-gradient(90deg, #FF8C00, #ffb35c); }
.level-card.noip::before { background: linear-gradient(90deg, #1A3A63, #4a7cbf); }
.level-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(26, 58, 99, .12); }
.level-card.clickable { cursor: pointer; }
.level-card.clickable::after { content: "点击进入专题 →"; position: absolute; right: 14px; top: 14px; font-size: 12px; font-weight: 700; color: #FF8C00; opacity: .85; z-index: 1; }
.level-card.clickable:hover { box-shadow: 0 10px 24px rgba(255, 140, 0, .22); }
.level-card .lv-tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 14px; border-radius: 14px; margin-bottom: 12px; color: #fff; letter-spacing: .5px; }
.level-card.gesp .lv-tag { background: linear-gradient(135deg, #00A896, #0d8f80); }
.level-card.cspj .lv-tag { background: linear-gradient(135deg, #FF8C00, #e07b00); }
.level-card.noip .lv-tag { background: linear-gradient(135deg, #1A3A63, #2b5b8f); }
.level-card h3 { font-size: 17px; color: #1A3A63; margin-bottom: 6px; }
.level-card p { font-size: 14px; color: #526070; }
.level-card .lv-points { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e2e8f0; }
.level-card .lv-points b { display: block; font-size: 13px; color: #1A3A63; margin-bottom: 6px; }
.level-card .lv-points ul { margin: 0; padding-left: 18px; }
.level-card .lv-points li { font-size: 13px; line-height: 1.7; color: #526070; }

.route-list { margin: 0; padding: 0; }
.route-item {
  background: #fff; border: 1px solid #e8ecf2; border-radius: 16px;
  padding: 20px 24px; margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(26, 58, 99, .05); transition: box-shadow .18s, transform .18s;
}
.route-item:hover { box-shadow: 0 8px 20px rgba(26, 58, 99, .10); transform: translateY(-1px); }
.route-item h3 { font-size: 17px; color: #1A3A63; margin-bottom: 8px; }
.route-item h3 .tag { font-size: 12px; background: #f0fdfa; color: #0d8f80; padding: 3px 12px; border-radius: 12px; margin-right: 8px; font-weight: 800; border: 1px solid #a7f3d0; }
.route-item ol, .route-item ul { margin: 8px 0 0 24px; }
.route-item li { font-size: 14px; margin: 5px 0; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.cat-card {
  background: #fff; border: 1px solid #e8ecf2; border-radius: 16px; padding: 18px 20px;
  border-top: 4px solid #1A3A63; transition: box-shadow .18s, transform .18s;
  display: flex; flex-direction: column;
}
.cat-card:hover { box-shadow: 0 10px 24px rgba(26, 58, 99, .12); transform: translateY(-3px); }
.cat-card.gesp { border-top-color: #00A896; }
.cat-card.ds   { border-top-color: #1A3A63; }
.cat-card.alg  { border-top-color: #FF8C00; }
.cat-card.src  { border-top-color: #7c3aed; }
.cat-card.exam { border-top-color: #e11d48; }
.cat-card h3 { font-size: 16px; color: #1A3A63; margin-bottom: 6px; }
.cat-card .cnt { font-size: 12px; color: #98a2b3; margin-bottom: 12px; }
.cat-card a.ch {
  display: block; font-size: 13.5px; color: #475569; padding: 4px 8px; border-radius: 8px; transition: all .15s;
}
.cat-card a.ch:hover { color: #00A896; background: #f0fdfa; text-decoration: none; }
.cat-card a.ch .no { color: #94a3b8; font-size: 12px; font-family: Consolas, monospace; margin-right: 2px; }

/* ============ 响应式 ============ */
.side-toggle { display: none; }
@media (max-width: 1180px) {
  .toc-side { display: none; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -280px; top: 62px; bottom: 0; z-index: 90; transition: left .25s; border-radius: 16px 0 0 0; max-height: none; box-shadow: none; }
  .sidebar.open { left: 0; box-shadow: 4px 0 20px rgba(0, 0, 0, .25); }
  .side-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: #eef2f7; color: #1A3A63; border: 1px solid #e2e8f0;
    width: 36px; height: 36px; border-radius: 10px; font-size: 18px; cursor: pointer; margin-right: 10px;
  }
  .side-toggle:hover { background: #e0e7ef; }
  .nav-search input { width: 110px; }
  .nav-links { display: none; }
  .content { padding: 22px 20px; }
  .nav-logo .nav-logo-text { display: none; }
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 26px; }
  .hero-logo img { height: 50px; }
}
/* ============================================================
   [优化新增] 徽章 / 进度打卡收藏 / 阅读进度条 / 代码运行输出 /
   测验 / 全文搜索下拉增强 / 打印优化
   ============================================================ */

/* ---------- 章节考级徽章 ---------- */
.chapter-badges { display: inline-flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; vertical-align: middle; }
.chapter-badges .lvl-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .3px; line-height: 1.5; }
.lvl-green  { background: #e6f6ec; color: #1f7a43; border: 1px solid #b8e6c8; }
.lvl-blue   { background: #e8f1fb; color: #1a5fa8; border: 1px solid #bcd7f0; }
.lvl-orange { background: #fdf1e6; color: #b3600a; border: 1px solid #f3d2ab; }
.lvl-red    { background: #fdeaea; color: #b3362f; border: 1px solid #f3bcb9; }
.lvl-purple { background: #f0eafb; color: #6d3fb0; border: 1px solid #d9c8f0; }

/* ---------- 阅读进度条 ---------- */
#readingBar { position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #00A896, #1A3A63); z-index: 9999;
  transition: width .08s linear; }

/* ---------- 打卡 / 收藏按钮 ---------- */
.chapter-actions { display: inline-flex; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.chapter-actions button { cursor: pointer; border: 1px solid #cfd8e3; background: #fff;
  color: #1A3A63; border-radius: 8px; padding: 6px 14px; font-size: 13px;
  font-weight: 600; transition: all .15s; }
.chapter-actions button:hover { border-color: #00A896; color: #00A896; }
.chapter-actions button.active { background: #00A896; border-color: #00A896; color: #fff; }
.chapter-actions button.active.star-active { background: #FF8C00; border-color: #FF8C00; }

/* 侧栏已学标记 */
.side-link.done { color: #00A896; }
.side-link .done-mark { font-weight: 700; margin-right: 4px; }

/* ---------- 首页学习进度模块 ---------- */
.prog-card { background: #fff; border: 1px solid #e4eaf1; border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 2px 10px rgba(26,58,99,.05); }
.prog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.prog-title { font-weight: 700; color: #1A3A63; font-size: 15px; }
.prog-num { font-weight: 700; color: #00A896; font-size: 16px; }
.prog-bar { height: 10px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.prog-fill { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #00A896, #1A3A63); transition: width .4s ease; }
.prog-info { margin-top: 8px; font-size: 13px; color: #66788f; }
.prog-stars { margin-top: 10px; font-size: 13px; color: #66788f; }
.prog-stars-title { color: #1A3A63; font-weight: 600; }
.prog-star-link { display: inline-block; margin: 0 4px 4px 0; padding: 2px 10px;
  background: #fdf1e6; color: #b3600a; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 12px; }

/* ---------- 代码块动作（复制 / 运行） ---------- */
.code-actions { display: inline-flex; gap: 6px; }
.code-actions button { cursor: pointer; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #cfd8e3; border-radius: 6px;
  padding: 3px 10px; font-size: 12px; transition: all .15s; }
.code-actions button:hover { background: rgba(255,255,255,.18); color: #fff; }
.code-actions button:disabled { opacity: .55; cursor: wait; }
.code-out { margin: 10px 0 2px; border-radius: 8px; padding: 10px 12px;
  font-family: Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow: auto; }
.code-out.running { background: #2a2d3a; color: #9aa3b5; }
.code-out.ok { background: #14261c; color: #8ce99a; border: 1px solid #2f5d43; }
.code-out.err { background: #2a1518; color: #ffb4ab; border: 1px solid #6b2b31; }

/* ---------- 全文搜索下拉增强 ---------- */
.search-results .sr-group { display: inline-block; font-size: 11px; color: #00A896;
  font-weight: 600; margin-right: 6px; }
.search-results .sr-ttl { font-weight: 600; color: #1A3A63; }
.search-results .sr-snip { display: block; margin-top: 2px; font-size: 12px;
  color: #66788f; line-height: 1.5; }
.search-results mark { background: #ffe58a; color: #6b4e00; border-radius: 2px; padding: 0 1px; }

/* ---------- 每章练习题测验 ---------- */
.quiz-section { margin-top: 34px; padding-top: 20px; border-top: 1px dashed #d8e0ea; }
.quiz-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.quiz-title { font-size: 18px; font-weight: 700; color: #1A3A63; }
.quiz-count { font-size: 12px; color: #00A896; background: #e6f6f3; padding: 2px 10px;
  border-radius: 999px; font-weight: 600; }
.quiz-meta { display: flex; justify-content: space-between; font-size: 13px;
  color: #66788f; margin-bottom: 14px; }
.quiz-q { background: #fafcfe; border: 1px solid #e4eaf1; border-radius: 12px; padding: 16px 18px; }
.quiz-q-title { font-size: 15px; font-weight: 600; color: #22364f; line-height: 1.6; }
.quiz-q-no { color: #00A896; margin-right: 2px; }
.quiz-code { margin: 12px 0 4px; background: #1e1e2e; color: #cdd6f4; border-radius: 8px;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.55; overflow-x: auto; }
.quiz-opts { display: grid; gap: 8px; margin-top: 12px; }
.quiz-opt { text-align: left; cursor: pointer; border: 1px solid #d8e0ea; background: #fff;
  border-radius: 8px; padding: 8px 12px; font-size: 13.5px; color: #22364f; transition: all .12s; }
.quiz-opt:hover { border-color: #00A896; }
.quiz-opt.correct { background: #e6f6ec; border-color: #2fa86a; color: #1f7a43; font-weight: 600; }
.quiz-opt.wrong { background: #fdeaea; border-color: #d96a63; color: #b3362f; }
.quiz-opt-key { font-weight: 700; margin-right: 4px; }
.quiz-feedback { margin-top: 12px; padding: 8px 12px; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.quiz-feedback.ok { background: #e6f6ec; color: #1f7a43; }
.quiz-feedback.no { background: #fdeaea; color: #b3362f; }
.quiz-exp { color: #55677d; }
.quiz-foot { margin-top: 14px; text-align: right; }
.quiz-foot button { cursor: pointer; border: none; background: #1A3A63; color: #fff;
  border-radius: 8px; padding: 9px 22px; font-size: 14px; font-weight: 600; transition: all .15s; }
.quiz-foot button:hover:not(:disabled) { background: #00A896; }
.quiz-foot button:disabled { opacity: .45; cursor: not-allowed; }
.quiz-result { text-align: center; padding: 26px 10px; }
.quiz-result-score { font-size: 40px; font-weight: 800; color: #1A3A63; line-height: 1.2; }
.quiz-result-pct { margin-top: 6px; font-size: 15px; color: #00A896; font-weight: 600; }
.quiz-result-best { margin-top: 8px; font-size: 13px; color: #66788f; }
.quiz-empty { color: #66788f; font-size: 14px; padding: 12px 0; }

/* ---------- 打印优化 ---------- */
@media print {
  .site-header, .sidebar, .toc-side, .page-nav, .site-footer, #backTop,
  #toast, #readingBar, .chapter-actions, .quiz-section, .code-actions,
  .search-results, .side-toggle, .nav-search, .nav-links { display: none !important; }
  body { background: #fff !important; }
  .page-wrap, .content, .article { max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .content { box-shadow: none !important; border: none !important; }
  .code-box { break-inside: avoid; page-break-inside: avoid; }
  .code-box pre { background: #fff !important; color: #111 !important;
    border: 1px solid #ccc; }
  .code-box .code-head { background: #f0f0f0 !important; color: #222 !important; }
  .code-lang { color: #333 !important; }
  a { color: #000 !important; text-decoration: underline; }
  .md-table, pre, blockquote { break-inside: avoid; page-break-inside: avoid; }
}

/* ============================================================
   [优化 v2] 正式风格 GESP 板块 / CSP-S 栏目 / 内容增强标签
   ============================================================ */

/* ---------- 正式风格 GESP 板块 ---------- */
.gesp-panel { background:#fff; border:1px solid #e8ecf2; border-radius:16px;
  padding:24px 26px; margin:18px 0 26px; box-shadow:0 2px 10px rgba(26,58,99,.05); }
.gesp-panel h3 { font-size:18px; color:#1A3A63; margin:0 0 6px; }
.gesp-panel .gesp-sub { font-size:13px; color:#66788f; margin:0 0 16px; }
.gesp-intro { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px; margin-bottom:18px; }
.gesp-intro-card { background:linear-gradient(135deg,#f0fdfa,#eef7ff); border:1px solid #d5ece6;
  border-radius:12px; padding:16px 18px; }
.gesp-intro-card h4 { font-size:15px; color:#0d8f80; margin:0 0 8px; }
.gesp-intro-card ul { margin:0; padding-left:18px; }
.gesp-intro-card li { font-size:13.5px; color:#3c4f63; margin:4px 0; line-height:1.6; }
.gesp-intro-card li b { color:#1A3A63; }
.gesp-entry { display:inline-block; margin-top:8px; background:linear-gradient(135deg,#00A896,#0d8f80);
  color:#fff; padding:10px 22px; border-radius:10px; font-weight:700; font-size:14px;
  transition:transform .15s, box-shadow .15s; }
.gesp-entry:hover { transform:translateY(-2px); box-shadow:0 8px 18px rgba(0,168,150,.35);
  color:#fff; text-decoration:none; }

/* ---------- CSP-S 卡片 / 徽章 / 路线 D ---------- */
.level-card.csps::before { background:linear-gradient(90deg,#6C5CE7,#a29bfe); }
.level-card.csps .lv-tag { background:linear-gradient(135deg,#6C5CE7,#5a4bd4); }
.route-item h3 .tag.tag-d { background:#f3f0ff; color:#5a4bd4; border-color:#d5ccf7; }
.lvl-csps { background:#f0edff; color:#5a4bd4; border:1px solid #d5ccf7; }

/* ---------- 内容增强小标签：形象理解 / 易错点 / 考级视角 ---------- */
/* ---------- 内容增强小标签：形象理解 / 易错点 / 考级视角（v4 统一设计） ---------- */
.tip-block { position:relative; border-radius:12px; padding:13px 16px 13px 18px;
  margin:12px 0; font-size:13.5px; line-height:1.7; }
.tip-block::before { content:""; position:absolute; left:0; top:8px; bottom:8px;
  width:4px; border-radius:4px; }
.tip-block .tip-tag { display:inline-block; font-weight:800; font-size:12px;
  padding:3px 14px; border-radius:999px; margin-right:8px; color:#fff;
  letter-spacing:.5px; vertical-align:2px; box-shadow:0 1px 4px rgba(0,0,0,.08); }
.tip-block code { background:rgba(0,0,0,.06); border-radius:5px; padding:1px 5px;
  font-family:Consolas, monospace; font-size:12.5px; }
.tip-visual { background:linear-gradient(180deg,#f0fdfa,#f8fffd); border:1px solid #b9ecd9; }
.tip-visual::before { background:linear-gradient(180deg,#00c9a8,#00A896); }
.tip-visual .tip-tag { background:linear-gradient(135deg,#00c9a8,#0d8f80); }
.tip-pitfall { background:linear-gradient(180deg,#fff7ed,#fffdf8); border:1px solid #fadcb9; }
.tip-pitfall::before { background:linear-gradient(180deg,#ffb35c,#FF8C00); }
.tip-pitfall .tip-tag { background:linear-gradient(135deg,#ffa540,#e07b00); }
.tip-exam { background:linear-gradient(180deg,#f5f2ff,#fbfaff); border:1px solid #d8cdf7; }
.tip-exam::before { background:linear-gradient(180deg,#8f7ff0,#6C5CE7); }
.tip-exam .tip-tag { background:linear-gradient(135deg,#8f7ff0,#5a4bd4); }

/* ============================================================
   [优化 v2.1] GESP 面板表格化：层级优化 / 表格增强 / 响应式滚动
   ============================================================ */

/* 面板主标题加大加粗，副标题降级浅灰 */
.gesp-panel h3 { font-size:22px; font-weight:800; color:#0f2c52; margin:0 0 4px; letter-spacing:.3px; }
.gesp-panel .gesp-sub { font-size:13px; color:#8a9bb0; margin:0 0 18px; }
.gesp-panel .gesp-table-title { font-size:15.5px; font-weight:700; color:#1A3A63;
  margin:20px 0 8px; padding-left:10px; border-left:4px solid #00A896; }

/* 表格外层滚动容器：移动端横向滚动 */
.table-wrap { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch;
  border-radius:12px; margin:0 0 6px; }

/* 表格增强：渐变表头 / 圆角 / 斑马纹 / hover / 充足内边距 */
.info-table { width:100%; min-width:640px; border-collapse:separate; border-spacing:0;
  border:1px solid #dde6f0; border-radius:12px; overflow:hidden;
  margin:6px 0 14px; background:#fff; font-size:13.5px; }
.info-table th { background:linear-gradient(135deg,#002B5C,#0d3d78); color:#fff;
  text-align:left; padding:11px 14px; font-weight:700; font-size:14px; letter-spacing:.3px; }
.info-table td { padding:10px 14px; border-top:1px solid #e8eef5; color:#33475c; line-height:1.6; }
.info-table tbody tr:nth-child(even) { background:#f6f9fc; }
.info-table tbody tr:hover { background:#eaf4f9; }
.info-table a { color:#00A896; text-decoration:none; font-weight:600; }
.info-table a:hover { text-decoration:underline; }

/* 备注文字加深，保证对比度 */
.gesp-note { font-size:12.5px; color:#5f7186; margin:10px 0 0; line-height:1.6; }

/* ============================================================
   GESP 历年真题区块（CCF 官方真题）
   ============================================================ */
.gesp-zhenti-section { margin-top: 34px; border-top: 2px dashed #d8e2ea; padding-top: 8px; }
.zq-head { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:4px; }
.zq-head .quiz-title { font-size:19px; font-weight:800; color:#002B5C; }
.zq-note { font-size:12.5px; color:#5f7186; }
.zq-paper { background:#fbfdff; border:1px solid #e2ecf3; border-radius:12px; padding:16px 18px; margin:14px 0; }
.zq-paper-title { font-size:15.5px; font-weight:700; color:#00406b; margin-bottom:8px; }
.zq-block-title { font-size:14px; font-weight:700; color:#00A896; margin:12px 0 8px; }
.zq-tag { display:inline-block; background:#eaf4f9; color:#00406b; border:1px solid #cfe3ee;
  font-size:11.5px; font-weight:700; border-radius:999px; padding:1px 10px; margin-bottom:6px; }
.zq-program { background:#f6fafe; border:1px solid #dfe9f2; border-left:4px solid #00A896;
  border-radius:10px; padding:12px 14px; margin:12px 0; }
.zq-program-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.zq-program-title { font-size:14.5px; font-weight:700; color:#00406b; }
.zq-program-desc { font-size:13.5px; line-height:1.7; color:#263238; }
.zq-program-io { margin:6px 0; font-size:13.5px; line-height:1.7; color:#37474f; }
.zq-io { margin:4px 0; }
.zq-io-label { font-weight:700; color:#00695c; font-size:13px; margin:6px 0 2px; }
.zq-io-body { color:#37474f; }
.zq-program-samples { margin:6px 0; }
.zq-sample { margin:8px 0 8px 22px; }
.zq-sample .zq-code { margin:2px 0 8px 0; }
.zq-program-code { margin:6px 0 2px; }
.zq-program-code .zq-code { margin:2px 0 4px; }
.zq-item { padding:8px 0; border-bottom:1px dashed #e8eef3; }
.zq-item:last-child { border-bottom:none; }
.zq-stem { font-size:14.5px; line-height:1.75; color:#263238; }
.zq-no { font-weight:700; color:#002B5C; margin-right:2px; }
.zq-opts { margin:6px 0 0 22px; display:flex; flex-direction:column; gap:4px; }
.zq-opt { font-size:14px; line-height:1.65; color:#37474f; }
.zq-opt-key { font-weight:700; color:#607d8b; margin-right:2px; }
.zq-ans { margin:6px 0 0 22px; font-size:13.5px; color:#00406b; }
.zq-ans-tag { display:inline-block; background:#00A896; color:#fff; font-size:12px; font-weight:700; border-radius:4px; padding:1px 8px; margin-right:6px; }
.zq-foot { font-size:12px; color:#8a99a8; margin-top:10px; }
.zq-stem-text { margin: 2px 0; }
.zq-code { margin: 8px 0 8px 22px; }
.zq-code .code-box { margin: 6px 0; border-radius: 10px; }
.zq-code .code-box pre { padding: 12px 0; }
.zq-code .code-box code { font-size: 13px; }
.zq-opt-body { white-space:pre-wrap; }
.zq-answers { margin:14px 0 4px; background:#eef9f7; border:1px solid #bfe9e2; border-radius:10px; padding:12px 14px; }
.zq-answers-title { font-size:14px; font-weight:800; color:#00695c; margin-bottom:8px; }
.zq-answers-body { display:flex; flex-wrap:wrap; gap:6px 14px; }
.zq-ans-item { font-size:13.5px; color:#263238; white-space:nowrap; }
.zq-ans-item b { color:#00695c; }
.zq-ans-type { display:inline-block; background:#00A896; color:#fff; font-size:11.5px; font-weight:700; border-radius:4px; padding:0 6px; margin-right:5px; }

/* ===== CSP-J 专题（cspj.html / cspj-zhenti.js）===== */
.cspj-entry { display:inline-block; margin-top:10px; padding:9px 18px; border-radius:8px;
  background:linear-gradient(135deg,#FF8C00,#e07b00); color:#fff; font-size:14px; font-weight:700;
  text-decoration:none; transition:transform .2s,box-shadow .2s; }
.cspj-entry:hover { transform:translateY(-2px); box-shadow:0 8px 18px rgba(255,140,0,.35); }
.lvl-orange { background:#fff3e0; color:#b45309; border:1px solid #ffd9a3; }
.cspj-filter { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 14px; }
.cspj-filter-btn { border:1px solid #d8e0ea; background:#f6f9fc; color:#234; font-size:13px;
  padding:5px 16px; border-radius:999px; cursor:pointer; transition:all .2s; }
.cspj-filter-btn:hover { border-color:#FF8C00; color:#e07b00; }
.cspj-filter-btn.active { background:linear-gradient(135deg,#FF8C00,#e07b00); color:#fff; border-color:#e07b00; }
.zq-ans-item { background:#fff; border:1px solid #e6f2ee; border-radius:8px; padding:6px 10px; min-width:120px; }
.zq-ans-detail { font-size:12px; color:#335; margin-top:3px; line-height:1.6; font-weight:400; }
.zq-ans-topic { display:inline-block; margin-left:6px; background:#fff3e0; color:#b45309;
  border-radius:6px; padding:1px 7px; font-size:11.5px; }
.quiz-empty { color:#8a99a8; font-size:13.5px; padding:8px 0; }

/* ===== 【性能优化】级别切换器 / 懒加载占位 / 展开全部 ===== */
/* 【可用性修复·仅样式】顶部固定导航 .site-header（position:fixed，高 63px，z-index:100）会遮挡滚动到
   视口顶部的元素与锚点跳转落点。此处统一预留 80px 顶部安全距离：
   1) html 的 scroll-padding-top 修正锚点/hash 跳转与 scrollIntoView 的落点；
   2) .lvl-switch 的 scroll-margin-top 避免自身被精确定位到顶部；
   3) .lvl-switch 的 sticky top 由 0 调整为 70px，使切换器吸附时停在导航栏下方而非其背后，
      保证按钮始终可点击。不涉及结构与数据改动。 */
html { scroll-padding-top:80px; }
.lvl-switch { display:flex; align-items:center; gap:8px; flex-wrap:wrap; position:sticky; top:70px; z-index:5;
  margin:18px 0 10px; padding:10px 14px; background:rgba(255,255,255,.94); backdrop-filter:blur(6px);
  border:1px solid #dfe9f2; border-radius:10px; box-shadow:0 2px 10px rgba(0,43,92,.05);
  scroll-margin-top:80px; }
.lvl-switch-title { font-size:13.5px; font-weight:800; color:#002B5C; margin-right:2px; }
.lvl-switch-btn { border:1px solid #d8e0ea; background:#f6f9fc; color:#234; font-size:13px; font-weight:700;
  padding:5px 16px; border-radius:999px; cursor:pointer; transition:all .2s; }
.lvl-switch-btn:hover { border-color:#00A896; color:#00857a; }
.lvl-switch-btn.active { background:linear-gradient(135deg,#00A896,#00857a); color:#fff; border-color:#00857a; }
.lvl-switch-note { font-size:12px; color:#8a99a8; margin-left:auto; }
.zq-lazy { border:1px dashed #cfe3ee; background:#f8fcff; border-radius:12px; padding:16px 18px; }
.zq-lazy-inline { padding:10px 14px; font-size:13.5px; color:#5f7186; }
.zq-lazy-tip { font-size:13.5px; line-height:1.8; color:#37474f; margin-bottom:10px; }
.zq-lazy-tip b { color:#00406b; }
.zq-lazy-btn { border:none; border-radius:8px; padding:9px 18px; cursor:pointer; color:#fff; font-size:13.5px;
  font-weight:700; background:linear-gradient(135deg,#00A896,#00857a); transition:transform .2s,box-shadow .2s; }
.zq-lazy-btn:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 8px 18px rgba(0,168,150,.3); }
.zq-lazy-btn:disabled { opacity:.65; cursor:default; }
.zq-more { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:14px 0 4px;
  padding:12px 14px; background:#f6f9fc; border:1px dashed #dfe9f2; border-radius:10px; }
.zq-more-tip { font-size:12.5px; color:#5f7186; }
.zq-more-btn { border:none; border-radius:8px; padding:8px 16px; cursor:pointer; color:#fff;
  font-size:13px; font-weight:700; background:linear-gradient(135deg,#4a7dff,#2f6fe4); transition:transform .2s,box-shadow .2s; }
.zq-more-btn:hover { transform:translateY(-2px); box-shadow:0 8px 18px rgba(74,125,255,.3); }


/* ============ 知识点延伸阅读与参考 ============ */
.kb-ref {
  margin: 14px 0 4px; padding: 10px 14px 10px 14px;
  background: linear-gradient(90deg, #f2f7ff, #f8fbff);
  border-left: 4px solid #4a7dff; border-radius: 0 10px 10px 0;
  font-size: 13.5px; line-height: 1.8; color: #33415c;
}
.kb-ref a { color: #2f6fe4; text-decoration: none; border-bottom: 1px dashed #9db8ec; }
.kb-ref a:hover { color: #1b4fbd; border-bottom-style: solid; }
.kb-ref code { background: #e8eefb; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }


/* ============================================================
   [知识点区块设计系统 v4] 前导徽章 / 卡片列表 / 统一排版
   ============================================================ */
.article .kb-lead { display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin:18px 0 8px; font-weight:800; color:#1A3A63; font-size:14px; line-height:1.6; }
.article .kb-lead > strong { display:inline-flex; align-items:center; padding:5px 16px;
  border-radius:999px; color:#fff; font-size:13px; font-weight:800;
  letter-spacing:1.5px; box-shadow:0 2px 6px rgba(26,58,99,.12); }
.article .kb-lead.kb-overview > strong { background:linear-gradient(135deg,#4a7dff,#2f6fe4); }
.article .kb-lead.kb-goal > strong { background:linear-gradient(135deg,#00b4a0,#0d8f80); }
.article .kb-lead.kb-core > strong { background:linear-gradient(135deg,#00A896,#0b8a78); }
.article .kb-lead.kb-mistake > strong { background:linear-gradient(135deg,#FF8C00,#e07b00); }
.article .kb-lead.kb-page > strong { background:linear-gradient(135deg,#64748b,#475569); }
.article .kb-lead-sub { font-weight:700; color:#23506e; }
.article ul.kb-list, .article ol.kb-ol { list-style:none; display:grid; gap:10px;
  margin:10px 0 14px; padding:0; }
.article ul.kb-list li, .article ol.kb-ol li { position:relative; background:#fff;
  border:1px solid #e6edf5; border-radius:12px; padding:12px 16px 12px 46px;
  box-shadow:0 1px 4px rgba(26,58,99,.06); line-height:1.75; color:#33475c;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.article ul.kb-list li:hover, .article ol.kb-ol li:hover { transform:translateY(-2px);
  box-shadow:0 5px 14px rgba(26,58,99,.10); border-color:#bcd9e8; }
.article ul.kb-list li { border-left:3px solid #00A896; }
.article ul.kb-list li::before { content:""; position:absolute; left:15px; top:17px;
  width:16px; height:16px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #00c9a8, #0d8f80); }
.article ol.kb-ol { counter-reset:kb-mistake; }
.article ol.kb-ol li { border-left:3px solid #FF8C00; counter-increment:kb-mistake; }
.article ol.kb-ol li::before { content:counter(kb-mistake); position:absolute; left:11px; top:12px;
  width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#ffa540,#e07b00); color:#fff; font-size:13px; font-weight:800; }
.article ul.kb-list li code, .article ol.kb-ol li code { background:#eef4fb; color:#1d4ed8;
  border-radius:5px; padding:1px 6px; font-family:Consolas, monospace; font-size:12.5px; }
.article ul.kb-list li strong, .article ol.kb-ol li strong { color:#1A3A63; font-weight:800; }
table.kb-table { margin:10px 0 14px; }
table.kb-table td:first-child { font-weight:700; color:#1A3A63; }


/* ============ 真题作答交互（zhenti-quiz.js） ============ */
.zq-item .zq-clickable { cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease; }
.zq-item .zq-opt.selected { background: #e8f1ff; box-shadow: inset 3px 0 0 #1A3A63; }
.zq-item .zq-opt.correct { background: #e7f6ec; box-shadow: inset 3px 0 0 #1e8e3e; }
.zq-item .zq-opt.correct .zq-opt-key { color: #1e8e3e; font-weight: 700; }
.zq-item .zq-opt.wrong { background: #fdeeee; box-shadow: inset 3px 0 0 #c5221f; }
.zq-item .zq-opt.wrong .zq-opt-key { color: #c5221f; font-weight: 700; }
.zq-judge-btns { margin: 6px 0 4px; display: flex; gap: 8px; }
.zq-judge-btn { padding: 4px 18px; border: 1px solid #b8c4d8; border-radius: 6px; background: #fff; color: #1A3A63; cursor: pointer; font-size: 14px; }
.zq-judge-btn:hover { border-color: #1A3A63; }
.zq-judge-btn.selected { background: #e8f1ff; border-color: #1A3A63; box-shadow: inset 0 0 0 1px #1A3A63; }
.zq-judge-btn.correct { background: #e7f6ec; border-color: #1e8e3e; color: #1e8e3e; font-weight: 700; }
.zq-judge-btn.wrong { background: #fdeeee; border-color: #c5221f; color: #c5221f; font-weight: 700; }
.zq-submit { margin: 8px 0 4px; padding: 5px 22px; border: none; border-radius: 6px; background: #1A3A63; color: #fff; cursor: pointer; font-size: 14px; }
.zq-submit:hover:not(:disabled) { background: #2b4f85; }
.zq-submit:disabled { opacity: .55; cursor: default; }
.zq-submit-hint { background: #b7791f; }
.zq-feedback { margin: 8px 0 2px; padding: 8px 12px; border-radius: 6px; font-size: 14px; line-height: 1.6; }
.zq-feedback.ok { background: #e7f6ec; border-left: 3px solid #1e8e3e; color: #14532d; }
.zq-feedback.no { background: #fdeeee; border-left: 3px solid #c5221f; color: #7f1d1d; }
.zq-feedback .zq-fb-status { font-weight: 700; display: block; margin-bottom: 2px; }
.zq-feedback .zq-exp { display: block; margin-top: 2px; color: inherit; }
.zq-feedback .zq-topic { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 10px; background: rgba(26,58,99,.08); color: #1A3A63; font-size: 12px; }


/* ===== GESP 知识点直达导航区 ===== */
.gesp-quicknav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 26px; max-width: 100%; min-width: 0; }
.gesp-quicknav .qn-item { min-width: 0; }
@media (max-width: 1180px) { .gesp-quicknav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .gesp-quicknav { grid-template-columns: 1fr; } }
.gesp-quicknav .qn-item {
  border: 1px solid #dce5f0;
  border-radius: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  box-shadow: 0 2px 6px rgba(26, 58, 99, .06);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.gesp-quicknav .qn-item:hover {
  box-shadow: 0 6px 16px rgba(26, 58, 99, .10);
  border-color: #b9cfe6;
  transform: translateY(-2px);
}
.gesp-quicknav .qn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #d0dceb;
}
.gesp-quicknav .qn-head b {
  color: #1A3A63;
  font-size: 15px;
  letter-spacing: .3px;
  position: relative;
  padding-left: 12px;
}
.gesp-quicknav .qn-head b::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: #00A896;
}
.gesp-quicknav .qn-anchor { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; }
.gesp-quicknav .qn-anchor a {
  color: #00A896;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #a5e3d6;
  background: #eefbf8;
  border-radius: 999px;
  padding: 2px 10px;
  transition: background .15s, color .15s, border-color .15s;
}
.gesp-quicknav .qn-anchor a:hover { background: #00A896; color: #fff; border-color: #00A896; }
.gesp-quicknav .qn-links { display: flex; flex-wrap: wrap; gap: 8px; }
.gesp-quicknav .qn-links a {
  font-size: 13px;
  line-height: 1.5;
  color: #005a9c;
  background: #ffffff;
  border: 1px solid #d6e2f0;
  border-radius: 8px;
  padding: 5px 12px;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.gesp-quicknav .qn-links a:hover { background: #00A896; color: #fff; border-color: #00A896; }
/* 表格内章节直达链接 */
.info-table a { color: #005a9c; font-weight: 600; text-decoration: none; border-bottom: 1px dashed #9db8d6; }
.info-table a:hover { color: #00A896; border-bottom-color: #00A896; }


/* ============================================================
   GESP 各级「本级考试大纲」模块（level-syllabus）
   说明：仅新增样式，覆盖 .level-syllabus 系列 + 页面级主按钮 + lightbox
   配色沿用站点主色 #002B5C（深蓝）/ #00A896（青绿），圆角 12px
   ============================================================ */
.page-cta { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:18px 0 8px; }
.btn-primary { display:inline-block; padding:11px 24px; border-radius:999px;
  background:linear-gradient(135deg,#00A896,#00857a); color:#fff !important;
  font-size:14.5px; font-weight:800; letter-spacing:.3px; text-decoration:none !important;
  box-shadow:0 4px 14px rgba(0,168,150,.28); transition:transform .15s ease, box-shadow .15s ease; }
.btn-primary:hover { transform:translateY(-1px); box-shadow:0 7px 20px rgba(0,168,150,.4); color:#fff !important; }
.page-cta-note { font-size:12.5px; color:#8a99a8; line-height:1.6; }

.level-syllabus { margin:14px 0 24px; padding:16px 18px 14px;
  border:1px solid #e2eaf3; border-left:4px solid #00A896; border-radius:12px;
  background:linear-gradient(180deg,#f7fbfd,#ffffff); box-shadow:0 2px 10px rgba(0,43,92,.05); }
.ls-head { display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  margin-bottom:12px; padding-bottom:10px; border-bottom:1px dashed #d9e4ef; }
.ls-title { font-size:15.5px; font-weight:800; color:#002B5C; letter-spacing:.5px; }
.ls-title::before { content:""; display:inline-block; width:8px; height:8px; margin-right:8px;
  border-radius:2px; background:#00A896; vertical-align:2px; }
.ls-link { margin-left:auto; font-size:12.5px; font-weight:700; color:#00857a;
  text-decoration:none; background:#eefaf7; border:1px solid #b7e4dd;
  border-radius:999px; padding:4px 12px; white-space:nowrap; transition:all .15s ease; }
.ls-link:hover { background:#00A896; border-color:#00A896; color:#fff; text-decoration:none; }

.ls-figure { margin:0 0 12px; padding:10px; text-align:center;
  background:#fff; border:1px solid #eaf1f7; border-radius:10px; }
.ls-img { display:block; max-width:100%; height:auto; margin:0 auto;
  background:#fff; border-radius:6px; cursor:zoom-in; }
.ls-cap { margin-top:8px; font-size:12px; color:#8a99a8; line-height:1.6; }

.ls-details { border:1px solid #e6eef6; border-radius:10px; background:#fff; }
.ls-details > summary { cursor:pointer; padding:11px 14px; font-size:13.5px; font-weight:700;
  color:#005a9c; list-style:none; outline:none; }
.ls-details > summary::-webkit-details-marker { display:none; }
.ls-details > summary::before { content:"\25B6"; display:inline-block; margin-right:8px;
  font-size:10px; color:#00A896; transition:transform .2s ease; }
.ls-details[open] > summary::before { transform:rotate(90deg); }
.ls-details[open] > summary { border-bottom:1px dashed #d9e4ef; }
.ls-body { padding:12px 14px 6px; }
.ls-h { margin:6px 0 8px; font-size:13.5px; font-weight:800; color:#002B5C; }
.ls-ol { margin:0 0 16px; padding-left:0; list-style:none; }
.ls-ol li { padding:4px 0; font-size:13.5px; line-height:1.78; color:#33475c; }
.ls-ol li + li { border-top:1px dashed #f0f4f8; }
.ls-table { min-width:420px; }
.ls-table th, .ls-table td { font-size:13px; padding:8px 12px; }
.ls-note { margin:8px 0 10px; font-size:12.5px; color:#7b8898; line-height:1.7; }

.ls-lightbox { position:fixed; inset:0; z-index:9999; display:flex; align-items:center;
  justify-content:center; padding:24px; background:rgba(8,20,34,.86); cursor:zoom-out; }
.ls-lightbox[hidden] { display:none; }
.ls-lightbox-img { max-width:96vw; max-height:92vh; background:#fff; border-radius:8px;
  box-shadow:0 12px 40px rgba(0,0,0,.5); cursor:zoom-out; }

@media (max-width:768px) {
  .level-syllabus { padding:12px 12px 10px; margin:12px 0 18px; }
  .ls-head { gap:8px; }
  .ls-title { font-size:14.5px; }
  .ls-link { margin-left:0; font-size:12px; padding:4px 10px; }
  .ls-figure { padding:6px; }
  .ls-cap { font-size:11.5px; }
  .ls-ol li { font-size:13px; line-height:1.72; }
  .ls-table { min-width:360px; }
  .btn-primary { width:100%; text-align:center; padding:12px 18px; }
  .page-cta-note { font-size:12px; }
}

/* ============================================================
   [新增] 首页 GESP 面板 CTA 双按钮（gesp-cta）
   主按钮复用 .btn-primary（主色实心）；次按钮 .gesp-cta-sub 为描边样式
   桌面并排，≤768px 纵向通栏
   ============================================================ */
.gesp-cta { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:18px 0 8px; }
.gesp-cta .btn-primary { margin:0; }
.gesp-cta-sub { display:inline-block; padding:11px 24px; border-radius:999px;
  border:1.5px solid #00A896; background:#fff; color:#00857a !important;
  font-size:14.5px; font-weight:800; letter-spacing:.3px; text-decoration:none !important;
  white-space:nowrap; transition:transform .15s ease, background .15s ease, box-shadow .15s ease; }
.gesp-cta-sub:hover { background:#eefaf7; transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,168,150,.18); color:#00857a !important; text-decoration:none !important; }

@media (max-width:768px) {
  .gesp-cta { gap:10px; margin:14px 0 6px; }
  .gesp-cta .btn-primary, .gesp-cta .gesp-cta-sub { width:100%; text-align:center;
    box-sizing:border-box; white-space:normal; }
}
