/* ============================================
   主题变量：通过 data-theme 切换浅/深色
   拓展：在 :root 下新增 --var-* 变量即可全局复用
   ============================================ */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas,
    "Courier New", monospace;

  --max-width: 960px;
  --radius: 8px;
  --radius-sm: 4px;
  --transition: 0.2s ease;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-code: #f6f8fa;
  --border: #e1e4e8;
  --text: #1f2328;
  --text-soft: #57606a;
  --text-muted: #8c959f;
  --primary: #0969da;
  --primary-hover: #0550ae;
  --accent: #6f42c1;
  --tag-bg: #ddf4ff;
  --tag-text: #0969da;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --bg-code: #161b22;
  --border: #30363d;
  --text: #c9d1d9;
  --text-soft: #8b949e;
  --text-muted: #6e7681;
  --primary: #58a6ff;
  --primary-hover: #79b8ff;
  --accent: #bc8cff;
  --tag-bg: #1f6feb22;
  --tag-text: #79c0ff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ============================================
   基础重置
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  transition: background var(--transition), color var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-hover); text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   头部
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.site-title:hover { text-decoration: none; color: var(--primary); }

.site-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--primary); }

[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }

/* ============================================
   主体
   ============================================ */
.site-main {
  flex: 1;
  padding: 40px 20px 64px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.hero-desc {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* ============================================
   文章卡片列表
   ============================================ */
.post-list { display: flex; flex-direction: column; gap: 8px; }

.post-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: padding var(--transition);
}
.post-card:last-child { border-bottom: none; }
.post-card:hover { padding-left: 8px; }

.post-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--primary); text-decoration: none; }

.post-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  align-items: center;
}
.post-category {
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-soft);
}

.post-summary {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 10px;
}

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 12px;
  color: var(--tag-text);
  background: var(--tag-bg);
  padding: 2px 10px;
  border-radius: 12px;
  transition: all var(--transition);
}
.tag:hover { text-decoration: none; opacity: 0.85; }
.tag-count { opacity: 0.7; font-size: 11px; }

/* ============================================
   文章正文
   ============================================ */
.post-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.post-title { font-size: 30px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.5px; }
.post-reading { color: var(--text-muted); }

.post-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.post-content h2 { font-size: 24px; font-weight: 700; margin: 40px 0 16px; padding-top: 8px; border-top: 1px solid var(--border); }
.post-content h3 { font-size: 19px; font-weight: 600; margin: 28px 0 12px; }
.post-content h4 { font-size: 16px; font-weight: 600; margin: 22px 0 10px; color: var(--text-soft); }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 0 0 16px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
  margin: 16px 0;
  padding: 8px 16px;
  border-left: 4px solid var(--primary);
  background: var(--bg-soft);
  color: var(--text-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-content blockquote p { margin: 4px 0; }
.post-content a { text-decoration: underline; text-underline-offset: 2px; }
.post-content img { border-radius: var(--radius); margin: 16px 0; box-shadow: var(--shadow); }

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}
.post-content th, .post-content td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.post-content th { background: var(--bg-soft); font-weight: 600; }
.post-content tr:nth-child(even) td { background: var(--bg-soft); }

.post-content hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* 行内代码 */
.post-content code, .page code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-code);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--accent);
}

/* 代码块 */
.post-content pre, .page pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}
.post-content pre code, .page pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ============================================
   目录
   ============================================ */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 32px;
  font-size: 14px;
}
.toc summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  padding: 4px 0;
}
.toc ul { list-style: none; margin: 12px 0 0; padding-left: 12px; }
.toc li { padding: 3px 0; }
.toc a { color: var(--text-soft); }
.toc a:hover { color: var(--primary); }
.toc-level-3 { padding-left: 16px; }
.toc-level-4 { padding-left: 32px; }

.back-home {
  display: inline-block;
  margin-top: 40px;
  color: var(--text-soft);
  font-size: 14px;
}

/* ============================================
   归档
   ============================================ */
.archive-year { margin-bottom: 32px; }
.archive-year-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.archive-list time {
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

/* ============================================
   标签云
   ============================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.tag-sm { font-size: 13px; }
.tag-md { font-size: 15px; }
.tag-lg { font-size: 17px; }
.tag-xl { font-size: 19px; font-weight: 600; }
.tag-section { margin-bottom: 32px; }
.tag-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent);
  padding-top: 16px;
}

/* ============================================
   404
   ============================================ */
.not-found {
  text-align: center;
  padding: 80px 0;
}
.not-found h1 {
  font-size: 96px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -4px;
}
.not-found p { color: var(--text-soft); margin-bottom: 24px; font-size: 18px; }

/* ============================================
   页脚
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.social { display: flex; gap: 16px; }
.social-link {
  color: var(--text-soft);
  font-size: 14px;
}
.copyright { color: var(--text-muted); font-size: 13px; }

/* ============================================
   搜索页
   ============================================ */
.search-page { margin: 0 auto; }

.search-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}
.search-input,
.search-select {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 0;
}
.search-input { min-width: 220px; }
.search-input:focus,
.search-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--tag-bg);
}
.search-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.search-field-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.search-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
}
.search-btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.search-btn-ghost {
  background: transparent;
  color: var(--primary);
}
.search-btn-ghost:hover { background: var(--tag-bg); }

