:root {
  --ink: #0a0c10;            /* 墨黑 */
  --ink-2: #0e1319;
  --teal-deep: #0c2b2e;      /* 深青 */
  --teal-glow: #3de8c9;      /* 青霓虹 */
  --gold: #d4af6a;           /* 暗金 */
  --gold-bright: #f0cd8a;
  --purple-glow: #a78bfa;    /* 紫霓虹 */
  --red-glow: #ff4d6d;       /* 红霓虹 */
  --paper: #e9e4d8;          /* 宣纸白 */
  --paper-dim: #9aa3ad;
  --line: rgba(212, 175, 106, 0.16);
  --card: rgba(16, 22, 30, 0.62);
  --mono: 'JetBrains Mono', monospace;
  --serif: 'Noto Serif SC', 'Songti SC', serif;
  --sans: 'Noto Sans SC', 'PingFang SC', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 水墨晕染 + 数据流网格 全局底纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 15% 8%,  rgba(61, 232, 201, 0.055), transparent 60%),
    radial-gradient(ellipse 50% 36% at 88% 30%, rgba(167, 139, 250, 0.045), transparent 60%),
    radial-gradient(ellipse 70% 50% at 55% 100%, rgba(212, 175, 106, 0.05), transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(61, 232, 201, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 232, 201, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
/* 研究课题页加宽修饰类 */
.wrap-wide { max-width: 1320px; }

/* ---------- 顶部导航：磨砂玻璃 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(10, 12, 16, 0.55);
  border-bottom: 1px solid var(--line);
}
.nav .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav .brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--gold-bright);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(212, 175, 106, 0.35);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.nav .brand .logo {
  height: 26px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(212, 175, 106, 0.45));
  transition: filter .25s;
}
.nav .brand:hover .logo { filter: drop-shadow(0 0 14px rgba(212, 175, 106, 0.7)); }
.nav .brand span { color: var(--gold-bright); }
.nav .links { display: flex; gap: 26px; }
.nav .links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--paper-dim);
  text-decoration: none;
  transition: color .2s, text-shadow .2s;
}
.nav .links a:hover { color: var(--teal-glow); text-shadow: 0 0 12px rgba(61, 232, 201, .6); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero .bg {
  position: absolute;
  inset: 0;
  background: url('hero-inkwash.jpg') center right / cover no-repeat;
  opacity: 0.5;
}
/* 戏剧性侧光：左亮右暗斜切 */
.hero .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(10, 12, 16, 0.25) 0%,
      rgba(10, 12, 16, 0.72) 42%,
      rgba(10, 12, 16, 0.96) 72%,
      var(--ink) 100%);
}
.hero .veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 50% at 28% 55%, rgba(61, 232, 201, 0.10), transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-top: 60px; padding-bottom: 90px; }

.hero .kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 3px;
  color: var(--teal-glow);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero .kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--teal-glow), transparent);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.22;
  letter-spacing: 2px;
  margin-bottom: 30px;
}
.hero h1 .gold {
  background: linear-gradient(120deg, var(--gold-bright) 20%, var(--gold) 55%, #8a6d33 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .teal {
  color: var(--paper);
  text-shadow: 0 0 40px rgba(61, 232, 201, 0.28);
}
.hero p.lead {
  max-width: 560px;
  font-size: 16.5px;
  color: var(--paper-dim);
  margin-bottom: 44px;
}
.hero .cta { display: flex; gap: 18px; flex-wrap: wrap; }
.hero .cta a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-decoration: none;
  padding: 13px 30px;
  border: 1px solid;
  transition: all .25s;
}
.hero .cta a.primary {
  color: var(--ink);
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  border-color: transparent;
  box-shadow: 0 0 28px rgba(212, 175, 106, 0.28);
}
.hero .cta a.primary:hover { box-shadow: 0 0 44px rgba(212, 175, 106, 0.5); transform: translateY(-2px); }
.hero .cta a.ghost { color: var(--teal-glow); border-color: rgba(61, 232, 201, 0.4); }
.hero .cta a.ghost:hover { background: rgba(61, 232, 201, 0.08); box-shadow: 0 0 26px rgba(61, 232, 201, 0.25); }

.hero .scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--paper-dim);
  animation: drift 2.6s ease-in-out infinite;
}
@keyframes drift { 0%,100% { transform: translate(-50%, 0); opacity: .5; } 50% { transform: translate(-50%, 8px); opacity: 1; } }

/* ---------- 章节标题 ---------- */
.section-head { text-align: center; margin: 76px auto 36px; }
.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: 3px;
  line-height: 1.3;
}
.section-head .desc {
  color: var(--paper-dim);
  font-size: 14.5px;
  max-width: 600px;
  margin: 14px auto 0;
}

/* ---------- 话题筛选条 ---------- */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 16px;
  transition: border-color .25s, box-shadow .25s;
}
.search-box:focus-within {
  border-color: rgba(61, 232, 201, 0.4);
  box-shadow: 0 0 0 1px rgba(61, 232, 201, 0.1), 0 0 24px rgba(61, 232, 201, 0.06);
}
.search-box .icon { color: var(--teal-glow); font-size: 16px; }
.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--paper);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: .5px;
}
.search-box input::placeholder { color: var(--paper-dim); opacity: .6; }

.tag-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--paper-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all .2s;
}
.chip:hover { color: var(--gold-bright); border-color: rgba(212, 175, 106, 0.4); }
.chip.active {
  color: #0a1517;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(212, 175, 106, 0.3);
}

/* 迷你标签（卡片内） */
.tile .mini-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .5px;
  color: var(--teal-glow);
  border: 1px solid rgba(61, 232, 201, 0.25);
  border-radius: 4px;
  padding: 1px 7px;
  opacity: .85;
}

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 22px;
}
.pager button {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  cursor: pointer;
  transition: all .2s;
}
.pager button:hover { color: var(--teal-glow); border-color: rgba(61, 232, 201, 0.4); }
.pager button.cur {
  color: #0a1517;
  background: var(--teal-glow);
  border-color: var(--teal-glow);
  box-shadow: 0 0 14px rgba(61, 232, 201, 0.35);
}

