:root {
  --navy-950: #f3f6fb;
  --navy-900: #eef3f9;
  --navy-800: #e4ecf6;
  --navy-700: #d5e2f2;
  --navy-600: #bfd2ea;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #1d4ed8;
  --ink: #152033;
  --ink-soft: #3a4a63;
  --ink-muted: #6b7c94;
  --line: rgba(37, 99, 235, 0.12);
  --card: #ffffff;
  --card-solid: #ffffff;
  --white: #ffffff;
  --black: #0f172a;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 36px rgba(21, 45, 90, 0.08);
  --header-h: 72px;
  --font: "Manrope", "Noto Sans SC", sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 420px at 8% -8%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(800px 360px at 92% 0%, rgba(59, 130, 246, 0.06), transparent 50%),
    linear-gradient(180deg, #f7f9fc, #eef3f9 40%, #f5f7fb);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue-500); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--blue-300); }
button, input, textarea, select { font: inherit; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

.ad-top { background: #fff; border-bottom: 1px solid var(--line); }
.ad-top .ad-banner img { width: 100%; max-height: 90px; object-fit: cover; }
.ad-top-mobile { display: none; }
@media (max-width: 768px) {
  .ad-top-pc { display: none; }
  .ad-top-mobile { display: block; }
  .ad-top .ad-banner img { max-height: 70px; }
}

/* 滚动时顶部导航始终固定（fixed 比 sticky 在手机/微信更稳） */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 80;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(21, 45, 90, 0.06);
}
.site-header-spacer {
  height: var(--header-h);
  width: 100%;
  flex-shrink: 0;
  pointer-events: none;
}
.header-bar {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--ink);
  flex: 1; min-width: 0; max-width: min(52%, 420px);
}
.brand.has-logo { gap: 0; }
.brand-logo {
  /* 用 max-height，避免小图被强制拉高发糊；大图可缩小显示 */
  height: auto;
  max-height: 36px;
  width: auto;
  max-width: min(100%, 340px);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 1;
  display: block;
}
.brand-name {
  font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em;
  color: var(--blue-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.desktop-nav { display: flex; align-items: center; gap: 6px; flex: 1; flex-wrap: wrap; }
.desktop-nav a {
  color: var(--ink-soft); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--blue-500); background: rgba(37, 99, 235, 0.1);
}
.desktop-search {
  display: flex; align-items: center;
  background: #f3f6fb;
  border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; flex-shrink: 0;
}
.desktop-search input {
  border: 0; background: transparent; color: var(--ink);
  padding: 10px 14px; width: 160px; outline: none;
}
.desktop-search button {
  border: 0; background: transparent; color: var(--ink-muted);
  padding: 0 14px 0 0; cursor: pointer; font-size: 1.1rem;
}
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer; z-index: 2;
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--ink); display: block;
  transition: transform .2s, opacity .2s;
}
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 手机抽屉菜单（挂在 body 下，避免被 sticky header 裁切） */
.mobile-drawer { display: none; }
body.nav-lock { overflow: hidden; touch-action: none; }

.site-main { padding: 28px 0 64px; }

.hero {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  min-height: 320px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8 50%, #2563eb);
  display: grid; align-items: end;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  animation: fadeUp .7s ease both;
}
/* 海报用真实 img，兼容手机/微信（CSS 变量 url 背景在移动端常失效） */
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* 电脑/手机共用同一张海报图（后台只设一张即可） */
.hero-media-img { display: block; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}
/* 遮罩只压左侧文字区：深蓝渐变；右侧保持清晰 */
.hero.hero-overlay .hero-shade {
  background: linear-gradient(90deg,
    rgba(29, 78, 216, .82) 0%,
    rgba(37, 99, 235, .58) 34%,
    rgba(59, 130, 246, .2) 52%,
    rgba(59, 130, 246, 0) 66%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 5vw, 48px);
  max-width: 720px;
}
/* 海报整区可点；按钮叠在链接之上，互不抢点击 */
.hero-stretch-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border-radius: inherit;
}
.hero-has-link { cursor: pointer; }
.hero-kicker {
  display: inline-block; color: #dbeafe; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px;
}
.hero h1 {
  margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15; font-weight: 800; color: #fff;
  text-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.hero p { margin: 0 0 20px; color: rgba(255,255,255,.92); font-size: 1.05rem; max-width: 52ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:active,
a.btn:focus {
  text-decoration: none !important;
}
.btn-primary,
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active,
a.btn-primary:focus {
  background: linear-gradient(135deg, var(--blue-500), #1d4ed8);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(37,99,235,.28);
}
.btn-primary:hover,
a.btn-primary:hover { filter: brightness(1.05); }
/* 海报上的次按钮：白底深蓝字，保证可读 */
.btn-ghost,
a.btn-ghost,
a.btn-ghost:link,
a.btn-ghost:visited,
a.btn-ghost:hover,
a.btn-ghost:active,
a.btn-ghost:focus {
  background: #fff;
  color: #1d4ed8 !important;
  border: 1px solid #fff;
  box-shadow: 0 8px 20px rgba(15, 35, 70, 0.18);
}
.btn-ghost:hover,
a.btn-ghost:hover {
  background: #eff6ff;
  color: #1e40af !important;
}
.hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }

.cat-page-head {
  margin-bottom: 16px;
  padding: 4px 0 2px;
}
.cat-strip {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px;
  animation: fadeUp .7s .08s ease both;
}
.cat-chip,
a.cat-chip,
a.cat-chip:link,
a.cat-chip:visited {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-soft) !important; background: #fff; font-weight: 600; font-size: .92rem;
  text-decoration: none !important;
}
.cat-chip:hover,
a.cat-chip:hover,
.cat-chip.active,
a.cat-chip.active,
a.cat-chip.active:hover {
  color: var(--blue-500) !important; border-color: rgba(37,99,235,.35);
  background: rgba(37, 99, 235, 0.08);
}

.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.section-head p { margin: 4px 0 0; color: var(--ink-muted); font-size: .92rem; }

/* 置顶区：2×2，上宽图下文（适配横向头图） */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.article-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(21, 45, 90, 0.04);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  animation: fadeUp .55s ease both;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.28);
  box-shadow: var(--shadow);
}
.article-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2.35 / 1;
  background: linear-gradient(145deg, #e8eef8, #f5f8fc);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.article-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}
.article-card:hover .article-cover img {
  transform: scale(1.03);
}
.article-cover .cover-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--blue-500); font-weight: 800; font-size: 1.4rem; opacity: .45;
}
.article-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
  background: #fff;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--ink-muted); font-size: .78rem; font-weight: 600;
}
.article-meta .tag {
  color: var(--blue-500); background: rgba(37,99,235,.1);
  padding: 2px 8px; border-radius: 999px;
}
.article-card h3 {
  margin: 0; font-size: 1.06rem; line-height: 1.4; font-weight: 750;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card h3 a:hover { color: var(--blue-500); }
.article-card .summary {
  margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-list-more { margin-top: 20px; }
.article-row {
  display: grid; grid-template-columns: 96px minmax(0,1fr) auto; gap: 16px; align-items: center;
  padding: 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.article-row:hover { border-color: rgba(37,99,235,.28); box-shadow: var(--shadow); }
.article-row .thumb {
  width: 96px; height: 72px; border-radius: var(--radius-sm); overflow: hidden;
  background: #eef3f9;
}
.article-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-row h3 { margin: 0 0 6px; font-size: 1.05rem; }
.article-row h3 a { color: var(--ink); }
.article-row .meta { color: var(--ink-muted); font-size: .8rem; }
.article-row .views { color: var(--ink-muted); font-size: .85rem; white-space: nowrap; }

/* 无头图列表（含摘要） */
.article-row-text {
  display: block;
  padding: 0;
  overflow: hidden;
}
.article-row-text .article-row-link {
  display: block;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none !important;
  min-height: 108px;
}
.article-row-text .article-row-link:hover h3 {
  color: var(--blue-500);
}
.article-row-text h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-row-text .list-summary {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-row-text .meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  align-items: center; font-size: .8rem; font-weight: 600;
  color: var(--ink-muted);
}
.article-row-text .meta .tag {
  color: var(--blue-500); background: rgba(37,99,235,.1);
  padding: 2px 8px; border-radius: 999px;
}

.pagination {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 24px;
}
.page-btn,
a.page-btn,
a.page-btn:link,
a.page-btn:visited {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line);
  color: var(--ink-soft) !important; background: #fff; font-weight: 700;
  text-decoration: none !important;
}
.page-btn:hover,
a.page-btn:hover,
.page-btn.active,
a.page-btn.active,
a.page-btn.active:hover {
  color: #fff !important; background: var(--blue-500); border-color: var(--blue-500);
}
.page-info { color: var(--ink-muted); font-size: .85rem; margin-left: 6px; }

.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.side-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(21, 45, 90, 0.04);
  animation: fadeUp .6s .12s ease both;
}
.side-title {
  margin: 0 0 14px; font-size: 1rem; font-weight: 800; color: var(--ink);
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.qrcode-box { text-align: center; }
.qrcode-box img {
  width: 160px; height: 160px; max-width: 160px;
  object-fit: cover; margin: 0 auto 10px;
  border-radius: 12px; background: var(--white); padding: 8px;
  border: 1px solid var(--line);
}
.qrcode-box p, .side-tips { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.qr-grid { display: grid; gap: 16px; }
.contact-list { display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); font-size: .92rem; }
.contact-list a { color: var(--ink-soft); font-weight: 600; }
.contact-list a:hover { color: var(--blue-500); }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.side-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.side-list.plain li { grid-template-columns: 1fr; gap: 2px; }
.side-list a { color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.side-list a:hover { color: var(--blue-500); }
.side-list .rank {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-size: .75rem; font-weight: 800; background: rgba(37,99,235,.1); color: var(--blue-500);
}
.side-list li:nth-child(-n+3) .rank { background: var(--blue-500); color: #fff; }
.side-list time, .side-list .empty { color: var(--ink-muted); font-size: .78rem; }
.ad-side img { width: 100%; border-radius: 10px; }
.ad-text { color: var(--ink-soft); font-size: .9rem; }

.article-page {
  background: var(--card); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px); padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 6px 18px rgba(21, 45, 90, 0.04);
  animation: fadeUp .55s ease both;
}
.article-page .breadcrumb {
  color: var(--ink-muted); font-size: .85rem; margin-bottom: 16px;
}
.article-page .breadcrumb a { color: var(--ink-soft); }
.article-page h1 {
  margin: 0 0 14px; font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.25; color: var(--ink); font-weight: 800;
}
.article-head-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--ink-muted);
  font-size: .88rem; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.article-cover-hero {
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: visible;
  background: transparent;
  border: 0;
}
.article-cover-hero-link {
  display: block;
  cursor: pointer;
  line-height: 0;
  text-decoration: none !important;
  border-radius: 12px;
  overflow: visible;
}
.article-cover-hero-link:hover img { opacity: .94; }
.article-cover-hero img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 12px;
  pointer-events: auto;
}
.article-content { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.85; }
.article-content h2, .article-content h3 {
  color: var(--ink); margin: 1.6em 0 .7em; line-height: 1.3;
}
.article-content p { margin: 0 0 1.1em; }
.article-content ul, .article-content ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.article-content a { text-decoration: underline; text-underline-offset: 3px; }
/* 文章内图片：完整显示，不裁切 */
.article-content img,
.article-inline-img img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 12px;
  display: block;
  background: transparent;
}
.article-inline-img {
  margin: 1.4em 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.article-inline-img-link {
  display: block;
  cursor: pointer;
  line-height: 0;
  text-decoration: none !important;
  border-radius: 12px;
  overflow: visible;
}
.article-inline-img-link:hover img { opacity: .94; }
.article-inline-img-link:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.empty-state {
  text-align: center; padding: 48px 20px; border: 1px dashed var(--line);
  border-radius: var(--radius); color: var(--ink-muted); background: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--ink-muted); font-size: .9rem;
}
.footer-brand strong { color: var(--ink); font-size: 1.05rem; }
.footer-brand p { margin: 6px 0 0; }
.footer-meta { text-align: right; }
.footer-meta a { color: var(--ink-muted); }
.footer-contact {
  display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 10px;
  color: var(--ink-soft); font-size: .9rem;
}

