/* ==========================================================================
   GEO 专题页前端样式表
   文件位置：站点 /include/geo_tpl/style.css
   说明：这里的样式会在每次生成/重渲染页面时，被复制合并到
        /zhuanti/assets/geo.css（连同后台「自定义CSS」一起）。
        改完样式后，到后台【页面管理 → 全部重渲染】刷新所有静态页。
   调色：主色 #1a5fd0（蓝）  强调色 #07c160（微信绿）  背景 #f5f6f8
   ========================================================================== */

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.85 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #f5f6f8;
  -webkit-text-size-adjust: 100%;
}

a { color: #1a5fd0; text-decoration: none; }
a:hover { color: #0d47a1; }
img { max-width: 100%; }

/* 与站点头尾的 .auto 完全同参（90% / max 1200px / 无 padding），
   保证正文与头部、底部左右边缘严格对齐 */
.g-wrap { max-width: 1200px; width: 90%; margin: 0 auto; }

/* ==========================================================
   站点头尾 · 基础层
   下面这几条是把主站 /css/style.css 的全局 reset 摘出来，只作用在头尾容器内：
   专题页不加载主站样式表，靠这段自己撑起和主站一致的盒模型、字号、链接色、图片对齐
   ========================================================== */
.head, .menu-bar, .foot,
.head *, .menu-bar *, .foot * { box-sizing: border-box; }

.head, .menu-bar, .foot {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.head ul, .head li, .menu-bar ul, .menu-bar li, .foot ul, .foot li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.head a, .menu-bar a, .foot a {
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}
.head p, .menu-bar p, .foot p { margin: 0; padding: 0; }
.head img, .menu-bar img, .foot img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}
.head h1, .head h2, .head h3, .foot h1, .foot h2, .foot h3 { font-weight: normal; }

/* 内联 SVG 图标（替代主站 iconfont 字体，无需加载字体文件） */
.hd-ico { margin: 2px 6px 0 0; flex-shrink: 0; }
.mb-ico { margin: 2px 8px 0 0; flex-shrink: 0; }
.ft-ic { margin-right: 4px; vertical-align: -2px; }

/* ==========================================================
   站点头部（1:1 复刻 www.canet.com 全站公共头部，类名与主站一致）
   专题页是独立静态页、只加载本文件，这些类名不会和主站 CSS 相互影响
   ========================================================== */
.auto { margin: 0 auto; max-width: 1200px; width: 90%; }

.head {
  height: 80px;
  background: #fff;
  position: sticky;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #efefef;
}
.head .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.head .l, .head .r { display: flex; align-items: center; }
.head .logo img { height: 60px; width: auto; display: block; }
.hd-ad { height: 45px; width: auto; margin-left: 30px; }

.hd-nav { display: flex; gap: 35px; list-style: none; margin: 0; padding: 0; }
.hd-nav li { position: relative; }
.hd-nav li > a {
  font-size: 16px;
  color: #000;
  padding: 0 8px;
  line-height: 40px;
  position: relative;
  display: block;
}
.hd-nav li > a::after {
  content: '';
  width: 0;
  height: 1px;
  background: #007eff;
  transition: all .3s;
  position: absolute;
  left: 50%;
  bottom: 0;
}
.hd-nav li:hover > a { color: #007eff; }
.hd-nav li:hover > a::after { width: 100%; left: 0; }

.hd-sign { margin-left: 45px; }
.hd-sign a {
  color: #fff;
  padding: 0 16px;
  border-radius: 8px;
  height: 38px;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #17b3ff, #2d50ff);
  font-size: 15px;
  white-space: nowrap;
}
.hd-sign a:hover { opacity: .88; }

/* 蓝色次导航（主站为背景图实现，这里用等效的纯 CSS 渐变，不依赖图片） */
.menu-bar {
  background: linear-gradient(90deg, #0092ff, #007eff);
  position: sticky;
  width: 100%;
  left: 0;
  top: 80px;
  z-index: 80;
}
.menu-bar .wrap { height: 55px; display: flex; align-items: center; justify-content: space-between; }
.menu-bar .nav { margin-left: auto; }
.menu-bar .nav .box { display: flex; gap: 45px; }
.menu-bar .nav .lk { font-size: 16px; color: #fff; line-height: 55px; position: relative; white-space: nowrap; }
.menu-bar .nav .lk::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: all .3s;
  border-radius: 3px;
}
.menu-bar .nav .lk:hover::after { width: 60%; margin-left: -30%; }

.menu-bar .menu { position: relative; cursor: pointer; }
.menu-bar .menu .font {
  font-size: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  line-height: 55px;
  white-space: nowrap;
}
.menu-bar .menu-drop {
  background: #fff;
  border-radius: 8px;
  width: 370px;
  padding: 15px;
  position: absolute;
  left: 0;
  top: 55px;
  box-shadow: rgba(0, 0, 0, .3) 0 0 10px;
  display: none;
  z-index: 90;
}
.menu-bar .menu:hover .menu-drop { display: block; }
.menu-bar .menu-drop .lks { display: flex; flex-wrap: wrap; gap: 10px; }
.menu-bar .menu-drop .lk, .menu-bar .menu-drop .lks .cur {
  padding: 0 10px;
  min-width: calc(33.3% - 7px);
  text-align: center;
  border-radius: 18px;
  line-height: 30px;
  font-size: 14px;
  color: #374151;
  box-sizing: border-box;
}
.menu-bar .menu-drop .lks .cur { color: #fff; background: #0083ff; }
.menu-bar .menu-drop .lk:hover { color: #fff; background: #007eff; }

/* ==========================================================
   站点底部（1:1 复刻 www.canet.com 全站深色 footer）
   ========================================================== */
.foot { background: #161c21; color: #a3a7aa; }
.foot a { text-decoration: none; }
.ft-t { padding: 40px 0 25px; display: flex; align-items: center; }
.ft-t .line { width: 1px; height: 150px; background: #323b42; flex-shrink: 0; }
.ft-t .info { width: 22%; }
.ft-t .info .logo img { height: 52px; width: auto; display: block; }
.ft-t .menu {
  width: 28%;
  display: flex;
  flex-wrap: wrap;
  row-gap: 13px;
  justify-content: space-between;
  padding: 0 2%;
  list-style: none;
  margin: 0;
}
.ft-t .menu .lk { width: 46%; text-align: center; }
.ft-t .menu .lk a { color: #fff; font-size: 15px; }
.ft-t .menu .lk a:hover { color: #007eff; }
.ft-t .wxbox { width: 30%; display: flex; padding: 0 3%; justify-content: center; }
.ft-t .wxbox .grp { width: 50%; text-align: center; }
.ft-t .wxbox .grp img {
  width: 80%;
  max-width: 100px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 4px;
}
.ft-t .wxbox .fz { font-size: 13px; margin: 0; }
.ft-t .contact { width: 20%; padding-left: 2%; font-size: 14px; }
.ft-t .contact p { padding: 8px 0; margin: 0; }
.ft-t .contact em, .ft-t .contact a { color: #fff; font-style: normal; }
.ft-t .contact a:hover { color: #007eff; }
.ft-c {
  padding: 18px 0;
  border-top: 1px solid #31363b;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 13px;
}
.ft-c a { color: inherit; }
.ft-c a:hover { color: #007eff; }

/* ---------- 面包屑 ---------- */
.g-crumb { font-size: 13px; color: #8a94a6; padding: 14px 0; }
.g-crumb a { color: #6b7280; }
.g-crumb span { margin: 0 6px; }

/* ---------- 双栏骨架 ---------- */
.g-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
  padding-bottom: 40px;
}

.g-art {
  background: #fff;
  border-radius: 14px;
  padding: 34px 38px 38px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
}

h1 {
  font-size: 29px;
  line-height: 1.42;
  margin: 0 0 14px;
  color: #111827;
  font-weight: 700;
  letter-spacing: -.3px;
}

.g-meta {
  font-size: 13px;
  color: #9aa3b2;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef0f3;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- 文章封面图（SVG 自动生成：标题 + 渐变底色） ---------- */
.g-cover {
  margin: 20px 0 4px;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
}
.g-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 导语 ---------- */
.g-lead {
  margin: 22px 0 6px;
  padding: 18px 22px;
  background: #f7f9fc;
  border-left: 4px solid #1a5fd0;
  border-radius: 0 10px 10px 0;
  color: #374151;
}

/* ---------- 核心要点 ---------- */
.g-kp {
  margin: 24px 0;
  background: #f2f7ff;
  border: 1px solid #dbe8fb;
  border-radius: 12px;
  padding: 18px 22px 14px;
}
.g-kp-t { font-weight: 700; color: #12325c; margin-bottom: 8px; font-size: 17px; }
.g-kp ul { margin: 0; padding-left: 0; list-style: none; }
.g-kp li {
  position: relative;
  padding-left: 24px;
  margin: 7px 0;
  color: #334155;
  font-size: 15px;
}
.g-kp li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 12px;
  height: 7px;
  border-left: 2px solid #1a5fd0;
  border-bottom: 2px solid #1a5fd0;
  transform: rotate(-45deg);
}

/* ---------- 章节 ---------- */
.g-sec { margin: 34px 0 0; }
.g-sec h2 {
  font-size: 22px;
  color: #12325c;
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 5px solid #1a5fd0;
  line-height: 1.5;
  font-weight: 700;
}
.g-sec p { margin: 0 0 14px; color: #374151; }

/* ---------- 条目卡片 ---------- */
.g-item {
  margin: 16px 0;
  padding: 14px 18px;
  background: #fafbfc;
  border: 1px solid #eef0f3;
  border-radius: 10px;
}
.g-item-t { font-weight: 700; color: #1f2d3d; margin-bottom: 5px; font-size: 16px; }
.g-item-d { margin: 0; color: #4b5563; font-size: 15px; }

/* ---------- 实操提醒 ---------- */
.g-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: #fffaf0;
  border: 1px solid #fbe6bd;
  border-radius: 8px;
  color: #8a5a00;
  font-size: 14.5px;
}
.g-note b { color: #a16207; }

/* ---------- 对比表 ---------- */
.g-table {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid #e8eaed;
  border-radius: 10px;
}
.g-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 14.5px;
}
.g-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  color: #12325c;
  background: #f7f9fc;
  border-bottom: 1px solid #e8eaed;
}
.g-table th, .g-table td {
  border-bottom: 1px solid #eef0f3;
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.g-table th { background: #f7f9fc; color: #12325c; font-weight: 700; white-space: nowrap; }
.g-table tr:last-child td { border-bottom: 0; }
.g-table tbody tr:nth-child(even) { background: #fcfdfe; }

/* ---------- FAQ ---------- */
.g-faq { margin: 34px 0 0; }
.g-faq h2 {
  font-size: 22px;
  color: #12325c;
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 5px solid #07c160;
  font-weight: 700;
}
.g-qa { border-bottom: 1px solid #eef0f3; padding: 14px 0; }
.g-qa:last-child { border-bottom: 0; }
.g-q {
  font-weight: 700;
  color: #1f2d3d;
  margin: 0 0 6px;
  font-size: 16.5px;
  display: flex;
  gap: 8px;
}
.g-q i {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #e8f7ee;
  color: #07a352;
  border-radius: 5px;
  font-style: normal;
  font-size: 13px;
  text-align: center;
  line-height: 22px;
  font-weight: 700;
  margin-top: 2px;
}
.g-a { margin: 0 0 0 30px; color: #4b5563; font-size: 15px; }

/* ---------- 结语 ---------- */
.g-concl {
  margin: 32px 0 0;
  padding: 20px 22px;
  background: #f7f9fc;
  border-radius: 10px;
  border: 1px dashed #d5dde8;
}
.g-concl h2 { font-size: 19px; margin: 0 0 8px; color: #12325c; }

/* ---------- 文章页底部：全部分类导航 ---------- */
/* 内页是全站数量最多的页面，底部给蜘蛛通往各分类归档页的出口；
   替代原先不可点击的关键词标签（标签无真实落地页，做链接是负资产） */
.g-cats-foot { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid #eef0f3; }
.g-cats-foot-t { font-weight: 700; color: #12325c; font-size: 15px; margin: 0 0 10px; }
.g-cats-foot-i { display: flex; flex-wrap: wrap; gap: 8px; }
.g-cats-foot-i a,
.g-cats-foot-i span {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.7;
  text-decoration: none;
}
.g-cats-foot-i a { background: #eef4fb; color: #1a5fd0; transition: background .15s; }
.g-cats-foot-i a:hover { background: #dfeafa; color: #0d47a1; }
.g-cats-foot-i span { background: #f7f8fa; color: #b0b8c4; }

/* ---------- 侧边栏 ---------- */
.g-side {
  position: sticky;
  /* 吸顶高度 = 白色头部 80px + 蓝色次导航 55px = 135px，
     设小了滚动时侧栏顶部（二维码卡片）会被吸顶栏盖住 */
  top: 135px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.g-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
}
.g-card-t {
  font-weight: 700;
  color: #12325c;
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f3;
}

/* 扫码加微信卡片 */
.g-qr { cursor: pointer; text-align: center; }
.g-qr img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eef0f3;
  display: block;
  margin: 0 auto 8px;
  background: #fff;
}
.g-qr-tip { font-weight: 700; color: #07a352; font-size: 15px; }
.g-qr-sub { color: #8a94a6; font-size: 12.5px; margin-top: 2px; }
.g-qr-ph {
  width: 170px;
  height: 170px;
  margin: 0 auto 8px;
  border: 1px dashed #cfd6e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b8c4;
  font-size: 13px;
}
.g-qr-ph.big { width: 200px; height: 200px; }

/* 本文目录 */
.g-toc ol { margin: 0; padding-left: 20px; font-size: 14px; color: #4b5563; }
.g-toc li { margin: 7px 0; line-height: 1.5; }
.g-toc a { color: #4b5563; }
.g-toc a:hover { color: #1a5fd0; }

/* 相关专题 */
.g-rel ul { margin: 0; padding: 0; list-style: none; }
.g-rel li {
  padding: 9px 0;
  border-bottom: 1px dashed #eef0f3;
  font-size: 14.5px;
  line-height: 1.55;
}
.g-rel li:last-child { border-bottom: 0; }
.g-rel a { color: #374151; }
.g-rel a:hover { color: #1a5fd0; }

/* ---------- 右下角悬浮扫码按钮 ---------- */
.g-float {
  position: fixed;
  right: 22px;
  bottom: 28px;
  z-index: 80;
  background: #07c160;
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.25;
  box-shadow: 0 6px 16px rgba(7, 193, 96, .32);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- 二维码弹层 ---------- */
.g-mask {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(17, 24, 39, .55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.g-mask.on { display: flex; }
.g-modal {
  background: #fff;
  border-radius: 16px;
  padding: 26px 28px 22px;
  text-align: center;
  position: relative;
  max-width: 320px;
  width: 100%;
}
.g-modal img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 8px auto;
}
.g-modal-x {
  position: absolute;
  right: 12px;
  top: 6px;
  font-size: 26px;
  color: #9aa3b2;
  line-height: 1;
}
.g-modal-t { font-weight: 700; color: #12325c; font-size: 18px; }
.g-modal-d { color: #6b7280; font-size: 13.5px; margin-top: 8px; }
.g-modal-wx {
  margin-top: 10px;
  font-size: 13.5px;
  color: #374151;
  background: #f7f9fc;
  border-radius: 8px;
  padding: 8px;
}

/* ==========================================================================
   移动端适配
   ========================================================================== */

/* ---------- 平板 / 手机横屏：≤900px 双栏转单栏 ---------- */
@media (max-width: 900px) {
  /* .g-wrap 已用 width:90%，小屏自带左右留白，无需再叠 padding */

  /* 站点头部：手机端隐藏白色导航与 25 周年徽标，保留 logo + 登录按钮
     注意：基础层 .head img 的特异性(0,1,1)高于单类选择器(0,1,0)，
     所以这里必须用 .head .hd-ad 提升特异性，否则 display:none 会被覆盖 */
  .head { height: 60px; }
  .head .logo img { height: 42px; }
  .head .hd-ad { display: none; }
  .head .hd-nav { display: none; }
  .hd-sign { margin-left: 0; }
  .hd-sign a { height: 32px; padding: 0 12px; font-size: 13px; }

  /* 蓝色次导航：菜单横向滑动，下拉面板撑满屏宽 */
  .menu-bar { position: static; top: 0; }
  .menu-bar .wrap { height: 46px; overflow: visible; }
  .menu-bar .menu .font { font-size: 16px; line-height: 46px; }
  .menu-bar .menu-drop { width: 320px; max-width: 88vw; top: 46px; }
  .menu-bar .nav { margin-left: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .menu-bar .nav::-webkit-scrollbar { display: none; }
  .menu-bar .nav .box { gap: 22px; }
  .menu-bar .nav .lk { line-height: 46px; font-size: 15px; }

  /* 1fr 必须写成 minmax(0,1fr)：1fr 的隐式最小宽度是 auto，
     会被 .g-table 里 min-width:480px 的表格撑破视口导致整页横向溢出 */
  .g-main { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
  .g-art { padding: 20px 16px 24px; border-radius: 12px; }

  h1 { font-size: 22px; line-height: 1.45; }
  .g-meta { font-size: 12px; gap: 10px; padding-bottom: 14px; }

  .g-lead { padding: 14px 16px; margin: 16px 0 4px; font-size: 15px; }
  .g-kp { padding: 14px 16px 10px; margin: 18px 0; }
  .g-kp li { font-size: 14.5px; }
  .g-sec { margin: 26px 0 0; }
  .g-sec h2 { font-size: 19px; }
  .g-sec p, .g-item-d, .g-a { font-size: 15px; }
  .g-item { padding: 12px 14px; }

  .g-table table { min-width: 480px; font-size: 13.5px; }
  .g-table th, .g-table td { padding: 9px 10px; }

  .g-faq h2 { font-size: 19px; }
  .g-q { font-size: 15.5px; }
  .g-a { margin-left: 0; }

  /* 侧栏下沉，目录提到最前，方便手机上先看目录 */
  .g-side { position: static; }
  .g-toc { order: -1; }

  /* 深色 footer：改纵向堆叠，分隔线隐藏 */
  .ft-t { flex-wrap: wrap; padding: 28px 0 18px; row-gap: 20px; }
  .ft-t .line { display: none; }
  .ft-t .info { width: 100%; display: flex; justify-content: center; }
  .ft-t .menu { width: 100%; }
  .ft-t .wxbox { width: 100%; }
  .ft-t .contact { width: 100%; padding-left: 0; text-align: center; }

  .g-float { width: 50px; height: 50px; right: 14px; bottom: 18px; font-size: 11px; }
  .g-modal img { width: 190px; height: 190px; }
}

/* ---------- 小屏手机：≤480px ---------- */
@media (max-width: 480px) {
  h1 { font-size: 20px; }
  .g-art { padding: 16px 13px 20px; }
  .g-cover { margin: 12px 0 2px; border-radius: 10px; }
}

/* ---------- 分类归档页分页条 ---------- */
.g-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 26px 0 4px;
  padding-top: 18px;
  border-top: 1px solid #eef0f3;
}
.g-pager a {
  display: inline-block;
  min-width: 34px;
  padding: 6px 11px;
  text-align: center;
  border: 1px solid #e3e7ee;
  border-radius: 6px;
  background: #fff;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.4;
}
.g-pager a:hover { border-color: #1a5fd0; color: #1a5fd0; }
.g-pager a.on {
  background: #1a5fd0;
  border-color: #1a5fd0;
  color: #fff;
  font-weight: 600;
}
@media (max-width: 480px) {
  .g-pager { gap: 6px; }
  .g-pager a { min-width: 30px; padding: 5px 9px; font-size: 13px; }
}

/* ---------- 专题中心：分类宫格 ---------- */
/* 首页只承担「分类枢纽」：40 个分类一屏多看全，各类完整列表进 /zhuanti/{slug}/ */
.g-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 0;
}
.g-cat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 16px;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  background: #fafbfc;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
a.g-cat:hover { border-color: #1a5fd0; background: #f5f9ff; }
.g-cat-n { font-size: 15px; font-weight: 600; color: #12325c; line-height: 1.45; }
.g-cat-c { font-size: 12.5px; color: #8a94a6; }
/* 空分类：只出文字不给链接（该分类目录尚未生成，链接必 404） */
.g-cat.off { background: #fbfbfc; border-style: dashed; }
.g-cat.off .g-cat-n { color: #9aa3b2; font-weight: 400; }
.g-cat.off .g-cat-c { color: #c2c7d0; }
.g-cats-tip { margin: 14px 0 0; color: #8a94a6; font-size: 13.5px; line-height: 1.8; }

/* ---------- 侧栏：最新更新（专题中心首页） ---------- */
/* 首页左侧是分类宫格，侧栏只放最新 7 篇，两边不重复分类。
   条数与标题行数是一起定的：单行标题每条约 57px，8 条约 456px，
   配上二维码卡后整体约 800px——1440×900 屏略超视口 40px，滚到页底即可看全；
   1080p 及以上一屏全见。列表本身给了兜底限高，只有矮屏（<700px）才在卡内滚。 */
.g-latest-i {
  max-height: calc(100vh - 360px);
  min-height: 120px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.g-latest-i a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed #f2f4f7;
  text-decoration: none;
}
.g-latest-i a:last-child { border-bottom: 0; }
.g-latest-t {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: #374151;
  /* 单行截断：两行标题会让每条多出 20px，8 条就多 160px，侧栏直接顶出视口 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-latest-i a:hover .g-latest-t { color: #1a5fd0; }
.g-latest-m { display: block; margin-top: 2px; font-size: 11.5px; color: #a2abba; }

/* ---------- 侧栏：分类导航 ---------- */
.g-catnav-i {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
  /* 40 类 × 2 列 ≈ 20 行，加上二维码卡片会超出视口：卡片内滚动，
     否则 sticky 后底部条目会被吸顶栏顶出屏幕、永远看不到 */
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.g-catnav-i a,
.g-catnav-i span {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
  border-bottom: 1px dashed #f2f4f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-catnav-i a { text-decoration: none; }
.g-catnav-i a:hover { color: #1a5fd0; }
.g-catnav-i a.on { color: #1a5fd0; font-weight: 600; }
.g-catnav-i span.off { color: #bfc5cf; }
.g-catnav-i em { font-style: normal; font-size: 11.5px; color: #9aa3b2; margin-left: 4px; }

@media (max-width: 900px) {
  .g-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 移动端侧栏在正文下方，不做吸顶，40 条直接铺开即可 */
  .g-catnav-i { max-height: none; overflow: visible; }
  .g-latest-i { max-height: none; min-height: 0; overflow: visible; }
}
@media (max-width: 480px) {
  .g-cats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .g-cat { padding: 12px 14px; }
}
