/* =====================================================================
   百科知识站 · 本地化样式表（零 CDN 依赖）
   设计语言：知识青(teal-cyan) + 暖橙 + 米白底 · 衬线展示标题 + 无衬线正文
   ===================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --teal:        #0e8c8a;   /* 主色 知识青 */
  --teal-deep:   #0a6b69;
  --teal-soft:   #e3f3f1;
  --amber:       #f0832b;   /* 强调 暖橙 */
  --amber-deep:  #d96a14;
  --coral:       #e2603f;   /* 次强调 */
  --ink:         #16282b;   /* 主文字 */
  --ink-2:       #3d5256;
  --muted:       #6c8186;
  --line:        #e6ddd0;
  --cream:       #faf6ef;   /* 页面底 */
  --paper:       #ffffff;   /* 卡片底 */
  --paper-2:     #f4ede2;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --sh-1: 0 1px 2px rgba(22,40,43,.06), 0 4px 14px rgba(22,40,43,.07);
  --sh-2: 0 8px 28px rgba(14,140,138,.16);
  --sh-3: 0 12px 40px rgba(22,40,43,.14);

  --maxw: 1200px;
  --gap: 24px;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "微软雅黑", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 68px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;            /* 移动端防横向溢出 */
  -webkit-font-smoothing: antialiased;
}
/* 媒体复位：图片/视频可缩放；内联 SVG 单独处理，避免被撑满 */
img, video { max-width: 100%; height: auto; display: block; border: 0; }
svg { display: inline-block; vertical-align: -.125em; flex: 0 0 auto; }
svg.icon { width: 1em; height: 1em; max-width: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--teal-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--amber-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); }
h3 { font-size: clamp(1.1rem, .95rem + .7vw, 1.45rem); }
p { margin: 0 0 1em; overflow-wrap: break-word; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; overflow-wrap: break-word; }
li { min-width: 0; }
table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .94rem; }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; }
th { background: var(--teal-soft); color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }

/* ---------- 布局容器 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(40px, 6vw, 76px) 0; }
.section + .section { padding-top: 0; }
.stack > * + * { margin-top: var(--gap); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .72em 1.5em; border-radius: 999px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-size: .98rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  font-family: var(--font-sans); text-align: center;
}
.btn svg.icon { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--sh-2); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--teal-deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-soft); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,239,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.25rem; }
.brand .logo { width: 38px; height: 38px; flex: 0 0 auto; }
.brand small { display: block; font-family: var(--font-sans); font-weight: 500; font-size: .62rem; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.nav-search { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-search input {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: .5em 1em; font-size: .9rem; width: 210px; color: var(--ink); font-family: var(--font-sans);
}
.nav-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.desktop-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.desktop-nav > li > a {
  display: inline-block; padding: .5em .85em; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .95rem;
}
.desktop-nav > li > a:hover, .desktop-nav > li > a.active { background: var(--teal-soft); color: var(--teal-deep); }
/* 移动端隐藏桌面搜索，避免横向溢出；用抽屉内搜索替代 */
@media (max-width: 768px) { .nav-search { display: none; } }
.list-search { margin-left: auto; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .5em 1em; font-size: .9rem; width: 220px; font-family: var(--font-sans); color: var(--ink); }
.list-search:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
@media (max-width: 768px) { .list-search { width: 100%; margin: 10px 0 0; } }
/* 移动端导航：原生 <details>，零 JS 可展开 */
.mobile-nav { display: none; margin-left: auto; position: relative; }
.mobile-nav > summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; color: var(--teal-deep); background: var(--paper);
}
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav > summary::marker { content: ""; }
.mobile-nav > summary svg.icon { width: 22px; height: 22px; }
.mobile-nav > .mn-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3);
  padding: 10px; display: grid; gap: 2px;
}
.mobile-nav > .mn-panel a { display: block; padding: .7em .9em; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.mobile-nav > .mn-panel a:hover, .mobile-nav > .mn-panel a.active { background: var(--teal-soft); color: var(--teal-deep); }
.mobile-nav > .mn-panel .nav-search-row { display: flex; gap: 6px; padding: 8px 4px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.mobile-nav > .mn-panel .nav-search-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: .5em 1em; font-family: var(--font-sans); }
/* 移动端：隐藏堆叠的桌面导航，改为右侧下拉按钮（原生 details，零 JS 可开合） */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav > .mn-panel { max-width: calc(100vw - 28px); max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; }
}