.empty-result {
  text-align: center;
  padding: 46px 0 30px;
  color: var(--paper-dim);
  font-size: 14px;
  letter-spacing: 1px;
}
.empty-result .glyph {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--gold);
  opacity: .35;
  margin-bottom: 10px;
}
.bento { display: grid; grid-template-columns: 1fr; gap: 10px; }
/* 课题列表专属：宽容器下双列，容器不足自然回退单列（.bento 另有 3 处共用，不可全局改） */
#topic-list { grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); gap: 12px; }
.tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 24px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color .25s, box-shadow .25s;
}
/* 水墨晕染角（收敛） */
.tile::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .1;
  top: -110px; right: -70px;
  pointer-events: none;
  transition: opacity .25s;
}
.tile:nth-child(3n+1)::before { background: var(--teal-glow); }
.tile:nth-child(3n+2)::before { background: var(--gold); }
.tile:nth-child(3n)::before   { background: var(--purple-glow); }
.tile:hover {
  border-color: rgba(61, 232, 201, 0.35);
  box-shadow: 0 0 0 1px rgba(61, 232, 201, 0.1), 0 0 32px rgba(61, 232, 201, 0.07);
}
.tile:hover::before { opacity: .2; }

.tile .row1 { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; flex-wrap: wrap; }
.tile .row1 h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: 1px;
  color: var(--paper);
  margin: 0;
  transition: color .25s;
}
.tile:hover .row1 h3 { color: var(--gold-bright); }
.tile .row1 .arrow { color: var(--teal-glow); margin-left: auto; font-size: 15px; transition: transform .25s; }
.tile:hover .row1 .arrow { transform: translateX(5px); }
.tile .row2 {
  font-size: 13px;
  color: var(--paper-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tile .row2 .dot { color: var(--gold); opacity: .6; }

/* ---------- 徽章 ---------- */
.badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  padding: 3px 11px;
  border: 1px solid;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.st-done    { color: var(--teal-glow); border-color: rgba(61,232,201,.45); background: rgba(61,232,201,.07); }
.badge.st-ongoing { color: var(--gold-bright); border-color: rgba(212,175,106,.45); background: rgba(212,175,106,.07); }
.badge.st-pending { color: var(--paper-dim); border-color: rgba(154,163,173,.4); background: rgba(154,163,173,.06); }
.badge.keyword    { color: var(--purple-glow); border-color: rgba(167,139,250,.45); background: rgba(167,139,250,.08); }
.badge.cat-badge  { color: var(--gold-bright); border-color: rgba(212,175,106,.45); background: rgba(212,175,106,.07); }
.badge.cat-sec    { color: var(--teal-glow); border-color: rgba(61,232,201,.45); background: rgba(61,232,201,.07); }
.badge.cat-ai     { color: var(--purple-glow); border-color: rgba(167,139,250,.45); background: rgba(167,139,250,.08); }
.badge.author     { color: #7fd4ff; border-color: rgba(105,196,255,.45); background: rgba(105,196,255,.07); }
.todo { color: var(--paper-dim); }

/* ---------- 首页五大板块 ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.module {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(14px);
  padding: 26px 22px 22px;
  text-decoration: none;
  color: var(--paper);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.module::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  opacity: .5;
}
.module.m-teal::before   { background: linear-gradient(90deg, transparent, var(--teal-glow), transparent); }
.module.m-gold::before   { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.module.m-purple::before { background: linear-gradient(90deg, transparent, var(--purple-glow), transparent); }
.module:hover { transform: translateY(-4px); border-color: rgba(212, 175, 106, 0.4); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.module .glyph {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 30px;
  margin-bottom: 14px;
}
.module.m-teal .glyph   { color: var(--teal-glow); text-shadow: 0 0 20px rgba(61, 232, 201, 0.5); }
.module.m-gold .glyph   { color: var(--gold-bright); text-shadow: 0 0 20px rgba(212, 175, 106, 0.5); }
.module.m-purple .glyph { color: var(--purple-glow); text-shadow: 0 0 20px rgba(167, 139, 250, 0.5); }
.module .m-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.module .m-desc { font-size: 13px; color: var(--paper-dim); line-height: 1.7; min-height: 66px; }
.module .m-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gold);
  opacity: .85;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  margin-top: 4px;
}
.more-link { text-align: center; margin-top: 26px; }
.more-link a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--paper-dim);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 26px;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.more-link a:hover { color: var(--teal-glow); border-color: rgba(61, 232, 201, 0.4); box-shadow: 0 0 18px rgba(61, 232, 201, 0.15); }

/* ---------- 安全资讯 ---------- */
.news-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--paper-dim);
  margin-bottom: 28px;
}
.news-meta b { color: var(--gold-bright); font-weight: 600; }
.news-meta .sep { color: var(--gold); opacity: .4; }
.news-list { display: flex; flex-direction: column; gap: 8px; }

/* FOFA 式双栏检索：资讯页独占加宽容器（向两侧拉伸），左侧固定宽筛选面板 + 右侧自适应条目列表 */
#news .wrap { max-width: 1440px; }
.news-layout {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.news-main { min-width: 0; }

/* 命中统计条吸附在导航下方：滚动时筛选状态与清除按钮保持可见 */
.news-main .filter-count {
  position: sticky;
  top: 74px;
  z-index: 6;
  margin: 0 0 14px;
  padding: 9px 12px;
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.news-main .filter-count:empty { padding: 0; border: none; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* 左栏筛选面板：吸附滚动（让出顶部导航约 55px，避免被磨砂导航条压住），选项过多时内部滚动 */
.facet-panel {
  position: sticky;
  top: 74px;
  max-height: calc(100vh - 98px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  scrollbar-width: thin;
}
.facet-panel::-webkit-scrollbar { width: 4px; }
.facet-panel::-webkit-scrollbar-thumb { background: rgba(154, 163, 173, .25); border-radius: 4px; }
.facet-search { padding: 8px 12px; }

.facet-groups { display: flex; flex-direction: column; gap: 16px; }
.facet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}
.facet-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  opacity: .75;
  white-space: nowrap;
}
.facet-title i {
  font-style: normal;
  margin-left: 6px;
  font-size: 10px;
  color: var(--paper-dim);
  opacity: .7;
}
.facet-toggle {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .5px;
  color: var(--teal-glow);
  background: none;
  border: none;
  cursor: pointer;
  opacity: .85;
  padding: 2px 0;
  white-space: nowrap;
}
.facet-toggle:hover { opacity: 1; text-decoration: underline; }
.facet-body { display: flex; flex-wrap: wrap; gap: 6px; }
.facet-body .chip { padding: 4px 10px; font-size: 11px; letter-spacing: .5px; }
.facet-body .chip i {
  font-style: normal;
  margin-left: 5px;
  font-size: 10px;
  opacity: .55;
}
/* 折叠态：JS 给第 FACET_TOP 项之后的选项标 .over，默认隐藏 */
.facet-group.collapsed .chip.over { display: none; }

/* 时间段筛选：快捷区间 + 自定义月份下拉 */
.time-custom { margin-top: 8px; align-items: center; }
.time-select {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--paper-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.time-select:hover { color: var(--gold-bright); border-color: rgba(212, 175, 106, 0.4); }
.time-custom.active .time-select { color: var(--gold-bright); border-color: rgba(212, 175, 106, 0.55); }
.time-sep { font-family: var(--mono); font-size: 11px; color: var(--paper-dim); }
.time-select option { background: var(--ink-2); color: var(--paper); }

/* 条目卡片：元信息行 + 标题行 + 翻译行 + 标签行 */
.news-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  backdrop-filter: blur(10px);
  padding: 12px 18px 13px;
  text-decoration: none;
  color: var(--paper);
  transition: border-color .2s, transform .2s, background .2s;
}
.news-item:hover { border-color: rgba(61, 232, 201, 0.35); transform: translateX(4px); background: rgba(16, 22, 30, 0.85); }
.news-item-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-item-meta .news-source { margin-left: auto; }
.news-date { font-family: var(--mono); font-size: 12px; color: var(--paper-dim); letter-spacing: 1px; white-space: nowrap; }
.news-title {
  font-size: 15px;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-item:hover .news-title { color: var(--teal-glow); }
/* 英文条目的机翻中文行 */
.news-title-zh {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--paper-dim);
  padding-left: 10px;
  border-left: 2px solid rgba(61, 232, 201, .3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.news-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .5px;
  color: var(--teal-glow);
  border: 1px solid rgba(61, 232, 201, 0.25);
  border-radius: 4px;
  padding: 1px 7px;
  opacity: .85;
}
.news-source {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  opacity: .8;
  white-space: nowrap;
  letter-spacing: 1px;
}
/* 命中统计行的「清除筛选」 */
.reset-btn {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--teal-glow);
  background: none;
  border: none;
  cursor: pointer;
  opacity: .85;
}
.reset-btn:hover { opacity: 1; text-decoration: underline; }
.news-list.preview { margin-bottom: 0; }

/* 资讯级别徽标：P0 紧急（红）/ P1 重要（金）/ P2 常规（灰） */
.badge.prio-p0 { color: #ff8a7a; border-color: rgba(255, 110, 90, .5); background: rgba(255, 110, 90, .09); }
.badge.prio-p1 { color: var(--gold-bright); border-color: rgba(212, 175, 106, .45); background: rgba(212, 175, 106, .07); }
.badge.prio-p2 { color: var(--paper-dim); border-color: rgba(154, 163, 173, .4); background: rgba(154, 163, 173, .06); }

/* 资讯筛选：命中统计 + 分页省略号 */
.filter-count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--paper-dim);
  min-height: 16px;
}
.pager .dots {
  align-self: center;
  color: var(--paper-dim);
  font-family: var(--mono);
  padding: 0 2px;
}

/* 资讯动态加载：底部加载提示条 + 旋转动画 */
.news-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--paper-dim);
}
.news-more[hidden] { display: none; }
.spin {
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid rgba(61, 232, 201, .25);
  border-top-color: var(--teal-glow);
  border-radius: 50%;
  animation: news-spin .8s linear infinite;
}
@keyframes news-spin { to { transform: rotate(360deg); } }

