:root {
  --canvas: #ffffff;
  --surface: #F8F5F2;
  --surface-soft: rgba(248, 245, 242, .5);
  --ink: #222222;
  --ink-soft: #444444;
  --ink-muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --link: #2EAADD;
  --link-hover: #134B6C;
  --accent: #2EAADD;
  --accent-bg: rgba(46, 170, 221, 0.1);
  --shadow-card: -7px 7px 0px 0px #FF8533;
  --font-sans: "Noto Sans SC", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shell: 1120px;
  --copy: 760px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--canvas);
  overflow-x: hidden;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
}

.site-shell {
  min-height: 100vh;
}

/* ── TOPBAR — 严格对齐 jinshuju.net DotNetSiteHeader ── */
/* position:sticky 使其成为下拉面板 .topbar-panel 的包含块 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  transition: background 0.3s ease;
}

/* Container: px-3 lg:mx-auto lg:max-w-screen-xl + h-16(60px) flex justify-between */
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  height: 60px;
  margin: 0 auto;
  padding: 0 12px;
}

/* <section class="flex flex-auto items-center h-full"> */
.topbar-section {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  height: 100%;
  min-width: 0;
}

/* <a class="text-[#020617] lg:min-w-[150px]"> */
.topbar-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 150px;
  color: #020617;
  text-decoration: none;
}

.topbar-brand:hover {
  color: #020617;
  text-decoration: none;
}

.topbar-brand img {
  display: block;
}

/* <nav class="hidden lg:block flex-auto mx-8 h-full"> */
.topbar-nav {
  flex: 1 1 auto;
  height: 100%;
  margin: 0 32px;
  min-width: 0;
}

/* <ul class="flex justify-center h-full"> */
.topbar-nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 顶层项：<li class="flex items-center px-6"> text-h6 opacity-80 hover:opacity-100 */
.topbar-menu,
.topbar-navlink {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  font-size: 14px;
  line-height: 1.25;
  color: #020617;
  white-space: nowrap;
}

.topbar-menu {
  cursor: pointer;
  position: static; /* 让 .topbar-panel 以 .topbar 为包含块铺满整行 */
}

.topbar-menu-trigger,
.topbar-navlink a {
  display: inline-flex;
  align-items: center;
  color: #020617;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.topbar-menu:hover .topbar-menu-trigger,
.topbar-navlink:hover a {
  opacity: 1;
}

.topbar-navlink a:hover {
  color: #020617;
  text-decoration: none;
}

.topbar-menu-trigger {
  user-select: none;
}

/* ── 共享下拉面板：absolute top-16 left-0 right-0 w-full bg-white ── */
.topbar-panel {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1;
  cursor: default;
}

.topbar-menu:hover .topbar-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* relative px-3 lg:mx-auto lg:max-w-screen-xl */
.topbar-panel-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 12px;
}

/* 产品：flex gap-x-6 justify-center items-center min-h-[108px] */
.topbar-panel-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: 108px;
}

/* 解决方案分组：flex gap-x-2 justify-center items-center min-h-[108px] */
.topbar-panel-row--groups {
  gap: 8px;
}

/* ul flex gap-x-2 items-center */
.topbar-panel-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* <li class="flex min-w-[70px]"> */
.topbar-panel-cell {
  display: flex;
  min-width: 70px;
}

/* <a class="flex flex-col gap-2 items-center opacity-80 hover:opacity-100 text-[#020617]"> */
.topbar-panel-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  color: #020617;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.topbar-panel-link:hover {
  opacity: 1;
  color: #020617;
  text-decoration: none;
}

/* 图标容器 relative flex-shrink-0 */
.topbar-panel-icon {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  color: #020617;
}

.topbar-panel-icon svg {
  display: block;
}

/* 文字 inline-flex relative items-center whitespace-nowrap text-[14px] */
.topbar-panel-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

/* NEW 角标：absolute top-full left-1/2 -translate-x-1/2 mt-[4px] text-xs text-blue-600 */
.topbar-panel-badge {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  font-size: 12px;
  line-height: 1;
  color: #2563eb;
  white-space: nowrap;
}

/* 推广角标：absolute top-full left-1/2 -translate-x-1/2 mt-[4px] text-xs text-[#F54A00] */
.topbar-panel-promo {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  font-size: 12px;
  line-height: 1;
  color: #f54a00;
  white-space: nowrap;
}

.topbar-panel-promo-arrow {
  position: absolute;
  top: 1px;
  right: -14px;
  display: inline-flex;
  color: rgba(2, 6, 23, 0.5);
}

