/* ============================================================================
 * style.css —— 全站样式
 * ----------------------------------------------------------------------------
 * 组织方式：
 *   01 设计变量（改这里就能换整站配色）
 *   02 基础重置与排版
 *   03 布局容器
 *   04 顶部导航
 *   05 首页
 *   06 列表页
 *   07 详情页
 *   08 通用组件（卡片、标签、封面、提示块…）
 *   09 页脚
 *   10 响应式断点
 * ========================================================================== */


/* ==========================================================================
 * 01 设计变量 —— 改这里就能换整站视觉
 * ========================================================================== */
:root {
  /* 主色：建议保持一个深色主色 + 一个点缀色，不要超过 3 个色相 */
  --navy:      #0F1D40;   /* 主色 · 深蓝，用于导航、标题、按钮 */
  --navy-2:    #1A3A5C;   /* 主色浅阶 */
  --navy-3:    #2C5B84;   /* 主色更浅阶 */
  --gold:      #C9A962;   /* 点缀色 · 金，用于强调、分隔、悬停 */
  --gold-soft: #F5EDDA;   /* 点缀色淡底 */

  /* 中性色 */
  --ink:    #12233F;      /* 主文字 */
  --ink-2:  #4A586B;      /* 次文字 */
  --ink-3:  #8A97A8;      /* 弱文字 / 元信息 */
  --line:   #E3E9F0;      /* 分割线 */
  --line-2: #F0F3F7;      /* 更浅的分割线 */
  --bg:     #F5F7FA;      /* 页面底色 */
  --card:   #FFFFFF;      /* 卡片底色 */

  /* 语义色 */
  --warn-bg:   #FDF6E7;
  --warn-ink:  #8A6D2E;
  --warn-line: #E8D6AC;

  /* 尺寸 */
  --wrap: 1180px;         /* 内容最大宽度 */
  --read: 760px;          /* 正文阅读最大宽度，过长会伤眼 */
  --radius: 12px;
  --radius-s: 8px;

  /* 阴影：只用两级，保持克制 */
  --sh-1: 0 1px 2px rgba(15, 29, 64, .04), 0 4px 14px rgba(15, 29, 64, .05);
  --sh-2: 0 2px 6px rgba(15, 29, 64, .06), 0 12px 32px rgba(15, 29, 64, .09);

  --t: .22s cubic-bezier(.4, 0, .2, 1);
}


/* ==========================================================================
 * 02 基础重置与排版
 * ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color var(--t); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; letter-spacing: .01em; }

/* 可访问性：键盘焦点可见 */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }


/* ==========================================================================
 * 03 布局容器
 * ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.page { min-height: 60vh; padding: 34px 0 72px; }

/* 区块标题：编号 + 标题 + 说明 */
.sec-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.sec-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-s);
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.sec-title { font-size: 22px; color: var(--ink); }
.sec-desc { font-size: 14px; color: var(--ink-3); margin-top: 3px; font-weight: 400; }


/* ==========================================================================
 * 04 顶部导航
 * ========================================================================== */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.hdr-in {
  display: flex; align-items: center; gap: 28px;
  height: 62px; max-width: var(--wrap); margin: 0 auto; padding: 0 22px;
}

/* 品牌 */
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 7px;
  background: linear-gradient(135deg, var(--gold) 0%, #E3B95F 100%);
  color: var(--navy); font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .04em; }

/* 主导航 */
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  display: block; padding: 8px 15px; border-radius: 7px;
  color: #C3CFDF; font-size: 15px; white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.nav a.on { color: var(--navy); background: var(--gold); font-weight: 700; }

/* 占位提示开关 */
.ph-toggle {
  flex-shrink: 0; padding: 7px 13px; border-radius: 7px;
  border: 1px solid rgba(201, 169, 98, .5); color: var(--gold);
  font-size: 13px; white-space: nowrap; transition: all var(--t);
}
.ph-toggle:hover { background: rgba(201, 169, 98, .14); }
.ph-toggle::before { content: "◉ "; }
body.no-ph .ph-toggle::before { content: "○ "; }