/* ---------- HERO BANNER ---------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1200px 600px at 85% -10%, rgba(240,131,43,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(14,140,138,.22), transparent 55%),
    linear-gradient(135deg, #0a6b69, #0e8c8a 55%, #14a39c);
  color: #fff; }
.hero::after { content: ""; position: absolute; inset: 0; background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(120% 120% at 70% 0%, #000, transparent 75%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: clamp(54px, 9vw, 104px) 0; display: grid; gap: 22px; max-width: 720px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5em; align-self: start; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: .4em 1em; border-radius: 999px; font-size: .82rem; letter-spacing: .04em; }
.hero h1 { color: #fff; margin: 0; }
.hero p.lead { font-size: clamp(1rem, .95rem + .4vw, 1.18rem); color: rgba(255,255,255,.9); margin: 0; max-width: 56ch; }
.hero-search { display: flex; gap: 10px; background: var(--paper); padding: 8px; border-radius: 999px; box-shadow: var(--sh-3); max-width: 540px; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .6em 1em; font-size: 1rem; color: var(--ink); font-family: var(--font-sans); }
.hero-search input:focus { outline: none; }
.hero-search button { flex: 0 0 auto; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 44px); margin-top: 6px; }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); color: #fff; }
.hero-stats .stat span { font-size: .82rem; color: rgba(255,255,255,.8); }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.75); }
.hero-tags a { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: .25em .8em; border-radius: 999px; transition: background .18s ease, border-color .18s ease; }
.hero-tags a:hover { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.45); color: #fff; }

/* ---------- 区块标题 ---------- */
.sec-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head .num { font-family: var(--font-display); font-size: 1rem; color: var(--amber-deep); font-weight: 700; border: 2px solid var(--amber); border-radius: 10px; padding: .1em .5em; line-height: 1.4; }
.sec-head h2 { margin: 0; }
.sec-head .more { margin-left: auto; font-weight: 600; font-size: .9rem; color: var(--teal-deep); display: inline-flex; align-items: center; gap: .3em; }
.sec-head .more svg.icon { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.sec-head .more:hover svg.icon { transform: translateX(3px); }

/* ---------- 栏目索引条 ---------- */
.cat-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.cat-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--sh-1); transition: transform .18s ease, box-shadow .2s ease, border-color .2s; min-width: 0; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--teal); }
.cat-card .cat-ic { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.cat-card .cat-ic svg.icon { width: 24px; height: 24px; }
.cat-card h3 { margin: 0 0 2px; font-size: 1.05rem; }
.cat-card p { margin: 0; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }

/* ---------- 文章卡片网格（2/3 列自适应） ---------- */
.card-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 920px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }

.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column; min-width: 0; transition: transform .18s ease, box-shadow .2s ease, border-color .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--teal); }
.post-card .cover { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.post-card .cover svg { width: 100%; height: 100%; display: block; }
.post-card .badge { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); color: var(--teal-deep); font-size: .72rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; box-shadow: var(--sh-1); }
.post-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.post-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.4; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--teal-deep); }
.post-card .excerpt { color: var(--ink-2); font-size: .9rem; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.post-card .meta { margin-top: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; flex-wrap: wrap; }
.post-card .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.post-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .72rem; color: var(--teal-deep); background: var(--teal-soft); padding: .2em .6em; border-radius: 999px; }