/* ---------- 关于页联系方式 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 46px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(14px);
  padding: 22px;
  text-decoration: none;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--sans);
  text-align: left;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(212, 175, 106, 0.4); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.c-glyph {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 24px;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 6px;
}
.c-glyph.g-teal   { color: var(--teal-glow); text-shadow: 0 0 16px rgba(61, 232, 201, 0.5); border-color: rgba(61, 232, 201, 0.3); }
.c-glyph.g-gold   { color: var(--gold-bright); text-shadow: 0 0 16px rgba(212, 175, 106, 0.5); border-color: rgba(212, 175, 106, 0.3); }
.c-glyph.g-purple { color: var(--purple-glow); text-shadow: 0 0 16px rgba(167, 139, 250, 0.5); border-color: rgba(167, 139, 250, 0.3); }
.c-title { font-family: var(--serif); font-weight: 700; font-size: 16px; letter-spacing: 2px; }
.c-desc { font-size: 12.5px; color: var(--paper-dim); }

/* ---------- 兵器谱：AI 与安全工具推荐 ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 20px 16px;
  text-decoration: none;
  color: var(--paper);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
/* 水墨晕染角，同 .tile 语言 */
.tool-card::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .1;
  top: -110px; right: -70px;
  pointer-events: none;
  background: var(--teal-glow);
  transition: opacity .25s;
}
.tool-card:nth-child(3n+2)::before { background: var(--gold); }
.tool-card:nth-child(3n)::before   { background: var(--purple-glow); }
.tool-card:hover {
  border-color: rgba(61, 232, 201, 0.35);
  box-shadow: 0 0 0 1px rgba(61, 232, 201, 0.1), 0 0 32px rgba(61, 232, 201, 0.07);
  transform: translateY(-3px);
}
.tool-card:hover::before { opacity: .2; }

.tool-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* 站点 favicon 占位（藏经阁卡片） */
.tool-ico {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid rgba(154, 163, 173, 0.22);
  background: rgba(10, 12, 16, 0.45);
  flex-shrink: 0;
  object-fit: contain;
  transition: opacity .25s, border-color .25s;
}
.tool-card:hover .tool-ico { border-color: rgba(212, 175, 106, 0.4); }
.tool-card.curated .tool-ico { width: 22px; height: 22px; }
/* 兜底：站名首字水墨占位 */
.ico-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--gold);
  background: rgba(212, 175, 106, 0.07);
}
.tool-card.plain .ico-fallback { font-size: 10.5px; }
/* 兵器谱分级徽记：天 / 地 / 玄 */
.tool-rank {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 15px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid;
  flex-shrink: 0;
}
.tool-rank.s { color: var(--gold-bright); border-color: rgba(212, 175, 106, .5); background: rgba(212, 175, 106, .08); text-shadow: 0 0 12px rgba(212, 175, 106, .4); }
.tool-rank.a { color: var(--teal-glow); border-color: rgba(61, 232, 201, .45); background: rgba(61, 232, 201, .07); text-shadow: 0 0 12px rgba(61, 232, 201, .4); }
.tool-rank.b { color: var(--paper-dim); border-color: rgba(154, 163, 173, .4); background: rgba(154, 163, 173, .06); }