/* 广告分隔线：self-stretch flex items-center px-3 > w-px h-6 bg-slate-200 */
.topbar-panel-divider {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.topbar-panel-divider span {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
}

/* 分组容器 relative + 标题 absolute -top-[28px] */
.topbar-panel-group {
  position: relative;
}

.topbar-panel-group-title {
  position: absolute;
  left: 0;
  top: -28px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: rgba(34, 34, 34, 0.6);
  opacity: 0.6;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 36px;
  height: 36px;
  margin-left: -6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 9px;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease, top 0.22s ease;
}

.menu-toggle::before { top: 12px; }
.menu-toggle span { top: 17.5px; }
.menu-toggle::after { top: 23px; }

body.nav-open .menu-toggle::before { top: 17.5px; transform: rotate(45deg); }
body.nav-open .menu-toggle span { opacity: 0; }
body.nav-open .menu-toggle::after { top: 17.5px; transform: rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 58px 0 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 0, 0, 0.18);
  transition: opacity 0.22s ease;
}

/* <section class="lg:flex justify-end space-x-3 lg:min-w-[150px]"> */
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 12px;
  min-width: 150px;
}

/* 登录：<button class="py-0 px-3 h-8 btn"> btn=border border-site-black rounded-md text-sm */
.topbar-login {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #222222;
  border-radius: 6px;
  font-size: 14px;
  color: #222222;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.topbar-login:hover {
  color: #222222;
  background: rgba(34, 34, 34, 0.06);
  text-decoration: none;
}

/* 注册：<button class="py-0 px-3 h-8 text-white btn"> + 渐变 inline style，hover→#020617 */
.topbar-signup {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #020617;
  border-radius: 6px;
  font-size: 14px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), #020617;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.topbar-signup:hover {
  color: #ffffff;
  background: #020617;
  text-decoration: none;
}

.page {
  width: 100%;
}

.home-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
  padding: 64px 0;
}

.article-shell {
  width: min(calc(100% - 32px), 1024px);
  margin: 0 auto;
  padding: 48px 0 88px;
}

.home-layout {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.home-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 80px);
  padding: 0 32px;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.home-sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-block {
  display: flex;
  flex-direction: column;
  width: fit-content;
}

.sidebar-block h1 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sidebar-nav {
  padding-top: 32px;
}

.sidebar-block .divider {
  width: 100%;
  margin-top: 32px;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-nav a {
  color: var(--ink-muted);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sidebar-nav a:hover {
  color: var(--ink);
}

.sidebar-nav a.is-active {
  color: var(--ink);
  font-weight: 500;
}

.home-content {
  min-width: 0;
  padding: 0 32px;
  position: relative;
}

.home-content.is-list-transitioning {
  overflow: hidden;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--ink-muted);
}

.article-breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  color: var(--border-strong);
}

.breadcrumb-sep svg {
  display: block;
  width: 14px;
  height: 14px;
}

.article-kicker {
  margin: 0 0 10px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 44px;
  font-weight: 700;
}

h2 {
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 650;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 650;
}

.hero-copy {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

.guide-list-shell {
  display: grid;
  gap: 28px;
}

.has-reveal .guide-list-shell .reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.85s cubic-bezier(0.32, 0.72, 0, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.has-reveal .guide-list-shell .reveal-item.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .has-reveal .guide-list-shell .reveal-item,
  .guide-card {
    transition: none;
  }

  .has-reveal .guide-list-shell .reveal-item {
    opacity: 1;
    transform: none;
  }
}

.section-heading {
  max-width: 760px;
}

.section-heading p,
.article-description {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px;
}

.section-heading + .guide-grid {
  margin-top: 32px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-card:hover {
  transform: scale(1.01);
}

.guide-card-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #134B6C;
}

.guide-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px 4px 0;
}

.guide-card-tag {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.guide-card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

.guide-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.guide-card-title a:hover {
  color: var(--ink);
  text-decoration: none;
}

.guide-card-description {
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-meta {
  margin: auto 0 0;
  padding-top: 8px;
  color: var(--ink-muted);
  font-size: 14px;
}

.draft-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

.guide-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.guide-pagination-link,
.guide-pagination-current,
.guide-pagination-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.guide-pagination-link {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-soft);
  text-decoration: none;
}

.guide-pagination-link:hover {
  color: var(--ink);
  border-color: var(--border-strong);
  text-decoration: none;
}

.guide-pagination-current {
  background: #020617;
  color: #ffffff;
}

.guide-pagination-gap {
  color: var(--ink-muted);
}

.guide-pagination-direction {
  min-width: 82px;
}

.guide-pagination-link.is-disabled {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--ink-muted);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 256px;
  align-items: start;
  gap: 64px;
}

.article-main {
  min-width: 0;
}

.article-header {
  margin-bottom: 32px;
}