/* ---------- 投稿/表单模块 ---------- */
.submit-band { background: linear-gradient(135deg, #0a6b69, #14a39c); color: #fff; border-radius: var(--r-xl); padding: clamp(26px, 4vw, 44px); position: relative; overflow: hidden; }
.submit-band::before { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(240,131,43,.5), transparent 70%); }
.submit-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.submit-copy h2 { color: #fff; }
.submit-copy p { color: rgba(255,255,255,.88); }
.submit-form { background: var(--paper); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-3); display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: .65em .8em; font-family: var(--font-sans);
  font-size: .95rem; color: var(--ink); background: var(--cream); width: 100%;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }
.form-ok { display: none; background: var(--teal-soft); color: var(--teal-deep); border: 1px solid var(--teal); border-radius: var(--r-sm); padding: .7em .9em; font-size: .9rem; }
.form-ok.show { display: block; }
@media (max-width: 760px) { .submit-grid { grid-template-columns: 1fr; } }

/* ---------- 友情链接 / 页脚 ---------- */
.links-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.links-cloud a { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .5em 1.1em; font-size: .9rem; color: var(--ink-2); transition: all .18s ease; }
.links-cloud a:hover { border-color: var(--teal); color: var(--teal-deep); background: var(--teal-soft); transform: translateY(-2px); }

.site-footer { background: #0c2124; color: #cfe0e0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: clamp(40px, 6vw, 64px) 0 30px; }
.footer-grid h4 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.footer-grid a { color: #a9c4c4; display: block; padding: 4px 0; font-size: .9rem; }
.footer-grid a:hover { color: #fff; }
.footer-about p { color: #9fb6b6; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: #8aa3a3; font-size: .82rem; }
.footer-bottom .social { display: flex; gap: 10px; }
.footer-bottom .social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: #cfe0e0; }
.footer-bottom .social a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.footer-bottom .social svg.icon { width: 17px; height: 17px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   内页通用：面包屑 + 内页 banner
   =================================================================== */
.crumb { padding: 14px 0; font-size: .85rem; color: var(--muted); }
.crumb a { color: var(--teal-deep); }
.crumb .sep { margin: 0 .45em; color: var(--line); }
.crumb span.cur { color: var(--ink-2); }

.inner-banner { position: relative; overflow: hidden; color: #fff; background:
    radial-gradient(800px 400px at 90% -20%, rgba(240,131,43,.25), transparent 60%),
    linear-gradient(120deg, #0a6b69, #14a39c); }
.inner-banner::after { content: ""; position: absolute; inset: 0; background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(120% 120% at 80% 0%, #000, transparent 70%); }
.inner-banner .container { position: relative; z-index: 1; padding: clamp(34px, 5vw, 56px) 20px; }
.inner-banner h1 { color: #fff; margin: 0 0 .3em; }
.inner-banner p { color: rgba(255,255,255,.88); margin: 0; max-width: 60ch; }

/* ---------- 列表页布局（主+侧栏） ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
@media (max-width: 920px) { .layout { grid-template-columns: 1fr; } }
.list-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.list-head .count { color: var(--muted); font-size: .88rem; }
.list-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .4em 1em; font-size: .86rem; color: var(--ink-2); cursor: pointer; font-family: var(--font-sans); }
.chip.active, .chip:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* 侧栏组件 */
.sidebar { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 920px) { .sidebar { position: static; } }
.widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-1); }
.widget > h3 { font-size: 1.05rem; margin: 0 0 14px; display: flex; align-items: center; gap: .5em; }
.widget > h3 svg.icon { width: 1.1em; height: 1.1em; color: var(--teal); }
.w-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.w-list li { display: flex; gap: 12px; align-items: flex-start; }
.w-list .thumb { width: 64px; height: 48px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; }
.w-list .thumb svg { width: 100%; height: 100%; }
.w-list .t { font-size: .9rem; color: var(--ink); line-height: 1.4; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.w-list a:hover .t { color: var(--teal-deep); }
.w-list .d { font-size: .74rem; color: var(--muted); }
.w-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* 无缩略图文章列表（内页右侧栏 / 相关列表） */
.li-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.li-item { border-bottom: 1px solid var(--line); }
.li-item:last-child { border-bottom: 0; }
.li-item a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; min-width: 0; color: var(--ink); transition: color .15s ease; }
.li-item a:hover { color: var(--teal-deep); }
.li-item a:hover .li-t { text-decoration: underline; }
.li-bar { width: 3px; height: 20px; border-radius: 2px; flex: 0 0 auto; }
.li-cat { font-size: .72rem; color: #fff; padding: 3px 9px; border-radius: 999px; flex: 0 0 auto; white-space: nowrap; font-weight: 600; }
.li-t { flex: 1 1 auto; min-width: 0; font-size: .95rem; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-d { font-size: .76rem; color: var(--muted); flex: 0 0 auto; white-space: nowrap; }

/* 首页子栏目卡片：无缩略图（标题 / 发布时间 / 简介），一行三个 × 两行 */
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 920px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mini-grid { grid-template-columns: 1fr; } }
.mini-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; box-shadow: var(--sh-1); display: flex; flex-direction: column; min-width: 0; transition: transform .18s ease, box-shadow .2s ease, border-color .2s; }
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--teal); }
.mini-card h3 { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini-card h3 a { color: var(--ink); }
.mini-card h3 a:hover { color: var(--teal-deep); }
.mini-card .excerpt { color: var(--ink-2); font-size: .88rem; margin: 0 0 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.mini-card .meta { margin-top: auto; display: flex; align-items: center; gap: .4em; color: var(--muted); font-size: .78rem; }
.mini-card .meta svg.icon { width: 1em; height: 1em; }

/* 最新资讯卡片：缩略图 / 标题 / 发布时间 / 栏目名 / 简介，一行三个 × 两行 */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 920px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column; min-width: 0; transition: transform .18s ease, box-shadow .2s ease, border-color .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--teal); }
.news-card .cover { display: block; aspect-ratio: 16/9; overflow: hidden; }
.news-card .cover svg { width: 100%; height: 100%; display: block; }
.news-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.news-card .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-card .cat { color: #fff; font-size: .7rem; font-weight: 700; padding: .22em .65em; border-radius: 999px; }
.news-card .date { color: var(--muted); font-size: .76rem; display: inline-flex; align-items: center; gap: .3em; }
.news-card .date svg.icon { width: 1em; height: 1em; }
.news-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.42; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--teal-deep); }
.news-card .excerpt { color: var(--ink-2); font-size: .86rem; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- 首页 · 栏目快捷入口条 ---------- */
.quick-band { padding: clamp(26px, 4vw, 44px) 0 0; }

/* ---------- 首页 · 编辑精选（非对称：主推大卡 + 序号列表） ---------- */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } }
.feat-main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); display: flex; flex-direction: column; min-width: 0; }
.feat-main .cover { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; }
.feat-main .cover svg { width: 100%; height: 100%; display: block; }
.feat-main .tag-abs { position: absolute; left: 14px; top: 14px; color: #fff; font-size: .74rem; font-weight: 700; padding: .3em .85em; border-radius: 999px; box-shadow: var(--sh-1); }
.feat-main .body { padding: clamp(18px, 2.6vw, 28px); display: grid; gap: 10px; }
.feat-main h3 { margin: 0; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.85rem); line-height: 1.35; }
.feat-main h3 a { color: var(--ink); }
.feat-main h3 a:hover { color: var(--teal-deep); }
.feat-main p { margin: 0; color: var(--ink-2); }
.feat-main .meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: .82rem; }
.feat-main .meta svg.icon { width: 1em; height: 1em; }
.feat-list { display: grid; gap: 12px; }
.feat-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh-1); transition: transform .18s ease, box-shadow .2s ease, border-color .2s; min-width: 0; }
.feat-item:hover { transform: translateX(3px); border-color: var(--teal); box-shadow: var(--sh-2); }
.feat-item .no { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-deep)); font-size: 1rem; }
.feat-item .fx { min-width: 0; }
.feat-item .t { font-weight: 600; color: var(--ink); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.feat-item:hover .t { color: var(--teal-deep); }
.feat-item .d { display: block; font-size: .76rem; color: var(--muted); margin-top: 3px; }

/* ---------- 首页 · 内容承诺 band ---------- */
.mission { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 54px); align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 52px); box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.mission::before { content: ""; position: absolute; right: -60px; bottom: -70px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, var(--teal-soft), transparent 70%); }
.mission > * { position: relative; z-index: 1; }
@media (max-width: 820px) { .mission { grid-template-columns: 1fr; } }
.mission .kicker { display: inline-block; color: var(--amber-deep); font-weight: 700; font-size: .8rem; letter-spacing: .14em; margin-bottom: 10px; }
.mission h2 { margin: 0 0 .5em; }
.mission p { color: var(--ink-2); margin: 0 0 1.5em; }
.mission-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mission-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; min-width: 0; }
.mission-list svg.icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-deep); }
.mission-list b { color: var(--ink); }
.mission-list span { color: var(--ink-2); font-size: .94rem; }

