@charset "UTF-8";
/* =============================================================
   aw.css —— W3 批次「现代视觉层」公共组件
   与 style.css 并存：style.css 提供基础重置/表单/旧组件，
   本文件负责头部、首屏、卡片、榜单、文章、页脚等新版式语言。
   每站差异（配色/首屏形态/栅格密度/字体）放在 assets/css/theme.css。
   ============================================================= */

:root {
  color-scheme: light;
  --w3-radius: var(--c-radius, 18px);
  --w3-ease: cubic-bezier(.22, .8, .22, 1);
  --w3-hd: 64px;
  --w3-font: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI",
            "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--w3-font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text, #111827);
  background: var(--c-bg, #f7f8fb);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* 顶部细进度条（滚动感知，主流阅读站常见） */
body::before {
  content: "";
  position: fixed; inset: 0 auto auto 0; height: 2px; width: 100%;
  transform: scaleX(var(--w3-progress, 0)); transform-origin: 0 50%;
  background: var(--c-brand-grad, linear-gradient(90deg, #2563eb, #0ea5e9));
  z-index: 90; pointer-events: none; transition: transform .1s linear;
}

.w3svg { display: inline-block; vertical-align: -0.18em; flex: 0 0 auto; }
.w3-main { padding-bottom: 8px; }

/* ------------------------------------------------------------ 头部：基础 */
.w3hd {
  position: sticky; top: 0; z-index: 70;
  background: var(--c-card, #fff);
  background: color-mix(in srgb, var(--c-card, #fff) 88%, transparent);
  border-bottom: 1px solid var(--c-line, #e5e7eb);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  padding-top: env(safe-area-inset-top);
}
.w3hd-in { display: flex; align-items: center; gap: 16px; min-height: var(--w3-hd); }
.w3hd-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.w3-logo { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.w3-logo i {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--c-brand-grad, linear-gradient(135deg, #2563eb, #0ea5e9));
  color: #fff; font-size: 17px; font-weight: 800; font-style: normal;
  box-shadow: 0 8px 18px -10px var(--c-primary, #2563eb), inset 0 1px 0 rgba(255,255,255,.35);
}
.w3-logo span { font-size: 17.5px; font-weight: 800; letter-spacing: -.01em; color: var(--c-text, #111); }
.w3-logo span em {
  font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .1em;
  color: var(--c-primary, #2563eb); margin-left: 7px; padding: 2px 6px;
  border-radius: 6px; background: var(--c-bg-2, #f1f5f9); vertical-align: 2px;
}

.w3-nav { display: flex; align-items: center; gap: 2px; overflow: auto; scrollbar-width: none; }
.w3-nav::-webkit-scrollbar { display: none; }
.w3-nav a {
  padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  color: var(--c-text-2, #475569); white-space: nowrap;
  transition: background .2s var(--w3-ease), color .2s;
}
.w3-nav a:hover { background: var(--c-bg-2, #f1f5f9); color: var(--c-primary, #2563eb); }
.w3-nav a.on {
  color: #fff; background: var(--c-brand-grad, #2563eb);
  box-shadow: 0 8px 16px -10px var(--c-primary, #2563eb);
}
.w3-nav--center { justify-content: center; }

.w3-minisearch {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px;
  border: 1px solid var(--c-line, #e5e7eb); border-radius: 999px;
  background: var(--c-bg-2, #f8fafc); color: var(--c-sub, #94a3b8);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.w3-minisearch:focus-within {
  border-color: var(--c-primary, #2563eb); background: var(--c-card, #fff);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.w3-minisearch input {
  width: 148px; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 13px; color: var(--c-text, #111);
}
.w3-minisearch input::placeholder { color: var(--c-sub, #94a3b8); }

.w3-ico-btn {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--c-line, #e5e7eb); color: var(--c-text-2, #475569);
  background: var(--c-card, #fff); transition: .2s var(--w3-ease);
}
.w3-ico-btn:hover { color: var(--c-primary, #2563eb); border-color: var(--c-primary, #2563eb); transform: translateY(-1px); }

/* 移动端分类横滑条 */
.w3-mnav { border-bottom: 1px solid var(--c-line, #e5e7eb); background: var(--c-card, #fff); }
.w3-mnav-in { display: flex; gap: 8px; padding: 9px 0; overflow: auto; scrollbar-width: none; }
.w3-mnav-in::-webkit-scrollbar { display: none; }
.w3-mnav-in a {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; font-size: 12.5px;
  color: var(--c-text-2, #475569); background: var(--c-bg-2, #f1f5f9); white-space: nowrap;
}
.w3-mnav-in a:hover { color: var(--c-primary, #2563eb); }

/* 头部变体：公告条 */
.w3-strip {
  background: #0f172a; color: #cbd5e1; font-size: 12.5px;
}
.w3-strip-in { display: flex; align-items: center; gap: 14px; min-height: 34px; }
.w3-live { display: inline-flex; align-items: center; gap: 6px; color: #f8fafc; font-weight: 600; flex: 0 0 auto; }
.w3-live i {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.22); animation: w3pulse 2.4s infinite;
}
@keyframes w3pulse { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
.w3-strip-txt { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .82; }
.w3-strip-date { flex: 0 0 auto; opacity: .6; }

/* 头部变体：双行 */
.w3hd--dual .w3hd-in { gap: 22px; }
.w3hd--dual .w3-nav { flex: 1 1 auto; }

/* 头部变体：深色 */
.w3hd--ink { background: #0b1220; border-bottom-color: rgba(255,255,255,.08); }
.w3hd--ink .w3-logo span { color: #f8fafc; }
.w3hd--ink .w3-logo span em { color: #7dd3fc; background: rgba(125,211,252,.12); }
.w3hd--ink .w3-nav a { color: #94a3b8; }
.w3hd--ink .w3-nav a:hover { background: rgba(255,255,255,.07); color: #f8fafc; }
.w3hd--ink .w3-nav a.on { background: var(--c-brand-grad); color: #04121f; }
.w3hd--ink .w3-minisearch { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.w3hd--ink .w3-minisearch input { color: #e2e8f0; }
.w3hd--ink .w3-minisearch input::placeholder { color: #64748b; }
.w3hd--ink .w3-ico-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #cbd5e1; }

/* 头部变体：居中刊头 */
.w3hd--masthead { background: var(--c-card, #fff); }
.w3-mast-top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px; padding: 16px 0 12px; font-size: 12px; color: var(--c-sub, #94a3b8);
}
.w3-mast-top > span:last-child { text-align: right; }
.w3-mast-brand {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; letter-spacing: -.02em;
  color: var(--c-text, #111); text-align: center;
  background: var(--c-brand-grad, #111); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.w3-mast-tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.w3-mast-navwrap {
  border-top: 1px solid var(--c-line, #e5e7eb); border-bottom: 1px solid var(--c-line, #e5e7eb);
}
.w3-mast-navwrap .w3-nav { padding: 6px 0; }

/* 头部变体：极简 */
.w3hd--minimal .w3-logo span { font-size: 18.5px; }
.w3hd--minimal .w3-minisearch input { width: 120px; }

/* 头部变体：数字导航 */
.w3-mega-stat { display: flex; flex-direction: column; line-height: 1.1; padding-left: 4px; }
.w3-mega-stat b { font-size: 16px; font-variant-numeric: tabular-nums; color: var(--c-primary, #2563eb); }
.w3-mega-stat span { font-size: 10.5px; letter-spacing: .12em; color: var(--c-sub, #94a3b8); }
.w3-mega-div { width: 1px; height: 26px; background: var(--c-line, #e5e7eb); margin: 0 6px; }

/* 头部变体：三栏刊头 */
.w3hd--grid .w3hd-in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding: 12px 0; }
.w3-grid-l { font-size: 12px; color: var(--c-sub, #94a3b8); display: flex; flex-direction: column; }
.w3-grid-l em { font-style: normal; font-size: 10.5px; letter-spacing: .14em; color: var(--c-primary, #2563eb); }
.w3-grid-c { display: flex; justify-content: center; }
.w3-grid-r { display: flex; justify-content: flex-end; }

/* ------------------------------------------------------------ 首屏 */
.w3hero { position: relative; isolation: isolate; margin: 26px 0 10px; }
.w3hero::before, .w3hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(46px);
  opacity: .5; pointer-events: none;
}
.w3hero::before {
  width: 340px; height: 340px; top: -110px; right: -60px;
  background: var(--c-primary-2, #38bdf8); opacity: .28;
}
.w3hero::after {
  width: 300px; height: 300px; bottom: -140px; left: -80px;
  background: var(--c-primary, #2563eb); opacity: .18;
}
.w3hero-in { position: relative; }
.w3hero h1 {
  font-size: clamp(28px, 4.2vw, 46px); line-height: 1.16; letter-spacing: -.025em;
  font-weight: 800; margin: 10px 0 12px;
}
.w3hero h1 span {
  background: var(--c-brand-grad, #2563eb);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.w3hero-sub { font-size: 15px; color: var(--c-text-2, #475569); margin: 0 0 20px; max-width: 640px; }
.w3hero-sub b { color: var(--c-primary, #2563eb); font-variant-numeric: tabular-nums; }

.w3-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 2px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-primary, #2563eb);
}
.w3-eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: var(--c-brand-grad, #2563eb);
}

/* 首屏：居中大字（command） */
.w3hero--command { text-align: center; padding: 46px 0 8px; }
.w3hero--command .w3hero-sub { margin-inline: auto; }
.w3hero--command .w3-search { max-width: 700px; margin: 0 auto; }

/* 首屏：左右分栏（split） */
.w3hero--split { padding: 40px 0 6px; }
.w3hero--split .w3hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 34px; align-items: center; }
.w3hero--split .w3-search { max-width: 520px; }
.w3-herocard {
  background: var(--c-card, #fff); border: 1px solid var(--c-line, #e5e7eb);
  border-radius: 22px; padding: 18px 18px 8px;
  box-shadow: 0 30px 60px -40px rgba(15,23,42,.55);
  transform: rotate(-.6deg);
}
.w3-herocard h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-sub, #94a3b8); margin-bottom: 8px; }
.w3-herocard .w3-rank { padding: 0; }

/* 首屏：深色面板（ink） */
.w3hero--ink {
  background: #0b1220; border-radius: 26px; padding: 42px 38px 34px; margin: 24px 0 8px;
  box-shadow: 0 40px 80px -50px rgba(2, 6, 23, .9);
}
.w3hero--ink::before { background: var(--c-primary-2, #38bdf8); opacity: .35; top: -140px; right: -40px; }
.w3hero--ink::after { background: var(--c-primary, #2563eb); opacity: .3; bottom: -160px; left: 20%; }
.w3hero--ink h1 { color: #f8fafc; }
.w3hero--ink h1 span { -webkit-text-fill-color: transparent; }
.w3hero--ink .w3hero-sub { color: #94a3b8; }
.w3hero--ink .w3-eyebrow { color: #7dd3fc; }
.w3hero--ink .w3-search {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16);
  max-width: 640px; box-shadow: none;
}
.w3hero--ink .w3-search input { color: #e2e8f0; }
.w3hero--ink .w3-search input::placeholder { color: #64748b; }
.w3hero--ink .w3-search-ico { color: #7dd3fc; }
.w3hero--ink .w3-kbd { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #94a3b8; }
.w3hero--ink .w3-search button { background: var(--c-primary-2, #38bdf8); color: #04121f; }
.w3hero--ink .w3-chips-lb { color: #64748b; }
.w3hero--ink .w3-chip { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #cbd5e1; }
.w3hero--ink .w3-chip:hover { color: #04121f; background: var(--c-primary-2, #38bdf8); border-color: transparent; }

/* 首屏：窄刊头（masthead） */
.w3hero--mast { text-align: center; padding: 30px 0 4px; border-bottom: 1px solid var(--c-line, #e5e7eb); margin-bottom: 26px; }
.w3hero--mast h1 { font-size: clamp(26px, 3.4vw, 38px); }
.w3hero--mast .w3-search { max-width: 560px; margin: 0 auto 18px; }
.w3hero--mast .w3-chips { justify-content: center; margin-bottom: 20px; }

/* 首屏：品牌卡（cat / brand） */
.w3hero--brand {
  border-radius: 28px; padding: 40px 36px; margin: 24px 0 8px; overflow: hidden;
  background: var(--c-brand-grad, #2563eb); color: #fff;
  box-shadow: 0 40px 70px -45px var(--c-primary, #2563eb);
}
.w3hero--brand h1 { color: #fff; }
.w3hero--brand h1 span { -webkit-text-fill-color: #fff; background: none; }
.w3hero--brand .w3hero-sub { color: rgba(255,255,255,.86); }
.w3hero--brand .w3-eyebrow { color: #fff; }
.w3hero--brand .w3-eyebrow::before { background: rgba(255,255,255,.7); }
.w3hero--brand .w3-search { background: #fff; border-color: transparent; max-width: 620px; }
.w3hero--brand .w3-search button { color: #fff; box-shadow: 0 12px 24px -14px rgba(2,6,23,.55); }
.w3hero--brand .w3-chip { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); color: #fff; }
.w3hero--brand .w3-chip:hover { background: #fff; color: var(--c-primary, #2563eb); }
.w3hero--brand .w3-chips-lb { color: rgba(255,255,255,.75); }
.w3hero--brand .w3-metrics { margin-top: 22px; }
.w3hero--brand .w3-metric b { color: #fff; -webkit-text-fill-color: #fff; }
.w3hero--brand .w3-metric span { color: rgba(255,255,255,.72); }
.w3hero--brand .w3-metric { background: rgba(15,23,42,.18); border-color: rgba(255,255,255,.24); }
.w3hero--brand .w3-metric b { font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,.18); }

/* 首屏：门户（portal） 左文案 + 右统计方阵 */
.w3hero--portal { padding: 34px 0 6px; }
.w3hero--portal .w3hero-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 30px; align-items: end; }
.w3hero--portal .w3-search { max-width: 100%; margin-top: 6px; }

/* 首屏：杂志（magazine） */
.w3hero--mag { padding: 34px 0 8px; border-top: 3px solid var(--c-text, #111); }
.w3hero--mag .w3hero-top { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; align-items: start; }
.w3hero--mag h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; }
.w3-herometa { border-left: 1px solid var(--c-line, #e5e7eb); padding-left: 18px; }
.w3-herometa p { margin: 0 0 8px; font-size: 12.5px; color: var(--c-sub, #94a3b8); }
.w3-herometa b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--c-text, #111); }

/* ------------------------------------------------------------ 搜索条 */
.w3-search {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: var(--c-card, #fff); border: 1px solid var(--c-line, #e5e7eb);
  box-shadow: 0 22px 44px -30px rgba(15,23,42,.5), inset 0 1px 0 rgba(255,255,255,.6);
  transition: box-shadow .25s var(--w3-ease), border-color .25s;
}
.w3-search:focus-within {
  border-color: var(--c-primary, #2563eb);
  box-shadow: 0 26px 54px -30px var(--c-primary, #2563eb);
}
.w3-search-ico { color: var(--c-sub, #94a3b8); display: grid; place-items: center; }
.w3-search input {
  flex: 1 1 auto; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent;
  font-size: 15.5px; color: var(--c-text, #111);
}
.w3-search input::placeholder { color: var(--c-sub, #94a3b8); }
.w3-search button {
  flex: 0 0 auto; height: 46px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--c-brand-grad, #2563eb); color: #fff;
  font-size: 15px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 12px 24px -14px var(--c-primary, #2563eb);
  transition: transform .2s var(--w3-ease), box-shadow .2s;
}
.w3-search button:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px var(--c-primary, #2563eb); }
.w3-search button:active { transform: translateY(0); }
.w3-kbd {
  flex: 0 0 auto; font-family: inherit; font-size: 11px; font-weight: 600;
  padding: 3px 7px; border-radius: 6px; color: var(--c-sub, #94a3b8);
  background: var(--c-bg-2, #f1f5f9); border: 1px solid var(--c-line, #e5e7eb);
}

.w3-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; font-size: 13px; }
.w3-chips-lb { color: var(--c-sub, #94a3b8); font-size: 12.5px; margin-right: 2px; }
.w3-chip {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
  background: var(--c-card, #fff); border: 1px solid var(--c-line, #e5e7eb); color: var(--c-text-2, #475569);
  transition: .2s var(--w3-ease);
}
.w3-chip:hover {
  color: #fff; background: var(--c-brand-grad, #2563eb); border-color: transparent;
  transform: translateY(-1px);
}

/* 统计条 */
.w3-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; }
.w3-metric {
  padding: 12px 14px; border-radius: 14px; background: var(--c-card, #fff);
  border: 1px solid var(--c-line, #e5e7eb);
}
.w3-metric b {
  display: block; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums;
  background: var(--c-brand-grad, #2563eb);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.w3-metric span { font-size: 11.5px; letter-spacing: .06em; color: var(--c-sub, #94a3b8); }

/* ------------------------------------------------------------ 区块 */
.w3-sec { margin: 42px 0 0; }
.w3-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.w3-sec-t h2 { font-size: clamp(19px, 2vw, 25px); letter-spacing: -.02em; line-height: 1.2; }
.w3-sec-h .w3-eyebrow { margin-bottom: 4px; }
.w3-more {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  font-size: 13px; color: var(--c-text-2, #475569); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--c-line, #e5e7eb); background: var(--c-card, #fff);
  transition: .2s var(--w3-ease);
}
.w3-more:hover { color: var(--c-primary, #2563eb); border-color: var(--c-primary, #2563eb); transform: translateX(2px); }

/* 分类宫格 */
.w3-tiles { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 12px; }
.w3-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: var(--w3-radius); background: var(--c-card, #fff);
  border: 1px solid var(--c-line, #e5e7eb);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .26s var(--w3-ease), box-shadow .26s, border-color .26s;
}
.w3-tile:hover {
  transform: translateY(-3px); border-color: var(--c-primary, #2563eb);
  box-shadow: 0 18px 32px -22px rgba(15,23,42,.45);
}
.w3-tile-ico {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 19px; background: var(--c-bg-2, #f1f5f9);
}
.w3-tile-b { display: flex; flex-direction: column; min-width: 0; }
.w3-tile-b b { font-size: 14.5px; color: var(--c-text, #111); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w3-tile-b em { font-style: normal; font-size: 11.5px; color: var(--c-sub, #94a3b8); }
.w3-tile-go { margin-left: auto; color: var(--c-line, #cbd5e1); transition: .2s; }
.w3-tile:hover .w3-tile-go { color: var(--c-primary, #2563eb); transform: translateX(2px); }

/* 精选卡片 */
.w3-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 12px; }
.w3-card {
  position: relative; display: flex; align-items: flex-start; gap: 11px;
  padding: 15px 16px; border-radius: var(--w3-radius);
  background: var(--c-card, #fff); border: 1px solid var(--c-line, #e5e7eb);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .26s var(--w3-ease), box-shadow .26s, border-color .26s;
}
.w3-card:hover {
  transform: translateY(-4px); border-color: var(--c-primary, #2563eb);
  box-shadow: 0 20px 36px -24px rgba(15,23,42,.5);
}
.w3-card-ico { flex: 0 0 auto; }
.w3-card-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.w3-card-b b {
  display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700;
  color: var(--c-text, #111); line-height: 1.35;
}
.w3-card-b em {
  font-style: normal; font-size: 12px; line-height: 1.55; color: var(--c-sub, #94a3b8);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.w3-card-go { margin-left: auto; color: transparent; transition: .2s; align-self: center; }
.w3-card:hover .w3-card-go { color: var(--c-primary, #2563eb); }

.w3-badge {
  flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 1px 6px; border-radius: 5px; line-height: 1.6;
}
.w3-badge--hot { color: #b91c1c; background: #fee2e2; }
.w3-badge--rec { color: var(--c-primary, #2563eb); background: var(--c-bg-2, #eef2ff); }

/* 榜单 */
.w3-rank { display: flex; flex-direction: column; gap: 2px; }
.w3-rank li {
  display: flex; align-items: flex-start; gap: 11px; padding: 10px 10px;
  border-radius: 12px; transition: background .2s;
}
.w3-rank li:hover { background: var(--c-bg-2, #f8fafc); }
.w3-rank-no {
  flex: 0 0 22px; width: 22px; text-align: center; font-size: 12.5px; font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--c-sub, #94a3b8); line-height: 1.8;
}
.w3-rank-no.top {
  color: #fff; background: var(--c-brand-grad, #2563eb); border-radius: 7px;
  box-shadow: 0 6px 12px -8px var(--c-primary, #2563eb);
}
.w3-rank-b { flex: 1 1 auto; min-width: 0; }
.w3-rank-b a { display: block; font-size: 14px; font-weight: 600; color: var(--c-text, #111); }
.w3-rank-b a:hover { color: var(--c-primary, #2563eb); }
.w3-rank-meta { font-size: 11.5px; color: var(--c-sub, #94a3b8); }
.w3-bar { display: block; height: 3px; border-radius: 3px; background: var(--c-line, #eef2f7); margin-top: 6px; overflow: hidden; }
.w3-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: var(--c-brand-grad, #2563eb); opacity: .8;
}
.w3-rank--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 分组入口 */
.w3-grps { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 14px; align-items: start; }
.w3-grp {
  padding: 16px 18px 12px; border-radius: var(--w3-radius);
  background: var(--c-card, #fff); border: 1px solid var(--c-line, #e5e7eb);
}
.w3-grp-h { display: flex; align-items: baseline; gap: 8px; padding-bottom: 9px; border-bottom: 1px dashed var(--c-line, #e5e7eb); }
.w3-grp-h h3 { font-size: 14.5px; }
.w3-grp-h span { font-size: 11.5px; color: var(--c-primary, #2563eb); }
.w3-grp-h a { margin-left: auto; color: var(--c-sub, #94a3b8); display: grid; place-items: center; }
.w3-grp-h a:hover { color: var(--c-primary, #2563eb); }
.w3-grp-in { margin: 8px 0 4px; font-size: 12px; color: var(--c-sub, #94a3b8); line-height: 1.6; }
.w3-links { display: flex; flex-direction: column; }
.w3-links li a {
  display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 13.5px;
  border-bottom: 1px solid var(--c-bg-2, #f8fafc);
}
.w3-links li a b { font-weight: 600; color: var(--c-text, #111); white-space: nowrap; }
.w3-links li a em {
  font-style: normal; font-size: 11.5px; color: var(--c-sub, #94a3b8);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w3-links li a:hover b { color: var(--c-primary, #2563eb); }
.w3-empty { font-size: 12px; color: var(--c-sub, #94a3b8); padding: 8px 0; }

/* 最新入库 */
.w3-latest { display: flex; flex-direction: column; }
.w3-latest li + li { border-top: 1px solid var(--c-bg-2, #f1f5f9); }
.w3-latest a { display: flex; align-items: center; gap: 10px; padding: 9px 2px; }
.w3-latest-b { display: flex; flex-direction: column; min-width: 0; }
.w3-latest-b b { font-size: 13.5px; font-weight: 600; color: var(--c-text, #111); }
.w3-latest-b em { font-style: normal; font-size: 11px; color: var(--c-sub, #94a3b8); }
.w3-latest-t { margin-left: auto; font-size: 11.5px; color: var(--c-sub, #94a3b8); flex: 0 0 auto; }
.w3-latest a:hover b { color: var(--c-primary, #2563eb); }

/* 文章：单列列表 */
.w3-arts { display: flex; flex-direction: column; gap: 10px; }
.w3-art {
  display: block; padding: 18px 20px; border-radius: var(--w3-radius);
  background: var(--c-card, #fff); border: 1px solid var(--c-line, #e5e7eb);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--w3-ease);
}
.w3-art:hover {
  border-color: var(--c-primary, #2563eb); transform: translateY(-2px);
  box-shadow: 0 18px 34px -26px rgba(15,23,42,.45);
}
.w3-art-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--c-sub, #94a3b8); margin-bottom: 6px; }
.w3-artcat {
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 5px;
  color: var(--c-primary, #2563eb); background: var(--c-bg-2, #eef2ff);
}
.w3-artdate { font-variant-numeric: tabular-nums; }
.w3-artviews { margin-left: auto; }
.w3-art b { display: block; font-size: 16px; line-height: 1.45; color: var(--c-text, #111); margin-bottom: 4px; }
.w3-art:hover b { color: var(--c-primary, #2563eb); }
.w3-art em {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-style: normal; font-size: 13px; line-height: 1.65; color: var(--c-text-2, #475569);
}
.w3-art-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12.5px; color: var(--c-primary, #2563eb); }

/* 文章：卡片 */
.w3-artgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.w3-artcard {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  border-radius: var(--w3-radius); background: var(--c-card, #fff);
  border: 1px solid var(--c-line, #e5e7eb);
  transition: transform .25s var(--w3-ease), border-color .25s, box-shadow .25s;
}
.w3-artcard:hover { transform: translateY(-3px); border-color: var(--c-primary, #2563eb); box-shadow: 0 20px 36px -28px rgba(15,23,42,.5); }
.w3-artcard b { font-size: 15px; line-height: 1.5; }
.w3-artcard em {
  font-style: normal; font-size: 12.5px; color: var(--c-sub, #94a3b8);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.w3-artmeta { font-size: 11.5px; color: var(--c-sub, #94a3b8); }

/* 标签云 */
.w3-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.w3-cloud-t {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
  color: var(--c-text-2, #475569); background: var(--c-bg-2, #f1f5f9);
  border: 1px solid transparent; transition: .2s var(--w3-ease);
}
.w3-cloud-t i { font-style: normal; font-size: 10.5px; color: var(--c-sub, #94a3b8); margin-left: 4px; }
.w3-cloud-t:hover { color: #fff; background: var(--c-brand-grad, #2563eb); }
.w3-cloud-t:hover i { color: rgba(255,255,255,.75); }
.w3-cloud-t.md { font-size: 13.5px; }
.w3-cloud-t.lg { font-size: 14.5px; font-weight: 700; color: var(--c-primary, #2563eb); background: var(--c-card, #fff); border-color: var(--c-line, #e5e7eb); }

.w3-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.w3-pill {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  color: var(--c-text-2, #475569); background: var(--c-bg-2, #f1f5f9);
}
.w3-pill:hover { color: #fff; background: var(--c-primary, #2563eb); }

/* 双栏 */
.w3-dual { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.w3-dual--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w3-panel {
  padding: 16px 18px; border-radius: var(--w3-radius);
  background: var(--c-card, #fff); border: 1px solid var(--c-line, #e5e7eb);
}
.w3-panel h3 { font-size: 14px; letter-spacing: .02em; margin-bottom: 4px; }

/* 空态 */
.w3-empty-box {
  padding: 40px 20px; text-align: center; color: var(--c-sub, #94a3b8);
  border: 1px dashed var(--c-line, #e5e7eb); border-radius: var(--w3-radius);
}

/* ------------------------------------------------------------ 页脚 */
.w3-foot { margin-top: 54px; border-top: 1px solid var(--c-line, #e5e7eb); background: var(--c-card, #fff); }
.w3-foot-in {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 28px; padding: 40px 0 28px;
}
.w3-foot-brand p { margin: 12px 0; font-size: 12.5px; line-height: 1.75; color: var(--c-sub, #94a3b8); max-width: 320px; }
.w3-foot-stat { display: flex; gap: 14px; font-size: 12px; color: var(--c-sub, #94a3b8); }
.w3-foot-stat b { color: var(--c-primary, #2563eb); font-variant-numeric: tabular-nums; }
.w3-foot-col h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-sub, #94a3b8); margin-bottom: 10px; }
.w3-foot-col ul { display: flex; flex-direction: column; gap: 7px; }
.w3-foot-col a { font-size: 13px; color: var(--c-text-2, #475569); }
.w3-foot-col a:hover { color: var(--c-primary, #2563eb); }
.w3-foot-bot {
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
  padding: 16px 0 22px; border-top: 1px solid var(--c-bg-2, #f1f5f9);
  font-size: 11.5px; color: var(--c-sub, #94a3b8);
}

/* 回到顶部 */
.w3-top {
  position: fixed; right: 18px; bottom: 22px; z-index: 80;
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--c-card, #fff); border: 1px solid var(--c-line, #e5e7eb);
  color: var(--c-text-2, #475569); box-shadow: 0 12px 26px -16px rgba(15,23,42,.5);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .28s var(--w3-ease);
}
.w3-top.show { opacity: 1; visibility: visible; transform: none; }
.w3-top:hover { color: var(--c-primary, #2563eb); border-color: var(--c-primary, #2563eb); }

/* ------------------------------------------------------------ 滚动渐入 */
.js .w3-rev { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--w3-ease), transform .6s var(--w3-ease); transition-delay: var(--d, 0ms); }
.js .w3-rev.in { opacity: 1; transform: none; }
.no-fx .w3-rev, .no-fx .w3-rev.in { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 1080px) {
  .w3-nav a { padding: 7px 10px; font-size: 13px; }
  .w3-minisearch input { width: 110px; }
  .w3-tiles, .w3-grid { grid-template-columns: repeat(min(var(--cols, 4), 3), minmax(0, 1fr)); }
  .w3-grps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .w3hd .w3-nav { display: none; }
  .w3hd--masthead .w3-nav, .w3hd--grid .w3-nav, .w3-mast-navwrap { display: flex; }
  .w3-mast-navwrap { overflow: auto; }
  .w3-hero--split .w3hero-in,
  .w3hero--split .w3hero-in,
  .w3hero--portal .w3hero-top,
  .w3hero--mag .w3hero-top { grid-template-columns: minmax(0, 1fr); }
  .w3-herometa { border-left: 0; border-top: 1px solid var(--c-line, #e5e7eb); padding: 14px 0 0; display: flex; gap: 18px; }
  .w3-herometa b { font-size: 18px; }
  .w3-dual { grid-template-columns: minmax(0, 1fr); }
  .w3-foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 30px 0 20px; }
  .w3hero--ink { padding: 32px 24px 26px; }
  .w3hero--brand { padding: 32px 24px; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .w3-tiles, .w3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w3-grps, .w3-artgrid, .w3-rank--cols { grid-template-columns: minmax(0, 1fr); }
  .w3-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w3-search { padding: 6px 6px 6px 14px; gap: 8px; }
  .w3-search input { height: 40px; font-size: 14.5px; }
  .w3-search button { height: 42px; padding: 0 18px; font-size: 14px; }
  .w3-kbd { display: none; }
  .w3-minisearch { display: none; }
  .w3-strip-txt, .w3-strip-date { display: none; }
  .w3-mega-stat, .w3-mega-div { display: none; }
  .w3hd--grid .w3hd-in { grid-template-columns: 1fr auto; }
  .w3-grid-l { display: none; }
  .w3-herocard { display: none; }
  .w3hero h1 { font-size: clamp(23px, 7.2vw, 30px); }
  .w3hero::before { width: 220px; height: 220px; top: -80px; right: -70px; opacity: .22; }
  .w3hero::after { width: 200px; height: 200px; bottom: -100px; left: -70px; opacity: .14; }
  .w3hero { margin: 18px 0 6px; }
  .w3-foot-in { grid-template-columns: minmax(0, 1fr); }
  .w3-top { right: 12px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .w3-rev { opacity: 1; transform: none; }
}
/* =============================================================
   W3.2 · 分组(专题)展示的 6 种形态 + 头部「分组不常驻」改造
   设计原则：同一批站点不能都长一个样 —— 头部是否常驻分组、正文用
   哪种形态、模块叫什么，都按站分配；这里只放视觉，结构在 w3.php。
   ============================================================= */

/* ---- 头部：导航尾巴的「全部 N 个 X」 ---- */
.w3-nav-all {
  color: var(--c-primary, #2563eb) !important;
  font-weight: 700;
  background: transparent !important;
  border: 1px dashed color-mix(in srgb, var(--c-primary, #2563eb) 40%, transparent);
  border-radius: 999px;
  padding: 5px 12px !important;
  margin-left: 4px;
}
.w3-nav-all:hover { background: color-mix(in srgb, var(--c-primary, #2563eb) 8%, transparent) !important; }

/* ---- 头部：折叠目录抽屉（ink） ---- */
.w3-drawer { position: relative; margin-left: 4px; }
.w3-drawer summary {
  display: inline-flex; align-items: center; gap: 7px;
  list-style: none; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 650;
  color: #cbd5e1; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  transition: background .18s var(--w3-ease), color .18s var(--w3-ease);
}
.w3-drawer summary::-webkit-details-marker { display: none; }
.w3-drawer summary:hover { background: rgba(255,255,255,.13); color: #f8fafc; }
.w3-drawer summary b {
  font-size: 11px; font-variant-numeric: tabular-nums;
  background: rgba(125,211,252,.18); color: #7dd3fc;
  border-radius: 999px; padding: 1px 7px;
}
.w3-drawer[open] summary { background: rgba(255,255,255,.16); color: #fff; }
.w3-drawer-in {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  width: 320px; padding: 10px;
  border-radius: 16px; background: #0f172a;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 28px 60px -28px rgba(0,0,0,.7);
  display: grid; gap: 4px;
}
.w3-drawer-in a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 10px;
  color: #cbd5e1; font-size: 13.5px;
}
.w3-drawer-in a:hover { background: rgba(255,255,255,.07); color: #f8fafc; }
.w3-drawer-in a i { font-style: normal; font-size: 15px; }
.w3-drawer-in a span { flex: 1 1 auto; }
.w3-drawer-in a em {
  font-style: normal; font-size: 11px; color: #64748b;
  font-variant-numeric: tabular-nums;
}
.w3-drawer-note {
  margin: 6px 2px 2px; font-size: 11.5px; color: #64748b;
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px;
}

/* ---- 头部：只留一行锚点（masthead / grid） ---- */
.w3-kicker {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 0; font-size: 12.5px; letter-spacing: .04em;
  color: var(--c-sub, #94a3b8);
}
.w3-kicker span { opacity: .5; }
.w3-kicker a { color: var(--c-primary, #2563eb); font-weight: 650; }
.w3-kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- ① 入口架 w3_shelf：横滑「书脊」 ---- */
.w3-shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: 218px;
  gap: 14px; overflow-x: auto; padding: 2px 2px 12px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.w3-shelf::-webkit-scrollbar { height: 6px; }
.w3-shelf::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--c-line, #e5e7eb) 90%, var(--c-text, #111) 10%);
  border-radius: 99px;
}
.w3-shelf-c {
  scroll-snap-align: start;
  position: relative; display: flex; flex-direction: column;
  min-height: 172px; padding: 18px 18px 16px;
  border-radius: var(--w3-radius); background: var(--c-card, #fff);
  border: 1px solid var(--c-line, #e5e7eb);
  box-shadow: var(--c-shadow, 0 1px 2px rgba(15,23,42,.05));
  transition: transform .22s var(--w3-ease), box-shadow .22s var(--w3-ease),
              border-color .22s var(--w3-ease);
}
.w3-shelf-c::after {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--c-brand-grad, #2563eb);
  transform: scaleY(.34); transform-origin: 50% 0; opacity: .75;
  transition: transform .26s var(--w3-ease), opacity .26s var(--w3-ease);
}
.w3-shelf-c:hover {
  transform: translateY(-4px);
  box-shadow: var(--c-shadow-hov, 0 20px 40px -24px rgba(15,23,42,.5));
  border-color: color-mix(in srgb, var(--c-primary, #2563eb) 30%, var(--c-line, #e5e7eb));
}
.w3-shelf-c:hover::after { transform: scaleY(1); opacity: 1; }
.w3-shelf-no {
  position: absolute; top: 14px; right: 16px;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--c-sub, #94a3b8); letter-spacing: .06em;
}
.w3-shelf-ico { font-size: 26px; line-height: 1; margin-bottom: 12px; }
.w3-shelf-c b { font-size: 16.5px; font-weight: 750; letter-spacing: -.01em; }
.w3-shelf-sub {
  margin-top: 6px; font-size: 12.5px; color: var(--c-sub, #94a3b8);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w3-shelf-n {
  margin-top: auto; padding-top: 14px;
  font-size: 12px; font-weight: 650; color: var(--c-primary, #2563eb);
  font-variant-numeric: tabular-nums;
}

/* ---- ② 索引 w3_index ---- */
.w3-index {
  border-radius: var(--w3-radius); overflow: hidden;
  background: var(--c-card, #fff); border: 1px solid var(--c-line, #e5e7eb);
  box-shadow: var(--c-shadow, none);
}
.w3-index-r {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(0, .9fr) 52px 22px;
  align-items: center; gap: 14px;
  padding: 15px 18px; border-bottom: 1px solid var(--c-line-soft, #f1f5f9);
  transition: background .18s var(--w3-ease), padding .18s var(--w3-ease);
}
.w3-index-r:last-child { border-bottom: 0; }
.w3-index-r:hover { background: var(--c-bg-2, #f8fafc); }
.w3-index-no {
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--c-sub, #94a3b8); letter-spacing: .08em;
}
.w3-index-r:hover .w3-index-no { color: var(--c-primary, #2563eb); }
.w3-index-m { display: flex; flex-direction: column; min-width: 0; }
.w3-index-m b { font-size: 15.5px; font-weight: 700; }
.w3-index-m em {
  font-style: normal; font-size: 12.5px; color: var(--c-sub, #94a3b8);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w3-index-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.w3-index-tags i {
  font-style: normal; font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  color: var(--c-text-2, #475569);
  background: color-mix(in srgb, var(--c-primary, #2563eb) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--c-primary, #2563eb) 16%, transparent);
  white-space: nowrap;
}
.w3-index-n {
  text-align: right; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--c-text-2, #475569);
}
.w3-index-go { color: var(--c-sub, #94a3b8); transition: transform .2s var(--w3-ease), color .2s; }
.w3-index-r:hover .w3-index-go { transform: translateX(3px); color: var(--c-primary, #2563eb); }

/* ---- ③ 矩阵 w3_matrix（细线、无圆角，工作台观感） ---- */
.w3-mx {
  display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 1px; background: var(--c-line, #e5e7eb);
  border: 1px solid var(--c-line, #e5e7eb); border-radius: 6px; overflow: hidden;
}
.w3-mx-c {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px; background: var(--c-card, #fff);
  transition: background .16s var(--w3-ease);
}
.w3-mx-c:hover { background: color-mix(in srgb, var(--c-primary, #2563eb) 6%, var(--c-card, #fff)); }
.w3-mx-h { display: flex; align-items: baseline; gap: 8px; }
.w3-mx-h b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.w3-mx-h i {
  font-style: normal; font-size: 11.5px; font-variant-numeric: tabular-nums;
  color: var(--c-sub, #94a3b8); margin-left: auto;
}
.w3-mx-s { display: flex; flex-wrap: wrap; gap: 10px; }
.w3-mx-s em {
  font-style: normal; font-size: 12px; color: var(--c-text-2, #475569);
  position: relative; padding-left: 9px;
}
.w3-mx-s em::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 3px;
  border-radius: 50%; background: var(--c-primary, #2563eb); opacity: .55;
  transform: translateY(-50%);
}

/* ---- ④ 版面 w3_pages（报纸双栏） ---- */
.w3-pages {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  border-top: 2px solid var(--c-text, #111827);
  border-bottom: 1px solid var(--c-line, #e5e7eb);
}
.w3-page {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 34px;
  align-items: baseline; gap: 12px;
  padding: 13px 2px; border-bottom: 1px dotted var(--c-line, #e5e7eb);
  transition: background .16s var(--w3-ease);
}
.w3-page:nth-last-child(-n+2) { border-bottom: 0; }
.w3-page:hover { background: color-mix(in srgb, var(--c-primary, #2563eb) 4%, transparent); }
.w3-page-no {
  font-size: 11.5px; letter-spacing: .06em; color: var(--c-sub, #94a3b8);
  font-variant-numeric: tabular-nums;
}
.w3-page b {
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 16.5px; font-weight: 700; letter-spacing: .01em;
}
.w3-page-sub {
  font-size: 12px; color: var(--c-sub, #94a3b8);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w3-page-n {
  font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums;
  color: var(--c-primary, #2563eb); font-weight: 700;
}

/* ---- ⑤ 拼贴 w3_mosaic ---- */
.w3-mo {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 128px; gap: 12px;
}
.w3-mo-c {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 3px; padding: 16px;
  border-radius: var(--w3-radius); background: var(--c-card, #fff);
  border: 1px solid var(--c-line, #e5e7eb);
  box-shadow: var(--c-shadow, none);
  transition: transform .22s var(--w3-ease), box-shadow .22s var(--w3-ease);
}
.w3-mo-c:hover {
  transform: translateY(-3px);
  box-shadow: var(--c-shadow-hov, 0 20px 40px -24px rgba(15,23,42,.5));
}
.w3-mo-ico { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.w3-mo-c b { font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; }
.w3-mo-c em {
  font-style: normal; font-size: 12px; color: var(--c-sub, #94a3b8);
  font-variant-numeric: tabular-nums;
}
.w3-mo-big {
  grid-column: span 2; grid-row: span 2;
  justify-content: center; align-items: flex-start; gap: 10px;
  background: var(--c-brand-grad, #2563eb); border-color: transparent;
  padding: 26px 24px;
}
.w3-mo-big .w3-mo-ico { font-size: 40px; }
.w3-mo-big b { font-size: 26px; color: #fff; letter-spacing: -.02em; }
.w3-mo-big em { color: rgba(255,255,255,.82); font-size: 13px; }

/* ---- ⑥ 楼层 w3_tabs（纯 CSS radio 切换） ---- */
.w3-dep-r { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.w3-dep-tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--c-line, #e5e7eb); padding-bottom: 0;
}
.w3-dep-tabs::-webkit-scrollbar { display: none; }
.w3-dep-tabs label {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 10px 14px; cursor: pointer; white-space: nowrap;
  font-size: 13.5px; font-weight: 650; color: var(--c-sub, #94a3b8);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .18s var(--w3-ease), border-color .18s var(--w3-ease);
}
.w3-dep-tabs label i { font-style: normal; font-size: 15px; }
.w3-dep-tabs label em {
  font-style: normal; font-size: 11px; font-variant-numeric: tabular-nums;
  color: var(--c-sub, #94a3b8);
  background: var(--c-bg-2, #f1f5f9); border-radius: 999px; padding: 0 6px;
}
.w3-dep-tabs label:hover { color: var(--c-text, #111827); }
.w3-dep-body {
  padding: 20px 2px 4px; min-height: 236px;
}
.w3-dep-p { display: none; animation: w3dep .22s var(--w3-ease); }
@keyframes w3dep { from { opacity: 0; transform: translateY(4px); } }
.w3-dep-in { font-size: 13.5px; color: var(--c-text-2, #475569); margin: 0 0 14px; }
.w3-dep-links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.w3-dep-links a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 13px; border-radius: var(--c-radius-sm, 12px);
  background: var(--c-bg-2, #f8fafc);
  border: 1px solid transparent;
  transition: border-color .18s var(--w3-ease), background .18s var(--w3-ease);
}
.w3-dep-links a:hover {
  background: var(--c-card, #fff);
  border-color: color-mix(in srgb, var(--c-primary, #2563eb) 26%, transparent);
}
.w3-dep-links b { font-size: 14px; font-weight: 650; }
.w3-dep-links em {
  font-style: normal; font-size: 11.5px; color: var(--c-sub, #94a3b8);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w3-dep-all {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 13px; font-weight: 700; color: var(--c-primary, #2563eb);
}
.w3-dep-all:hover { gap: 9px; }

/* 选中态：最多支持 9 个楼层 */
.w3-dep-r:nth-of-type(1):checked ~ .w3-dep-tabs > label:nth-of-type(1),
.w3-dep-r:nth-of-type(2):checked ~ .w3-dep-tabs > label:nth-of-type(2),
.w3-dep-r:nth-of-type(3):checked ~ .w3-dep-tabs > label:nth-of-type(3),
.w3-dep-r:nth-of-type(4):checked ~ .w3-dep-tabs > label:nth-of-type(4),
.w3-dep-r:nth-of-type(5):checked ~ .w3-dep-tabs > label:nth-of-type(5),
.w3-dep-r:nth-of-type(6):checked ~ .w3-dep-tabs > label:nth-of-type(6),
.w3-dep-r:nth-of-type(7):checked ~ .w3-dep-tabs > label:nth-of-type(7),
.w3-dep-r:nth-of-type(8):checked ~ .w3-dep-tabs > label:nth-of-type(8),
.w3-dep-r:nth-of-type(9):checked ~ .w3-dep-tabs > label:nth-of-type(9) {
  color: var(--c-primary, #2563eb); border-bottom-color: var(--c-primary, #2563eb);
}
.w3-dep-r:nth-of-type(1):checked ~ .w3-dep-body > .w3-dep-p:nth-child(1),
.w3-dep-r:nth-of-type(2):checked ~ .w3-dep-body > .w3-dep-p:nth-child(2),
.w3-dep-r:nth-of-type(3):checked ~ .w3-dep-body > .w3-dep-p:nth-child(3),
.w3-dep-r:nth-of-type(4):checked ~ .w3-dep-body > .w3-dep-p:nth-child(4),
.w3-dep-r:nth-of-type(5):checked ~ .w3-dep-body > .w3-dep-p:nth-child(5),
.w3-dep-r:nth-of-type(6):checked ~ .w3-dep-body > .w3-dep-p:nth-child(6),
.w3-dep-r:nth-of-type(7):checked ~ .w3-dep-body > .w3-dep-p:nth-child(7),
.w3-dep-r:nth-of-type(8):checked ~ .w3-dep-body > .w3-dep-p:nth-child(8),
.w3-dep-r:nth-of-type(9):checked ~ .w3-dep-body > .w3-dep-p:nth-child(9) {
  display: block;
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .w3-mx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w3-pages { grid-template-columns: 1fr; column-gap: 0; }
  .w3-mo { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 118px; }
  .w3-mo-big { grid-column: span 2; grid-row: span 1; padding: 20px; }
  .w3-index-r { grid-template-columns: 34px minmax(0, 1fr) 46px 18px; }
  .w3-index-tags { display: none; }
  .w3-dep-links { grid-template-columns: 1fr; }
  .w3-drawer-in { width: min(86vw, 320px); }
}
@media (max-width: 620px) {
  .w3-shelf { grid-auto-columns: 176px; }
  .w3-mx { grid-template-columns: 1fr; }
  .w3-mo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w3-page { grid-template-columns: 52px minmax(0, 1fr) 30px; }
  .w3-page-sub { display: none; }
}

/* ---- ⑦ 分册 w3_volumes（杂志合订本） ---- */
.w3-vol {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.w3-vol-c {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--c-line, #e5e7eb);
}
.w3-vol-no {
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 30px; line-height: 1; font-weight: 700;
  color: color-mix(in srgb, var(--c-primary, #2563eb) 26%, transparent);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  transition: color .2s var(--w3-ease);
}
.w3-vol-c:hover .w3-vol-no { color: var(--c-primary, #2563eb); }
.w3-vol-m { display: flex; flex-direction: column; min-width: 0; }
.w3-vol-m b { font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.w3-vol-m em {
  font-style: normal; font-size: 12px; color: var(--c-sub, #94a3b8);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w3-vol-n {
  font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums;
  color: var(--c-primary, #2563eb); white-space: nowrap;
}
@media (max-width: 760px) { .w3-vol { grid-template-columns: 1fr; } }

/* ---- 区块小注（分组模块的副标，各站文案不同） ---- */
.w3-sec-note {
  margin: -8px 0 18px; font-size: 13.5px; color: var(--c-sub, #94a3b8);
  max-width: 720px;
}

/* ---- 补齐格：矩阵/拼贴末行多出来的一格「使用指南」 ---- */
.w3-mx-pad { background: color-mix(in srgb, var(--c-primary, #2563eb) 4%, var(--c-card, #fff)); }
.w3-mx-pad .w3-mx-h b { color: var(--c-sub, #94a3b8); font-weight: 650; }
.w3-mo-pad {
  background: color-mix(in srgb, var(--c-primary, #2563eb) 5%, var(--c-card, #fff));
  border-style: dashed;
}
.w3-mo-pad b { color: var(--c-text-2, #475569); font-weight: 650; }
.w3-page-pad .w3-page-no { letter-spacing: .04em; }
.w3-page-pad b { color: var(--c-text-2, #475569); font-weight: 650; }