.article-cover {
  margin-bottom: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #134B6C;
}

.article-cover-inline {
  aspect-ratio: 40 / 21;
  background: transparent;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-cover svg {
  width: 100%;
  height: 100%;
  display: block;
}

.article-header h1 {
  margin-bottom: 32px;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 14px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
}

.article-byline span {
  display: inline-block;
}

.inline-toc {
  display: none;
  margin-bottom: 28px;
}

.inline-toc h2,
.aside-block h2,
.article-related h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.article-aside {
  position: sticky;
  top: 80px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.article-aside .aside-block {
  max-height: calc(100vh - 104px);
  overflow: auto;
  overscroll-behavior: contain;
}

/* 文章页的分类目录抽屉：桌面隐藏，仅窄屏作侧滑抽屉（与首页一致） */
.home-sidebar--drawer {
  display: none;
}

.toc-list,
.related-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-list li + li,
.related-list li + li {
  margin-top: 12px;
}

.toc-list a,
.related-list a {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.15s ease;
}

.toc-list a:hover {
  color: var(--ink);
  text-decoration: none;
}

.toc-list a:hover,
.related-list a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.article-body {
  min-width: 0;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body > *:last-child {
  margin-bottom: 0;
}

.article-body {
  font-size: 18px;
}

.article-body :where(h2, h3, h4, h5, h6),
.article-header h1 {
  scroll-margin-top: 90px;
}

.article-body h2 {
  margin: 48px 0 24px;
  padding-top: 0;
  border-top: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.article-body h3 {
  margin: 32px 0 8px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.article-body p,
.article-body li {
  color: var(--ink);
  font-size: 18px;
}

.article-body p {
  margin: 0 0 24px;
  line-height: 1.55;
}

.article-body a {
  color: var(--link);
  text-decoration: none;
}

.article-body a:hover {
  text-decoration: underline;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 1.55em;
}

.article-body li {
  line-height: 1.55;
}

.article-body li + li {
  margin-top: 0.5em;
}

.article-body li::marker {
  color: var(--ink-muted);
}

.article-body hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.article-body hr + h2 {
  margin-top: 1.6em;
}

.article-body blockquote {
  margin: 22px 0;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--border-strong);
  color: var(--ink-soft);
}

.article-body blockquote p {
  color: inherit;
}

.table-wrap {
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--canvas);
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--surface);
  font-weight: 650;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.article-body code {
  padding: 0.14em 0.32em;
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.889em;
}

.article-body pre {
  overflow-x: auto;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.article-body pre code {
  padding: 0;
  background: transparent;
}

.article-related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.related-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}

.related-list span {
  color: var(--ink-muted);
  font-size: 13px;
}

@media (max-width: 1180px) {
}

@media (max-width: 1080px) {
  h1 {
    font-size: 38px;
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 32px;
  }

  .article-header h1 {
    font-size: 36px;
  }
}

/* 桌面导航在 <lg(1024px) 隐藏，对齐主站 hidden lg:block */
@media (max-width: 1023px) {
  .topbar-nav {
    display: none;
  }

  .topbar-signup {
    display: none;
  }
}

@media (max-width: 800px) {
  .home-shell,
  .article-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .menu-toggle {
    display: block;
  }

  .home-sidebar {
    position: fixed;
    top: 58px;
    left: 0;
    z-index: 50;
    width: min(320px, 86vw);
    height: calc(100vh - 58px);
    margin: 0;
    padding: 28px 24px 48px;
    background: var(--canvas);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1);
  }

  body.nav-open .home-sidebar {
    transform: translateX(0);
  }

  body.nav-open .nav-overlay {
    pointer-events: auto;
    opacity: 1;
  }

  .topbar-inner {
    min-height: 58px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  .sidebar-block h1 {
    font-size: 30px;
  }

  .hero-copy,
  .section-heading p,
  .article-description {
    font-size: 15px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .article-aside {
    display: none;
  }

  .home-sidebar--drawer {
    display: block;
  }

  .inline-toc {
    display: block;
  }

  .article-header h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 22px;
  }

  h3,
  .guide-card-title {
    font-size: 17px;
  }

  .home-shell,
  .article-shell {
    padding: 40px 0 64px;
  }

  .sidebar-block h1 {
    font-size: 28px;
  }

  .article-header h1 {
    font-size: 28px;
  }

  .article-byline {
    font-size: 13px;
  }

  .guide-pagination {
    gap: 8px;
  }

  .guide-pagination-link,
  .guide-pagination-current,
  .guide-pagination-gap {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .article-body h2 {
    font-size: 24px;
  }

  .article-body h3 {
    font-size: 18px;
  }

  .article-body p,
  .article-body li {
    font-size: 16px;
  }
}

/* ── FOOTER — 严格对齐 jinshuju.net DotNetSiteFooter + FooterPublicity ── */

/* <footer class="footer-style"> .footer-style { bg-white text-[#020617] } */
.site-footer {
  background: #ffffff;
  color: #020617;
  font-size: 14px;
  line-height: 20px; /* text-sm 固定行高，覆盖 html 的 1.6 继承 */
}

/* <Container py-10 lg:pt-28 lg:pb-20> + px-3 lg:mx-auto lg:max-w-screen-xl */
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 112px 12px 80px;
}

/* <div class="flex flex-wrap lg:justify-between"> */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* <section class="mb-12 lg:w-72 text-sm"> */
.footer-brand-section {
  width: 288px;
  margin-bottom: 48px;
  font-size: 14px;
}

/* .footer-logo > svg { text-[#FF8533] } —— logo fill=currentColor */
.footer-logo-wrap {
  display: inline-block;
  color: #ff8533;
}

.footer-logo-wrap svg {
  display: block;
}

/* <p class="mt-8 text-sm leading-normal"> .footer-desc { text-[#666] } */
.footer-desc {
  margin: 32px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666666;
}

/* <section class="min-w-1/2 lg:min-w-0"> */
.footer-section {
  min-width: 0;
}

/* <h1 class="mb-8 lg:text-xl text-h5">
   text-h5 在 lg 下 = text-lg + leading-relaxed（@layer 自定义类覆盖 lg:text-xl）
   → 18px / line-height 1.625 / font-medium 500 */
.footer-col-title {
  margin: 0 0 32px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.625;
  color: #020617;
}

/* 在线客服：inline-flex 文字 + 耳麦图标 ml-2，图标随 currentColor */
.footer-cs {
  display: inline-flex;
  align-items: center;
}

.footer-cs svg {
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

/* <ul class="my-8 space-y-6 text-sm"> text-sm = 14px / 20px，space-y-6 = 24px */
.footer-col-list {
  margin: 32px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 14px;
  line-height: 20px;
}

/* <a class="hover:text-primary"> primary=#2563EB */
.footer-col-list li a {
  color: #020617;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col-list li a:hover {
  color: #2563eb;
  text-decoration: none;
}

/* <div class="flex flex-wrap justify-between items-center text-xs"> text-xs = 12px / 16px */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  line-height: 16px;
}

/* <p class="flex flex-wrap items-center cursor-default"> */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

.footer-legal span,
.footer-legal a {
  display: flex;
  align-items: center;
  margin: 8px 24px 8px 0;
  font-size: 12px;
  line-height: 16px;
  color: #020617;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal a:hover {
  color: #2563eb;
  text-decoration: none;
}

/* 公安备案图标 mr-1 */
.footer-legal img {
  margin-right: 4px;
}

/* ── FooterPublicity：社交媒体区 ── */
/* <div class="flex flex-1 justify-start lg:justify-end items-center lg:my-0 mt-8 mb-20"> */
.footer-social {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: 32px;
  margin: 0;
}

/* <span class="group flex relative justify-center fill-[#020617]"> */
.footer-social-item {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.footer-social-item svg {
  display: block;
  fill: #020617;
  transition: fill 0.2s ease;
}

/* 各平台 hover 品牌色 */
.footer-social--wechat:hover svg { fill: #07c160; }
.footer-social--zhihu:hover svg { fill: #1772f6; }
.footer-social--redbook:hover svg { fill: #ff2442; }
.footer-social--bili:hover svg { fill: #00aeec; }

/* 二维码弹层：absolute bottom-12 z-10，hover 显示 */
.footer-qr {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.footer-social-item:hover .footer-qr {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* .popup-content：p-12px rounded-10px bg-white shadow + 下箭头 */
.footer-qr-card {
  position: relative;
  display: block;
  padding: 12px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.15);
}

.footer-qr-card::after {
  content: "";
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: #fff;
  bottom: -19px;
  left: 50%;
  margin-left: -9px;
}

.footer-qr-card img {
  display: block;
  width: 104px;
  height: 104px;
}

/* text-center mt-[4px] text-[14px] text-[#020617] leading-[20px] */
.footer-qr-text {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: #020617;
}

@media (max-width: 1023px) {
  .footer-inner {
    padding: 40px 24px;
  }

  .footer-brand-section {
    width: 100%;
    margin-bottom: 32px;
  }

  .footer-section {
    min-width: 50%;
    margin-bottom: 24px;
  }

  /* mobile: justify-start mt-8 mb-20 */
  .footer-social {
    flex-basis: 100%;
    justify-content: flex-start;
    margin: 32px 0 80px;
  }
}