.tool-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  transition: color .25s;
}
.tool-card:hover .tool-name { color: var(--gold-bright); }
.tool-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--paper-dim);
}
.tool-arrow { margin-left: auto; color: var(--teal-glow); font-size: 15px; transition: transform .25s; }
.tool-card:hover .tool-arrow { transform: translate(3px, -3px); }

.tool-desc { margin: 0; font-size: 13px; line-height: 1.75; color: var(--paper-dim); }
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tags .mini-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .5px;
  color: var(--teal-glow);
  border: 1px solid rgba(61, 232, 201, 0.25);
  border-radius: 4px;
  padding: 1px 7px;
  opacity: .85;
}
.tool-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--paper-dim);
}
.tool-host { margin-left: auto; color: var(--teal-glow); opacity: .8; }
.tool-note {
  text-align: center;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--paper-dim);
}
.tool-note b {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-size: 13px;
}
/* 门类筛选 chip 的计数 */
.tag-chips .chip i { font-style: normal; font-size: 10px; opacity: .55; margin-left: 2px; }

/* ---------- 藏经阁：统计条 / 分组导航 / 双卡 / 加载更多 ---------- */
/* FOFA 风格统计条 */
.tool-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.ts-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 8px 12px;
}
.ts-hero {
  border-color: rgba(212, 175, 106, 0.4);
  background: linear-gradient(160deg, rgba(212, 175, 106, 0.1), rgba(10, 12, 16, 0.4));
}
.ts-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  color: var(--paper);
}
.ts-hero .ts-num { font-size: 30px; color: var(--gold-bright); text-shadow: 0 0 18px rgba(212, 175, 106, 0.45); }
.ts-num.rank-s { color: var(--gold-bright); text-shadow: 0 0 14px rgba(212, 175, 106, 0.4); }
.ts-num.rank-a { color: var(--teal-glow); text-shadow: 0 0 14px rgba(61, 232, 201, 0.4); }
.ts-date { font-size: 20px; letter-spacing: 1px; }
.ts-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--paper-dim);
  white-space: nowrap;
}

/* 侧边栏分组导航：组标题按钮 */
.side-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 9px;
  padding: 6px 10px;
  border: 1px solid rgba(212, 175, 106, 0.22);
  border-radius: 8px;
  background: rgba(212, 175, 106, 0.04);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 2px;
  text-align: left;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.side-group:hover { color: var(--gold-bright); border-color: rgba(212, 175, 106, 0.45); background: rgba(212, 175, 106, 0.08); }
.side-group.active {
  color: var(--gold-bright);
  border-color: rgba(212, 175, 106, 0.55);
  background: rgba(212, 175, 106, 0.12);
  text-shadow: 0 0 10px rgba(212, 175, 106, 0.4);
}
.side-group.active .side-count { color: var(--gold-bright); border-color: rgba(212, 175, 106, 0.45); }
/* 灰色资源组：置底降权 */
.gray-group { opacity: .55; }
.gray-group:hover, .gray-group.active { opacity: 1; }
/* 分类子项：缩进 + 小一号 */
.side-link.sub { padding: 5.5px 10px 5.5px 22px; font-size: 12.5px; }

/* 双卡：公开收录紧凑卡 */
.tool-card.plain { gap: 6px; padding: 12px 16px 11px; }
.tool-card.plain::before { display: none; }
.tool-card.plain .tool-name { font-size: 15px; letter-spacing: .5px; }
.tool-card.plain .tool-desc {
  font-size: 12px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-card.plain:hover { transform: translateY(-2px); }
/* 试炼兵器卡：金色描边突出 */
.tool-card.curated { border-color: rgba(212, 175, 106, 0.28); }
.tool-card.curated:hover {
  border-color: rgba(212, 175, 106, 0.55);
  box-shadow: 0 0 0 1px rgba(212, 175, 106, 0.12), 0 0 32px rgba(212, 175, 106, 0.09);
}
.tool-access { opacity: .9; }
.tool-date { opacity: .65; }

/* 加载更多 */
.tool-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 22px;
}
.tool-more {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--paper-dim);
  background: none;
  border: 1px dashed rgba(154, 163, 173, 0.35);
  border-radius: 999px;
  padding: 8px 26px;
  cursor: pointer;
  transition: color .25s, border-color .25s, box-shadow .25s;
}
.tool-more:hover {
  color: var(--teal-glow);
  border-color: rgba(61, 232, 201, 0.5);
  box-shadow: 0 0 16px rgba(61, 232, 201, 0.1);
}
.tool-sentinel { height: 1px; width: 100%; }

/* 统计条响应式 */
@media (max-width: 1100px) {
  .tool-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .tool-stats { gap: 8px; }
  .ts-num { font-size: 22px; }
  .ts-hero .ts-num { font-size: 24px; }
  .ts-date { font-size: 17px; }
  .ts-label { font-size: 9.5px; letter-spacing: 1px; }
}

/* ---------- 筛选条双层 ---------- */
.chips-rows { display: flex; flex-direction: column; gap: 10px; }
.chips-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  opacity: .75;
  white-space: nowrap;
}
.chip.cat.active { color: var(--gold-bright); border-color: rgba(212, 175, 106, 0.55); background: rgba(212, 175, 106, 0.1); }

/* ---------- 签名墙管理入口 ---------- */
.admin-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px dashed rgba(154, 163, 173, 0.4);
  padding-bottom: 1px;
  opacity: .7;
}
.admin-link:hover { color: var(--red-glow); border-color: rgba(255, 77, 109, 0.5); opacity: 1; }