.float-bar {
  position: fixed; right: 16px; bottom: 88px; z-index: 60;
}
.float-toggle {
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: linear-gradient(135deg, var(--blue-500), #1d4ed8);
  color: #fff; font-weight: 800; cursor: pointer;
  box-shadow: 0 12px 28px rgba(37,99,235,.3);
}
.float-panel {
  display: none; position: absolute; right: 0; bottom: 62px; width: 220px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.float-bar.open .float-panel { display: block; animation: fadeUp .25s ease both; }
.float-panel a, .float-panel div {
  display: block; color: var(--ink-soft); padding: 8px 0; font-size: .9rem; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.float-panel a:last-child, .float-panel div:last-child { border-bottom: 0; }
.float-panel img {
  width: 100%; max-width: 100%; height: auto;
  border-radius: 8px; display: block;
}

.back-top {
  position: fixed; right: 16px; bottom: 24px; z-index: 60;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s;
  box-shadow: var(--shadow);
}
.back-top.show { opacity: 1; pointer-events: auto; }

/* 手机底部导航：默认隐藏，仅小屏显示 */
.m-dock { display: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 20px; }
  .sidebar { position: static; }
  /* 置顶区始终 2×2，勿改成单列 */
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .footer-meta { text-align: left; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .container { width: min(100% - 24px, var(--max)); }
  .site-main { padding: 16px 0 48px; }

  .desktop-nav,
  .desktop-search { display: none !important; }
  .nav-toggle { display: inline-flex; flex-shrink: 0; margin-left: 0; }
  .brand { max-width: min(70%, 280px); }
  .brand-name { font-size: 1.05rem; }
  .brand-logo { max-height: 30px; max-width: min(100%, 220px); }

  /* 全屏抽屉：相对视口，不嵌在 header 里 */
  .mobile-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
  }
  .mobile-drawer[hidden] { display: none !important; }
  body.menu-open .mobile-drawer { pointer-events: auto; }

  .mobile-drawer-mask {
    position: absolute; inset: 0;
    background: rgba(15, 32, 51, .48);
    opacity: 0;
    transition: opacity .22s ease;
  }
  .mobile-drawer-panel {
    position: absolute;
    top: 0; right: 0;
    width: min(88vw, 340px);
    height: 100%;
    max-height: 100dvh;
    background: #fff;
    box-shadow: -16px 0 48px rgba(15, 32, 51, .22);
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translateX(105%);
    transition: transform .24s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.menu-open .mobile-drawer-mask { opacity: 1; }
  body.menu-open .mobile-drawer-panel { transform: translateX(0); }

  .mobile-drawer-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding-bottom: 12px; border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }
  .mobile-drawer-brand {
    display: flex; align-items: center; gap: 8px; min-width: 0;
  }
  .mobile-drawer-brand img {
    height: auto; max-height: 32px; width: auto; max-width: min(100%, 240px);
    object-fit: contain; object-position: left center;
  }
  .mobile-drawer-brand strong {
    font-size: 1rem; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mobile-drawer-close {
    width: 40px; height: 40px; border: 0; border-radius: 12px; flex-shrink: 0;
    background: #f3f6fb; color: var(--ink); font-size: 1.5rem; cursor: pointer; line-height: 1;
  }
  .mobile-nav {
    display: flex; flex-direction: column; gap: 8px;
    flex: 1; overflow: auto;
  }
  .mobile-nav a {
    display: block; padding: 14px 16px; border-radius: 12px;
    color: var(--ink) !important; font-weight: 700; font-size: 1rem;
    background: #f7f9fc; text-decoration: none !important;
  }
  .mobile-nav a.active,
  .mobile-nav a:hover {
    background: rgba(37, 99, 235, 0.12); color: var(--blue-500) !important;
  }
  .mobile-search {
    display: grid; grid-template-columns: 1fr auto; gap: 8px;
    padding-top: 12px; border-top: 1px solid var(--line);
    flex-shrink: 0;
  }
  .mobile-search input {
    width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; background: #f7f9fc; outline: none; color: var(--ink);
  }
  .mobile-search button {
    border: 0; border-radius: 12px; padding: 0 18px;
    background: var(--blue-500); color: #fff !important; font-weight: 700; cursor: pointer;
  }

  /* 海报：与电脑同一张图自适应，保证有高度能看见 */
  .hero {
    min-height: 240px;
    border-radius: 16px;
    margin-bottom: 18px;
  }
  .hero.has-image { min-height: 260px; }
  .hero-media,
  .hero-media img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .hero.hero-overlay .hero-shade {
    background: linear-gradient(180deg,
      rgba(37, 99, 235, 0) 0%,
      rgba(37, 99, 235, .14) 42%,
      rgba(29, 78, 216, .55) 72%,
      rgba(29, 78, 216, .8) 100%
    );
  }
  .hero-inner {
    padding: 22px 18px 20px;
    max-width: none;
  }
  .hero-kicker { font-size: .7rem; margin-bottom: 8px; }
  .hero h1 {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
    margin-bottom: 8px;
    word-break: break-word;
  }
  .hero p {
    font-size: .92rem;
    margin-bottom: 16px;
    max-width: none;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 11px 12px;
    font-size: .9rem;
    border-radius: 12px;
  }

  /* 分类条：横向滑动，不撑破版面 */
  .cat-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cat-strip::-webkit-scrollbar { display: none; }
  .cat-chip,
  a.cat-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: .88rem;
  }

  .section-head { align-items: flex-start; margin-bottom: 14px; }
  .section-head h2 { font-size: 1.2rem; }

  /* 置顶 2×2：沿用上宽图下文 */
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }
  .article-cover { aspect-ratio: 2.2 / 1; }
  .article-body { padding: 10px 11px 12px; gap: 5px; }
  .article-meta {
    gap: 4px 6px;
    font-size: .68rem;
  }
  .article-meta span:not(.tag) { display: none; }
  .article-card h3 {
    font-size: .9rem;
    line-height: 1.35;
  }
  .article-card .summary {
    display: none;
  }

  .article-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .article-row .thumb { width: 76px; height: 58px; }
  .article-row .views { display: none; }
  .article-row h3 { font-size: .98rem; }
  .article-row-text .article-row-link {
    padding: 14px 14px;
    min-height: 0;
  }
  .article-row-text h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  .article-row-text .list-summary {
    font-size: .88rem;
    line-height: 1.55;
    margin-bottom: 10px;
    -webkit-line-clamp: 3;
  }
  .article-row-text .meta {
    font-size: .76rem;
    gap: 6px 10px;
  }

  .article-page { padding: 16px; border-radius: 14px; }
  .article-page h1 { font-size: 1.35rem; }
  .article-content { font-size: 1rem; }

  .side-card { padding: 14px; }
  .qrcode-box img {
    width: 148px; height: 148px; max-width: 148px;
    display: block !important;
    visibility: visible !important;
  }

  .footer-inner { flex-direction: column; gap: 14px; }
  .footer-contact { gap: 8px 14px; font-size: .85rem; }

  /* 客服浮层：抬到手机底栏上方 */
  .float-bar {
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    z-index: 120;
  }
  .float-toggle {
    width: 52px; height: 52px; font-size: .88rem;
    -webkit-tap-highlight-color: transparent;
  }
  .float-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    max-height: min(70vh, 480px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 121;
    padding: 16px;
    box-shadow: 0 16px 48px rgba(15, 32, 51, .28);
  }
  .float-panel img {
    width: 168px !important;
    height: 168px !important;
    max-width: 168px !important;
    object-fit: contain;
    display: block !important;
    margin: 0 auto;
    background: #fff;
  }
  .float-panel .float-qr {
    text-align: center;
    padding-top: 4px;
  }
  .back-top {
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    z-index: 110;
  }

  /* —— 手机底部导航 —— */
  body.has-m-dock {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .m-dock {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    pointer-events: none;
    padding: 0 14px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .m-dock-fixed {
    padding: 0;
  }
  .m-dock-shell {
    pointer-events: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    align-items: stretch;
    margin: 0 auto;
    max-width: 440px;
    padding: 8px 6px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow:
      0 10px 36px rgba(21, 45, 90, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    animation: dockIn .45s cubic-bezier(.2, .8, .2, 1) both;
  }
  .m-dock-fixed .m-dock-shell {
    max-width: none;
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .m-dock-item {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ink-muted);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 6px 4px;
    border-radius: 16px;
    cursor: pointer;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s, background .2s, transform .2s;
  }
  .m-dock-item:active { transform: scale(.96); }
  .m-dock-ico {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: inherit;
    transition: background .2s, color .2s, box-shadow .2s;
  }
  .m-dock-ico svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.1;
  }
  .m-dock-txt {
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .02em;
    line-height: 1.1;
    white-space: nowrap;
  }
  .m-dock-item.is-active,
  .m-dock-item:hover {
    color: var(--blue-500);
  }
  .m-dock-item.is-active .m-dock-ico {
    background: rgba(37, 99, 235, 0.12);
    color: var(--blue-500);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  }
  .m-dock-consult .m-dock-ico {
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    color: #fff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
  }
  .m-dock-consult {
    color: var(--blue-500);
  }
  .m-dock-consult .m-dock-txt { color: var(--blue-500); }

  @keyframes dockIn {
    from { opacity: 0; transform: translateY(18px) scale(.96); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 380px) {
  .hero-actions { grid-template-columns: 1fr; }
  .brand-name { max-width: 9em; }
  .m-dock-txt { font-size: .62rem; }
}

