/* 覃思·博考色板：Ivory #FAF9F5 · Oat #F0EEE6 · Ink #141413 · 次要 #5E5D59 · 三级 #87867F · Clay #D97757 · 蓝 #6A9BCC · 绿 #788C5D · 边框 #E8E6DC · 暗底 #141413 · 暗卡 #30302E · 暗字 #FAF9F5 */
/* ==========================================================================
   覃思·博考 · 视觉系统
   暖纸底、Clay 强调、衬线正文；桌面双栏，移动单列。
   色板全部以 CSS 变量定义，暗色由 [data-theme="dark"] 覆盖。
   ========================================================================== */
:root {
/* 原始色板 */
  --ivory: #faf9f5;
  --oat: #f0eee6;
  --ink: #141413;
  --text-secondary: #5e5d59;
  --text-tertiary: #87867f;
  --clay: #d97757;
  --blue: #6a9bcc;
  --green: #788c5d;
  --line: #e8e6dc;
  --dark-bg: #141413;
  --dark-card: #30302e;
  --dark-text: #faf9f5;
/* 语义变量（浅色） */
  --bg: var(--ivory);
  --surface: var(--oat);
  --surface-raised: #f7f5ee;
  --text: var(--ink);
  --muted: var(--text-secondary);
  --faint: var(--text-tertiary);
  --accent: var(--clay);
  --accent-soft: rgba(217,119,87,0.12);
  --accent-line: rgba(217,119,87,0.34);
  --border: var(--line);
  --border-strong: #d9d5c8;
  --code-bg: #f5f2e9;
  --code-gutter: #ede9dd;
  --shadow: 0 18px 48px rgba(20,20,19,0.07);
  --shadow-soft: 0 8px 24px rgba(20,20,19,0.05);
  --selection: rgba(217,119,87,0.22);
/* 字体 */
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
/* 尺寸 */
  --header-h: 76px;
  --content-w: 720px;
  --page-w: 1240px;
  --radius: 2px;
/* 兼容 NexT 内建变量（本站在自定义样式中统一接管） */
  --body-bg-color: var(--bg);
  --content-bg-color: var(--bg);
  --card-bg-color: var(--surface);
  --text-color: var(--text);
  --link-color: var(--accent);
  --link-hover-color: var(--text);
  --brand-color: var(--text);
  --brand-hover-color: var(--accent);
  --theme-color: var(--accent);
  --border-color: var(--border);
  --blockquote-color: var(--muted);
  --selection-bg: var(--accent);
  --selection-color: var(--ink);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #141413;
  --surface: #30302e;
  --surface-raised: #262624;
  --text: #faf9f5;
  --muted: #b9b7ae;
  --faint: #87867f;
  --accent: #d97757;
  --accent-soft: rgba(217,119,87,0.18);
  --accent-line: rgba(217,119,87,0.5);
  --border: #3a3a36;
  --border-strong: #4a4a45;
  --code-bg: #222220;
  --code-gutter: #2b2b28;
  --shadow: 0 18px 48px rgba(20,20,19,0.28);
  --shadow-soft: 0 8px 24px rgba(20,20,19,0.22);
  --selection: rgba(217,119,87,0.3);
  --body-bg-color: var(--bg);
  --content-bg-color: var(--bg);
  --card-bg-color: var(--surface);
  --text-color: var(--text);
  --link-color: var(--accent);
  --link-hover-color: var(--text);
  --brand-color: var(--text);
  --brand-hover-color: var(--accent);
  --theme-color: var(--accent);
  --border-color: var(--border);
  --blockquote-color: var(--muted);
  --selection-bg: var(--accent);
  --selection-color: var(--ink);
  color-scheme: dark;
}
/* --------------------------------------------------------------------------
   基础
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.85;
  overflow-x: hidden;
  transition: background-color 180ms ease, color 180ms ease;
}
body.sidebar-active,
body.search-open {
  overflow: hidden;
}
::selection {
  background: var(--selection);
  color: var(--text);
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}
a:hover {
  color: var(--text);
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
figure {
  margin: 0;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 500;
  padding: 9px 14px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 12px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
  color: var(--bg);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* --------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--border);
  background: rgba(250,249,245,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
[data-theme="dark"] .site-header {
  background: rgba(20,20,19,0.9);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 26px rgba(20,20,19,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 38px;
  width: 100%;
  max-width: var(--page-w);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 40px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--text);
}
.brand:hover {
  color: var(--text);
}
.brand-lockup {
  display: block;
  height: 36px;
  width: auto;
  max-width: 52vw;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.mobile-nav-brand .brand-lockup {
  height: 28px;
  max-width: 180px;
}
/* JPG 带暖底时，暗色模式用 logo-dark；勿强行反色 */
.brand-logo {
/* legacy */
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 4px;
  object-fit: contain;
  background: var(--oat);
}
.brand:hover .brand-logo {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
/* LOGOMind 雪豹头到位前的占位；替换 source/images/logo.svg 与 favicon.svg 即可 */
.brand-mark {
  display: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.brand-en {
  margin-top: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.24em;
}
.primary-nav {
  margin-left: auto;
}
.primary-nav-list {
  display: flex;
  align-items: center;
  gap: 27px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-item {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.menu-item::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 180ms ease;
}
.menu-item:hover,
.menu-item.is-active {
  color: var(--text);
}
.menu-item:hover::after,
.menu-item.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.menu-item.is-active {
  color: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-width: 36px;
  padding: 0 8px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.icon-button:hover {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
.svg-icon {
  display: block;
  flex: 0 0 auto;
}
.search-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.theme-icon {
  display: none;
}
.theme-icon-moon {
  display: block;
}
[data-theme="dark"] .theme-icon-moon {
  display: none;
}
[data-theme="dark"] .theme-icon-sun {
  display: block;
}
.menu-toggle {
  display: none;
}
/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */
.site-main {
  min-height: 40vh;
}
.home-main {
  width: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 40px 90px;
}
.home-hero {
  max-width: 980px;
  padding: 88px 0 62px;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 22px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eyebrow::before {
  display: block;
  width: 25px;
  height: 1px;
  background: var(--accent);
  content: "";
}
.hero-title {
  max-width: 930px;
  margin: 0 0 26px;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.28;
}
.hero-deck {
  max-width: 700px;
  margin: 0 0 38px;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.95;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease;
}
.btn:hover {
  background: transparent;
  color: var(--accent);
}
.btn span {
  font-family: var(--sans);
  font-size: 15px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}
.text-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 44px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.meta-sep {
  color: var(--border-strong);
}
.featured {
  padding: 56px 0 60px;
  border-bottom: 1px solid var(--border);
}
.section-label {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.section-label .rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: center;
  gap: 58px;
  margin-top: 28px;
}
.featured-copy {
  min-width: 0;
}
.post-item-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}
.post-item-category {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.post-item-category:hover {
  color: var(--text);
}
.featured-title {
  margin: 14px 0 15px;
  font-family: var(--sans);
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.42;
}
.featured-title a {
  color: var(--text);
}
.featured-title a:hover {
  color: var(--accent);
}
.featured-summary {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
}
.featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.featured-media {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.featured-media:hover img {
  transform: scale(1.015);
}
.recent {
  padding: 56px 0 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-strong);
}
.section-head h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.post-list {
  border-top: 0;
}
.post-item {
  padding: 32px 0 30px;
  border-bottom: 1px solid var(--border);
}
.post-item-title {
  margin: 10px 0 11px;
  font-family: var(--sans);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.55;
}
.post-item-title a {
  color: var(--text);
}
.post-item-title a:hover {
  color: var(--accent);
}
.post-item-summary {
  max-width: 820px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.post-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.post-item-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.post-item-tags a {
  color: var(--faint);
  font-family: var(--sans);
  font-size: 11px;
}
.post-item-tags a:hover {
  color: var(--accent);
}
.columns-section {
  padding: 62px 0 0;
}
.column-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.column-card {
  min-width: 0;
  padding: 28px 24px 30px;
  border-right: 1px solid var(--border);
  transition: background-color 160ms ease;
}
.column-card:last-child {
  border-right: 0;
}
.column-card:hover {
  background: var(--surface);
}
.column-number {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.column-card h3 {
  margin: 0 0 5px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.column-card h3 a {
  color: var(--text);
}
.column-card h3 a:hover {
  color: var(--accent);
}
.column-en {
  margin: 0 0 16px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.column-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}
.column-topics {
  margin: 0;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  line-height: 1.7;
}
.home-quote {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 82px 0 30px;
  text-align: center;
}
.quote-mark {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: Georgia, var(--serif);
  font-size: 54px;
  line-height: 0.6;
}
.home-quote blockquote {
  margin: 0 auto;
  padding: 0;
  border: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 500;
  line-height: 1.62;
}
.quote-credit {
  margin: 20px 0 0;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
}
/* --------------------------------------------------------------------------
   文章页
   -------------------------------------------------------------------------- */
.post-main,
.page-main,
.category-main,
.archive-main,
.tag-main {
  width: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 52px 40px 100px;
}
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--content-w)) 220px;
  align-items: start;
  justify-content: center;
  gap: 62px;
}
.post-layout-no-toc {
  grid-template-columns: minmax(0, var(--content-w));
}
.post {
  min-width: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.breadcrumb a {
  color: var(--faint);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb-current {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}
.post-category {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.post-title {
  margin: 0 0 22px;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(31px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.38;
}
.post-deck {
  margin: 0 0 26px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.byline-author {
  color: var(--text);
  font-weight: 500;
}
.post-cover {
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.post-cover img {
  width: 100%;
}
.post-cover figcaption {
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--sans);
  font-size: 10.5px;
}
.toc-inline {
  display: none;
  margin: 28px 0 0;
  border: 1px solid var(--border);
  background: var(--surface);
}
.toc-inline summary {
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  list-style: none;
}
.toc-inline summary::-webkit-details-marker {
  display: none;
}
.toc-inline summary span {
  float: right;
  color: var(--accent);
}
.toc-inline .post-toc {
  padding: 4px 18px 16px;
}
.post-content {
  min-width: 0;
  padding-top: 36px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.92;
  overflow-wrap: break-word;
}
.post-content > :first-child {
  margin-top: 0;
}
.post-content p {
  margin: 0 0 1.55em;
}
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--text);
  font-family: var(--sans);
  font-weight: 600;
  scroll-margin-top: calc(var(--header-h) + 26px);
}
.post-content h2 {
  margin: 2.45em 0 0.9em;
  padding-top: 0.1em;
  font-size: 25px;
  letter-spacing: -0.01em;
  line-height: 1.48;
}
.post-content .headerlink,
.page-content .headerlink {
  display: none;
}
.post-content h2::before {
  display: block;
  width: 26px;
  height: 2px;
  margin-bottom: 13px;
  background: var(--accent);
  content: "";
}
.post-content h3 {
  margin: 2.1em 0 0.7em;
  font-size: 19.5px;
  line-height: 1.55;
}
.post-content h4 {
  margin: 1.8em 0 0.6em;
  font-size: 17px;
}
.post-content a {
  border-bottom: 1px solid var(--accent-line);
  color: var(--accent);
}
.post-content a:hover {
  border-color: var(--accent);
  color: var(--text);
}
.post-content strong {
  font-weight: 600;
}
.post-content em {
  font-style: italic;
}
.post-content ul,
.post-content ol {
  margin: 0 0 1.55em;
  padding-left: 1.45em;
}
.post-content li {
  margin-bottom: 0.45em;
}
.post-content li > ul,
.post-content li > ol {
  margin-top: 0.45em;
  margin-bottom: 0.55em;
}
.post-content blockquote {
  margin: 2.1em 0;
  padding: 2px 0 2px 24px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.post-content blockquote p:last-child {
  margin-bottom: 0;
}
.post-content hr {
  margin: 3em 0;
  border-top: 1px solid var(--border);
}
.post-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.post-content figure,
.post-figure {
  margin: 2.2em 0;
}
.post-content figure img,
.post-figure img {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
}
.post-content figcaption,
.post-figure figcaption {
  margin-top: 10px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.7;
  text-align: center;
}
.post-content code {
  padding: 0.12em 0.36em;
  border: 1px solid var(--border);
  background: var(--code-bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.84em;
  overflow-wrap: break-word;
}
.post-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
  overflow-wrap: normal;
}
.post-content pre {
  overflow-x: auto;
  margin: 0;
}
/* 代码块（Hexo highlight 输出） */
figure.highlight,
.highlight {
  position: relative;
  margin: 2em 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--code-bg);
}
figure.highlight table,
.highlight table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
}
figure.highlight td,
.highlight td {
  padding: 0;
  border: 0;
  vertical-align: top;
}
figure.highlight .gutter,
.highlight .gutter {
  width: 46px;
  border-right: 1px solid var(--border);
  background: var(--code-gutter);
  color: var(--faint);
  text-align: right;
  user-select: none;
}
figure.highlight .gutter pre,
.highlight .gutter pre {
  padding: 17px 10px 17px 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  text-align: right;
}
figure.highlight .code pre,
.highlight .code pre,
figure.highlight pre {
  padding: 17px 20px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.75;
  tab-size: 2;
}
figure.highlight .line,
.highlight .line {
  display: block;
}
figure.highlight br,
.highlight br {
  display: none;
}
figure.highlight .line.marked,
.highlight .line.marked {
  background: var(--accent-soft);
}
.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--faint);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 140ms ease, color 140ms ease, border-color 140ms ease;
}
figure.highlight:hover .code-copy,
.code-copy:focus {
  opacity: 1;
}
.code-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.code-copy.is-copied {
  border-color: var(--accent);
  color: var(--accent);
}
/* 代码高亮 token */
.highlight .comment,
.highlight .quote {
  color: #8a897f;
}
.highlight .keyword,
.highlight .selector-tag,
.highlight .literal,
.highlight .section,
.highlight .link {
  color: #b4553a;
}
.highlight .string,
.highlight .regexp,
.highlight .attribute,
.highlight .addition {
  color: #5f7a45;
}
.highlight .number,
.highlight .built_in,
.highlight .builtin-name,
.highlight .variable,
.highlight .template-variable {
  color: #9a6a2f;
}
.highlight .title,
.highlight .function,
.highlight .name,
.highlight .type {
  color: #3f6f9e;
}
.highlight .meta,
.highlight .tag {
  color: #7a6a8a;
}
.highlight .deletion {
  color: #b4553a;
}
[data-theme="dark"] .highlight .comment,
[data-theme="dark"] .highlight .quote {
  color: #8f8d84;
}
[data-theme="dark"] .highlight .keyword,
[data-theme="dark"] .highlight .selector-tag,
[data-theme="dark"] .highlight .literal,
[data-theme="dark"] .highlight .section,
[data-theme="dark"] .highlight .link {
  color: #e1a087;
}
[data-theme="dark"] .highlight .string,
[data-theme="dark"] .highlight .regexp,
[data-theme="dark"] .highlight .attribute,
[data-theme="dark"] .highlight .addition {
  color: #a6be86;
}
[data-theme="dark"] .highlight .number,
[data-theme="dark"] .highlight .built_in,
[data-theme="dark"] .highlight .builtin-name,
[data-theme="dark"] .highlight .variable,
[data-theme="dark"] .highlight .template-variable {
  color: #d7b27a;
}
[data-theme="dark"] .highlight .title,
[data-theme="dark"] .highlight .function,
[data-theme="dark"] .highlight .name,
[data-theme="dark"] .highlight .type {
  color: #8fb6dc;
}
[data-theme="dark"] .highlight .meta,
[data-theme="dark"] .highlight .tag {
  color: #b9a8c6;
}
/* 表格 */
.post-content .table-wrap {
  margin: 2em 0;
  overflow-x: auto;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}
.post-content .table-wrap table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.7;
}
.post-content .table-wrap th,
.post-content .table-wrap td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.post-content .table-wrap th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.post-content .table-wrap tr:last-child td {
  border-bottom: 0;
}
/* 文末 */
.post-footer {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--border-strong);
}
.post-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-tags-label {
  color: var(--faint);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.post-tags a {
  padding: 3px 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
}
.post-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.post-endmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 46px 0;
}
.endmark-line {
  width: 42px;
  height: 1px;
  background: var(--border-strong);
}
.endmark-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-nav-item {
  min-width: 0;
}
.post-nav-next {
  text-align: right;
}
.post-nav-label {
  display: block;
  margin-bottom: 7px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.post-nav-item a {
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}
.post-nav-item a:hover {
  color: var(--accent);
}
/* 右侧目录 */
.toc-panel {
  min-width: 0;
}
.toc-sticky {
  position: sticky;
  top: calc(var(--header-h) + 30px);
  max-height: calc(100vh - var(--header-h) - 60px);
  overflow-y: auto;
  padding-left: 20px;
  border-left: 1px solid var(--border);
  scrollbar-width: thin;
}
.toc-title {
  margin: 0 0 14px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.post-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.post-toc li {
  margin: 0;
}
.post-toc a {
  display: block;
  margin-left: -22px;
  padding: 5px 0 5px 20px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.65;
}
.post-toc a:hover {
  color: var(--text);
}
.post-toc a.is-active {
  border-left-color: var(--accent);
  color: var(--accent);
}
.post-toc .nav-level-3 a {
  padding-left: 33px;
  font-size: 11.5px;
  color: var(--faint);
}
.post-toc .nav-level-3 a:hover {
  color: var(--text);
}
.toc-back-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--sans);
  font-size: 10.5px;
}
.toc-back-top:hover {
  color: var(--accent);
}
/* --------------------------------------------------------------------------
   页面、专栏索引、标签、归档
   -------------------------------------------------------------------------- */
.page-main {
  max-width: 1000px;
}
.page-head {
  max-width: 860px;
  padding: 30px 0 38px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 42px;
}
.page-head h1 {
  margin: 0 0 18px;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.32;
}
.page-lede {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.9;
}
.page-count {
  margin: 16px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.page-updated {
  margin: 16px 0 0;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 11px;
}
.column-head .column-topics {
  margin-top: 16px;
}
.page-body {
  max-width: var(--content-w);
  margin: 0 auto;
}
.page-content {
  color: var(--text);
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.92;
}
.page-content > :first-child {
  margin-top: 0;
}
.page-content p {
  margin: 0 0 1.55em;
}
.page-content h2 {
  margin: 2.3em 0 0.9em;
  padding-top: 0.1em;
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.48;
}
.page-content h2::before {
  display: block;
  width: 26px;
  height: 2px;
  margin-bottom: 13px;
  background: var(--accent);
  content: "";
}
.page-content h3 {
  margin: 2em 0 0.7em;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
}
.page-content a {
  border-bottom: 1px solid var(--accent-line);
  color: var(--accent);
}
.page-content a:hover {
  border-color: var(--accent);
  color: var(--text);
}
.page-content ul,
.page-content ol {
  margin: 0 0 1.55em;
  padding-left: 1.45em;
}
.page-content li {
  margin-bottom: 0.45em;
}
.page-content blockquote {
  margin: 2em 0;
  padding: 2px 0 2px 24px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}
.page-content img {
  max-width: 100%;
  height: auto;
}
.page-content .table-wrap {
  margin: 2em 0;
  overflow-x: auto;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}
.page-content .table-wrap table {
  min-width: 560px;
}
.page-content code {
  padding: 0.12em 0.36em;
  border: 1px solid var(--border);
  background: var(--code-bg);
  font-family: var(--mono);
  font-size: 0.84em;
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13.5px;
}
.page-content th,
.page-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.page-content th {
  background: var(--surface);
}
/* 专栏索引 */
.column-index {
  max-width: 960px;
}
.column-index-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 130px;
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
}
.column-index-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.column-index-copy h2 {
  margin: 4px 0 10px;
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.4;
}
.column-index-copy h2 a {
  color: var(--text);
}
.column-index-copy h2 a:hover {
  color: var(--accent);
}
.column-index-copy .column-desc {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 14px;
}
.column-index-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding-top: 8px;
  text-align: right;
}
.column-count {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 960px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 12.5px;
}
.tag-pill:hover {
  border-color: var(--accent);
  background: var(--bg);
  color: var(--accent);
}
.tag-pill em {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  font-style: normal;
}
/* 归档 */
.archive-main {
  max-width: 940px;
}
.archive-list {
  max-width: 900px;
}
.archive-year {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 40px 0 0;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.archive-year:first-child {
  margin-top: 0;
}
.archive-year span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
}
.archive-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.archive-date {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.archive-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.6;
}
.archive-title a {
  color: var(--text);
}
.archive-title a:hover {
  color: var(--accent);
}
.archive-category {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.archive-category a {
  color: var(--faint);
}
.archive-category a:hover {
  color: var(--accent);
}
/* --------------------------------------------------------------------------
   分页
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 48px 0 0;
  font-family: var(--sans);
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination .current {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.pagination .space {
  border-color: transparent;
  color: var(--faint);
}
.pagination .prev,
.pagination .next {
  letter-spacing: 0.02em;
}
/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  width: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 52px 40px 26px;
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1fr;
  gap: 52px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--border);
}
.footer-brand-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.15em;
}
.footer-brand-link:hover {
  color: var(--accent);
}
.footer-tagline {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-note {
  max-width: 360px;
  margin: 0;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.8;
}
.footer-nav-title {
  margin: 0 0 13px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav li {
  margin-bottom: 8px;
}
.footer-nav li a {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
}
.footer-nav li a:hover {
  color: var(--accent);
}
.footer-meta p {
  margin: 0 0 9px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.8;
}
.footer-meta .footer-colophon {
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.footer-bottom p {
  margin: 0;
}
/* --------------------------------------------------------------------------
   搜索
   -------------------------------------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 9vh 20px 20px;
  background: rgba(20,20,19,0.46);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.search-overlay[hidden] {
  display: none;
}
.search-dialog {
  display: flex;
  flex-direction: column;
  width: 700px;
  max-width: calc(100vw - 40px);
  max-height: 78vh;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.search-bar-icon {
  flex: 0 0 auto;
  color: var(--accent);
}
.search-input {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
}
.search-input::placeholder {
  color: var(--faint);
}
.search-close {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}
.search-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.search-results {
  min-height: 150px;
  padding: 4px 20px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search-hint {
  margin: 26px 0;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.8;
  text-align: center;
}
.search-stats {
  padding: 15px 0 11px;
  border-bottom: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}
.search-result-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.search-result-item {
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child {
  border-bottom: 0;
}
.search-result-title {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
}
.search-result-title:hover {
  color: var(--accent);
}
.search-result-meta {
  margin: 0 0 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}
.search-result-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.search-result-excerpt mark {
  background: var(--accent-soft);
  color: var(--accent);
}
.search-foot {
  margin: 0;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-align: right;
}
/* --------------------------------------------------------------------------
   移动端菜单
   -------------------------------------------------------------------------- */
.mobile-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(20,20,19,0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}
body.sidebar-active .mobile-nav-scrim {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: 370px;
  max-width: 88vw;
  padding: 22px 24px 28px;
  border-left: 1px solid var(--border);
  background: var(--bg);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 280ms ease, visibility 280ms ease;
}
body.sidebar-active .mobile-nav-panel {
  transform: translateX(0);
  visibility: visible;
}
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
}
.mobile-nav-brand:hover {
  color: var(--text);
}
.mobile-nav-brand .brand-name {
  font-size: 18px;
}
.mobile-nav-brand .brand-en {
  font-size: 8px;
}
.mobile-nav-close {
  flex: 0 0 auto;
}
.mobile-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 0;
}
.mobile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-nav li {
  border-bottom: 1px solid var(--border);
}
.mobile-nav .menu-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  color: var(--text);
  font-size: 17px;
  letter-spacing: 0.02em;
}
.mobile-nav .menu-item::after {
  display: none;
}
.mobile-nav .menu-item:hover {
  color: var(--accent);
}
.mobile-nav-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}
.mobile-nav-foot {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.mobile-nav-action {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
  text-align: left;
}
.mobile-nav-action:hover {
  color: var(--accent);
}
.mobile-nav-action .theme-icon {
  display: none;
}
.mobile-nav-action .theme-icon-moon {
  display: block;
}
[data-theme="dark"] .mobile-nav-action .theme-icon-moon {
  display: none;
}
[data-theme="dark"] .mobile-nav-action .theme-icon-sun {
  display: block;
}
.mobile-nav-note {
  margin: 14px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}
/* --------------------------------------------------------------------------
   阅读进度、返回顶部、复制提示
   -------------------------------------------------------------------------- */
.reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 70;
  height: 2px;
  pointer-events: none;
}
.reading-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--muted);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease, color 160ms ease, border-color 160ms ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.back-to-top span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
}
/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) and (max-width: 1120px) {
  .post-layout {
    grid-template-columns: minmax(0, var(--content-w)) 180px;
    gap: 32px;
  }
}
@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: minmax(0, var(--content-w));
  }
  .post-layout .toc-panel {
    display: none;
  }
  .post-layout .toc-inline {
    display: block;
  }
  .post-layout-no-toc .toc-inline {
    display: none;
  }
}
@media (max-width: 1024px) {
  .header-inner,
  .home-main,
  .post-main,
  .page-main,
  .category-main,
  .archive-main,
  .tag-main,
  .footer-inner {
    padding-right: 28px;
    padding-left: 28px;
  }
  .primary-nav-list {
    gap: 18px;
  }
  .featured-post {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
  }
  .column-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .column-card:nth-child(2) {
    border-right: 0;
  }
  .column-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 900px) {
  .primary-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .brand {
    margin-right: auto;
  }
  .header-inner {
    gap: 12px;
  }
  .featured-post {
    grid-template-columns: minmax(0, 1fr);
  }
  .featured-media {
    max-width: 520px;
  }
  .column-index-item {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 22px;
  }
  .column-index-side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    text-align: left;
  }
}
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }
  body {
    font-size: 16.5px;
  }
  .header-inner {
    height: var(--header-h);
    padding-right: 18px;
    padding-left: 18px;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
  }
  .brand-name {
    font-size: 16px;
  }
  .brand-en {
    font-size: 7px;
  }
  .search-label {
    display: none;
  }
  .home-main,
  .post-main,
  .page-main,
  .category-main,
  .archive-main,
  .tag-main,
  .footer-inner {
    padding-right: 20px;
    padding-left: 20px;
  }
  .home-main {
    padding-bottom: 64px;
  }
  .home-hero {
    padding: 52px 0 40px;
  }
  .eyebrow {
    margin-bottom: 17px;
    font-size: 9.5px;
  }
  .hero-title {
    margin-bottom: 20px;
    font-size: clamp(29px, 8.4vw, 38px);
    line-height: 1.34;
  }
  .hero-deck {
    margin-bottom: 30px;
    font-size: 15.5px;
    line-height: 1.9;
  }
  .hero-actions {
    gap: 18px;
  }
  .btn {
    padding: 11px 18px;
  }
  .hero-meta {
    margin-top: 32px;
    font-size: 9px;
    line-height: 1.8;
  }
  .featured {
    padding: 42px 0 44px;
  }
  .featured-title {
    font-size: 25px;
  }
  .featured-summary {
    font-size: 14.5px;
  }
  .featured-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .featured-media {
    max-width: 100%;
  }
  .recent,
  .columns-section {
    padding-top: 42px;
  }
  .section-head {
    align-items: flex-end;
    gap: 12px;
  }
  .post-item {
    padding: 25px 0 24px;
  }
  .post-item-title {
    font-size: 20px;
    line-height: 1.55;
  }
  .post-item-summary {
    font-size: 14px;
    line-height: 1.85;
  }
  .post-item-foot {
    font-size: 9.5px;
  }
  .column-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .column-card {
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .column-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .column-card:last-child {
    border-bottom: 0;
  }
  .home-quote {
    padding: 58px 0 16px;
  }
  .home-quote blockquote {
    font-size: 21px;
  }
  .post-main,
  .page-main,
  .category-main,
  .archive-main,
  .tag-main {
    padding-top: 34px;
    padding-bottom: 72px;
  }
  .post-layout {
    gap: 0;
  }
  .breadcrumb {
    margin-bottom: 22px;
    font-size: 9.5px;
  }
  .post-title {
    font-size: clamp(27px, 7.6vw, 34px);
    line-height: 1.42;
  }
  .post-deck {
    padding-left: 15px;
    font-size: 15.5px;
    line-height: 1.85;
  }
  .post-byline {
    font-size: 10px;
  }
  .post-cover {
    margin-top: 26px;
  }
  .toc-inline {
    margin-top: 24px;
  }
  .post-content {
    padding-top: 28px;
    font-size: 16.5px;
    line-height: 1.9;
  }
  .post-content h2 {
    margin-top: 2.1em;
    font-size: 21px;
  }
  .post-content h3 {
    font-size: 18px;
  }
  .post-content blockquote {
    padding-left: 17px;
    font-size: 15.5px;
  }
  .post-content .table-wrap {
    margin-right: -20px;
    margin-left: -20px;
    border-right: 0;
    border-left: 0;
  }
  .post-content .table-wrap table {
    min-width: 560px;
    font-size: 12.5px;
  }
  .post-content .table-wrap th,
  .post-content .table-wrap td {
    padding: 9px 11px;
  }
  .post-content figure img,
  .post-figure img {
    width: 100%;
  }
  figure.highlight .gutter,
  .highlight .gutter {
    width: 36px;
  }
  figure.highlight .code pre,
  .highlight .code pre,
  figure.highlight pre {
    padding: 14px 14px;
    font-size: 12px;
  }
  .post-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .post-nav-next {
    text-align: left;
  }
  .post-footer {
    margin-top: 40px;
  }
  .page-head {
    padding-top: 20px;
    margin-bottom: 30px;
  }
  .page-head h1 {
    font-size: 32px;
  }
  .page-lede {
    font-size: 15px;
  }
  .column-index-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 26px 0;
  }
  .column-index-number {
    font-size: 22px;
  }
  .column-index-copy h2 {
    font-size: 22px;
  }
  .column-index-side {
    grid-column: auto;
  }
  .archive-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }
  .archive-category {
    grid-column: 2;
  }
  .archive-title {
    font-size: 14.5px;
  }
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 28px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    font-size: 9px;
    line-height: 1.7;
  }
  .search-overlay {
    padding: 0;
  }
  .search-dialog {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border: 0;
  }
  .search-results {
    padding-right: 16px;
    padding-left: 16px;
  }
  .search-bar {
    padding: 14px 15px;
  }
  .search-input {
    font-size: 16px;
  }
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 420px) {
  .header-actions {
    gap: 0;
  }
  .icon-button {
    min-width: 33px;
    padding: 0 6px;
  }
  .hero-title {
    font-size: 28px;
  }
  .post-content .table-wrap {
    margin-right: -16px;
    margin-left: -16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
.mobile-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mobile-nav-brand .brand-logo {
  width: 28px;
  height: 28px;
}
/* brand: icon + two-line */
.brand-mark-img {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  gap: 2px;
}
.brand-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}
.brand-en {
  margin-top: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}
.mobile-nav-brand .brand-mark-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.mobile-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mobile-nav-brand .brand-name,
.mobile-nav-brand .brand-en {
  display: block;
}
.mobile-nav-brand .brand-en {
  margin-top: 2px;
}
/* transparent lockup — no solid plate */
.brand-lockup {
  display: block;
  height: 40px;
  width: auto;
  max-width: 58vw;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none;
}
.mobile-nav-brand .brand-lockup {
  height: 30px;
  max-width: 200px;
  background: transparent !important;
}
/* pure text wordmark: cyntheque */
.brand.brand-text-only,
.mobile-nav-brand.brand-text-only {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
.brand-wordmark {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--text);
  text-transform: none;
}
.brand:hover .brand-wordmark,
.mobile-nav-brand:hover .brand-wordmark {
  color: var(--accent);
}
.mobile-nav-brand .brand-wordmark {
  font-size: 1.8rem;
}