/* ---------- 关于 ---------- */
.about {
  margin: 130px 0 40px;
  padding: 64px 56px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(212,175,106,.05), transparent 45%),
    var(--card);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.about::after {
  content: "俠";
  position: absolute;
  right: -30px; bottom: -70px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 300px;
  color: rgba(212, 175, 106, 0.05);
  pointer-events: none;
}
.about h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 3px;
  margin-bottom: 26px;
}
.about h2 span { color: var(--gold-bright); }
.about .team-logo {
  height: 108px;
  width: auto;
  filter: drop-shadow(0 4px 26px rgba(212, 175, 106, 0.35));
  display: block;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.about p { color: var(--paper-dim); font-size: 15.5px; margin-bottom: 16px; max-width: 720px; position: relative; z-index: 1; }
.about p strong { color: var(--paper); }

/* ---------- 话题详情页 ---------- */
.topic-hero {
  padding: 96px 0 20px;
  position: relative;
}
.topic-hero .crumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 18px;
}
.topic-hero .crumb a { color: var(--paper-dim); text-decoration: none; }
.topic-hero .crumb a:hover { color: var(--teal-glow); }
.topic-hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: 2px;
  line-height: 1.3;
  margin-bottom: 14px;
  text-shadow: 0 0 46px rgba(61, 232, 201, 0.18);
}
.topic-hero .sub { font-size: 16.5px; color: var(--paper-dim); margin-bottom: 22px; }
.topic-hero .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-dim);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

section.block { margin: 56px 0; }
section.block h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--gold-bright);
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
section.block h2::before {
  content: "";
  width: 8px; height: 8px;
  background: linear-gradient(135deg, var(--teal-glow), var(--gold));
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(61, 232, 201, 0.5);
}

/* ---------- 表格 ---------- */
.table-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid rgba(212,175,106,.08); vertical-align: top; }
tr:last-child td { border-bottom: none; }
th {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  background: rgba(212, 175, 106, 0.05);
}
tr:hover td { background: rgba(61, 232, 201, 0.03); }
td a { color: var(--teal-glow); text-decoration: none; }
td a:hover { text-decoration: underline; text-shadow: 0 0 10px rgba(61,232,201,.55); }

/* ---------- 正文 ---------- */
/* 详情页正文限宽：1320px 容器下保证行长可读（约 50 字/行），右侧留白 */
.body { font-size: 15.5px; color: var(--paper-dim); max-width: 840px; }
.body p { margin-bottom: 16px; }
.body strong { color: var(--gold-bright); font-weight: 600; }
.body code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal-glow);
  background: rgba(61, 232, 201, 0.07);
  border: 1px solid rgba(61, 232, 201, 0.16);
  border-radius: 4px;
  padding: 1px 7px;
}

/* ---------- 占位框 ---------- */
.placeholder-box {
  border: 1px dashed rgba(212, 175, 106, 0.3);
  border-radius: 12px;
  padding: 44px 30px;
  text-align: center;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(16, 22, 30, 0.35);
}
.placeholder-box .glyph {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 8px;
}

/* ---------- footer ---------- */
footer.site {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  position: relative;
}
footer.site::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-glow), transparent);
}
footer.site .inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-dim);
  letter-spacing: 1px;
}
footer.site .seal {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 6px;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(212, 175, 106, 0.4);
}
footer.site a { color: var(--paper-dim); text-decoration: none; }
footer.site a:hover { color: var(--teal-glow); }
footer.site .social {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
}
footer.site .social .sep { color: var(--gold); opacity: .4; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .modules { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  /* 研究课题：分栏收起为上下堆叠，概括块取消吸顶 */
  .df-cols { grid-template-columns: 1fr; }
  .df-summary { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .about { padding: 44px 30px; }
  .hero .bg { background-position: center; }
  .nav .links { gap: 16px; }
  .modules { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  /* 资讯检索：小屏收起左栏，筛选面板与统计条恢复普通流 */
  .news-layout { grid-template-columns: 1fr; gap: 16px; }
  .facet-panel { position: static; max-height: none; overflow: visible; }
  .news-main .filter-count { position: static; margin-bottom: 12px; padding: 0; background: none; border: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* 兵器谱：小屏单列 */
  .tool-grid { grid-template-columns: 1fr; }
  /* 研究课题：小屏收起左栏，道法术器卡片单列 */
  .topics-layout { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
  .topics-side { position: static; max-height: none; overflow: visible; }
  .df-list { grid-template-columns: 1fr; }
  .news-item:hover { transform: none; }
  .filter-bar { flex-direction: column; align-items: stretch; }
}

/* ---------- 江湖留名 / 签名墙 ---------- */
#wall {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(12, 43, 46, 0.28));
  padding-bottom: 40px;
}
.wall-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  backdrop-filter: blur(14px);
  padding: 26px 26px 18px;
  overflow: hidden;
}
.wall-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(61, 232, 201, 0.04), transparent 40%, rgba(212, 175, 106, 0.05));
  pointer-events: none;
}
.wall-hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.giscus-mount { min-height: 140px; position: relative; z-index: 1; }
.wall-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 56px 0;
  color: var(--paper-dim);
  font-size: 14px;
}
.wall-loading .glyph {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 34px;
  color: rgba(212, 175, 106, 0.5);
}

/* ---------- Footer 访问统计 ---------- */
footer.site .stats {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--paper-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
footer.site .stats b { color: var(--gold-bright); font-weight: 600; font-size: 13px; }
footer.site .stats .stat-label { color: var(--teal-glow); }
footer.site .stats .sep { color: var(--gold); opacity: 0.4; }

@media (max-width: 640px) {
  .wall-frame { padding: 16px 12px 10px; }
}

/* ---------- 视频号入口 / 弹窗 ---------- */
footer.site .wx-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--paper-dim);
  cursor: pointer;
}
footer.site .wx-link:hover { color: var(--teal-glow); }

.wx-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 8, 12, 0.74);
  backdrop-filter: blur(6px);
}
.wx-modal[hidden] { display: none; }
.wx-panel {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 17, 24, 0.94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(61, 232, 201, 0.06);
  padding: 30px 30px 26px;
}
.wx-panel::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-glow), transparent);
}
.wx-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: none;
  color: var(--paper-dim);
  font-size: 20px; line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}
.wx-close:hover { color: var(--red-glow); }
.wx-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.wx-id-box { display: flex; gap: 10px; margin-bottom: 18px; }
.wx-id-box code {
  flex: 1;
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--teal-glow);
  border: 1px solid rgba(61, 232, 201, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(61, 232, 201, 0.05);
  overflow-x: auto;
}
.wx-copy {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 106, 0.4);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(212, 175, 106, 0.06);
  cursor: pointer;
  white-space: nowrap;
}
.wx-copy:hover { color: var(--gold-bright); border-color: rgba(212, 175, 106, 0.7); }
.wx-copy.ok { color: var(--teal-glow); border-color: rgba(61, 232, 201, 0.6); }
.wx-steps { margin: 0 0 14px; padding-left: 20px; color: var(--paper); font-size: 14px; }
.wx-steps li { margin: 4px 0; }
.wx-steps b { color: var(--gold-bright); font-weight: 600; }
.wx-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--paper-dim);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
@media (max-width: 480px) {
  .wx-id-box { flex-direction: column; }
  .wx-copy { padding: 10px 16px; }
}