/* ---------- 首页 · 常见问题（原生 details，零 JS 可展开） ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden; }
.faq-item > summary { cursor: pointer; list-style: none; padding: 16px 20px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item > summary::before { content: "?"; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: .9rem; font-family: var(--font-sans); }
.faq-item[open] > summary::before { background: var(--amber); }
.faq-item > summary::after { content: "+"; margin-left: auto; font-size: 1.35rem; color: var(--teal); font-family: var(--font-sans); line-height: 1; }
.faq-item[open] > summary::after { content: "\2212"; color: var(--amber-deep); }
.faq-a { padding: 0 20px 18px 58px; color: var(--ink-2); }

/* 侧栏“全部栏目”纯链接列表（无缩略图） */
.w-list.plain { gap: 0; }
.w-list.plain li { border-bottom: 1px solid var(--line); }
.w-list.plain li:last-child { border-bottom: 0; }
.w-list.plain a { display: block; padding: 11px 4px; color: var(--ink); font-size: .92rem; font-weight: 600; }
.w-list.plain a:hover { color: var(--teal-deep); }

/* 分页 */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink-2); font-size: .9rem; }
.pager a:hover { border-color: var(--teal); color: var(--teal-deep); }
.pager .cur { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- 文章页 ---------- */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
@media (max-width: 920px) { .article-wrap { grid-template-columns: 1fr; } }
.article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 38px); box-shadow: var(--sh-1); min-width: 0; }
.article .a-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .85rem; align-items: center; margin-bottom: 18px; }
.article .a-meta .tag { font-size: .74rem; }
.article h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); margin-bottom: .35em; }
.article-body { font-size: 1.04rem; color: var(--ink); }
.article-body h2 { margin-top: 1.6em; padding-left: 14px; border-left: 4px solid var(--amber); }
.article-body h3 { margin-top: 1.3em; color: var(--teal-deep); }
.article-body p { color: var(--ink-2); }
.article-body img, .article-body svg { border-radius: var(--r-sm); margin: 1em 0; }
.article-body blockquote { margin: 1.2em 0; padding: 1em 1.2em; background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--teal-deep); font-style: normal; }
.article-body .tip { margin: 1.2em 0; padding: 1em 1.2em 1em 3em; position: relative; background: #fff5ea; border: 1px solid #f6d9b4; border-radius: var(--r-sm); color: #8a5410; }
.article-body .tip::before { content: "!"; position: absolute; left: 1em; top: 1em; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--amber); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-sans); }
.article-body table { font-size: .94rem; }
.article-body ul li::marker { color: var(--teal); }