/* 移动端菜单按钮 */
.burger { display: none; width: 38px; height: 38px; border-radius: 7px; color: #fff; font-size: 20px; }


/* ==========================================================================
 * 05 首页
 * ========================================================================== */

/* 5.1 Hero 主视觉 */
.hero { background: linear-gradient(150deg, var(--navy) 0%, #16305A 58%, #1F4670 100%); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -90px; top: -90px;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(201, 169, 98, .11);
}
.hero-in { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 62px 22px 58px; }
.hero-kicker {
  display: inline-block; border: 1px solid rgba(201, 169, 98, .6); color: #D9BE82;
  font-size: 13px; letter-spacing: .18em; padding: 5px 14px; border-radius: 4px; margin-bottom: 20px;
}
.hero h1 { font-size: 42px; color: #fff; letter-spacing: .02em; max-width: 660px; }
.hero-tag { margin-top: 16px; font-size: 17px; color: #AFBED2; max-width: 620px; line-height: 1.75; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 9px; font-size: 15px; font-weight: 700;
  transition: all var(--t);
}
.btn-pri { background: var(--gold); color: var(--navy); }
.btn-pri:hover { background: #E0C273; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(201, 169, 98, .3); }
.btn-gho { border: 1px solid rgba(255, 255, 255, .26); color: #fff; }
.btn-gho:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }

/* 5.2 数据条 */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-in { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 24px 18px; border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: none; }
.stat-n { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.stat-l { font-size: 13px; color: var(--ink-3); margin-top: 3px; }

/* 5.3 分类卡片网格 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 16px; }
.cat-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  transition: all var(--t); position: relative; overflow: hidden;
}
.cat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent, var(--navy)); opacity: .85;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }
.cat-ico {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800;
  background: var(--accent, var(--navy)); color: #fff;
}
.cat-name { font-size: 18px; margin-bottom: 7px; }
.cat-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; }
.cat-count { margin-top: 14px; font-size: 13px; color: var(--accent, var(--navy)); font-weight: 700; }

/* 5.4 首页内容列表 */
.feed { display: grid; gap: 14px; }
.feed-item {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; transition: all var(--t);
}
.feed-item:hover { border-color: var(--gold); box-shadow: var(--sh-1); }
.feed-item h3 { font-size: 18px; margin-bottom: 9px; line-height: 1.5; }
.feed-item:hover h3 { color: var(--navy-2); }
.feed-item p { font-size: 14.5px; color: var(--ink-2); line-height: 1.72; }
.feed-meta { text-align: right; font-size: 13px; color: var(--ink-3); white-space: nowrap; }


/* ==========================================================================
 * 06 列表页
 * ========================================================================== */
.list-head { margin-bottom: 26px; }
.list-head h1 { font-size: 28px; margin-bottom: 8px; }
.list-head p { font-size: 15px; color: var(--ink-2); max-width: var(--read); }

/* 筛选条：桌面为标签行，移动端横向滚动 */
.filters { display: flex; gap: 9px; flex-wrap: wrap; margin: 22px 0 26px; }
.filters a {
  padding: 9px 18px; border-radius: 20px; font-size: 14.5px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  transition: all var(--t); white-space: nowrap;
}
.filters a:hover { border-color: var(--navy-3); color: var(--navy); }
.filters a.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.filters a .c { opacity: .6; margin-left: 5px; font-size: 13px; }

/* 搜索框 */
.search { position: relative; max-width: 340px; margin-bottom: 6px; }
.search input {
  width: 100%; padding: 11px 16px 11px 40px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; font-size: 15px; color: var(--ink);
  transition: border-color var(--t);
}
.search input:focus { outline: none; border-color: var(--navy-3); }
.search::before {
  content: "⌕"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-size: 17px;
}

/* 结果提示 */
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; font-size: 14px; color: var(--ink-3); flex-wrap: wrap; }

/* 列表卡片 */
.post-list { display: grid; gap: 14px; }
.post {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; transition: all var(--t);
}
.post:hover { border-color: var(--gold); box-shadow: var(--sh-1); }
.post-top { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; flex-wrap: wrap; }
.post-cat {
  font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 5px;
  background: var(--cat-soft, #EEF2F7); color: var(--cat-accent, var(--navy-2));
}
.post-date { font-size: 13px; color: var(--ink-3); }
.post h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.5; }
.post:hover h3 { color: var(--navy-2); }
.post p { font-size: 14.5px; color: var(--ink-2); line-height: 1.72; }
.post-bot { margin-top: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 空状态 */
.empty { text-align: center; padding: 72px 20px; color: var(--ink-3); }
.empty-ico { font-size: 40px; margin-bottom: 14px; opacity: .5; }
.empty p { font-size: 15px; }


/* ==========================================================================
 * 07 详情页
 * ========================================================================== */
.crumb { font-size: 13.5px; color: var(--ink-3); margin-bottom: 20px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.crumb a:hover { color: var(--navy); }
.crumb .sep { opacity: .45; }

/* 详情页两栏：正文 + 侧边目录 */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 44px; align-items: start; }

.art-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.art-head h1 { font-size: 30px; line-height: 1.42; margin: 14px 0 16px; }
.art-sum {
  font-size: 16px; color: var(--ink-2); line-height: 1.78;
  padding: 16px 20px; background: #fff; border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-s) var(--radius-s) 0; margin-bottom: 18px;
}
.art-meta { display: flex; gap: 18px; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }
.art-meta b { color: var(--ink-2); font-weight: 600; }

/* 正文排版 */
.art-body { max-width: var(--read); font-size: 16.5px; line-height: 1.9; color: #24344D; }
.art-body > * + * { margin-top: 20px; }
.art-body h2 {
  font-size: 21px; color: var(--ink); margin-top: 40px; padding-left: 14px;
  border-left: 4px solid var(--navy); line-height: 1.5;
}
.art-body h3 { font-size: 17.5px; color: var(--ink); margin-top: 30px; }
.art-body ul, .art-body ol { padding-left: 4px; }
.art-body li { position: relative; padding-left: 22px; margin-top: 10px; }
.art-body ul li::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.art-body ol { counter-reset: n; }
.art-body ol li { counter-increment: n; }
.art-body ol li::before {
  content: counter(n); position: absolute; left: 0; top: 3px;
  width: 17px; height: 17px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* 引用块 */
.art-quote {
  background: #fff; border-left: 4px solid var(--navy); border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 22px 26px; font-size: 16px; color: var(--ink-2); line-height: 1.8;
}
.art-quote cite { display: block; margin-top: 12px; font-size: 13.5px; color: var(--ink-3); font-style: normal; }

/* 提示块 */
.art-note {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius-s);
  padding: 18px 22px; font-size: 15px; color: var(--warn-ink); line-height: 1.78;
}
.art-note::before { content: "提示 · "; font-weight: 800; }

/* 表格 */
.art-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.art-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 420px; }
.art-table th {
  background: var(--navy); color: var(--gold); text-align: left;
  padding: 13px 16px; font-weight: 700; white-space: nowrap;
}
.art-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); line-height: 1.65; }
.art-table tr:last-child td { border-bottom: none; }
.art-table tbody tr:nth-child(even) { background: #FAFBFD; }

/* 配图 */
.art-fig { margin-top: 26px; }
.art-fig img { border-radius: var(--radius-s); width: 100%; }
.art-fig figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); text-align: center; line-height: 1.6; }
/* 未填图片路径时的占位外观 */
.art-fig-ph {
  border: 2px dashed var(--line); border-radius: var(--radius-s);
  background: repeating-linear-gradient(45deg, #FAFBFD, #FAFBFD 12px, #F4F7FA 12px, #F4F7FA 24px);
  padding: 46px 24px; text-align: center; color: var(--ink-3); font-size: 14px; line-height: 1.7;
}

/* 侧边目录 */
.side { position: sticky; top: 84px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.side-t { font-size: 13px; font-weight: 800; color: var(--ink-3); letter-spacing: .1em; margin-bottom: 14px; text-transform: uppercase; }
.toc a {
  display: block; font-size: 14px; color: var(--ink-2); padding: 7px 0 7px 12px;
  border-left: 2px solid var(--line); line-height: 1.55; transition: all var(--t);
}
.toc a:hover { color: var(--navy); border-left-color: var(--gold); }
.toc a.on { color: var(--navy); font-weight: 700; border-left-color: var(--navy); }

/* 上一/下一条 */
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.art-nav a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 20px; transition: all var(--t); }
.art-nav a:hover { border-color: var(--gold); }
.art-nav .lb { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.art-nav .tt { font-size: 15px; font-weight: 600; line-height: 1.5; }


/* ==========================================================================
 * 08 通用组件
 * ========================================================================== */

/* 标签 */
.tags { display: flex; gap: 7px; flex-wrap: wrap; }
.tag {
  font-size: 12.5px; padding: 3px 10px; border-radius: 5px;
  background: #EEF2F7; color: #5A6B80; transition: all var(--t);
}
a.tag:hover { background: var(--navy); color: #fff; }

/* 封面 */
.cover {
  border-radius: var(--radius-s); overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--c1, var(--navy)) 0%, var(--c2, var(--navy-3)) 100%);
  display: flex; align-items: center; justify-content: center;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover span { color: rgba(255, 255, 255, .9); font-size: 26px; font-weight: 800; letter-spacing: .1em; }
.cover-s { width: 84px; height: 62px; flex-shrink: 0; }
.cover-l { width: 100%; aspect-ratio: 16 / 7; margin-bottom: 26px; }
.cover-l span { font-size: 40px; }

/* 占位提示：方括号文字会被自动套上这个样式 */
.ph {
  background: var(--warn-bg); border-bottom: 1px dashed var(--warn-line);
  color: var(--warn-ink); border-radius: 2px; padding: 0 1px;
}
body.no-ph .ph { background: transparent; border-bottom-color: transparent; color: inherit; }

/* 返回顶部 */
.top-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-size: 17px;
  box-shadow: var(--sh-2); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--t);
}
.top-btn.on { opacity: 1; pointer-events: auto; }


/* ==========================================================================
 * 09 页脚
 * ========================================================================== */
.ftr { background: var(--navy); color: #93A6BF; padding: 42px 0 30px; margin-top: 20px; }
.ftr-in { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.ftr-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ftr-name { color: var(--gold); font-size: 18px; font-weight: 800; letter-spacing: .06em; margin-bottom: 12px; }
.ftr p { font-size: 13.5px; line-height: 1.85; }
.ftr h4 { color: #C9D5E5; font-size: 13px; letter-spacing: .1em; margin-bottom: 12px; }
.ftr li { margin-bottom: 8px; }
.ftr li a { font-size: 13.5px; }
.ftr li a:hover { color: var(--gold); }

/* 公众号二维码 */
.ftr-qr { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.ftr-qr img {
  width: 96px; height: 96px; border-radius: 9px; flex-shrink: 0;
  background: #fff; padding: 7px;                      /* 深色底上留白，保证可扫 */
}
.ftr-qr-t b { display: block; color: #DCE5F0; font-size: 14.5px; font-weight: 700; margin-bottom: 5px; letter-spacing: .02em; }
.ftr-qr-t span { font-size: 12.5px; color: #7E90A8; line-height: 1.5; }
.ftr-bot { padding-top: 20px; font-size: 12.5px; color: #6F829B; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }


/* ==========================================================================
 * 10 响应式断点
 * ========================================================================== */

/* 平板：收起侧栏目录 */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; gap: 0; }
  .side { position: static; margin-top: 34px; }
  .side-box { margin-bottom: 14px; }
  .art-body { max-width: 100%; }
  .toc { display: flex; gap: 10px; flex-wrap: wrap; }
  .toc a { border-left: none; border-bottom: 2px solid var(--line); padding: 6px 10px; border-radius: 6px 6px 0 0; }
  .toc a.on { border-bottom-color: var(--navy); background: var(--line-2); }
  .ftr-top { grid-template-columns: 1fr 1fr; }
}

/* 手机 */
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .page { padding: 22px 0 56px; }

  /* 导航折叠 */
  .burger { display: flex; align-items: center; justify-content: center; margin-left: auto; }
  .brand-name { font-size: 15.5px; }
  .nav {
    position: fixed; left: 0; right: 0; top: 62px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--navy); padding: 10px 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .22);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform var(--t), opacity var(--t);
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 14px; }
  .ph-toggle { display: none; }        /* 手机上隐藏，避免挤压 */

  /* Hero */
  .hero-in { padding: 42px 16px 40px; }
  .hero h1 { font-size: 29px; }
  .hero-tag { font-size: 15px; }
  .hero-cta .btn { flex: 1; justify-content: center; }

  /* 数据条 2×2 */
  .stats-in { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .stat { padding: 18px 12px; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .stat-n { font-size: 22px; }

  /* 分类网格单列压缩 */
  .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-card { padding: 20px 18px; }

  /* 列表项改为上下结构 */
  .feed-item { grid-template-columns: 1fr; gap: 12px; padding: 20px 18px; }
  .feed-meta { text-align: left; }
  .post { padding: 20px 18px; }
  .post h3 { font-size: 17px; }

  /* 筛选条横向滚动 */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 18px 0 22px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .search { max-width: 100%; }

  /* 详情页 */
  .art-head h1 { font-size: 23px; }
  .art-sum { font-size: 15px; padding: 14px 16px; }
  .art-body { font-size: 16px; line-height: 1.88; }
  .art-body h2 { font-size: 19px; margin-top: 32px; }
  .side { margin-top: 26px; }
  .art-nav { grid-template-columns: 1fr; }
  .cover-l span { font-size: 28px; }

  /* 页脚 */
  .ftr { padding: 34px 0 24px; }
  .ftr-top { grid-template-columns: 1fr; gap: 24px; }
  .top-btn { right: 16px; bottom: 16px; width: 38px; height: 38px; }
}

/* 超小屏微调 */
@media (max-width: 380px) {
  .hero h1 { font-size: 25px; }
  .sec-title { font-size: 19px; }
}


/* ==========================================================================
 * 公众号引导（第二批新增）
 * --------------------------------------------------------------------------
 * ① .gzh-btn   顶部导航里的「关注公众号」按钮
 * ② .gzh-pop   点按钮弹出的二维码浮层
 * ③ .gzh-guide 详情页读完文章后的引导卡
 * ========================================================================== */

/* ① 顶部按钮 */
.gzh-btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--gold);
  border: none;
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, transform .18s;
}
.gzh-btn:hover { background: #B8944B; transform: translateY(-1px); }

/* ② 二维码浮层 */
.gzh-pop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 29, 64, .55);
  padding: 24px;
}
.gzh-pop.on { display: flex; }
body.modal-open { overflow: hidden; }

.gzh-pop-box {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 34px 26px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(15, 29, 64, .28);
  max-width: 300px;
  animation: gzhPopIn .2s ease-out;
}
@keyframes gzhPopIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.gzh-pop-box img {
  display: block;
  margin: 0 auto 14px;
  border-radius: var(--radius-s);
}
.gzh-pop-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-2);
  letter-spacing: .02em;
}
.gzh-pop-tip {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.gzh-pop-x {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.gzh-pop-x:hover { background: var(--line-2); color: var(--ink); }

/* ③ 详情页读完引导卡 */
.gzh-guide {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.gzh-guide img { flex: 0 0 auto; border-radius: var(--radius-s); }
.gzh-guide-t b {
  display: block;
  font-size: 15px;
  color: var(--navy-2);
  margin-bottom: 5px;
}
.gzh-guide-t p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.gzh-guide-t em {
  font-style: normal;
  font-weight: 600;
  color: var(--navy-2);
}

@media (max-width: 560px) {
  .gzh-guide { flex-direction: column; align-items: flex-start; }
  .gzh-btn { padding: 6px 12px; font-size: 13px; }
}


/* ==========================================================================
 * 组合筛选：时间范围 + 标签（第二批新增）
 * ========================================================================== */

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.chips:empty { display: none; }

.chips-lb {
  font-size: 13px;
  color: var(--ink-3);
  margin-right: 2px;
}

.chips a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
  transition: all .16s;
}
.chips a:hover {
  border-color: var(--gold);
  color: var(--navy-2);
}
.chips a.on {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: #fff;
}
.chips a .c {
  font-size: 11.5px;
  opacity: .62;
}

/* 结果条里的一键清除 */
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.reset {
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all .16s;
}
.reset:hover { border-color: var(--gold); color: var(--navy-2); }


/* ==========================================================================
 * 专题卡片（第二批新增）
 * ========================================================================== */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.topic-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent, var(--navy-2));
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  text-decoration: none;
  transition: box-shadow .18s, transform .18s;
}
.topic-card:hover {
  box-shadow: 0 8px 24px rgba(15, 29, 64, .10);
  transform: translateY(-2px);
}

.topic-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.topic-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent, var(--navy-2));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.topic-n { font-size: 12.5px; color: var(--ink-3); }

.topic-name {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--navy-2);
  margin-bottom: 8px;
}
.topic-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 14px;
  min-height: 46px;
}
.topic-go {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 560px) {
  .topic-grid { grid-template-columns: 1fr; }
  .topic-desc { min-height: 0; }
}


/* ==========================================================================
 * 备案号链接（页脚，工信部要求可点击跳转 beian.miit.gov.cn）
 * ========================================================================== */

.ftr-bot a.filing {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s, border-color .16s;
}
.ftr-bot a.filing:hover {
  color: var(--navy-2);
  border-bottom-color: var(--gold);
}