/* 标签筛选 */
.search-tags {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
}
.search-tags legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 0 6px;
}
.search-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.search-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--tag-text);
  background: var(--tag-bg);
  padding: 4px 10px 4px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.search-tag input {
  accent-color: var(--primary);
  margin: 0;
}
.search-tag em {
  font-style: normal;
  opacity: 0.65;
  font-size: 11px;
}
.search-tag:hover { opacity: 0.85; }

/* 选中态强化 */
.search-tag:has(input:checked) {
  background: var(--primary);
  color: #fff;
}

/* 结果摘要与高亮 */
.search-summary {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.search-results .post-list { gap: 0; }
.search-results .post-card { padding: 20px 0; }
.search-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
}
.search-hit {
  background: var(--tag-bg);
  color: var(--primary);
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 600;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 640px) {
  .header-inner { gap: 12px; }
  .site-nav { gap: 14px; }
  .nav-link { font-size: 13px; }
  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 15px; }
  .post-title { font-size: 24px; }
  .post-content { font-size: 15px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .search-form {
    grid-template-columns: 1fr 1fr;
  }
  .search-field-keyword { grid-column: 1 / -1; }
  .search-input { min-width: 0; }
  .search-field-actions { grid-column: 1 / -1; }
}

/* 选区配色 */
::selection {
  background: var(--primary);
  color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   访问统计浮窗（Vercount）
   ============================================ */
.visit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-soft);
  transition: border-color var(--transition), box-shadow var(--transition);
  user-select: none;
  margin-left: 4px;
}
.visit-badge:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.visit-badge-icon { font-size: 14px; line-height: 1; }
.visit-badge-label { font-weight: 600; color: var(--text-soft); }
.visit-badge-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
  min-width: 12px;
  text-align: center;
}
.visit-badge-unit { color: var(--text-muted); font-size: 11px; }

/* ============================================
   专栏
   ============================================ */
/* 文章 meta 里的专栏小标签 */
.post-series {
  font-size: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.post-series:hover { text-decoration: none; opacity: 0.85; }
.post-series-inline { margin-left: auto; }
.archive-list li { flex-wrap: wrap; gap: 8px 16px; }
.archive-list li .post-series-inline { margin-left: 0; }

/* section-title 可点击链接 */
.section-title-link { color: var(--text); text-decoration: none; }
.section-title-link:hover { color: var(--primary); text-decoration: none; }

/* 首页专栏速览区 */
.series-preview { margin-bottom: 48px; }

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.series-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.series-card {
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--text);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.series-card:hover {
  text-decoration: none;
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.series-card-lg { background: var(--bg); }

.series-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.series-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.series-card-title a { color: var(--text); }
.series-card-title a:hover { color: var(--primary); text-decoration: none; }
.series-card-count {
  font-size: 12px;
  color: var(--primary);
  background: var(--tag-bg);
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.series-card-summary {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 14px;
}
.series-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.series-card-meta time { font-family: var(--font-mono); }

/* 专栏卡片（大）中的文章预览列表 */
.series-card-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.series-card-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
}
.series-card-list li:last-child { border-bottom: none; }
.series-card-list .series-idx {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.series-card-list time {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  flex-shrink: 0;
}
.series-card-list a { color: var(--text); flex: 1; }
.series-card-list a:hover { color: var(--primary); }
.series-more { justify-content: flex-end; }
.series-more a {
  color: var(--primary);
  font-weight: 500;
}

/* 专栏列表页描述 */
.columns-desc {
  color: var(--text-soft);
  margin: -12px 0 24px;
  font-size: 15px;
}

/* 专栏详情页 */
.column-detail .back-home { margin-bottom: 24px; display: inline-block; }
.column-header {
  padding: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.column-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.column-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.column-meta .dot { opacity: 0.5; }
.column-meta strong {
  color: var(--primary);
  font-weight: 700;
}
.column-summary {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

/* 专栏内文章列表 */
.series-article-list {
  list-style: none;
  counter-reset: series-article;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.series-article-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.series-article-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.series-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.series-idx-badge {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 2px 10px;
  border-radius: 12px;
}
.series-article-meta time {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.series-article-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.series-article-title a { color: var(--text); }
.series-article-title a:hover { color: var(--primary); text-decoration: none; }
.series-article-summary {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* 文章页里的专栏信息块 */
.series-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.series-box-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.series-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}
.series-box-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.series-box-title:hover { color: var(--primary); }
.series-box-index {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.series-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 13px;
}
.series-nav-prev,
.series-nav-next,
.series-nav-disabled {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all var(--transition);
}
.series-nav-prev:hover,
.series-nav-next:hover {
  text-decoration: none;
  color: var(--primary);
  border-color: var(--primary);
}
.series-nav-next { text-align: right; }
.series-nav-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-align: center;
}

/* 响应式：专栏 */
@media (max-width: 640px) {
  .series-grid,
  .series-grid-lg {
    grid-template-columns: 1fr;
  }
  .column-header { padding: 20px; }
  .column-title { font-size: 24px; }
  .series-nav { grid-template-columns: 1fr; }
  .series-nav-next { text-align: left; }
  .search-form {
    grid-template-columns: 1fr 1fr;
  }
  .search-field-keyword { grid-column: 1 / -1; }
  .search-field-keyword + .search-field { grid-column: 1 / -1; } /* 专栏下拉在小屏独占一行 */
  .search-field-actions { grid-column: 1 / -1; }
  .visit-badge { padding: 2px 8px; font-size: 11px; gap: 4px; }
  .visit-badge-label { display: none; }
}