/* 上下篇 */
.pn-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.pn-nav a { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--paper); transition: all .18s ease; min-width: 0; }
.pn-nav a:hover { border-color: var(--teal); box-shadow: var(--sh-1); }
.pn-nav .lab { font-size: .76rem; color: var(--muted); }
.pn-nav .ttl { font-weight: 600; color: var(--ink); margin-top: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pn-nav .next { text-align: right; }
@media (max-width: 540px) { .pn-nav { grid-template-columns: 1fr; } }

/* 相关/最新文章块 */
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .rel-grid { grid-template-columns: 1fr; } }
.rel-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); display: flex; gap: 12px; padding: 12px; transition: all .18s ease; min-width: 0; }
.rel-card:hover { border-color: var(--teal); box-shadow: var(--sh-1); }
.rel-card .thumb { width: 88px; height: 64px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; }
.rel-card .thumb svg { width: 100%; height: 100%; }
.rel-card .t { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rel-card .d { font-size: .74rem; color: var(--muted); margin-top: 4px; }

/* ===================================================================
   玩玩游戏 · 知识翻牌小游戏
   =================================================================== */
.quiz-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); box-shadow: var(--sh-1); }
.quiz-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.quiz-bar .score { font-weight: 700; color: var(--teal-deep); }
.quiz-q { font-family: var(--font-display); font-size: clamp(1.1rem, .95rem + 1vw, 1.5rem); margin-bottom: 16px; color: var(--ink); }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opts button { text-align: left; border: 1px solid var(--line); background: var(--cream); border-radius: var(--r); padding: .9em 1.1em; font-size: 1rem; cursor: pointer; font-family: var(--font-sans); color: var(--ink); transition: all .15s ease; display: flex; gap: .7em; align-items: center; }
.quiz-opts button:hover { border-color: var(--teal); background: var(--teal-soft); }
.quiz-opts button.correct { background: #e4f6ec; border-color: #2faa5d; color: #1c7a40; }
.quiz-opts button.wrong { background: #fdeae6; border-color: var(--coral); color: #b23a1f; }
.quiz-opts button:disabled { cursor: default; }
.quiz-opts .k { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.quiz-feedback { margin-top: 14px; font-weight: 600; min-height: 1.4em; }
.quiz-feedback.ok { color: #1c7a40; }
.quiz-feedback.no { color: #b23a1f; }

/* 记忆翻牌 */
.memory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 460px; margin: 0 auto; }
.mem-card { aspect-ratio: 1; border-radius: var(--r); background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; border: 0; cursor: pointer; font-size: 1.6rem; display: grid; place-items: center; transition: transform .25s ease; font-family: var(--font-display); perspective: 600px; }
.mem-card.flip { background: var(--paper); color: var(--teal-deep); border: 1px solid var(--line); transform: rotateY(180deg); }
.mem-card.matched { background: var(--amber); color: #fff; }

/* ===================================================================
   搜索页
   =================================================================== */
.search-box { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 10px; }
.search-box input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: .8em 1.2em; font-size: 1rem; font-family: var(--font-sans); }
.search-box input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.search-meta { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.search-meta b { color: var(--teal-deep); }

/* ===================================================================
   404
   =================================================================== */
.nf { text-align: center; padding: clamp(50px, 10vw, 120px) 0; }
.nf .code { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 8rem); color: var(--teal); line-height: 1; }
.nf h1 { margin: .2em 0; }
.nf p { color: var(--muted); }

/* ===================================================================
   返回顶部
   =================================================================== */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: var(--sh-3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; z-index: 60; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg.icon { width: 22px; height: 22px; }

/* ===================================================================
   Reveal 渐进增强（三层，避免 JS 失效导致内容永久隐藏）
   =================================================================== */
.reveal { opacity: 1; transform: none; }
html.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
html.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- 通用工具 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 700px) { .split-2 { grid-template-columns: 1fr; } }
.notice { background: #fff5ea; border: 1px solid #f6d9b4; color: #8a5410; border-radius: var(--r-sm); padding: .7em 1em; font-size: .88rem; }