/* ==================== 技术文章（长文阅读版式） ==================== */
.article { padding: 40px 0 30px; }
.article-hero { max-width: 860px; }
.article-hero h1 { font-size: clamp(26px, 4vw, 38px); }
.article-cover {
  max-width: 860px;
  margin: 26px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(61, 232, 201, 0.06);
}
.article-cover img {
  display: block;
  width: 100%;
  height: auto;
}
.article-abstract {
  max-width: 860px;
  margin: 26px auto 0;
  padding: 22px 26px;
  border: 1px solid rgba(212, 175, 106, 0.28);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: rgba(212, 175, 106, 0.05);
}
.article-abstract .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.article-abstract p { font-size: 15px; color: var(--paper); line-height: 1.9; }

.article-toc {
  max-width: 860px;
  margin: 30px 0 8px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(12px);
}
.article-toc .toc-head {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--gold-bright);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.toc-chapters {
  list-style: none;
  counter-reset: tocch;
  columns: 2;
  column-gap: 40px;
}
.toc-chapters > li { margin-bottom: 10px; break-inside: avoid; }
.toc-chapters > li > a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  transition: color .2s;
}
.toc-chapters > li > a:hover { color: var(--teal-glow); text-shadow: 0 0 10px rgba(61,232,201,.4); }
.toc-sections { list-style: none; margin: 5px 0 2px 14px; border-left: 1px solid var(--line); padding-left: 12px; }
.toc-sections li { margin: 3px 0; }
.toc-sections a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}
.toc-sections a:hover { color: var(--teal-glow); }

.article-body {
  max-width: 860px;
  margin: 36px auto 0;
  font-size: 16px;
  color: var(--paper);
  line-height: 2.05;
}
.article-body p { margin: 0 0 18px; }
.article-body strong { color: var(--gold-bright); font-weight: 600; }
.article-body em { color: var(--purple-glow); font-style: normal; }
.article-body code {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--teal-glow);
  background: rgba(61, 232, 201, 0.07);
  border: 1px solid rgba(61, 232, 201, 0.16);
  border-radius: 4px;
  padding: 1px 7px;
  word-break: break-all;
}
.article-body h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 2px;
  color: var(--gold-bright);
  margin: 64px 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  scroll-margin-top: 90px;
}
.article-body h2::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  background: linear-gradient(135deg, var(--teal-glow), var(--gold));
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(61, 232, 201, 0.5);
}
.article-body h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18.5px;
  letter-spacing: 1px;
  color: var(--teal-glow);
  margin: 42px 0 16px;
  scroll-margin-top: 90px;
}
.article-body h3::before { content: "▸ "; color: rgba(61,232,201,.55); }
.article-body h4 {
  font-size: 16.5px;
  color: var(--paper);
  margin: 30px 0 12px;
  scroll-margin-top: 90px;
}
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 26px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--gold); }
.article-body blockquote {
  margin: 22px 0;
  padding: 14px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 106, 0.05);
  border-radius: 0 8px 8px 0;
  color: var(--paper-dim);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body img {
  display: block;
  max-width: 100%;
  margin: 28px auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

.article-body pre {
  margin: 22px 0;
  padding: 18px 22px;
  border: 1px solid rgba(61, 232, 201, 0.18);
  border-radius: 10px;
  background: rgba(8, 12, 16, 0.82);
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.75;
}
.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: #b8e8dd;
  font-size: 13.5px;
  word-break: normal;
  white-space: pre;
}

/* 代码块右上角复制按钮 */
.article-body .code-copy-host { position: relative; }
.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--teal-glow);
  background: rgba(8, 12, 16, 0.92);
  border: 1px solid rgba(61, 232, 201, 0.28);
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  opacity: .72;
  transition: opacity .2s, border-color .2s, color .2s;
  user-select: none;
}
.code-copy-btn:hover { opacity: 1; border-color: rgba(61, 232, 201, 0.55); }
.code-copy-btn.ok {
  color: var(--gold-bright);
  border-color: rgba(212, 175, 106, 0.55);
  opacity: 1;
}

.article-body table {
  display: block;
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 14px;
  line-height: 1.7;
}
.article-body th, .article-body td { padding: 12px 16px; }
.article-body a {
  color: var(--teal-glow);
  text-decoration: none;
  border-bottom: 1px dashed rgba(61, 232, 201, 0.35);
}
.article-body a:hover { text-shadow: 0 0 10px rgba(61,232,201,.55); border-bottom-style: solid; }

.article-foot { max-width: 860px; margin: 60px auto 0; }
.back-topic {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  text-decoration: none;
  transition: border-color .25s, transform .25s;
}
.back-topic:hover { border-color: rgba(61, 232, 201, 0.45); transform: translateY(-2px); }
.back-topic .arrow { font-size: 20px; color: var(--teal-glow); }
.back-topic b { display: block; color: var(--gold-bright); font-size: 15.5px; margin-bottom: 4px; }
.back-topic .desc { color: var(--paper-dim); font-size: 13.5px; }
.gzh-hint {
  margin-top: 18px;
  padding: 16px 22px;
  text-align: center;
  border: 1px dashed rgba(212, 175, 106, 0.35);
  border-radius: 10px;
  color: var(--paper-dim);
  font-size: 14px;
}
.gzh-hint b { color: var(--gold-bright); font-family: var(--mono); letter-spacing: 1px; }

@media (max-width: 720px) {
  .toc-chapters { columns: 1; }
  .article-body { font-size: 15.5px; }
  .article-body h2 { font-size: 20px; margin: 48px 0 18px; }
}

/* ==================== 评论区（话题页 / 文章页通用） ==================== */
.comments-block { margin: 64px 0 24px; }
.comments-article { max-width: 860px; margin-left: auto; margin-right: auto; }
.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.comments-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  gap: 12px;
}
.comments-head h2::before {
  content: "";
  width: 8px; height: 8px;
  background: linear-gradient(135deg, var(--teal-glow), var(--gold));
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(61, 232, 201, 0.5);
}
.comments-hint { font-size: 13px; color: var(--paper-dim); margin-bottom: 14px; }

