:root {
  /* ===== 主题变量（切换主题 = 覆盖这些变量，见 public/css/themes/） ===== */
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-soft: #eff6ff;
  --primary-soft-hover: #dbeafe;
  --glow: rgba(96, 165, 250, .45);          /* 光斑/装饰主色 */
  --text: #1f2937;
  --text-light: #6b7280;
  --text-faint: #98a4b5;
  --page-bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3f9;
  --border: #e4eaf3;
  --radius: 12px;
  --radius-lg: 20px;
  --header-bg: rgba(255, 255, 255, .8);
  --hero-grad: linear-gradient(130deg, #16275c 0%, #1d4ed8 55%, #3b82f6 115%);
  --hero-grid: rgba(255, 255, 255, .07);
  --cta-grad: linear-gradient(120deg, #1e40af 0%, #2563eb 55%, #3b82f6 110%);
  --footer-bg: #101828;
  --footer-head: #ffffff;
  --footer-text: #94a3b8;
  --footer-line: #1e293b;
  --footer-bottom: #64748b;
  --chip-ai-bg: #f3e8ff;
  --chip-ai-text: #7c3aed;
  --prose-code-bg: #f1f5f9;
  --prose-pre-bg: #0f172a;
  --prose-pre-text: #e2e8f0;
  --blockquote-bg: #f6f9fd;
  --input-bg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 10px 24px -8px rgba(16, 24, 40, .14), 0 3px 8px rgba(16, 24, 40, .05);
  --shadow-lg: 0 24px 48px -16px rgba(23, 51, 102, .28);
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.75;
  font-size: 16px;
  position: relative;
}
/* 页面顶部柔和光晕，让白底不再是死白（max-width + 双向定位，确保不产生横向溢出） */
body::before {
  content: ""; position: absolute; top: -300px; left: 0; right: 0; margin: 0 auto;
  max-width: 1400px; height: 680px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  opacity: .14;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c5d2e4; border-radius: 8px; border: 2px solid var(--page-bg); }
::-webkit-scrollbar-thumb:hover { background: #a9bcd6; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ---------- Header：毛玻璃 + 当前位置高亮 ---------- */
.site-header {
  border-bottom: 1px solid var(--border); background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { font-size: 20px; font-weight: 800; color: var(--text); white-space: nowrap; letter-spacing: .3px; }
.logo-mark { color: var(--primary); margin-right: 2px; }
.main-nav { display: flex; gap: 6px; flex: 1; }
.main-nav a {
  color: var(--text-light); font-weight: 500; font-size: 15px;
  padding: 6px 13px; border-radius: 9px; transition: all .18s;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.header-search { display: flex; gap: 6px; }
.header-search input {
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; font-size: 14px; width: 150px;
  background: var(--input-bg); color: var(--text);
}
.header-search input:focus { outline: 2px solid var(--primary-soft-hover); }
.header-search button {
  border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: 8px;
  padding: 7px 13px; cursor: pointer; font-size: 14px; transition: background .15s;
}
.header-search button:hover { background: var(--primary-dark); }

/* ---------- Hero：容器内大圆角卡片（渐变 + 网格纹理 + 光斑 + 玻璃统计条） ---------- */
.hero-wrap { padding: 26px 0 8px; }
.hero {
  position: relative; overflow: hidden;
  border-radius: 26px;
  background: var(--hero-grad);
  color: #fff;
  padding: 72px 60px 48px;
  box-shadow: var(--shadow-lg);
}
/* 细网格纹理，右上角渐隐 */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 72% 8%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 100% at 72% 8%, #000 25%, transparent 78%);
}
/* 双光斑 */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 420px at 86% 12%, var(--glow), transparent 70%),
    radial-gradient(360px 300px at 8% 108%, var(--glow), transparent 75%);
  opacity: .55;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 42px; line-height: 1.28; margin-bottom: 16px; letter-spacing: .5px; font-weight: 800; }
.hero-sub { font-size: 17px; opacity: .9; max-width: 700px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.hero-actions .btn-primary:hover { background: #f3f7ff; transform: translateY(-1px); }
.hero-actions .btn-ghost { border-color: rgba(255,255,255,.45); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.14); }
.hero-stats {
  display: flex; gap: 0; margin-top: 46px; width: fit-content;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px; padding: 16px 8px;
}
.hero-stats div { display: flex; flex-direction: column; padding: 2px 34px; }
.hero-stats div + div { border-left: 1px solid rgba(255, 255, 255, .18); }
.hero-stats strong { font-size: 28px; line-height: 1.2; }
.hero-stats span { font-size: 13.5px; opacity: .85; }
/* 装饰圆环 */
.hero-decor i { position: absolute; border: 2px solid rgba(255, 255, 255, .13); border-radius: 50%; z-index: 1; }
.hero-decor i:first-child { width: 300px; height: 300px; right: 6%; top: -110px; }
.hero-decor i:last-child { width: 130px; height: 130px; right: 24%; bottom: 56px; background: rgba(255, 255, 255, .05); border: none; }

.btn {
  display: inline-block; padding: 11px 24px; border-radius: 10px; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: all .18s; font-weight: 500;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(29, 78, 216, .25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-light { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-light:hover { transform: translateY(-1px); }

/* ---------- Sections：分区节奏（白卡区 ↔ 浅色带交替 + 细边框分隔） ---------- */
.section { padding: 68px 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.section-head h2 { font-size: 28px; letter-spacing: .3px; position: relative; padding-left: 16px; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px;
  border-radius: 4px; background: linear-gradient(180deg, var(--primary), var(--glow));
}
.section-more { font-size: 14.5px; color: var(--text-light); }
.section-more:hover { color: var(--primary); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- CTA：主色渐变大圆角卡 ---------- */
.cta-band { padding: 20px 0 76px; background: transparent; }
.cta-inner {
  position: relative; overflow: hidden;
  background: var(--cta-grad);
  border-radius: 24px; padding: 46px 56px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 120% at 85% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 120% at 85% 0%, #000 20%, transparent 75%);
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: 26px; margin-bottom: 6px; letter-spacing: .4px; }
.cta-inner p { color: rgba(255,255,255,.85); }

/* ---------- 服务卡片 ---------- */
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 32px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--glow));
  opacity: 0; transition: opacity .25s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary-soft-hover); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); border-radius: 14px;
}
.service-card h3 { font-size: 19px; }
.service-card h3 a { color: var(--text); }
.service-card h3 a:hover { color: var(--primary); }
.service-card p { color: var(--text-light); font-size: 14.5px; flex: 1; }
.service-link { font-size: 14px; font-weight: 600; }

/* ---------- 文章卡片：渐变顶边 + 悬浮反馈 + 标题下划线动画 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 32px 22px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--glow));
  opacity: 0; transition: opacity .25s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary-soft-hover); }
.card:hover::before { opacity: 1; }
.card-cat { font-size: 13px; color: var(--primary); font-weight: 700; }
.card-title { font-size: 18px; line-height: 1.5; }
.card-title a {
  color: var(--text);
  background-image: linear-gradient(var(--primary), var(--primary));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .28s, color .18s;
  padding-bottom: 2px;
}
.card-title a:hover { color: var(--primary); background-size: 100% 2px; }
.card-summary { color: var(--text-light); font-size: 14.5px; flex: 1; }
.card-meta { display: flex; gap: 8px; align-items: center; color: var(--text-faint); font-size: 13px; }
.chip {
  display: inline-block; background: var(--primary-soft); color: var(--primary); border-radius: 999px;
  padding: 2px 12px; font-size: 13px;
}
.chip:hover { background: var(--primary-soft-hover); }
.chip-ai { background: var(--chip-ai-bg); color: var(--chip-ai-text); font-weight: 600; }

/* ---------- Page head：左对齐，标题文字与卡片内文字精确对齐 ----------
   缩进 37px = 卡片内文字偏移(20px 容器内边距 + 1px 边框 + 32px 卡片内边距) - 16px 标题竖条区 */
.page-head { padding: 44px 20px 12px 37px; }
.page-head h1 { font-size: 30px; margin-bottom: 0; letter-spacing: .3px; position: relative; padding-left: 16px; }
.page-head h1::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 4px;
  border-radius: 4px; background: linear-gradient(180deg, var(--primary), var(--glow));
}
.page-head p { color: var(--text-light); margin-top: 8px; margin-left: 16px; }
.page-head .breadcrumb { margin-bottom: 14px; margin-left: 16px; }
.breadcrumb {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px;
  font-size: 13.5px; color: var(--text-light);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 18px; box-shadow: var(--shadow-sm);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text); font-weight: 500; }

/* ---------- 文章页：正文大卡片 + 侧栏跟随 ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 34px 20px 72px; max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.article-body {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 32px; box-shadow: var(--shadow-sm);
}
.article-body h1 { font-size: 30px; line-height: 1.4; margin-bottom: 14px; letter-spacing: .3px; }
.article-lead { color: var(--text-light); font-size: 16.5px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px dashed var(--border); }
.article-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--text-light); font-size: 14px; margin-bottom: 26px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.article-cta {
  background: linear-gradient(135deg, var(--primary-soft), var(--surface) 70%);
  border: 1px solid var(--primary-soft-hover); border-radius: var(--radius-lg);
  padding: 28px; margin-top: 36px; text-align: center;
}
.article-cta h3 { margin-bottom: 6px; }
.article-cta p { color: var(--text-light); margin-bottom: 14px; }
.related { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.related h2 { font-size: 21px; margin-bottom: 18px; }
.related-item {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
  background: var(--surface);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.related-item:hover { border-color: var(--primary-soft-hover); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-item strong { line-height: 1.55; font-size: 15px; }
.related-cat { font-size: 12.5px; color: var(--primary); font-weight: 700; }

/* ---------- Markdown prose ---------- */
.prose { font-size: 16px; }
.prose h2 {
  font-size: 23px; margin: 36px 0 16px; letter-spacing: .2px;
  padding-left: 14px; position: relative;
}
.prose h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  border-radius: 4px; background: linear-gradient(180deg, var(--primary), var(--glow));
}
.prose h3 { font-size: 19px; margin: 26px 0 10px; }
.prose h4 { font-size: 17px; margin: 20px 0 8px; }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { padding-left: 26px; margin: 12px 0; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--primary); }
.prose blockquote {
  border-left: 4px solid var(--primary); background: var(--blockquote-bg);
  padding: 13px 18px; margin: 16px 0; border-radius: 0 10px 10px 0; color: var(--text);
}
.prose code { background: var(--prose-code-bg); border-radius: 4px; padding: 2px 6px; font-size: .9em; }
.prose pre { background: var(--prose-pre-bg); color: var(--prose-pre-text); border-radius: 10px; padding: 16px; overflow-x: auto; margin: 16px 0; }
.prose pre code { background: transparent; color: inherit; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14.5px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 13px; text-align: left; }
.prose th { background: var(--surface-alt); font-weight: 600; }
.prose tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-alt) 45%, transparent); }
.prose img { border-radius: 12px; margin: 14px 0; box-shadow: var(--shadow-sm); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ---------- 侧栏：跟随滚动 + 渐变联系卡 ---------- */
.article-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 88px; align-self: start; }
.aside-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.aside-box h4 { font-size: 15.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.aside-box h4::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--primary), var(--glow)); }
.aside-list { list-style: none; }
.aside-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; line-height: 1.55; }
.aside-list li:last-child { border-bottom: none; }
.aside-list a { color: var(--text); transition: color .15s; }
.aside-list a:hover { color: var(--primary); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.aside-contact { background: var(--hero-grad); border: none; text-align: center; color: #fff; overflow: hidden; position: relative; }
.aside-contact::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 80% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 100% 100% at 80% 0%, #000 20%, transparent 80%);
}
.aside-contact > * { position: relative; }
.aside-contact h4 { color: #fff; justify-content: center; }
.aside-contact h4::before { display: none; }
.aside-phone { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: .5px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Pager ---------- */
.pager { display: flex; gap: 8px; justify-content: center; padding: 38px 0 10px; flex-wrap: wrap; }
.pager-link {
  padding: 8px 15px; border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  font-size: 14px; background: var(--surface); box-shadow: var(--shadow-sm); transition: all .15s;
}
.pager-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.pager-current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager-ellipsis { padding: 8px 4px; color: var(--text-faint); }

/* ---------- Search / contact / 404 ---------- */
.search-big { display: flex; gap: 10px; max-width: 560px; margin: 18px 0 0 16px; }
.search-big input { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-size: 15px; background: var(--input-bg); color: var(--text); box-shadow: var(--shadow-sm); }
.search-big input:focus { outline: 2px solid var(--primary-soft-hover); }
.search-info { color: var(--text-light); margin-bottom: 20px; }
.empty { color: var(--text-light); padding: 30px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.contact-list { list-style: none; margin-top: 18px; }
.contact-list li { padding: 9px 0; font-size: 15.5px; border-bottom: 1px dashed var(--border); }
.contact-list li:last-child { border-bottom: none; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 600; }
.contact-form input, .contact-form textarea, .contact-form select {
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font-size: 15px; font-family: inherit;
  background: var(--input-bg); color: var(--text);
}
.contact-form input, .contact-form select { min-height: 48px; }
.contact-form select { padding-top: 0; padding-bottom: 0; cursor: pointer; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--primary-soft-hover); border-color: var(--primary); }
.hp-field { position: absolute; left: -9999px; }
.form-ok { background: #dcfce7; color: #166534; padding: 12px 16px; border-radius: 10px; }
.form-err { background: #fee2e2; color: #991b1b; padding: 12px 16px; border-radius: 10px; }
.notfound { text-align: center; padding: 100px 20px; }
.notfound h1 { font-size: 76px; color: var(--primary); margin-bottom: 10px; }
.notfound p { color: var(--text-light); margin-bottom: 24px; }
.notfound .hero-actions { justify-content: center; }
.notfound .btn-ghost { border-color: var(--border); color: var(--text); }
.notfound .btn-ghost:hover { background: var(--surface-alt); color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 48px; position: relative; }
.site-footer::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--primary), var(--glow), var(--primary), transparent 95%);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding: 52px 20px 36px; }
.footer-col h4 { color: var(--footer-head); font-size: 15.5px; margin-bottom: 14px; letter-spacing: .4px; }
.footer-col a, .footer-col span { display: block; color: var(--footer-text); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-about p { color: var(--footer-text); font-size: 14px; }
.footer-bottom { border-top: 1px solid var(--footer-line); padding: 18px 20px; display: flex; gap: 18px; font-size: 13px; color: var(--footer-bottom); }
.footer-bottom a { color: var(--footer-bottom); }

/* ---------- 广告位 ---------- */
.ad-slot { display: flex; flex-direction: column; gap: 12px; margin: 0 0 26px; }
.ad-slot:empty { display: none; }
.ad-home_banner { margin: 0 0 44px; }
.ad-home_mid { margin: 0 0 30px; }
.ad-list_bottom { margin: 26px 0 0; }
.ad-article_bottom { margin: 30px 0 0; }
.ad-slot .ad-item img { width: 100%; display: block; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ad-text {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 15px 18px; color: var(--text); font-size: 15px; box-shadow: var(--shadow-sm);
}
.ad-text:hover { border-color: var(--primary); color: var(--primary); }
.ad-tag {
  font-size: 11px; color: var(--text-faint); border: 1px solid var(--border); border-radius: 4px;
  padding: 0 5px; line-height: 1.6; flex-shrink: 0;
}
.ad-html { line-height: 1.6; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .hero { padding: 52px 36px 40px; }
  .hero h1 { font-size: 31px; }
  .article-body { padding: 28px 24px; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .main-nav a { white-space: nowrap; padding: 5px 10px; font-size: 14px; }
  .hero { padding: 44px 26px 34px; border-radius: 20px; }
  .hero h1 { font-size: 26px; }
  .hero-stats div { padding: 2px 18px; }
  .hero-stats strong { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta-inner { padding: 34px 28px; }
}

/* ---------- 广告位 CLS 防抖占位（对齐 AdSense 常见规格，防加载时版面跳动） ---------- */
.ad-home_banner { min-height: 130px; }
.ad-home_mid { min-height: 120px; }
.ad-list_top { min-height: 110px; }
.ad-list_bottom { min-height: 110px; }
.ad-article_side { min-height: 260px; }
.ad-article_bottom { min-height: 120px; }
@media (max-width: 768px) {
  .ad-home_banner, .ad-list_top, .ad-list_bottom { min-height: 100px; }
  .ad-article_side { min-height: 0; }
}

/* ---------- 文章目录（TOC） ---------- */
.toc { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 28px; }
.toc h4 { font-size: 15px; margin-bottom: 10px; }
.toc ul { list-style: none; }
.toc li { padding: 4px 0; font-size: 14.5px; }
.toc li.toc-l3 { padding-left: 20px; font-size: 13.5px; color: var(--text-light); }
.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); }
[id^='sec-'] { scroll-margin-top: 90px; }

/* ---------- 软件下载 ---------- */
.dl-card { gap: 12px; }
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dl-head .card-title { margin: 0; }
.dl-actions { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.btn-dl { font-size: 17px; padding: 14px 44px; box-shadow: 0 6px 18px rgba(29, 78, 216, .3); }

/* ---------- 网格防挤压：长 URL/单词不再撑破布局 ---------- */
.grid > * { min-width: 0; }
.card-summary, .card-title, .prose, .related-item strong { overflow-wrap: break-word; word-break: break-word; }

/* ---------- 导航防折行 ---------- */
.main-nav a { white-space: nowrap; }
.header-search input { width: 120px; }

/* ---------- 导航项不折行 ---------- */
.main-nav a { white-space: nowrap; padding: 5px 9px; font-size: 14px; }
.header-search input { width: 110px; }

/* ---------- 正文排版精修（呼吸感 + 可读性） ---------- */
.prose { line-height: 1.85; letter-spacing: 0.2px; }
.prose p { margin: 16px 0; }
.prose h2 { margin: 44px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.prose h3 { margin: 30px 0 12px; }
.prose li { margin: 8px 0; line-height: 1.8; }
.prose strong { font-weight: 600; color: var(--text); }
.prose table { margin: 22px 0; }
.prose img { max-width: 100%; border-radius: 10px; }

/* ---------- 软件下载：封面与截图画廊 ---------- */
.dl-card-cover { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-alt); border: 1px solid var(--border); }
.dl-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.dl-card-cover:hover img { transform: scale(1.04); }

.dl-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 24px 0; }
.dl-shot { margin: 0; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--surface-alt); border: 1px solid var(--border); }
.dl-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.dl-shot:hover img { transform: scale(1.03); }

.lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(10, 16, 30, .88); display: flex; align-items: center; justify-content: center; padding: 28px; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.lightbox-close { position: absolute; top: 14px; right: 22px; font-size: 34px; line-height: 1; color: #fff; background: none; border: none; cursor: pointer; opacity: .85; }
.lightbox-close:hover { opacity: 1; }
