@charset "UTF-8";
/* 无限云溯 · 新闻资讯升级版样式
   新文件名，不覆盖 /themes/dorawite/ 下任何既有资源。
   色板与栅格依据《内容栏目与文章页升级要求说明书》5.8 / E.4。 */

:root {
  --c-ink: #0B1B2E;
  --c-blue: #1B66C9;
  --c-blue-soft: #E8F1FD;
  --c-bg: #F6F8FB;
  --c-card: #FFFFFF;
  --c-border: #E2E8F0;
  --c-title: #0E1E33;
  --c-body: #33445C;
  --c-muted: #52627A;
  --c-weak: #8A97A9;
  --c-on-dark: #A9BCD2;
  --c-on-dark-2: #D6E4F5;
  --c-on-dark-3: #6FA5E8;
  --wrap: 1240px;
  --radius: 6px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  --font-num: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-body);
  font-family: var(--font); font-size: 15px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-blue); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { color: var(--c-title); margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: calc(100% - 200px); max-width: var(--wrap); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--c-blue); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 16px; top: 8px; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 4px; padding: 9px 18px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4;
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
button.btn { -webkit-appearance: none; appearance: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.btn-primary:hover { background: #14549f; border-color: #14549f; color: #fff; }
.btn-outline { background: #fff; border-color: var(--c-border); color: var(--c-title); }
.btn-outline:hover { border-color: var(--c-blue); color: var(--c-blue); }
.btn-outline-light { background: transparent; border-color: rgba(214,228,245,.55); color: var(--c-on-dark-2); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-ghost-light { background: transparent; border-color: transparent; color: var(--c-on-dark-3); }
.btn-ghost-light:hover { color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 8px; }

/* ---------- 顶部导航 ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 60; }
.header-inner { display: flex; align-items: center; height: 68px; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-title); flex: none; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); gap: 3px; }
.brand-mark i { width: 5px; height: 5px; border-radius: 50%; background: var(--c-blue); display: block; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { background: #7FB0EA; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 16px; letter-spacing: .04em; }
.brand-text small { font: 8px/1.4 var(--font-num); letter-spacing: .16em; color: var(--c-weak); }
/* 全站左上角 LOGO：图片地址与高度由后台配置注入（--brand-logo-h），
   等比完整显示，不放大、不裁切；窄屏按 84% 缩放，仍保持不变形。 */
.brand--logo { gap: 0; }
.brand-logo { display: block; width: auto; height: var(--brand-logo-h, 36px); max-width: 56vw; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 30px; flex: 1; }
.nav-link { color: var(--c-muted); font-size: 14px; padding: 22px 0; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--c-blue); }
.nav-link.is-active { color: var(--c-blue); font-weight: 600; border-bottom-color: var(--c-blue); }
.header-cta { flex: none; }

/* ---------- 阅读进度 ---------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 100; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--c-blue); transition: width .1s linear; }

/* ---------- 深色报头 ---------- */
.hero { position: relative; background: var(--c-ink); color: #fff; overflow: hidden; padding: 52px 0 46px; }
.hero-dots { position: absolute; right: max(100px, calc((100vw - 1240px) / 2)); top: 34px; width: 300px; opacity: .85; }
.hero-dots .dot-matrix { width: 100%; height: auto; }
.hero-inner { position: relative; z-index: 1; }
.hero-kicker { color: var(--c-on-dark); font-size: 12px; letter-spacing: .14em; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: 46px; letter-spacing: .02em; margin-bottom: 14px; }
.hero-sub { color: var(--c-on-dark-2); font-size: 15px; max-width: 620px; line-height: 1.8; }
.hero-meta { color: var(--c-on-dark); font-size: 12px; margin-top: 16px; }
.hero-search { display: flex; max-width: 640px; margin-top: 26px; background: #fff; border-radius: 4px; padding: 4px; }
.hero-search input { flex: 1; border: 0; outline: 0; padding: 10px 14px; color: var(--c-title); background: transparent; min-width: 0; }
.hero-search .btn { border-radius: 3px; padding: 10px 30px; }
.hero-hot { margin-top: 14px; font-size: 12px; color: var(--c-on-dark); }
.hero-hot a { color: var(--c-on-dark-2); margin-right: 12px; }
.hero-hot a:hover { color: #fff; text-decoration: underline; }

/* ---------- 筛选条 ---------- */
.filter-bar { background: #fff; border-bottom: 1px solid var(--c-border); }
.filter-inner { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 20px; }
.filter-list { display: flex; gap: 30px; flex-wrap: wrap; }
.filter-item { color: var(--c-muted); font-size: 14px; padding: 18px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.filter-item:hover { color: var(--c-blue); }
.filter-item.is-active { color: var(--c-blue); font-weight: 600; border-bottom-color: var(--c-blue); }
.filter-sort { color: var(--c-weak); font-size: 12px; white-space: nowrap; }
.sort-sep { margin: 0 8px; }

/* ---------- 通用区块 ---------- */
.section { padding: 42px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.section-head h2 { font-size: 20px; }
.section-more, .section-note { color: var(--c-weak); font-size: 12px; }
.section-more:hover { color: var(--c-blue); }
.section-lead { color: var(--c-muted); font-size: 13px; margin: -8px 0 20px; }
.section-featured { background: var(--c-bg); padding-top: 34px; padding-bottom: 34px; }
.section-topics { background: #fff; border-bottom: 1px solid var(--c-border); }
/* 主题卡点击后直接定位到下方主题结果列表：预留吸顶导航高度，标题不被遮挡 */
#latestHeading { scroll-margin-top: 92px; }
.section-latest { background: #fff; }
.badge { display: inline-flex; align-items: center; border-radius: 3px; padding: 2px 8px; font-size: 11px; font-weight: 600; line-height: 1.7; }
.badge-cate { background: var(--c-blue-soft); color: var(--c-blue); }
.badge-top { background: var(--c-blue); color: #fff; }
.tag { display: inline-block; background: #F1F5FA; color: var(--c-muted); border-radius: 3px; padding: 2px 9px; font-size: 11px; margin: 0 6px 6px 0; }
.tag-link:hover { background: var(--c-blue-soft); color: var(--c-blue); }
.dot-sep { margin: 0 8px; color: var(--c-weak); }

/* ---------- L1 置顶大卡 ---------- */
.featured-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.featured-link { display: grid; grid-template-columns: 520px 1fr; gap: 0; color: inherit; }
/* 与详情页顶图同款：缩略图按原始尺寸完整居中，两侧用同图的模糊氛围底填充，不放大、不裁切 */
.featured-cover { position: relative; display: flex; align-items: center; justify-content: center; height: 330px; padding: 18px; box-sizing: border-box; overflow: hidden; background: var(--c-ink); }
.featured-img { position: relative; display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center; }
.featured-body { display: block; padding: 24px 26px 20px; min-width: 0; }
.featured-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--c-weak); margin-bottom: 14px; }
.featured-date { color: var(--c-weak); }
.featured-title { display: block; color: var(--c-title); font-size: 25px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.featured-desc { display: block; color: var(--c-muted); font-size: 14px; line-height: 1.8; margin-bottom: 14px; }
.featured-tags { display: block; margin-bottom: 8px; }
.featured-meta { display: block; }
.meta-line { display: inline-flex; align-items: center; color: var(--c-weak); font-size: 12px; gap: 8px; }
.meta-line i { width: 3px; height: 3px; border-radius: 50%; background: var(--c-weak); display: inline-block; }
.featured-cta { margin-top: 18px; }
.featured-share { display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--c-border); padding: 10px 22px; font-size: 12px; color: var(--c-weak); }

/* 分享图标 */
.share-group { display: inline-flex; gap: 4px; }
.share-btn { width: 28px; height: 28px; padding: 5px; border: 0; background: transparent; color: var(--c-muted); cursor: pointer; border-radius: 3px; }
.share-btn:hover { background: var(--c-blue-soft); color: var(--c-blue); }
.share-btn svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 主题支柱 ---------- */
.topic-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.35fr; gap: 14px; }
.topic-card { position: relative; display: block; border: 1px solid var(--c-border); border-radius: var(--radius); background: #FBFCFE; padding: 18px 18px 20px; min-height: 132px; color: var(--c-body); transition: border-color .15s, background .15s; }
.topic-card:hover { border-color: var(--c-blue); background: #F5F9FF; }
.topic-no { display: block; font: 600 12px/1 var(--font-num); color: var(--c-blue); margin-bottom: 10px; }
.topic-name { display: block; color: var(--c-title); font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.topic-desc { display: block; color: var(--c-muted); font-size: 12px; line-height: 1.6; }
.topic-count { display: block; margin-top: 10px; color: var(--c-weak); font-size: 11px; }
.topic-arrow { position: absolute; right: 16px; top: 18px; color: var(--c-blue); font-size: 18px; }

/* ---------- 列表与侧栏 ---------- */
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.list-main { min-width: 0; }
.card-l2 { display: grid; grid-template-columns: 168px minmax(0, 1fr) 24px; gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; color: inherit;
  transition: border-color .15s, box-shadow .15s; }
.card-l2:hover { border-color: #B9D1F0; box-shadow: 0 2px 10px rgba(27,102,201,.07); }
.card-thumb { display: block; width: 168px; height: 120px; overflow: hidden; border-radius: 4px; background: #E9EEF5; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card-body { display: block; min-width: 0; }
.card-eyebrow { display: flex; align-items: center; font-size: 12px; color: var(--c-weak); margin-bottom: 8px; }
.card-cate { color: var(--c-blue); font-weight: 600; margin-right: 10px; }
/* 查看次数：与原系统一致的眼睛图标 + 数字，内联 SVG，无外部图片依赖 */
.view-count { display: inline-flex; align-items: center; gap: 4px; color: var(--c-weak); white-space: nowrap; }
.view-count svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.view-count .view-num { font-variant-numeric: tabular-nums; }
.card-views { margin-left: 12px; }
.card-title { display: block; color: var(--c-title); font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.card-desc { display: block; color: var(--c-muted); font-size: 13px; line-height: 1.7; }
.card-tags { display: block; margin-top: 8px; }
.card-arrow { color: var(--c-blue); font-size: 18px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--c-muted); background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.empty-state .btn { margin-top: 16px; }
.list-sidebar { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 18px; }
.side-card h3 { font-size: 15px; margin-bottom: 6px; }
.side-note { color: var(--c-weak); font-size: 12px; margin-bottom: 14px; }
.hot-list li { border-bottom: 1px dashed var(--c-border); padding: 9px 0; }
.hot-list li:last-child { border-bottom: 0; }
.hot-list a { display: flex; gap: 10px; color: var(--c-body); font-size: 13px; line-height: 1.6; }
.hot-list a:hover { color: var(--c-blue); }
.hot-no { font: 600 12px/1.6 var(--font-num); color: var(--c-blue); flex: none; }
.side-card-dark { background: var(--c-ink); border-color: var(--c-ink); }
.side-card-dark h3 { color: #fff; }
.side-card-dark .side-note { color: var(--c-on-dark); }
.subscribe-form input { width: 100%; border: 1px solid rgba(214,228,245,.35); background: #fff; border-radius: 3px; padding: 9px 10px; margin-bottom: 8px; color: var(--c-title); }
.subscribe-form .btn { width: 100%; }
.subscribe-form .btn:disabled { opacity: .65; cursor: wait; }
/* Honeypot：离屏隐藏而非 display:none，避免自动填表工具直接跳过该字段 */
.subscribe-form .hp-wrap { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.subscribe-form .hp-wrap input { width: 1px; height: 1px; }
.sub-feedback { margin: 8px 0 0; color: var(--c-on-dark); font-size: 12px; line-height: 1.6; }
.sub-feedback:empty { display: none; }
.sub-feedback.is-ok { color: #8FE0B8; }
.sub-feedback.is-error { color: #FFC4BD; }
/* 资料下载：管理员验证门。前台只显示说明与唯一入口，不列清单、不暴露任何文件地址 */
.side-card-locked { background: #F8FAFD; }
.side-card-locked h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lock-badge { flex: none; font-size: 11px; font-weight: 400; color: var(--c-blue); background: rgba(27, 102, 201, .09); border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
.side-card-locked .side-note { margin-bottom: 14px; }
.btn-lock { width: 100%; border-color: var(--c-blue); color: var(--c-blue); background: #fff; }
.btn-lock:hover { background: var(--c-blue); color: #fff; }

/* ---------- 分页 ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 22px 0 6px; }
.page-link { min-width: 32px; text-align: center; padding: 6px 10px; border-radius: 3px; color: var(--c-blue); font-size: 13px; border: 1px solid transparent; }
.page-link:hover { border-color: var(--c-blue); }
.page-link.is-current { background: var(--c-blue); color: #fff; }
.page-ellipsis { color: var(--c-weak); padding: 0 4px; }

/* ---------- 行动区与页脚 ---------- */
.action-band { background: var(--c-ink); padding: 38px 0; }
.action-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.action-band h2 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.action-band p { color: var(--c-on-dark); font-size: 13px; }
.action-buttons { display: flex; gap: 10px; flex: none; }
.site-footer { background: #fff; border-top: 1px solid var(--c-border); padding: 34px 0 18px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer-brand strong { color: var(--c-title); font-size: 15px; }
.footer-brand p { color: var(--c-weak); font-size: 12px; margin-top: 6px; }
.footer-links { display: flex; gap: 26px; align-items: flex-start; }
.footer-links a { color: var(--c-muted); font-size: 13px; }
.footer-links a:hover { color: var(--c-blue); }
.footer-bottom { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--c-border); color: var(--c-weak); font-size: 12px; }
.footer-compliance { text-align: center; font-size: 12px; line-height: 1.9; }
.footer-compliance a { color: var(--c-weak); text-decoration: none; }
.footer-compliance a:hover { color: var(--c-blue); text-decoration: underline; }
.footer-compliance .police-line { white-space: nowrap; }
/* 覆盖全局 img{display:block}，让公安徽标与备案号保持在同一行 */
.footer-compliance img { display: inline-block; width: 16px; height: 16px; vertical-align: middle; margin: 0 5px 0 0; border: 0; }

/* ---------- 文章详情 ---------- */
.detail { padding: 20px 0 60px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--c-weak); padding: 10px 0 22px; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-blue); }
.breadcrumb [aria-current] { color: var(--c-title); }
.crumb-sep { color: #C3CDD9; }
.detail-head { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 30px 34px 24px; }
.detail-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--c-weak); font-size: 12px; margin-bottom: 16px; }
.detail-head h1 { font-size: 34px; line-height: 1.4; margin-bottom: 12px; }
.detail-subtitle { color: var(--c-muted); font-size: 15px; line-height: 1.8; margin-bottom: 22px; }
.detail-byline { display: flex; align-items: center; gap: 10px; color: var(--c-weak); font-size: 12px; border-top: 1px solid var(--c-border); padding-top: 16px; }
.author-mark { width: 24px; height: 24px; border-radius: 3px; flex: none;
  background-image: radial-gradient(circle, var(--c-blue) 1.4px, transparent 1.6px); background-size: 6px 6px; border: 1px solid var(--c-border); }
.author-name { color: var(--c-title); font-weight: 600; }
.byline-sep { color: #C3CDD9; }
.detail-share { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--c-weak); }
.detail-cover { margin: 20px 0 26px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.cover-stage { position: relative; display: flex; align-items: center; justify-content: center; height: 420px; padding: 18px; box-sizing: border-box; overflow: hidden; background: var(--c-ink); }
.cover-bg, .featured-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: blur(30px) brightness(.55) saturate(1.1); transform: scale(1.15); pointer-events: none; }
.cover-img { position: relative; display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center; }
.detail-cover figcaption { padding: 10px 16px; color: var(--c-weak); font-size: 12px; }

.detail-grid { display: grid; grid-template-columns: 216px minmax(0, 720px) 208px; gap: 48px; align-items: start; }
.toc-inner { position: sticky; top: 88px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 18px 14px; }
.toc-title { font-size: 14px; margin-bottom: 12px; }
.toc-list { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; }
.toc-item { display: flex; gap: 8px; padding: 5px 6px; border-radius: 3px; color: var(--c-muted); font-size: 12px; line-height: 1.6; }
.toc-item:hover { background: #F1F6FD; color: var(--c-blue); }
.toc-item.is-active { background: var(--c-blue-soft); color: var(--c-blue); font-weight: 600; }
.toc-no { font: 600 11px/1.6 var(--font-num); color: var(--c-blue); flex: none; }
.toc-progress { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--c-border); color: var(--c-weak); font-size: 11px; }
.toc-empty { color: var(--c-weak); font-size: 12px; }
.toc-progress span { color: var(--c-blue); font-weight: 600; }

.detail-body { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 30px 34px; min-width: 0; overflow-wrap: break-word; }
.detail-body h2 { font-size: 21px; margin: 34px 0 16px; }
/* 目录锚点统一预留 sticky 顶栏高度（.site-header 内容 68px + 1px 边框）+ 23px 呼吸位。
   锚点既可能是 <h2>（说明书标准分节），也可能是 <p id="section-XX">（历史加粗小标题
   扩展识别后的落点）；早期只给 h2 补偿，导致点目录时 <p> 顶被对齐到视口 0、
   开头约两行被顶栏盖住。scroll-margin-top 同时作用于 JS 的 scrollIntoView()
   与浏览器原生 #hash 跳转（直接粘贴带片段的 URL / 刷新页面）。 */
.detail-body [id^="section-"] { scroll-margin-top: 92px; }
.detail-body h2:first-child { margin-top: 0; }
.detail-body h3 { font-size: 17px; margin: 26px 0 12px; }
.detail-body p { color: var(--c-body); font-size: 15px; line-height: 1.95; margin: 0 0 16px; }
.detail-body ul, .detail-body ol { padding-left: 22px; margin: 0 0 18px; list-style: disc; }
.detail-body ol { list-style: decimal; }
.detail-body li { margin-bottom: 8px; line-height: 1.9; }
.detail-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.detail-body th, .detail-body td { border: 1px solid var(--c-border); padding: 9px 12px; text-align: left; }
.detail-body th { background: #F4F7FB; color: var(--c-title); }
.detail-body blockquote { margin: 18px 0; padding: 14px 18px; background: #F2F7FE; border-left: 3px solid var(--c-blue); color: var(--c-title); }
.detail-body img { max-width: 100%; height: auto; margin: 12px 0; }
.detail-body a { text-decoration: underline; }
.article-tags { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--c-border); font-size: 12px; color: var(--c-weak); }
.article-tags > span { margin-right: 10px; }

.detail-tools { display: flex; flex-direction: column; gap: 14px; }
.tool-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px; }
.tool-card h3 { font-size: 14px; margin-bottom: 10px; }
.tool-note { color: var(--c-weak); font-size: 11px; line-height: 1.7; margin-bottom: 8px; }
.tool-topic { color: var(--c-blue); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.tool-link { font-size: 12px; }
.permalink { width: 100%; border: 1px solid var(--c-border); border-radius: 3px; padding: 7px 8px; color: var(--c-muted); font-size: 11px; background: #FAFCFF; }
.tool-card-dark { background: var(--c-ink); border-color: var(--c-ink); }
.tool-card-dark h3 { color: #fff; }
.tool-card-dark .tool-note { color: var(--c-on-dark); }

.share-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 18px 24px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.share-bar p { color: var(--c-title); font-weight: 600; }
.share-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 30px 34px; background: var(--c-ink); border-radius: var(--radius); }
.cta-text h2 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.cta-text p { color: var(--c-on-dark); font-size: 13px; }
.cta-buttons { display: flex; gap: 10px; flex: none; flex-wrap: wrap; }
.section-related { margin-top: 44px; }
.related-grid { display: grid; grid-template-columns: 700fr 524fr; gap: 16px; }
.related-card { display: block; position: relative; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px; min-height: 130px; }
.related-card:hover { border-color: var(--c-blue); }
.related-eyebrow { display: block; color: var(--c-weak); font-size: 12px; margin-bottom: 12px; }
.related-title { display: block; color: var(--c-title); font-size: 17px; font-weight: 700; line-height: 1.6; padding-right: 24px; }
.related-arrow { position: absolute; right: 20px; bottom: 18px; color: var(--c-blue); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pn-item { display: block; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px 20px; }
.pn-item:hover { border-color: var(--c-blue); }
.pn-item span { display: block; color: var(--c-weak); font-size: 12px; margin-bottom: 6px; }
.pn-item strong { display: block; color: var(--c-title); font-size: 14px; line-height: 1.6; }
.pn-right { text-align: right; }
.pn-item.is-empty { background: transparent; border-color: transparent; }

/* ---------- 站点地图 ---------- */
.sitemap-list { columns: 2; padding-left: 22px; list-style: decimal; }
.sitemap-list li { break-inside: avoid; margin-bottom: 6px; font-size: 13px; }

/* ---------- 分享提示 / 二维码弹层 ---------- */
.share-toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 12px); background: var(--c-ink); color: #fff;
  padding: 10px 20px; border-radius: 4px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 150; }
.share-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.qr-modal { position: fixed; inset: 0; z-index: 160; display: flex; align-items: center; justify-content: center; }
.qr-modal[hidden] { display: none; }
.qr-modal-mask { position: absolute; inset: 0; background: rgba(11,27,46,.6); }
.qr-modal-box { position: relative; background: #fff; border-radius: var(--radius); padding: 26px 30px; text-align: center; max-width: 340px; width: calc(100% - 40px); }
.qr-modal-box h3 { font-size: 16px; margin-bottom: 16px; }
.qr-canvas { display: flex; justify-content: center; margin-bottom: 12px; }
.qr-canvas svg { width: 220px; height: 220px; }
.qr-url { color: var(--c-weak); font-size: 11px; word-break: break-all; margin-bottom: 16px; }

/* ---------- 微信加好友弹层（图片 / 文案均由后台 9091 /manage/cta 配置） ---------- */
.wechat-modal { position: fixed; inset: 0; z-index: 170; display: flex; align-items: center; justify-content: center; padding: 20px; }
.wechat-modal[hidden] { display: none; }
.wechat-modal-mask { position: absolute; inset: 0; background: rgba(11,27,46,.66); }
.wechat-modal-box { position: relative; background: #fff; border-radius: var(--radius); padding: 24px 28px 22px; text-align: center; max-width: 400px; width: calc(100% - 40px); max-height: calc(100vh - 40px); overflow-y: auto; box-shadow: 0 18px 60px rgba(11,27,46,.28); }
.wechat-modal-box h3 { font-size: 17px; margin: 0 0 14px; color: var(--c-title); }
.wechat-modal-x { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--c-weak); cursor: pointer; padding: 4px 8px; }
.wechat-modal-x:hover { color: var(--c-blue); }
.wechat-modal-img { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto 12px; border: 1px solid var(--c-border); border-radius: 8px; }
.wechat-modal-name { font-size: 14px; font-weight: 600; margin: 0 0 6px; color: var(--c-title); }
.wechat-modal-note { font-size: 13px; color: var(--c-weak); line-height: 1.7; margin: 0 0 12px; }
.wechat-modal-full { display: inline-block; font-size: 12px; color: var(--c-blue); margin-bottom: 16px; }
.wechat-modal-box .btn { margin-top: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .wrap { width: calc(100% - 80px); }
  .hero-dots { right: 40px; opacity: .5; }
  .featured-link { grid-template-columns: 420px 1fr; }
  .detail-grid { grid-template-columns: 190px minmax(0, 1fr) 190px; gap: 24px; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .main-nav { gap: 16px; }
  .nav-link { font-size: 13px; }
  .featured-link { grid-template-columns: 340px 1fr; }
  .featured-cover { height: 280px; }
  .list-layout { grid-template-columns: 1fr; }
  .list-sidebar { flex-direction: row; flex-wrap: wrap; }
  .side-card { flex: 1 1 260px; }
  .detail-grid { grid-template-columns: 1fr; }
  .toc-inner { position: static; }
  .toc-list { flex-direction: row; flex-wrap: wrap; max-height: none; }
  .detail-tools { flex-direction: row; flex-wrap: wrap; }
  .tool-card { flex: 1 1 220px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { height: auto; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; gap: 18px; }
  .nav-link { padding: 8px 0; }
  .brand-logo { height: calc(var(--brand-logo-h, 36px) * .84); }
  .header-cta { margin-left: auto; }
  .hero { padding: 34px 0; }
  .hero h1 { font-size: 32px; }
  .hero-dots { display: none; }
  .filter-inner { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0; }
  .filter-list { gap: 18px; }
  .filter-item { padding: 10px 0; }
  .featured-link { grid-template-columns: 1fr; }
  .featured-cover { height: 220px; padding: 10px; }
  .featured-title { font-size: 21px; }
  .topic-grid, .related-grid, .prev-next { grid-template-columns: 1fr; }
  .card-l2 { grid-template-columns: 100px 1fr; gap: 12px; padding: 12px; }
  .card-thumb { width: 100px; height: 76px; }
  .card-arrow { display: none; }
  .card-title { font-size: 15px; }
  .card-desc { display: none; }
  .action-inner, .cta-card, .share-bar, .footer-inner { flex-direction: column; align-items: flex-start; }
  .detail-head { padding: 20px; }
  .detail-head h1 { font-size: 25px; }
  .detail-byline { flex-wrap: wrap; }
  .detail-share { margin-left: 0; width: 100%; }
  .cover-stage { height: 220px; padding: 10px; }
  .detail-body { padding: 20px; }
  .sitemap-list { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