/* ==================== 研究课题：栏目化重构 ==================== */

/* ---------- 定位横幅 ---------- */
.topic-charter {
  position: relative;
  margin: 8px 0 26px;
  padding: 30px 34px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  text-align: center;
}
.topic-charter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(61, 232, 201, 0.05), transparent 40%, rgba(212, 175, 106, 0.06));
  pointer-events: none;
}
.topic-charter::after {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-glow), transparent);
}
.charter-brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 6px;
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(212, 175, 106, 0.35);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.charter-line {
  font-size: 15.5px;
  color: var(--paper);
  letter-spacing: .5px;
  margin: 0 auto 16px;
  max-width: 660px;
  position: relative;
  z-index: 1;
}
.charter-aud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.ca-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
}
.charter-aud em { font-style: normal; color: var(--teal-glow); }
.ca-dot { color: var(--gold); opacity: .5; }

/* ---------- 左侧分类导航 + 右侧课题列表 ---------- */
.topics-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin: 30px 0 10px;
}
.topics-side {
  position: sticky;
  top: 86px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 14px 16px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.side-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(212, 175, 106, 0.25);
  border-radius: 9px;
  background: rgba(10, 12, 16, 0.5);
  padding: 7px 12px;
  margin-bottom: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.side-search:focus-within {
  border-color: rgba(61, 232, 201, 0.5);
  box-shadow: 0 0 12px rgba(61, 232, 201, 0.12);
}
.side-search .icon { color: var(--gold); font-size: 14px; opacity: .8; }
.side-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
}
.side-search input::placeholder { color: var(--paper-dim); opacity: .7; }
.side-nav { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; }
.side-nav-title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: .85;
  padding: 8px 10px 6px;
}
.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--paper-dim);
  font-family: var(--sans);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.side-link:hover { color: var(--paper); background: rgba(61, 232, 201, 0.05); }
.side-link.active {
  color: var(--teal-glow);
  background: rgba(61, 232, 201, 0.09);
  border-color: rgba(61, 232, 201, 0.32);
  text-shadow: 0 0 10px rgba(61, 232, 201, 0.35);
}
.side-count {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--paper-dim);
  border: 1px solid rgba(154, 163, 173, 0.25);
  border-radius: 999px;
  padding: 0 7px;
  line-height: 1.7;
}
.side-link.active .side-count { color: var(--teal-glow); border-color: rgba(61, 232, 201, 0.35); }
.side-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(212, 175, 106, 0.2);
  font-size: 12px;
  line-height: 1.85;
  color: var(--paper-dim);
}
.side-note b { color: var(--gold-bright); font-weight: 700; }
.side-note em { font-style: normal; color: var(--teal-glow); }
.topics-main { min-width: 0; }
.topics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tb-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--paper-dim);
}
.tile-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed rgba(212, 175, 106, 0.16);
}
.tile-meta .tile-date {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--paper-dim);
  margin-left: auto;
  letter-spacing: .5px;
}

/* ---------- 筛选条微调 ---------- */
.filter-bar.simple { margin: 26px 0 32px; }

/* ---------- 道法术器四层 ---------- */
.df-stack { margin-top: 44px; }
.df-stack section.df-block { margin: 0 0 36px; }
.df-stack section.df-block:last-child { margin-bottom: 0; }
.df-block-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
/* 注意：section.block h2 优先级为 (0,1,2)，此处须用双类选择器压过，否则边框/间距覆盖不生效 */
.df-stack .df-block h2 {
  display: block;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  font-size: 19px;
  letter-spacing: 1px;
}
.df-stack .df-block h2::before { display: none; }
.df-zi {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 23px;
  border-radius: 10px;
  border: 1px solid;
}
.df-note {
  margin: 3px 0 0;
  font-size: 12.5px;
  letter-spacing: .5px;
  color: var(--paper-dim);
}
.layer-dao .df-zi { color: var(--gold-bright); border-color: rgba(212,175,106,.5); background: rgba(212,175,106,.08); text-shadow: 0 0 14px rgba(212,175,106,.5); }
.layer-fa  .df-zi { color: var(--teal-glow); border-color: rgba(61,232,201,.5); background: rgba(61,232,201,.08); text-shadow: 0 0 14px rgba(61,232,201,.5); }
.layer-shu .df-zi { color: var(--purple-glow); border-color: rgba(167,139,250,.5); background: rgba(167,139,250,.08); text-shadow: 0 0 14px rgba(167,139,250,.5); }
.layer-qi  .df-zi { color: var(--red-glow); border-color: rgba(255,77,109,.5); background: rgba(255,77,109,.08); text-shadow: 0 0 14px rgba(255,77,109,.5); }

/* 分栏：左 2/5 概括吸顶卡，右 3/5 资源列表（窄屏断点见 960px 媒体查询） */
.df-cols {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 24px;
  align-items: start;
}
.df-summary {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px 20px 18px;
}
.df-sum-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--paper-dim);
  margin: 0 0 12px;
}
.layer-dao .df-sum-label { color: var(--gold-bright); }
.layer-fa  .df-sum-label { color: var(--teal-glow); }
.layer-shu .df-sum-label { color: var(--purple-glow); }
.layer-qi  .df-sum-label { color: var(--red-glow); }
.df-sum-text {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.95;
  letter-spacing: .2px;
  color: var(--paper);
  margin: 0;
}
.df-sum-text br { content: ''; display: block; margin: 11px 0 0; }
/* 统计行：大数字锚点 + mono 数字对齐 + 原创/转载双色 */
.df-sum-stats {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 4px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--paper-dim);
}
.df-sum-stats b {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.ds-count b {
  font-size: 21px;
  line-height: 1;
  color: var(--paper);
  margin-right: 6px;
  letter-spacing: 0;
}
.ds-split { display: inline-flex; align-items: baseline; gap: 5px; }
.ds-split b { font-size: 13px; color: var(--teal-glow); }
.ds-split b.rep { color: #7fd4ff; }
.ds-split .dot { opacity: .55; }

.df-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.df-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 20px 16px;
  transition: border-color .25s, box-shadow .25s;
}
.df-card:hover {
  border-color: rgba(61, 232, 201, 0.3);
  box-shadow: 0 0 24px rgba(61, 232, 201, 0.06);
}
.df-card-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.df-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: .5px;
  line-height: 1.5;
  color: var(--paper);
  margin: 0;
  flex: 1;
}
.df-card:hover .df-title { color: var(--gold-bright); }
.badge.df-orig     { color: var(--teal-glow); border-color: rgba(61,232,201,.45); background: rgba(61,232,201,.07); }
.badge.df-reprint  { color: #7fd4ff; border-color: rgba(105,196,255,.45); background: rgba(105,196,255,.07); }
.df-text {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--paper-dim);
  margin: 0 0 12px;
}
.df-card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}
.df-platform {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--paper-dim);
}
.df-stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(212, 175, 106, 0.4);
}
.df-link {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--teal-glow);
  text-decoration: none;
  border: 1px solid rgba(61, 232, 201, 0.35);
  border-radius: 999px;
  padding: 3px 14px;
  transition: background .2s, box-shadow .2s;
}
.df-link:hover {
  background: rgba(61, 232, 201, 0.1);
  box-shadow: 0 0 14px rgba(61, 232, 201, 0.25);
}
.df-card.has-tip { cursor: help; }
.df-tip {
  position: absolute;
  left: 14px; right: 14px;
  bottom: calc(100% + 8px);
  background: #10161e;
  border: 1px solid rgba(61, 232, 201, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--paper);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 30;
  pointer-events: none;
}
.df-card.has-tip:hover .df-tip,
.df-card.has-tip:focus .df-tip,
.df-card.has-tip:focus-within .df-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 占位框瘦版 */
.placeholder-box.slim { padding: 22px 18px; font-size: 12px; border-radius: 10px; }

/* ---------- 板块说明 / 尾注 ---------- */
.block-note {
  margin: 16px 0 18px;
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.8;
}
section.block > h2 + .block-note { margin-top: -10px; }
.block-note a {
  color: var(--teal-glow);
  text-decoration: none;
  border-bottom: 1px dashed rgba(61, 232, 201, 0.35);
}
.block-note a:hover { text-shadow: 0 0 10px rgba(61, 232, 201, 0.55); }
.block-more {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--gold);
}
a.block-more { text-decoration: none; transition: color .2s, letter-spacing .2s; }
a.block-more:hover { color: var(--gold-bright); letter-spacing: 2px; }

/* ---------- 精选外部资料 ---------- */
.res-block { padding-top: 26px; border-top: 1px solid var(--line); }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.resource-card:hover {
  border-color: rgba(212, 175, 106, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(212, 175, 106, 0.12), 0 14px 34px rgba(0, 0, 0, 0.35);
}
.rc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
}
.badge.res-type { color: var(--purple-glow); border-color: rgba(167, 139, 250, 0.45); background: rgba(167, 139, 250, 0.08); }
.rc-source { color: var(--gold); opacity: .85; }
.rc-author { color: #7fd4ff; opacity: .85; }
.rc-date { margin-left: auto; color: var(--paper-dim); white-space: nowrap; }
.rc-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .5px;
  color: var(--paper);
  line-height: 1.5;
  transition: color .25s;
}
.resource-card:hover .rc-title { color: var(--gold-bright); }
.rc-reason {
  font-size: 12.5px;
  color: var(--paper-dim);
  line-height: 1.7;
  border-left: 2px solid rgba(61, 232, 201, 0.3);
  padding-left: 10px;
}
.rc-topics { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.rc-topic {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .5px;
  color: var(--teal-glow);
  border: 1px solid rgba(61, 232, 201, 0.25);
  border-radius: 4px;
  padding: 1px 7px;
  opacity: .85;
}

/* 详情页：资料清单（单列，含摘要正文） */
.resource-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; }
.rc-body { font-size: 13.5px; color: var(--paper-dim); line-height: 1.85; }
.rc-body p { margin: 0 0 8px; }
.rc-body p:last-child { margin-bottom: 0; }
.rc-body strong { color: var(--paper); font-weight: 600; }
.rc-body a { color: var(--teal-glow); }
.rc-body code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--teal-glow);
  background: rgba(61, 232, 201, 0.07);
  border: 1px solid rgba(61, 232, 201, 0.16);
  border-radius: 4px;
  padding: 0 6px;
}

/* ---------- 最新情报 ---------- */
.intel-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 10px; }

/* ---------- 课题徽章：所属栏目 ---------- */
.badge.column-badge { color: var(--gold-bright); border-color: rgba(212, 175, 106, 0.45); background: rgba(212, 175, 106, 0.07); }

/* ---------- 入门路径 ---------- */
.reading-path {
  list-style: none;
  counter-reset: rpath;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 10px;
}
.reading-path li {
  counter-increment: rpath;
  position: relative;
  padding: 14px 18px 14px 58px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 14px;
  color: var(--paper-dim);
  line-height: 1.8;
  transition: border-color .25s;
}
.reading-path li:hover { border-color: rgba(212, 175, 106, 0.35); }
.reading-path li::before {
  content: counter(rpath, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(212, 175, 106, 0.45);
}
.reading-path li::after {
  content: "";
  position: absolute;
  left: 44px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}

/* ---------- 当前结论 ---------- */
.findings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.finding-col {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 22px 18px;
}
.finding-col h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}
.finding-col.known { border-top: 2px solid rgba(61, 232, 201, 0.55); }
.finding-col.known h4 { color: var(--teal-glow); }
.finding-col.open { border-top: 2px solid rgba(212, 175, 106, 0.55); }
.finding-col.open h4 { color: var(--gold-bright); }
.finding-col ul { margin: 0; padding-left: 18px; }
.finding-col li { font-size: 13.5px; color: var(--paper-dim); line-height: 1.85; margin-bottom: 10px; }
.finding-col li:last-child { margin-bottom: 0; }
.finding-col.open li::marker { color: var(--gold); }
.finding-col.known li::marker { color: var(--teal-glow); }

/* ---------- 维护记录 ---------- */
.ch-date { white-space: nowrap; font-family: var(--mono); color: var(--gold); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .column-cards { grid-template-columns: 1fr; }
  .findings { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topic-charter { padding: 24px 20px 22px; }
  .charter-brand { font-size: 18px; letter-spacing: 4px; }
  .reading-path li { padding-left: 50px; }
  .reading-path li::before { left: 14px; }
  .reading-path li::after { left: 38px; }
}
