
:root {
  --bg:        #ffffff;
  --white:     #ffffff;
  --bg-soft:   #f7f7f9;
  --bg-deep:   #f0f0f3;
  --ink:       #000000;
  --ink-2:     #4a4a4a;
  --ink-3:     #737373;
  --ink-4:     #b8b8b8;
  --ink-muted: #6f7174;

  --line:      #e8e6e2;
  --line-2:    #e4e4e5;
  --red:       #d71a1b;
  --red-soft:  #fef0f0;

  --gold:        #b8860b;
  --gold-soft:   #fffbe6;
  --gold-bright: #c99a0a;
  --green:       #3ecf8e;

  /* 风险等级全站统一色板（d/w/l/r/v）
     所有展示点必须引用这几个变量，禁止再写死色值 */
  --lv-danger:   #d71a1b;   /* d 高危 / r 已跑路 */
  --lv-warn:     #b8860b;   /* w 预警 */
  --lv-pending:  #4a4a4a;   /* l 立案中 */
  --lv-safe:     #1c9c68;   /* v 已核验 */
  --pink-soft:   #fef7f7;
  --pink-mid:    #f5f4f2;
  --pink-deep:   #fde2e2;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑",
          "Helvetica Neue", Helvetica, Ubuntu, Roboto, Noto,
          "Segoe UI", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, SFMono-Regular,
          Menlo, Consolas, monospace;

  --text-xs:   12px;
  --text-sm:   14px;
  --text-md:   18px;
  --text-base: 14px;
  --text-lg:   21px;
  --text-xl:   26px;
  --text-2xl:  33px;

  --leading-tight:  1.25;
  --leading-normal: 1.55;
  --leading-loose:  1.75;
  --tracking-tight: -0.015em;
  --tracking-wide:  0.04em;

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-4h: 20px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  --ring:       0 0 0 1px rgba(0,0,0,0.06);
  --shadow-sm:  var(--ring), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md:  var(--ring), 0 2px 4px rgba(0,0,0,0.03),
                0 8px 16px -8px rgba(0,0,0,0.05);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --tr:   background 0.18s var(--ease), color 0.18s var(--ease);
  --tr-3: background 0.18s var(--ease), color 0.18s var(--ease),
          border-color 0.18s var(--ease);

  --wrap: 1140px;
  --header-height:  64px;
  --toolbar-height: 60px;
  --ssp-scrollbar-w: 0px;

  --bar-bottom-gap: 24px;
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 键盘首焦点跳转链接：平时移出视口，聚焦时贴左上角出现 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 0 0 var(--radius-md) 0;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: none;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* =========================================================
   PART 2 · Reset & Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: normal;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a:hover { color: var(--ink); }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
ol, ul { margin: 0; padding: 0; list-style: none; }
time { font-variant-numeric: tabular-nums; }
::selection { background: var(--red-soft); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 2px; }
body.no-scroll { overflow: hidden; }

html.scrollbar-fallback body.no-scroll .header { width: calc(100% - var(--ssp-scrollbar-w)); }
html.scrollbar-fallback body.no-scroll .app-toolbar,
html.scrollbar-fallback body.no-scroll .toc-trigger { margin-right: var(--ssp-scrollbar-w); }

.article-content,
.post-title,
.post-title--lead,
.post__title,
.post__title--lg,
.post-author-name,
.post__author,
.yipai__title,
.aside-block__title,
.article-header__title {
  text-autospace: normal;
}

/* =========================================================
   PART 3 · 全站容器
   ========================================================= */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 72px auto 0;
  padding: 0 12px;
}

/* =========================================================
   PART 4 · Header & Footer
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  z-index: 199;
  background: var(--white);
  width: 100%;
  transition: box-shadow 0.2s var(--ease);
}
.header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--space-5) 0 0;
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-4);
}
.header__logo {
  display: flex; align-items: center; gap: var(--space-2);
  justify-self: start; min-width: 0;
}
.header__logo-mark {
  width: 32px; height: 32px;
  display: block; flex: 0 0 auto;
}
.header__logo-text {
  font-size: 17px; font-weight: 500;
  letter-spacing: 0; color: var(--ink);
  white-space: nowrap;
}
.header__nav {
  display: flex; align-items: center; justify-content: center;
  gap: 36px;
  justify-self: center; min-width: 0;
}
.header__nav-item {
  display: inline-flex; align-items: center; gap: 6px;
  position: relative;
  color: var(--ink-2);
  white-space: nowrap; flex: 0 0 auto; padding: 4px 0;
  transition: color 0.18s var(--ease);
}
.header__nav-item svg {
  width: 22px; height: 22px; flex: 0 0 auto;
  color: var(--ink); stroke-width: 2;
  transition: color 0.18s var(--ease);
}
.header__nav-item span {
  font-size: 15px; line-height: 1.2;
  font-weight: 500;
  color: #1a1a1a;
}
.header__nav-item:hover span,
.header__nav-item:hover svg,
.header__nav-item.is-active span,
.header__nav-item.is-active svg { color: var(--ink); }
.header__nav-item:hover svg { color: var(--red); }
.header__nav-item.is-active::after {
  content: '';
  position: absolute; left: 3px; bottom: -3px;
  width: 16px; height: 3px;
  border-radius: 2px; background: var(--red);
}

.header__tools {
  display: flex; align-items: center; gap: 12px;
  justify-self: end;
}
.header__icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--ink-2); border-radius: 50%;
  transition: var(--tr);
}
.header__icon-btn svg { width: 20px; height: 20px; stroke-width: 1.8; }
.header__icon-btn:hover { background: var(--bg-soft); color: var(--ink); }

.header__icon-btn--write {
  width: auto; height: 36px;
  padding: 0; gap: 6px;
  border: 0;
  background: transparent;
}
.header__icon-btn--write:hover { background: var(--bg-soft); color: var(--ink); }

.header__tools [data-auth-open="login"] {
  width: 40px; height: 40px;
  border: 0;
  background: transparent;
}
.header__tools [data-auth-open="login"]:hover { background: var(--bg-soft); }

.header__menu-btn { display: none; }

/* =========================================================
   PART 4.2 · 顶栏桌面渐变档
   ========================================================= */
@media (min-width: 1024px) and (max-width: 1163px) {
  .header__nav { gap: 24px; }
  .header__nav-item svg { width: 20px; height: 20px; }
  .header__nav-item span { font-size: 14px; }
  .header__logo-text { font-size: 16px; }
}
@media (min-width: 900px) and (max-width: 1023px) {
  .header__nav { gap: 16px; }
  .header__nav-item svg { width: 20px; height: 20px; }
  .header__nav-item span { font-size: 14px; }
  .header__logo-text { font-size: 16px; }
  .header__logo-mark { width: 28px; height: 28px; }
}
@media (min-width: 721px) and (max-width: 899px) {
  .header__inner { column-gap: var(--space-3); }
  .header__nav { gap: 8px; }
  .header__nav-item { padding: 6px 8px; border-radius: var(--radius-md); }
  .header__nav-item:hover { background: var(--bg-soft); }
  .header__nav-item svg { width: 22px; height: 22px; }
  .header__nav-item span {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .header__nav-item::before {
    content: attr(data-label);
    position: absolute; top: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 4px 9px; border-radius: var(--radius-sm);
    background: var(--ink); color: var(--white);
    font-size: 12px; line-height: 1.4; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  }
  .header__nav-item:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }
  .header__nav-item.is-active::after { left: 11px; bottom: 0; }
  .header__logo-text { font-size: 16px; }
  .header__logo-mark { width: 28px; height: 28px; }
  .header__icon-btn--write { display: none; }
}

/* =========================================================
   PART 4.1 · 移动端抽屉导航
   ========================================================= */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 320;
  visibility: hidden; pointer-events: none;
}
.mobile-drawer.is-open { visibility: visible; pointer-events: auto; }
.mobile-drawer__mask {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.mobile-drawer.is-open .mobile-drawer__mask { opacity: 1; }
.mobile-drawer__panel {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: min(300px, 86vw);
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.28s var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.08);
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  height: var(--header-height); padding: 0 var(--space-4);
  border-bottom: 1px solid var(--line-2);
  flex: 0 0 auto;
}
.mobile-drawer__brand {
  display: flex; align-items: center; gap: var(--space-2);
  min-width: 0;
}
.mobile-drawer__brand img {
  width: 26px; height: 26px; flex: 0 0 auto;
  border-radius: 8px; display: block;
}
.mobile-drawer__title { font-size: var(--text-md); font-weight: 600; }
.mobile-drawer__close {
  width: 40px; height: 40px; margin-right: -6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); border-radius: var(--radius-md);
}
.mobile-drawer__close:hover { background: var(--bg-soft); color: var(--ink); }
.mobile-drawer__body { flex: 1 1 auto; padding: var(--space-2) 0 var(--space-4); }
.mobile-drawer__label {
  padding: var(--space-3) var(--space-4) var(--space-1);
  font-size: 11px; color: var(--ink-4); letter-spacing: var(--tracking-wide);
}
.mobile-drawer__item {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 48px; padding: 6px var(--space-4);
  color: var(--ink-2);
}
.mobile-drawer__item svg {
  width: 24px; height: 24px; flex: 0 0 auto;
  color: var(--ink-3);
}
.mobile-drawer__item span { font-size: var(--text-base); }
.mobile-drawer__item:hover { background: var(--bg-soft); color: var(--ink); }
.mobile-drawer__item:hover svg { color: var(--ink); }
.mobile-drawer__item.is-active { color: var(--ink); font-weight: 600; }
.mobile-drawer__item.is-active svg { color: var(--red); }
.mobile-drawer__divider {
  height: 1px; margin: var(--space-3) var(--space-4);
  background: var(--line-2);
}
.mobile-drawer__foot {
  flex: 0 0 auto;
  border-top: 1px solid var(--line-2);
  padding: var(--space-3) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: var(--space-1);
}
.mobile-drawer__btn {
  width: 100%; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--ink-2);
  font-size: var(--text-base); font-weight: 500;
  transition: var(--tr);
}
.mobile-drawer__btn:hover { background: var(--bg-deep); color: var(--ink); }
.mobile-drawer__btn--primary { background: var(--ink); color: var(--white); }
.mobile-drawer__btn--primary:hover { background: var(--red); color: var(--white); }

@media (min-width: 721px) { .mobile-drawer { display: none; } }

.footer {
  border-top: 1px solid var(--line-2);
  padding: var(--space-5);
}
.footer__inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-3); font-size: var(--text-xs); color: var(--ink-3);
}
.footer__inner a:hover { color: var(--ink); }

/* =========================================================
   PART 5 · 首页 · Board (首屏焦点图)
   ========================================================= */
.board {
  max-width: var(--wrap);
  margin: calc(var(--header-height) + 24px) auto 0;
  padding: 0 var(--space-5);
}
.board__wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr) 280px; gap: var(--space-4h); align-items: stretch; }
.board__col { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; min-height: 0; }
.board__col--left .secondary-card { flex: 1 1 auto; min-height: 0; }
.board__col--left .ad-card { flex: 0 0 200px; }
.board__col--right .vote-card { flex: 0 0 auto; }
.board__col--right .create-card { flex: 1 1 auto; min-height: 0; }

.secondary-card { position: relative; display: block; min-height: 200px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-soft); }
.secondary-card__media { position: absolute; inset: 0; }
.secondary-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.secondary-card:hover .secondary-card__media img { transform: scale(1.02); }
.secondary-card__overlay {
  position: absolute; inset: auto 0 0 0;
  padding: var(--space-6) var(--space-4) var(--space-4);
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  color: var(--white);
  display: flex; flex-direction: column; gap: 6px;
}
.secondary-card__label {
  align-self: flex-start;
  padding: 3px var(--space-2);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 500; border-radius: var(--radius-sm);
  letter-spacing: var(--tracking-wide);
}
.secondary-card__title {
  font-size: var(--text-base); font-weight: 600; line-height: 1.4;
  letter-spacing: var(--tracking-tight);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.ad-card { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: var(--bg-soft); border-radius: var(--radius-lg); border: 1px solid var(--line-2); overflow: hidden; }
.ad-card__thumb { position: relative; flex: 1 1 auto; min-height: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-deep); }
.ad-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.ad-card:hover .ad-card__thumb img { transform: scale(1.03); }
.ad-card__status {
  position: absolute; right: var(--space-2); top: var(--space-2);
  width: var(--space-2); height: var(--space-2);
  background: var(--green); border-radius: 50%;
  border: 1.5px solid var(--white);
  box-shadow: 0 0 6px rgba(62,207,142,0.5);
}
.ad-card__badge {
  position: absolute;
  left: var(--space-2);
  top: var(--space-2);
  padding: 1px 6px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 10px;
  line-height: 1.6;
  font-weight: 500;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.ad-card__info { flex: 0 0 auto; padding: 0 var(--space-1) var(--space-1); }
.ad-card__title {
  font-size: var(--text-sm); font-weight: 600; color: var(--ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ad-card__sub {
  font-size: 11px; color: var(--ink-2); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hero { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; }
.hero__viewport {
  position: relative; flex: 1 1 auto;
  aspect-ratio: 4 / 3; min-height: 200px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-soft);
}
.hero__slide {
  position: absolute; inset: 0;
  display: block;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.hero__slide:hover img { transform: scale(1.015); }
/* 整图压暗层（2026-11-11）：去掉图片兜底后，幻灯取的是文章真实配图，
   而实际配图多为竖版聊天截图／海报，自身带大量文字。 */
.hero__slide::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 60%, rgba(0,0,0,0.18) 100%);
}
/* 文字条做成独立的深色毛玻璃层：配图若是白底黑字的长截图，仅靠压暗
   仍会和白字叠成一团，这里用足够不透明的底 + 模糊，把图片内容在文字区
   弱化掉，任何配图下标题都可读。 */
.hero__overlay {
  position: absolute; inset: auto 0 0 0;
  z-index: 2;
  padding: 28px var(--space-5) var(--space-5);
  background: linear-gradient(to top, rgba(12,12,14,0.90) 0%, rgba(12,12,14,0.78) 100%);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  color: var(--white);
}
.hero__prefix { font-size: var(--text-sm); opacity: 0.82; margin-bottom: 6px; letter-spacing: var(--tracking-wide); }
.hero__title {
  font-size: 20px; font-weight: 500; line-height: var(--leading-tight); letter-spacing: var(--tracking-tight);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__dots { display: flex; justify-content: center; align-items: center; gap: 0; padding-top: 8px; flex: 0 0 auto; }
.hero__dot { position: relative; width: 24px; height: 24px; padding: 0; background: transparent; border-radius: 50%; }
.hero__dot::before {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 6px; height: 6px; border-radius: var(--radius-pill);
  background: var(--ink-4); transition: all 0.3s var(--ease);
}
.hero__dot:hover::before { background: var(--ink-3); }
.hero__dot.is-active::before { width: 16px; border-radius: 3px; background: var(--ink); }
.hero__pause {
  width: 24px; height: 24px; margin-left: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3); border-radius: 50%; position: relative;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.hero__pause:hover { color: var(--ink); background: var(--bg-soft); }
.hero__pause svg { width: 12px; height: 12px; }

.vote-card {
  position: relative; padding: 18px; min-height: 140px;
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--bg-soft) 100%);
  border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  overflow: hidden; display: flex; flex-direction: column; gap: var(--space-1);
}
.vote-card__title {
  font-size: var(--text-sm); font-weight: 600; color: var(--ink); line-height: 1.5;
  position: relative; z-index: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vote-card__desc {
  font-size: 11px; color: var(--ink-2); position: relative; z-index: 1;
  max-width: 90%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vote-card__cta { display: inline-flex; align-items: center; gap: var(--space-1); margin-top: auto; font-size: 11px; color: var(--ink-2); font-weight: 500; position: relative; z-index: 1; }
.vote-card__bg {
  position: absolute; right: -16px; bottom: -16px;
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover; opacity: 0.92; box-shadow: var(--ring);
}

.create-card { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: var(--bg-soft); border-radius: var(--radius-lg); border: 1px solid var(--line-2); overflow: hidden; }
.create-card__thumb { flex: 1 1 auto; min-height: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-deep); }
.create-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.create-card:hover .create-card__thumb img { transform: scale(1.03); }
.create-card__title {
  flex: 0 0 auto; padding: 0 var(--space-1); font-size: var(--text-sm); font-weight: 600; color: var(--ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.create-card__desc {
  flex: 0 0 auto; padding: 0 var(--space-1) var(--space-1);
  font-size: 11px; color: var(--ink-2); line-height: var(--leading-normal);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.secondary-card, .vote-card, .create-card { transition: box-shadow 0.24s var(--ease), transform 0.24s var(--ease); }
.secondary-card:hover, .vote-card:hover, .create-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---- 补回：首屏下方的横向滑动卡片组 ---- */
.board__group { position: relative; margin-top: var(--space-5); }
.board__group-track {
  display: flex; gap: var(--space-3);
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 14px; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; scroll-padding-left: 0;
}
.board__group-track::-webkit-scrollbar { display: none; }
.board__group::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 14px; width: 48px;
  pointer-events: none; background: linear-gradient(to right, transparent, var(--bg));
}
.group-card {
  flex: 0 0 260px; padding: var(--space-4);
  background: var(--bg-soft); border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden; min-height: 148px;
  transition: opacity 0.18s var(--ease); scroll-snap-align: start;
}
.group-card:hover { opacity: 0.92; }
.group-card--vote { background: linear-gradient(135deg, var(--pink-soft), var(--pink-mid)); }
.group-card--vote .group-card__title,
.group-card--vote .group-card__desc,
.group-card--vote .group-card__cta { position: relative; z-index: 1; }
.group-card--vote .group-card__title {
  font-size: var(--text-sm); font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp:3; -webkit-box-orient: vertical; overflow: hidden;
}
.group-card--vote .group-card__desc {
  font-size: 11px; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.group-card--vote .group-card__cta { margin-top: auto; font-size: 11px; color: var(--ink-2); font-weight: 500; }
.group-card--vote img {
  position: absolute; right: calc(-1 * var(--space-3)); bottom: calc(-1 * var(--space-3));
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: var(--ring);
}
.group-card--item .group-card__thumb {
  aspect-ratio: 4 / 3; min-height: 120px;
  border-radius: var(--radius-md); overflow: hidden;
  margin-bottom: var(--space-2); background: var(--bg-deep);
}
.group-card--item .group-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- 无配图降级（2026-11-11 移除图片兜底后新增）----
   无 litpic 的文章不再输出 <img>，对应容器会留下空壳：灰底色块，或被
   aspect-ratio 撑出的空白。这里统一收掉，让卡片退化成纯文字形态。
   注意不能用 :empty —— 模板换行缩进会在容器里留空白文本节点，:empty 不匹配；
   一律用 :not(:has(img))，对 ad-card__thumb 里的状态圆点 span 同样安全。 */
.secondary-card__media:not(:has(img)),
.create-card__thumb:not(:has(img)),
.group-card--item .group-card__thumb:not(:has(img)),
.ad-card__thumb:not(:has(img)),
.yipai__cover:not(:has(img)) { display: none; }

/* 焦点卡的文字原本压在图上的黑色渐变里；无图后失去底衬，白字会糊在浅灰底上，
   改为常规深色文字，标签也从半透明白换成实心浅底。 */
.secondary-card:not(:has(.secondary-card__media img)) .secondary-card__overlay {
  position: static; padding: var(--space-5) var(--space-4);
  background: none; color: var(--ink);
}
.secondary-card:not(:has(.secondary-card__media img)) .secondary-card__label {
  background: var(--bg-deep); color: var(--ink-2);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.secondary-card:not(:has(.secondary-card__media img)) .secondary-card__title { color: var(--ink); }
.group-card--item .group-card__title {
  font-size: var(--text-sm); font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.group-card--item .group-card__desc {
  font-size: 11px; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.group-card--user { align-items: center; justify-content: center; text-align: center; flex: 0 0 180px; }
.group-card--user .group-card__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; box-shadow: var(--ring); }
.group-card--user .group-card__flag { font-size: 11px; color: var(--ink-3); }
.group-card--user .group-card__name {
  font-size: var(--text-sm); font-weight: 600; color: var(--ink); margin-top: 2px;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* =========================================================
   PART 5.2 · 首页 Feed（极简三栏布局）
   ========================================================= */
.feed {
  width: 100%;
  margin: 64px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-2);
}

.feed__wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--space-5);
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 240px;
  gap: 64px;
  align-items: start;
}

/* --- 左侧导航 --- */
.feed__side--left {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}
.feed-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.feed-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.feed-nav__item svg {
  width: 22px;
  height: 22px;
  color: currentColor;
}
.feed-nav__item:hover,
.feed-nav__item.is-active {
  color: var(--ink);
}

/* --- 中间信息流 --- */
.feed__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.feed-item {
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 32px;
  margin-bottom: 32px;
}
.feed-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}
.feed-item__link {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 32px;
  text-decoration: none;
}
.feed-item__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
}
.feed-item__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.feed-item__link:hover .feed-item__title {
  color: var(--red);
}
.feed-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.feed-item__avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}
/* ==========================================================
   风险等级全站统一配色（d/w/l/r/v，取自 cc_arcatt）
   机制：任意元素挂 .lv--{code} 即设置 --lv-color，
   展示点统一用 color: var(--lv-color, fallback)。
   自定义属性沿元素树继承，不受 CSS 规则先后顺序影响，
   故 feed / 关联阅读 / 风险卡 / 文章头部 / 侧栏 meta 挂同一个 class 即可。
   ========================================================== */
.lv--d, .lv--r { --lv-color: var(--lv-danger); }
.lv--w        { --lv-color: var(--lv-warn); }
.lv--l        { --lv-color: var(--lv-pending); }
.lv--v        { --lv-color: var(--lv-safe); }

.feed-item__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  margin-left: 4px;
  color: var(--lv-color, var(--ink-3));
}
/* 兼容旧的 feed-item__tag--{lv} 写法（首页 / 关联阅读仍在用） */
.feed-item__tag--d, .feed-item__tag--r { --lv-color: var(--lv-danger); }
.feed-item__tag--w                    { --lv-color: var(--lv-warn); }
.feed-item__tag--l                    { --lv-color: var(--lv-pending); }
.feed-item__tag--v                    { --lv-color: var(--lv-safe); }
.feed-item__cover {
  flex: 0 0 160px;
  width: 160px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
}
.feed-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.feed-item__link:hover .feed-item__cover img {
  transform: scale(1.02);
}

/* 空状态 */
.feed-empty {
  display: none;
  padding: 80px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

/* --- 右侧栏 --- */
.feed__side--right {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.aside-block__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
}
.aside-text-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aside-text-list li {
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 16px;
}
.aside-text-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.aside-text-list a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 6px;
}
.aside-text-list__meta {
  font-size: 12px;
  color: var(--lv-color, var(--ink-3));
}

.watching-list { display: flex; flex-direction: column; gap: var(--space-4); }
.watching-list li a { display: block; font-size: var(--text-sm); color: var(--ink); line-height: var(--leading-normal); font-weight: 500; }
.watching-list__meta { display: block; margin-top: var(--space-1); font-size: 11px; color: var(--ink-3); font-weight: 400; }

.aside-ad {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.aside-ad img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   首页右侧底部的极简社交链接
   ========================================================= */
.aside-footer {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 16px; 
  border-top: 0; 
}
.aside-footer__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px; 
}
.aside-footer__row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b8b8b8;
  transition: color 0.2s var(--ease);
}
.aside-footer__row a:hover {
  color: var(--ink); 
}
.aside-footer__row--text {
  gap: 24px; 
}
.aside-footer__row--text a {
  font-size: 13px;
  color: #b8b8b8;
}
.aside-footer__row--text a:hover {
  color: var(--ink);
  background: transparent;
}

/* 社交图标 - 悬浮二维码逻辑 */
.social-qr-trigger {
  position: relative;
  display: inline-flex;
}
.social-qr-popover {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  margin-bottom: 12px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 50;
}
.social-qr-trigger:hover .social-qr-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.social-qr-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}
.social-qr-popover img {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}
.social-qr-popover span {
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  font-weight: 500;
}

/* =========================================================
   PART 6 · Matrix 页 (list_article.html)
   ========================================================= */
.matrix-page { padding: var(--space-6) 0 0; }
.matrix-page-header { margin-bottom: var(--space-5); }
.matrix-page-header__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  padding-bottom: var(--space-4);
}
.matrix-page-header__intro {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.matrix-page-header__title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}
.matrix-page-header__desc {
  margin: 0;
  max-width: 560px;
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--ink-3);
}
.matrix-page-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin: var(--space-1) 0 0;
  padding: 0;
  list-style: none;
}
.matrix-page-header__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--ink-3);
}
/* 封面栏目（index_article.htm）子栏目分组 */
.matrix-group { margin-bottom: var(--space-8, 56px); }
.matrix-group__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5, 24px); }
.matrix-group__title { margin: 0; font-size: 22px; font-weight: 600; color: var(--ink); }
.matrix-group__more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); text-decoration: none; transition: var(--tr); }
.matrix-group__more:hover { color: var(--ink); }
/* 分页（search / tag_list 共用；core {dede:pagelist} 输出的 a/span 已带 page-link 类，
   当前页 is-current、边界页与「N页M条」占位 is-muted。单页时整条隐藏） */
.search-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 40px 0 12px;
  font-size: var(--text-sm);
}
.search-pagination .page-link {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink-2);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: var(--tr);
}
.search-pagination a.page-link:hover {
  border-color: var(--ink-3);
  background: var(--bg-soft);
  color: var(--ink);
}
.search-pagination a.page-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
/* 当前页：实心深底，与可点项拉开层次 */
.search-pagination .page-link.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
/* 边界禁用项与「N页M条」信息：无边框、弱化，不参与点击 */
.search-pagination .page-link.is-muted {
  border-color: transparent;
  background: transparent;
  color: var(--ink-4);
  cursor: default;
}
/* 兜底：核心若输出未带 page-link 的裸标签（如二次开发覆盖过函数），仍保持可用观感 */
.search-pagination > a:not(.page-link),
.search-pagination > span:not(.page-link) {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  color: var(--ink-2);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.search-pagination:has(> span:only-child) { display: none; }
.matrix-page-header__stat b {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.btn-write {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-write:hover {
  background: var(--red);
  color: var(--white);
}
.btn-write svg { flex: 0 0 auto; width: 15px; height: 15px; }

.page-tabs { border-bottom: 1px solid var(--line-2); margin-top: 16px; }
.page-tabs ul { display: flex; gap: 40px; overflow-x: auto; scrollbar-width: none; }
.page-tabs ul::-webkit-scrollbar { display: none; }
.page-tabs a {
  position: relative; display: inline-block;
  padding: 0 0 16px;
  font-size: 16px; color: #8c8c8c; font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s; flex: 0 0 auto;
}
.page-tabs a:hover { color: var(--ink); }
.page-tabs .is-active a { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }

.matrix-home { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 44px; align-items: start; }
.main-container { min-width: 0; }

.matrix-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); margin-bottom: var(--space-6); }
.layout { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.layout__icon { position: relative; width: var(--space-6); height: var(--space-6); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); border-radius: var(--radius-sm); transition: var(--tr); }
.layout__icon:hover { color: var(--ink); background: var(--bg-soft); }
.layout__icon.is-active { color: var(--ink); background: var(--bg-deep); }
.layout__icon.is-active::after { content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 12px; height: 2px; border-radius: 1px; background: var(--ink); }

.posts-list { list-style: none; padding: 0; margin: 0; }
.posts-list-item { border-bottom: 1px solid var(--line-2); }
.posts-list-item:last-child { border-bottom: 0; }
.posts-list-item > a { display: block; padding: 0; }
.post-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 0; padding: 18px 12px; margin: 0 -12px 18px; border-radius: 16px; transition: background 0.2s ease-out; }
.posts-list-item:first-child .post-item { padding-top: 12px; }
.posts-list-item:hover .post-item { background: var(--bg-soft); }
.post-info { flex: 1 1 0%; min-width: 0; display: block; }
.post-title { font-size: 18px; font-weight: 600; line-height: 25px; letter-spacing: normal; color: var(--ink); margin-bottom: 16px; transition: color 0.18s var(--ease); }
.post-item-bottom { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.post-author { display: block; margin-right: 24px; white-space: nowrap; }
.post-author-img { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; display: inline-block; margin-right: 8px; vertical-align: middle; }
.post-author-img img { width: 100%; height: 100%; object-fit: cover; }
.post-author-name { font-size: 14px; color: var(--ink-muted); vertical-align: middle; }
.post-other { display: block; color: var(--ink-muted); font-size: 12px; }
.post-other-item { display: inline; margin-right: 12px; white-space: nowrap; }
.post-other-item svg { width: 14px; height: 14px; color: var(--ink-muted); vertical-align: -2px; }
.post-cover { flex: 0 0 auto; width: 160px; height: 100px; object-fit: cover; border-radius: 8px; background: transparent; border: 1px solid rgb(247, 247, 249); max-width: none; }

.posts-list.is-grid-view { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); padding-top: var(--space-4); }
.posts-list.is-grid-view .posts-list-item { border-bottom: 0; background: var(--bg-soft); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s var(--ease); }
.posts-list.is-grid-view .posts-list-item:hover { box-shadow: var(--shadow-md); }
.posts-list.is-grid-view .post-item { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; grid-template-areas: "cover" "info"; height: 100%; padding: 0; margin: 0; background: transparent !important; border-radius: 0; }
.posts-list.is-grid-view .post-info { grid-area: info; padding: var(--space-4); }
.posts-list.is-grid-view .post-cover { grid-area: cover; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 0; }
.posts-list.is-grid-view .post-title { margin-bottom: var(--space-3); font-size: 17px; }
.posts-list.is-grid-view .post-item.no-cover { grid-template-rows: 1fr; grid-template-areas: "info"; }
.posts-list.is-grid-view .post-item.no-cover .post-info { padding-top: var(--space-6); }

.posts-list.is-compact-view .post-item { padding: 12px 0; margin: 0; border-radius: 0; }
.posts-list.is-compact-view .post-cover { display: none; }
.posts-list.is-compact-view .post-title { font-size: 16px; margin-bottom: 6px; }
.posts-list.is-compact-view .post-item-bottom { justify-content: flex-start; gap: 16px; }

.button-show-more { display: block; width: 120px; height: 40px; line-height: 40px; font-size: var(--text-sm); font-weight: 500; color: var(--ink-muted); background: var(--bg-soft); border: 0; border-radius: 40px; padding: 0 24px; margin: 36px auto; text-align: center; cursor: pointer; appearance: none; -webkit-appearance: none; transition: color 0.2s; }
.button-show-more:hover { color: var(--ink); }
.button-show-more.is-disabled { color: var(--ink-4); background: transparent; cursor: default; pointer-events: none; }

.aside-container { width: 100%; max-width: 324px; display: flex; flex-direction: column; gap: var(--space-6); margin: var(--space-3) 0 var(--space-6) 0; }
.yipai { background: var(--bg-soft); border-radius: var(--radius-lg); overflow: hidden; }
.yipai__cover { position: relative; width: 100%; aspect-ratio: 536 / 340; }
.yipai__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yipai__tag { position: absolute; left: var(--space-3); top: var(--space-3); padding: 4px 10px; background: rgba(0,0,0,0.55); color: var(--white); font-size: 11px; font-weight: 500; border-radius: 4px; letter-spacing: var(--tracking-wide); }
.yipai__content { padding: 20px 24px 24px; }
.yipai__title { font-size: var(--text-base); font-weight: 600; line-height: 1.5; color: var(--ink); margin: 0 0 var(--space-4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yipai__actions { display: flex; align-items: center; gap: var(--space-2); }
.yipai__btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 var(--space-4); font-size: var(--text-xs); font-weight: 500; border-radius: var(--radius-sm); transition: var(--tr-3); }
.yipai__btn--primary { background: var(--ink); color: var(--white); }
.yipai__btn--primary:hover { background: var(--red); color: var(--white); }
.yipai__btn--ghost { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.yipai__btn--ghost:hover { color: var(--ink); border-color: var(--ink-3); }

.user-list { display: flex; flex-direction: column; gap: var(--space-4); }
.user-list__item { display: flex; align-items: center; gap: var(--space-3); }
.user-list__link, .user-list__profile { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--space-3); }
.user-list__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.user-list__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.user-list__name { font-size: var(--text-sm); font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-list__desc { font-size: var(--text-xs); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-list__follow, .recommend__follow-btn { flex: 0 0 auto; height: 28px; padding: 0 12px; border: 1px solid var(--red); background: transparent; color: var(--red); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 500; cursor: pointer; transition: all 0.18s; }
.user-list__follow:hover, .recommend__follow-btn:hover { background: var(--red); color: var(--white); }
.user-list__follow.is-followed, .recommend__follow-btn.is-followed { border-color: var(--line); color: var(--ink-3); }
.user-list__follow.is-followed:hover, .recommend__follow-btn.is-followed:hover { background: transparent; color: var(--ink-3); }

/* =========================================================
   PART 6.5 · 关于页 (about.html)
   ========================================================= */
.about-page { padding: var(--space-6) 0 var(--space-8); }
.about-page .wrap { max-width: 1000px; }
.about-hero { padding-bottom: var(--space-6); margin-bottom: var(--space-7); }
.about-hero__title { margin: 0 0 var(--space-3); font-size: 38px; font-weight: 600; letter-spacing: normal; line-height: 1.3; color: var(--ink); }
.about-hero__desc { max-width: 640px; margin: 0 0 var(--space-4h); font-size: var(--text-base); line-height: var(--leading-loose); color: var(--ink-2); }
.about-hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-5); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--ink-3); }
.about-hero__meta li { display: inline-flex; align-items: baseline; gap: 4px; }
.about-hero__meta b { font-weight: 600; color: var(--ink); }
.about-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.about-toc { position: sticky; top: calc(var(--header-height) + var(--space-4h)); align-self: start; }
.about-toc__list { display: flex; flex-direction: column; gap: 1px; border-left: 1px solid var(--line-2); }
.about-toc__link { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: var(--text-sm); color: var(--ink-3); transition: color 0.18s var(--ease), border-color 0.18s var(--ease); }
.about-toc__link:hover { color: var(--ink); }
.about-toc__link.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--red); }
.about-toc__index { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-4); font-variant-numeric: tabular-nums; transition: color 0.18s var(--ease); }
.about-toc__link.is-active .about-toc__index, .about-toc__link:hover .about-toc__index { color: var(--red); }
.about-body { max-width: 728px; min-width: 0; margin-left: auto; margin-right: auto; }
.about-section { margin-bottom: var(--space-7); scroll-margin-top: calc(var(--header-height) + var(--space-4h)); }
.about-section:last-child { margin-bottom: 0; }
.about-section__title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 var(--space-4h); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line-2); font-size: var(--text-xl); font-weight: 600; letter-spacing: var(--tracking-tight); color: var(--ink); }
.about-section__index { font-family: var(--mono); font-size: var(--text-sm); font-weight: 500; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.about-prose { font-size: 16px; line-height: 1.85; color: var(--ink-2); overflow-wrap: break-word; text-autospace: normal; }
.about-prose > :first-child { margin-top: 0; }
.about-prose > :last-child  { margin-bottom: 0; }
.about-prose p { margin: 0 0 var(--space-4h); }
.about-prose strong { color: var(--ink); font-weight: 600; }
.about-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.about-prose a:hover { color: var(--red); text-decoration-color: var(--red); }
.about-prose h3 { margin: var(--space-6) 0 var(--space-3); font-size: var(--text-md); font-weight: 600; color: var(--ink); letter-spacing: var(--tracking-tight); }
.about-prose h3 + p { margin-top: 0; }
.about-prose ul { margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.about-prose ul li { position: relative; padding-left: 18px; margin-bottom: 10px; line-height: 1.8; }
.about-prose ul li:last-child { margin-bottom: 0; }
.about-prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.9em; width: 6px; height: 1px; background: var(--ink-4); }
.about-note { margin: var(--space-6) 0; padding: var(--space-4) var(--space-4h) var(--space-4) var(--space-5); background: var(--bg-soft); border-left: 2px solid var(--ink-3); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.about-note p { margin: 0 0 10px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.about-note p:last-child { margin-bottom: 0; }
.about-note strong { color: var(--ink); }
.about-note p.about-note__title { font-size: var(--text-sm); font-weight: 600; color: var(--ink); margin-bottom: var(--space-2); }
.about-note--alert { background: var(--red-soft); border-left-color: var(--red); }
.about-note--alert p.about-note__title { color: var(--red); }
.about-table-wrap { margin: var(--space-5) 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); background-color: var(--bg); }
.about-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.about-table th, .about-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.about-table th { background: var(--bg-soft); font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.about-table td { color: var(--ink-2); }
.about-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.about-table tr:last-child td { border-bottom: 0; }
.about-table td.text-red { color: var(--red); font-weight: 600; }

/* =========================================================
   PART 6.6 · 侵权申诉页 (report.html)
   ========================================================= */
.report-page { padding: var(--space-6) 0 var(--space-8); }
.report-page .wrap { max-width: 1000px; }
.report-hero { padding-bottom: var(--space-5); margin-bottom: var(--space-6); }
.report-hero__title { margin: 0 0 var(--space-2); font-size: 38px; font-weight: 600; letter-spacing: normal; line-height: 1.3; color: var(--ink); }
.report-hero__desc { max-width: 640px; margin: 0; font-size: var(--text-sm); line-height: 1.7; color: var(--ink-3); }
/* 主区在左（宽），须知在右（窄）：与 DOM 顺序一致，屏幕阅读器按「表单 → 须知」朗读 */
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-7); align-items: start; }
.report-aside { position: sticky; top: calc(var(--header-height) + var(--space-4h)); align-self: start; display: flex; flex-direction: column; gap: var(--space-5); }
.report-notice { padding: var(--space-5); background: var(--bg-soft); border-radius: var(--radius-md); }
.report-notice__title { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--space-4); font-size: var(--text-sm); font-weight: 600; color: var(--ink); letter-spacing: var(--tracking-tight); }
.report-notice__title::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }
.report-notice__list { counter-reset: notice; margin: 0; padding: 0; list-style: none; }
.report-notice__list li { position: relative; counter-increment: notice; padding-left: 28px; margin-bottom: var(--space-4); font-size: 13px; line-height: 1.65; color: var(--ink-3); }
.report-notice__list li:last-child { margin-bottom: 0; }
.report-notice__list li::before { content: counter(notice, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; }
.report-notice__list strong { display: block; margin-bottom: 2px; font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.report-notice__footer { margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px dashed var(--line-2); font-size: 12px; line-height: 1.65; color: var(--ink-3); }
.report-notice__footer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.report-notice__footer a:hover { color: var(--red); text-decoration-color: var(--red); }
.report-main { min-width: 0; }
.report-form { display: flex; flex-direction: column; gap: var(--space-6); }
.report-form__section { display: flex; flex-direction: column; gap: var(--space-4); }
.report-form__heading { margin: 0 0 var(--space-1); padding-bottom: var(--space-2); border-bottom: 1px solid var(--line-2); font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: var(--tracking-tight); }
.form-required { color: var(--red); font-weight: 400; margin-left: 2px; }
.form-select { appearance: none; -webkit-appearance: none; padding-right: var(--space-7); background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23737373' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px; cursor: pointer; }
.form-textarea { height: auto; min-height: 140px; padding: var(--space-3); resize: vertical; line-height: 1.65; }
/* ↑ 这两条必须在 .form-input 之后以复合选择器重declare：.form-input 的
   background 简写会把 select 的箭头背景图重置为 none，height 固定值也会压掉 textarea。 */
.form-upload { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: var(--space-6) var(--space-4); background: var(--bg-soft); border: 1px dashed var(--ink-4); border-radius: var(--radius-md); text-align: center; cursor: pointer; transition: border-color 0.18s var(--ease), background 0.18s var(--ease); }
.form-upload:hover { background: var(--bg-deep); border-color: var(--ink-3); }
.form-upload:focus-within { outline: 2px solid var(--red); outline-offset: 2px; background: var(--bg); border-color: var(--ink-3); }
.form-upload.drag-over { background: var(--red-soft); border-color: var(--red); }
.form-upload svg { color: var(--ink-3); transition: color 0.18s var(--ease); }
.form-upload:hover svg { color: var(--ink-2); }
.form-upload__text { font-size: var(--text-sm); font-weight: 500; color: var(--ink); }
.form-upload__hint { font-size: 12px; color: var(--ink-3); line-height: 1.6; max-width: 420px; }
.form-upload__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.form-upload__result { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.6; word-break: break-all; }
.form-check { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) var(--space-5); background: var(--red-soft); border-left: 2px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; }
.form-check input[type="checkbox"] { flex: 0 0 auto; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; }
.form-check__text { font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.form-check__text strong { color: var(--red); font-weight: 600; }
.report-form__submit { height: 48px; margin-top: var(--space-1); font-size: var(--text-base); }
.form-success { padding: var(--space-8) var(--space-5); background: var(--bg-soft); border-radius: var(--radius-md); text-align: center; scroll-margin-top: calc(var(--header-height) + var(--space-4h)); }
.form-success svg { color: var(--ink); margin-bottom: var(--space-3); }
.form-success__title { margin: 0 0 var(--space-2); font-size: var(--text-xl); font-weight: 600; color: var(--ink); letter-spacing: var(--tracking-tight); outline: none; }
.form-success__desc { max-width: 480px; margin: 0 auto var(--space-5); font-size: var(--text-sm); line-height: 1.75; color: var(--ink-3); }
.form-success__again { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 var(--space-5); background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 500; transition: var(--tr-3); }
.form-success__again:hover { background: var(--bg-deep); color: var(--ink); border-color: var(--ink-3); }

/* Report form sections
   —— 一律复用本段既有组件（report-form__section / report-form__heading /
   form-upload / form-check / form-success / report-notice），
   不再自造 rp-* 平行体系：那套命名与上面的组件重复且会盖掉全站 .aside-block。 */
.is-hidden { display: none !important; }
/* 字号不在这里覆盖：基础规则已定 16px（见 .report-form__heading 定义处），
   同选择器二次声明会静默覆盖前者，属审计里的真冲突。 */
.report-form .form-submit { height: 48px; font-size: var(--text-base); }

/* 中性选项行（匿名提交这类普通勾选，不该套红底警示块） */
.form-option { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.form-option input[type="checkbox"] { flex: 0 0 auto; margin-top: 2px; width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; }
.form-option__text { font-size: var(--text-sm); line-height: 1.6; color: var(--ink-2); }

/* 条件显示的字段组（如取消匿名后才出现的联系方式） */
.form-field-group { display: flex; flex-direction: column; gap: var(--space-4); }

/* 已上传文件列表 */
.report-file-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.report-file-list:empty { display: none; }
.report-file-item { display: flex; align-items: center; gap: var(--space-2); padding: 8px 12px; background: var(--bg-soft); border-radius: var(--radius-sm); font-size: var(--text-xs); color: var(--ink-2); }
.report-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-file-remove { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: var(--ink-3); border-radius: 50%; transition: var(--tr); }
.report-file-remove:hover { background: var(--bg-deep); color: var(--red); }

/* 提交内容摘要：空时不占位（JS 控制 hidden） */
.report-summary { margin: 0; padding: var(--space-4) var(--space-5); background: var(--bg-soft); border-radius: var(--radius-md); font-size: var(--text-sm); line-height: 1.75; }
.report-summary dt { margin-top: var(--space-2); font-weight: 600; color: var(--ink-2); }
.report-summary dt:first-child { margin-top: 0; }
.report-summary dd { margin: 0; color: var(--ink); overflow-wrap: break-word; }

/* 侧栏警示块 */
.report-alert { padding: var(--space-4); background: var(--red-soft); border-left: 2px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.report-alert strong { display: block; margin-bottom: 4px; font-size: 13px; color: var(--red); }

/* 提交说明 */
.report-submit-note { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink-3); }

/* Hero stats row */
.report-hero__stats { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-4) 0 0; }
.report-hero__stats span { font-size: 13px; color: var(--ink-3); }
.report-hero__stats b { color: var(--ink); font-weight: 600; }

/* =========================================================
   PART 7 · 文章页 (article.html)
   ========================================================= */
.post-page { max-width: none; margin: var(--header-height) auto 0; padding: 0; }
.post-page > article { max-width: none; margin: 0; padding: 0; }
.post-page .article-header, .post-page .article-body, .post-page .article-footer { max-width: 728px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.article-header { padding: 32px 0 0; }
.article-header__meta { display: block; font-size: 14px; color: var(--ink); line-height: 1.4; margin-bottom: 8px; }
.article-header__tag { display: inline-block; font-size: 13px; font-weight: 500; color: var(--lv-color, var(--red)); margin-right: 8px; }
.article-header__date, .article-header__reading-time { color: var(--ink); }
.article-header__date { font-variant-numeric: tabular-nums; }
.article-header__title { font-size: 38px; font-weight: 600; line-height: 1.3; letter-spacing: normal; color: var(--ink); margin: 0; }
.article-header__author { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.article-header-author { display: flex; align-items: center; gap: 8px; }
.article-header-author__avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--bg-soft); }
.article-header-author__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-header-author__info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.article-header-author__name { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.article-header-author__name:hover { color: var(--red); }
.article-header-author__bio { font-size: 12px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-header__banner { margin-top: 32px; border-radius: 0; overflow: visible; background: transparent; }
.article-header__banner img { width: 100%; height: auto; display: block; }
.risk-card { max-width: 728px; margin: 32px auto 0; padding: 0 24px; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.risk-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: 14px 0 12px; }
.risk-card__label { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.risk-card__level { flex: 0 0 auto; padding: 0; background: transparent; border-radius: 0; color: var(--lv-color, var(--red)); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.risk-card__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); margin: 0; padding: 14px 0 16px; border-top: 1px solid var(--line); }
.risk-card__item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.risk-card__item dt { font-size: var(--text-xs); color: var(--ink-3); }
.risk-card__item dd { margin: 0; font-size: var(--text-sm); color: var(--ink); line-height: 1.6; }
.article-stop { margin: var(--space-6) 0; padding: 0 0 0 var(--space-5); background: transparent; border: 0; border-left: 2px solid var(--red); border-radius: 0; }
.article-stop__title { font-size: var(--text-sm); font-weight: 600; color: var(--red); margin: 0 0 var(--space-3); }
.article-content .article-stop ol { margin: 0; padding-left: 20px; }
.article-content .article-stop li { margin-bottom: var(--space-2); }
.article-stop li:last-child { margin-bottom: 0; }
.article-body { margin-top: 32px; }

/* =========================================================
   PART 7.1 · 文章正文排版（对齐站点编辑风格）
   ========================================================= */

.article-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  text-autospace: normal;
  font-feature-settings: "kern" 1;
}

.article-content > :first-child { margin-top: 0; }
.article-content > :last-child  { margin-bottom: 0; }

/* 模板 <p><blockquote> 会拆出空 <p>，收掉 */
.article-content p:empty { display: none; }

/* ── 段落 ─────────────────────────────────────────────── */
.article-content p {
  margin: 0 0 22px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
}
.article-content p:last-child { margin-bottom: 0; }
.article-content p + p { margin-top: 0; }

/* ── 标题：只靠字号/字重/间距建立层级 ─────────────────── */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.article-content h1 {
  margin: 48px 0 20px;
  font-size: 30px;
  line-height: 1.35;
}

/* h2：前置 inline 红色小竖条（同导航当前态红条的语言），不悬挂、不随换行拉长 */
.article-content h2 {
  margin: 52px 0 20px;
  font-size: 22px;
  line-height: 1.45;
}
.article-content h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--red);
  vertical-align: -0.05em;
}

/* h3：纯文字，用字号与 h2 拉开层级 */
.article-content h3 {
  margin: 36px 0 14px;
  font-size: 18px;
  line-height: 1.55;
}

/* h4：弱化一档 */
.article-content h4 {
  margin: 28px 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: normal;
}

/* ── 行内强调 ─────────────────────────────────────────── */
.article-content strong,
.article-content b {
  font-weight: 700;
  color: var(--ink);
}
/* 中文斜体难看，去斜体只降一档颜色 */
.article-content em,
.article-content i {
  font-style: normal;
  color: var(--ink-2);
}
.article-content mark {
  padding: 1px 4px;
  background: var(--gold-soft);
  color: var(--ink);
  border-radius: 2px;
}
.article-content kbd {
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--ink);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: none;
}
.article-content sub,
.article-content sup {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}
.article-content sub { top: 0.25em; }
.article-content sup { top: -0.5em; }

/* ── 链接：下划线 + hover 红（同 .about-prose a）──────── */
.article-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}
.article-content a:hover {
  color: var(--red);
  text-decoration-color: var(--red);
}

/* ── 引用块：浅灰底 + 细左边框（同 .about-note 语言）──── */
.article-content blockquote {
  margin: 32px 0;
  padding: 18px 20px;
  background: var(--bg-soft);
  border-left: 2px solid var(--ink-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
}
.article-content blockquote::before { content: none; }
.article-content blockquote > :first-child { margin-top: 0; }
.article-content blockquote > :last-child  { margin-bottom: 0; }
.article-content blockquote p {
  margin: 0 0 10px;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
/* 警示语（⚠️ 紧急提醒 / 团队长特别警示）的 strong 走红 */
.article-content blockquote strong {
  color: var(--red);
  font-weight: 700;
}

/* ── 列表：原生标记，marker 用中性灰 ─────────────────── */
.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
  margin-bottom: 8px;
  padding-left: 2px;
  line-height: 1.8;
}
.article-content li:last-child { margin-bottom: 0; }
.article-content li::marker {
  color: var(--ink-3);
  font-size: 0.9em;
}
.article-content li > p { margin: 0 0 8px; }
.article-content li > p:last-child { margin-bottom: 0; }
.article-content li > p + p { margin-top: 0; }
.article-content li > ul,
.article-content li > ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* ── 图片：小圆角 + 极淡描边（同 .post-cover 的处理）──── */
.article-content img,
.article-content video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg-soft);
}
.article-content img:hover:not([class*="avatar"]) { transform: none; }

.article-content figure {
  margin: 28px 0;
  padding: 0;
  max-width: 100%;
  text-align: center;
}
.article-content figure img { margin: 0 auto; }
.article-content figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
  text-align: center;
}

/* ── 表格：学 .about-table（细外框 + 浅灰表头 + 只横线）── */
.article-content table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
}
.article-content th,
.article-content td {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.article-content th {
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  white-space: nowrap;
}
.article-content td {
  font-size: 14px;
  color: var(--ink-2);
}
.article-content td:first-child {
  color: var(--ink);
  font-weight: 600;
}
.article-content tr:last-child td { border-bottom: 0; }
/* 去掉旧的斑马纹与 hover */
.article-content tbody tr:nth-child(even) td { background: transparent; }
.article-content tbody tr:hover td { background: transparent; }

/* ── 分割线 ───────────────────────────────────────────── */
.article-content hr {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: var(--line);
}

/* ── 代码 ─────────────────────────────────────────────── */
.article-content code {
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--red);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.article-content pre {
  margin: 26px 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-deep);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  tab-size: 4;
  -webkit-overflow-scrolling: touch;
}
.article-content pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: inherit;
}

/* ── Mermaid：渲染前后都是浅灰细线容器 ───────────────── */
.article-content pre.mermaid {
  margin: 28px 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
  text-align: left;
}
.article-content pre.mermaid[data-processed] {
  padding: 24px 16px;
  white-space: normal;
  text-align: center;
}
.article-content pre.mermaid svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.article-content pre.mermaid.is-error {
  padding: 16px;
  color: var(--ink-3);
  background: var(--bg-deep);
  white-space: pre-wrap;
  text-align: left;
}

/* ── 折叠块 ───────────────────────────────────────────── */
.article-content details {
  margin: 22px 0;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.article-content details[open] { border-color: var(--line-2); }
.article-content summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  outline: none;
}
.article-content summary::-webkit-details-marker { display: none; }
.article-content summary::before {
  content: "\25B6";
  display: inline-block;
  width: 1em;
  margin-right: 6px;
  font-size: 10px;
  color: var(--ink-3);
  vertical-align: middle;
  transition: transform 0.2s var(--ease);
}
.article-content details[open] > summary::before { transform: rotate(90deg); }
.article-content details > :not(summary) {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ── 文章底部标签区 ──────────────────────────────────────────── */
.article-footer { margin-top: 32px; margin-bottom: 64px; padding-top: 0; border-top: 0; padding-left: 24px; padding-right: 24px; }
.article-footer__tags { display: flex; flex-wrap: wrap; gap: 24px; }
.article-tag { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 400; color: rgb(111, 113, 116); background: transparent; border-radius: 0; padding: 0; text-decoration: none; transition: color 0.2s var(--ease); }
.article-tag:hover { color: rgb(0, 0, 0); }

/* ── 目录按钮 & 面板 ──────────────────────────────────────── */
.toc-trigger { position: fixed; right: var(--space-5); bottom: 260px; z-index: 35; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; background: rgba(255,255,255,0.94); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border: 1px solid var(--line-2); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 500; color: var(--ink); box-shadow: var(--shadow-md); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.toc-trigger:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-1px); }
.toc-trigger svg { flex: 0 0 auto; }
.toc-overlay { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.toc-overlay__mask { position: absolute; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.25s var(--ease); }
.toc-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 320px; max-width: 85vw; background: var(--bg); box-shadow: -8px 0 24px rgba(0,0,0,0.08); transform: translateX(100%); transition: transform 0.28s var(--ease); display: flex; flex-direction: column; }
.toc-overlay.is-open { visibility: visible; pointer-events: auto; }
.toc-overlay.is-open .toc-overlay__mask { opacity: 1; }
.toc-overlay.is-open .toc-panel { transform: translateX(0); }
.toc-panel__header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line-2); flex: 0 0 auto; }
.toc-panel__title { font-size: var(--text-md); font-weight: 600; color: var(--ink); margin: 0; }
.toc-panel__close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); color: var(--ink-muted); transition: var(--tr); }
.toc-panel__close:hover { background: var(--bg-soft); color: var(--ink); }
.toc-panel__nav { flex: 1 1 auto; overflow-y: auto; padding: var(--space-3) 0; }
.toc-panel__nav a { display: block; padding: 12px var(--space-5); font-size: var(--text-sm); color: var(--ink-2); border-left: 3px solid transparent; transition: var(--tr); }
.toc-panel__nav a:hover, .toc-panel__nav a.is-active { color: var(--ink); border-left-color: var(--red); background: var(--bg-soft); }
.toc-panel__nav a.is-sub { padding-left: 40px; font-size: 13px; }



/* =========================================================
   PART 8 · 评论区 & 关联阅读
   ========================================================= */
.comments, .post-page .related { background-color: #f7f7f9; width: 100%; max-width: none; margin: 0; border-top: 0; }
.post-page .comments { padding-bottom: 0; }
.comments { padding: 48px 0 32px; }
.comments__inner, .related__inner { max-width: 728px; margin: 0 auto; padding: 0 24px; }
.comments__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.comments__label { font-size: 22px; font-weight: 600; margin: 0; color: #000; display: inline-flex; align-items: baseline; gap: 8px; }
.comments__count { font-size: 16px; font-weight: 400; color: #999; }
.comments__sort { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; }
.comments__sort-trigger { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ink-3); background: transparent; border: 0; padding: 4px; cursor: pointer; transition: color 0.2s; outline: none; }
.comments__sort-trigger:hover, .comments__sort-trigger:focus-visible, .comments__sort.is-open .comments__sort-trigger { color: var(--ink); }
.comments__sort-trigger svg { transition: transform 0.2s var(--ease); }
.comments__sort.is-open .comments__sort-trigger svg { transform: rotate(180deg); }
.comments__sort-menu { position: absolute; top: calc(100% + 4px); right: 0; min-width: 120px; background: #ffffff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1); padding: 6px 0; margin: 0; list-style: none; z-index: 100; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease), transform 0.2s var(--ease); }
.comments__sort.is-open .comments__sort-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.comments__sort-item { padding: 10px 20px; font-size: 14px; color: var(--ink); cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.comments__sort-item:hover, .comments__sort-item:focus-visible { background: var(--bg-soft); outline: none; }
.comments__sort-item.is-active { font-weight: 500; }
.comments__card { background: #fff; border-radius: 20px; padding: 32px; }
.comments-empty { display: flex; align-items: center; justify-content: center; min-height: 84px; text-align: center; }
.comments-empty__text { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-3); }
.comment-item { display: flex; gap: 16px; margin-bottom: 32px; }
.comment-item:last-child { margin-bottom: 0; }
.comment-item__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #f0f0f3; }
.comment-item__avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-item__info { flex: 1; min-width: 0; }
.comment-item__head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; position: relative; }
.comment-item__name { font-size: 15px; font-weight: 500; color: #000; text-decoration: none; }
.comment-item__badge { display: inline-flex; width: 14px; height: 14px; }
.comment-item__badge svg { width: 100%; height: 100%; }
.comment-item__badge-author { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; background: #f0f0f3; color: #4a4a4a; font-size: 11px; font-weight: 500; border-radius: 4px; }
.comment-item__time { font-size: 13px; color: #999; }
.comment-item__reply-to { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #999; margin-left: 2px; }
.comment-item__reply-to svg { width: 10px; height: 10px; fill: #b8b8b8; }
.comment-item__emoji-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; color: #b8b8b8; display: flex; align-items: center; justify-content: center; transition: color 0.18s; }
.comment-item__emoji-btn:hover { color: #4a4a4a; }
.comment-item__body { font-size: 15px; line-height: 1.65; color: #000; }
.comment-item__actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.comment-item__like { display: inline-flex; align-items: center; justify-content: center; background: #d71a1b; color: #fff; font-size: 12px; font-weight: 500; height: 20px; padding: 0 6px; border-radius: 10px; line-height: 1; }
.comment-item__like-users { font-size: 13px; color: #999; }
.comment-item--reply { margin-left: 56px; gap: 12px; }
.comment-item--reply .comment-item__avatar { width: 32px; height: 32px; }
.comment-item--reply .comment-item__name { font-size: 14px; }
.comment-item--reply .comment-item__body { font-size: 14px; }
.comments__loading { text-align: center; font-size: 13px; color: #999; padding: 24px 0 32px; }
.article-bar-wrapper { max-width: 728px; margin: 24px auto 0; padding: 0 24px; min-height: 56px; pointer-events: none; }
.article-bar { width: 100%; display: flex; justify-content: center; pointer-events: none; }
.article-bar-wrapper.is-floating .article-bar { position: fixed; left: 0; right: 0; bottom: var(--bar-bottom-gap); z-index: 90; max-width: 728px; margin: 0 auto; padding: 0 24px; }
.article-bar__inner { pointer-events: auto; width: 100%; max-width: 400px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 8px 8px; background: #ffffff; border-radius: 999px; box-shadow: rgba(0, 0, 0, 0.03) 0px 4px 4px 0px, rgba(0, 0, 0, 0.14) 0px 8px 32px 0px; box-sizing: border-box; }
.article-bar__comment { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; background: #f7f7f9; border-radius: 999px; font-size: 13px; color: #6f7174; border: 0; cursor: pointer; transition: background 0.18s, color 0.18s; flex: 1 1 auto; min-width: 0; }
.article-bar__comment:hover { background: #f0f0f3; color: #000; }
.article-bar__comment svg { flex: 0 0 auto; width: 15px; height: 16px; stroke: #6f7174; }
.article-bar__comment:hover svg { stroke: #000; }
.article-bar__actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.article-bar__action { display: flex; align-items: center; justify-content: center; gap: 2px; height: 40px; padding: 0; color: #000; border: 0; background: transparent; cursor: pointer; transition: color 0.18s; width: 37px; }
.article-bar__action:hover { color: var(--red); }
.article-bar__action svg { width: 20px; height: 20px; }
.article-bar__action--charge { color: var(--red); }
.article-bar__action.is-active, .article-bar__action[aria-pressed="true"] { color: var(--red); }
.article-bar__count { display: inline-block; font-size: 13px; font-weight: 500; color: #000; font-variant-numeric: tabular-nums; line-height: 1; }
.post-page .related { padding: 36px 0 64px; }
.related__label { font-size: 22px; font-weight: 600; color: #000; margin: 0 0 24px; }
.related__container { display: flex; flex-direction: column; gap: 16px; }
.related__card { background-color: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.related__card__link { display: block; text-decoration: none; color: inherit; }
.related__card__body { display: flex; align-items: stretch; gap: 24px; padding: 32px; }
.related__card__content { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.related__card__title { font-size: 20px; font-weight: 500; color: #000; line-height: 1.4; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related__card__link:hover .related__card__title { color: var(--red); }
.related__card__meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #6f7174; }
.related__card__author { display: flex; align-items: center; gap: 6px; }
.related__card__avatar { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; flex: 0 0 20px; background: #f0f0f3; }
.related__card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related__card__cover { flex: 0 0 166px; width: 166px; height: 124px; overflow: hidden; border-radius: 8px; background: #f0f0f3; }
.related__card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================
   PART 9 · 通用弹窗
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: var(--space-4); visibility: hidden; opacity: 0; transition: visibility 0.2s var(--ease), opacity 0.2s var(--ease); }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__mask { position: absolute; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__panel { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - var(--space-6)); overflow-y: auto; background: var(--bg); border-radius: var(--radius-lg); box-shadow: 0 24px 64px -16px rgba(0,0,0,0.25), var(--ring); transform: translateY(var(--space-3)) scale(0.98); transition: transform 0.24s var(--ease); }
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }
.modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: var(--space-6) var(--space-6) 0; }
.modal__title { font-size: var(--text-lg); font-weight: 600; letter-spacing: var(--tracking-tight); color: var(--ink); margin: 0; }
.modal__subtitle { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--ink-3); line-height: var(--leading-normal); }
.modal__close { flex: 0 0 auto; width: var(--space-6); height: var(--space-6); display: inline-flex; align-items: center; justify-content: center; margin: calc(-1 * var(--space-1)) calc(-1 * var(--space-1)) 0 0; color: var(--ink-3); border-radius: var(--radius-sm); transition: var(--tr); }
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.modal__body { padding: var(--space-5) var(--space-6) var(--space-6); }
.modal__footer { padding: 0 var(--space-6) var(--space-6); text-align: center; font-size: var(--text-sm); color: var(--ink-3); }
.modal__switch { color: var(--red); font-weight: 500; margin-left: var(--space-1); cursor: pointer; }
.modal__switch:hover { text-decoration: underline; text-underline-offset: 3px; }
.modal__toast { position: fixed; left: 50%; top: 80px; z-index: 250; padding: 10px var(--space-4h); background: var(--ink); color: var(--white); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(-50%) translateY(calc(-1 * var(--space-2))); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.modal__toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field__label { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); }
.form-field__link { font-size: var(--text-xs); color: var(--ink-3); font-weight: 400; cursor: pointer; transition: color 0.18s var(--ease); }
.form-field__link:hover { color: var(--red); }
.form-input { width: 100%; height: 44px; padding: 0 var(--space-3); background: var(--bg-soft); border: 1px solid transparent; border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--ink); font-family: var(--font); outline: none; transition: border-color 0.18s var(--ease), background 0.18s var(--ease); }
.form-input:focus { background: var(--bg); border-color: var(--ink-3); }
.form-input::placeholder { color: var(--ink-4); }
/* 复合选择器提特异性：单类写法会被上方 .form-input 的 background 简写与 height 覆盖 */
.form-input.form-select { appearance: none; -webkit-appearance: none; padding-right: var(--space-7); background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23737373' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px; cursor: pointer; }
.form-input.form-textarea { height: auto; min-height: 140px; padding: var(--space-3); resize: vertical; line-height: 1.65; }
.form-input:disabled { opacity: 0.6; cursor: not-allowed; }
.form-error { font-size: var(--text-xs); color: var(--red); line-height: 1.5; min-height: var(--space-4); display: none; }
.form-error.is-visible { display: block; }
.captcha-row { display: flex; gap: var(--space-2); align-items: stretch; }
.captcha-row .form-input { flex: 1 1 auto; min-width: 0; letter-spacing: 0.1em; text-transform: uppercase; }
.captcha-canvas { flex: 0 0 120px; width: 120px; height: 44px; border-radius: var(--radius-md); background: var(--bg-soft); border: 1px solid var(--line); cursor: pointer; display: block; transition: border-color 0.18s var(--ease); }
.captcha-canvas:hover { border-color: var(--ink-3); }
.form-submit { width: 100%; height: 44px; margin-top: var(--space-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--ink); color: var(--white); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 600; transition: var(--tr); }
.form-submit:hover { background: var(--red); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; background: var(--ink); }
.modal--search { align-items: flex-start; padding-top: 10vh; }
.modal--search .modal__panel--search { max-width: 600px; transform: translateY(calc(-1 * var(--space-3))) scale(0.98); }
.modal--search.is-open .modal__panel--search { transform: translateY(0) scale(1); }
.search-modal__field { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line-2); }
.search-modal__icon { flex: 0 0 auto; color: var(--ink-3); }
.search-modal__input { flex: 1 1 auto; min-width: 0; height: 36px; border: 0; background: transparent; font-size: var(--text-base); color: var(--ink); font-family: var(--font); outline: none; }
.search-modal__input::placeholder { color: var(--ink-4); }
.search-modal__clear { flex: 0 0 auto; width: var(--space-5); height: var(--space-5); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); border-radius: 50%; transition: var(--tr); }
.search-modal__clear:hover { background: var(--bg-soft); color: var(--ink); }
.search-modal__kbd { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--mono); font-size: 11px; color: var(--ink-3); font-weight: 500; }
.search-modal__cancel { display: none; }
.search-modal__section { padding: var(--space-4) var(--space-5) var(--space-5); }
.search-modal__section-title { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); margin: 0 0 var(--space-3); letter-spacing: 0.02em; }
.search-modal__section-title svg { color: var(--red); }
.search-modal__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.search-modal__tags .tag-pill { height: 30px; font-size: var(--text-sm); padding: 0 var(--space-3); }
.modal--comment { align-items: flex-end; padding-bottom: 10vh; }
.modal__panel--comment { max-width: 600px; border-radius: var(--radius-lg); box-shadow: 0 12px 32px -8px rgba(0,0,0,0.15), var(--ring); }
.modal__header--comment { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line-2); }
.modal__header--comment .modal__title { font-size: var(--text-base); font-weight: 600; }
.modal__body--comment { padding: var(--space-5); }
.comment-editor { display: flex; gap: var(--space-3); }
.comment-editor__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.comment-editor__textarea { flex: 1 1 auto; width: 100%; min-height: 120px; border: 0; background: transparent; font-size: var(--text-base); line-height: 1.6; color: var(--ink); resize: none; outline: none; font-family: var(--font); }
.comment-editor__textarea::placeholder { color: var(--ink-4); }
.comment-editor__footer { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line-2); }
.comment-editor__count { font-size: var(--text-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.comment-editor__submit { height: 36px; padding: 0 var(--space-6); border-radius: var(--radius-pill); background: var(--ink); color: var(--white); font-weight: 600; transition: var(--tr); }
/* 评论交互状态：关评时悬浮条按钮禁用态 + 弹窗验证码行 + 空态提示链接 */
.article-bar__comment:disabled { opacity: .45; cursor: not-allowed; }
.comments-empty__text .comments-empty__link, .comments-empty__link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.comment-editor__captcha { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.comment-editor__captcha img { height: 36px; border-radius: var(--radius-sm, 8px); border: 1px solid var(--line); cursor: pointer; }
.comment-editor__captcha-input { flex: 1; height: 36px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm, 8px); background: transparent; font-size: var(--text-sm, 13px); color: var(--ink); outline: none; width:100%;}
.comment-editor__captcha-input:focus { border-color: var(--ink-3, #999); }
.comment-editor__submit:hover { background: var(--red); }
.comment-editor__submit:disabled { background: var(--bg-soft); color: var(--ink-4); cursor: not-allowed; }

/* 右下角悬浮提示框 */
.modal__toast--bottom-right {
  left: auto;
  top: auto;
  right: 24px;
  bottom: 90px;
  transform: translateY(16px);
}
.modal__toast--bottom-right.is-visible {
  transform: translateY(0);
}

/* =========================================================
   PART 10 · 浮动工具栏
   ========================================================= */
.app-toolbar { position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; background: rgba(255, 255, 255, 0.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 999px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7); transition: box-shadow 0.3s var(--ease); }
.app-toolbar:hover { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -8px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.app-toolbar__btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 50%; color: var(--ink-2); cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease); }
.app-toolbar__btn:hover { background: var(--ink); color: var(--white); }
.app-toolbar__btn:active { transform: scale(0.9); }
.app-toolbar__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.app-toolbar__btn svg { transition: transform 0.3s var(--ease); }
.app-toolbar__btn:hover svg { transform: translateY(-1px); }
.app-toolbar__btn[aria-expanded="true"] { background: var(--ink); color: var(--white); }
.app-toolbar__btn[aria-expanded="true"] svg { transform: translateY(-1px); }
.app-toolbar__btn--backtop { max-height: 0; padding: 0; margin: 0; opacity: 0; overflow: hidden; pointer-events: none; transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease); }
.app-toolbar__btn--backtop.is-visible { max-height: 40px; opacity: 1; pointer-events: auto; }
.app-toolbar__help { position: relative; display: flex; align-items: center; justify-content: center; }
.app-toolbar__popover { position: absolute; right: calc(100% + 14px); bottom: 0; width: 176px; padding: 6px; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 48px -12px rgba(0, 0, 0, 0.18); opacity: 0; visibility: hidden; transform: translateX(4px) scale(0.96); transform-origin: right bottom; pointer-events: none; transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease), transform 0.22s var(--ease); }
.app-toolbar__help.is-open .app-toolbar__popover { opacity: 1; visibility: visible; transform: translateX(0) scale(1); pointer-events: auto; }
.app-toolbar__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.app-toolbar__list li { margin: 0; }
.app-toolbar__link { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background 0.18s var(--ease), color 0.18s var(--ease); }
.app-toolbar__link::before { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 0; background: var(--red); border-radius: 2px; transform: translateY(-50%); transition: height 0.2s var(--ease); }
.app-toolbar__link:hover { background: var(--bg-soft); color: var(--ink); }
.app-toolbar__link:hover::before { height: 60%; }
.app-toolbar__link svg { flex: 0 0 auto; color: var(--ink-3); transition: color 0.18s var(--ease); }
.app-toolbar__link:hover svg { color: var(--red); }

/* =========================================================
   PART 11 · 标签页 (tag_list.html)
   ========================================================= */
.tag-page { padding: var(--space-5) 0 var(--space-8); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-xs); color: var(--ink-3); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--ink-3); transition: color 0.18s var(--ease); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb__sep { color: var(--ink-4); user-select: none; }
.breadcrumb__current { color: var(--ink-2); font-weight: 500; }

.tag-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line-2); margin-bottom: var(--space-4); }
.tag-header__main { min-width: 0; flex: 1 1 auto; }
.tag-header__title { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); margin: 0 0 var(--space-2); }
.tag-header__desc { max-width: 640px; margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--ink-2); line-height: var(--leading-loose); }
.tag-header__meta { display: flex; align-items: center; gap: var(--space-3); }
.tag-header__count { font-size: var(--text-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tag-header__count b { color: var(--ink-2); font-weight: 600; }
.tag-header__follow { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; transition: var(--tr-3); }
.tag-header__follow:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tag-header__follow svg { flex: 0 0 auto; }

.tag-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-3); margin-bottom: var(--space-2); }
.tag-toolbar__count { font-size: var(--text-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tag-toolbar__count b { color: var(--ink-2); font-weight: 600; }

.tag-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-7); }
.tag-main { min-width: 0; }
.tag-side { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: var(--space-6); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag-cloud__more { display: inline-block; margin-top: var(--space-3); font-size: var(--text-xs); color: var(--ink-3); transition: color 0.18s var(--ease); }
.tag-cloud__more:hover { color: var(--red); }

.hot-list { display: flex; flex-direction: column; gap: var(--space-3); }
.hot-list li a { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--ink); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-list li a:hover { color: var(--red); }

.tag-empty__desc { font-size: var(--text-sm); color: var(--ink-3); margin: 0 0 var(--space-5); }

.post-item--lead { flex-direction: column; gap: var(--space-4); }
.post-item--lead .post-cover { order: -1; flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 280px; border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: none; }
.post-title--lead { font-size: var(--text-xl); line-height: 1.35; letter-spacing: var(--tracking-tight); }

/* =========================================================
   PART 12 · 标签索引页 (tag.html) - 补齐丢失的样式
   ========================================================= */
.tag-index { padding: var(--space-5) 0 var(--space-8); }
.tag-index__header { padding-bottom: var(--space-4); margin-bottom: var(--space-5); }
.tag-index__title { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); margin: 0 0 var(--space-2); }
.tag-index__desc { max-width: 760px; margin: 0; font-size: var(--text-sm); color: var(--ink-2); line-height: var(--leading-loose); }
.tag-index__desc b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.tag-featured { padding: var(--space-5) 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-bottom: var(--space-5); }
.tag-featured__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.tag-featured__head-main { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; min-width: 0; }
.tag-featured__title { font-size: var(--text-base); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: var(--tracking-tight); }
.tag-featured__subtitle { font-size: var(--text-xs); color: var(--ink-3); }
.tag-featured__track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; overflow: visible; padding-bottom: 0; }
.tag-featured__item { min-width: 0; flex: 0 0 auto; justify-content: center; display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-4); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease); }
.tag-featured__item:hover { border-color: var(--ink-3); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tag-featured__name { font-size: var(--text-base); font-weight: 600; color: var(--ink); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tag-featured__count { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.tag-index__toolbar { position: sticky; top: var(--header-height); z-index: 40; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; background: var(--bg); border-bottom: 1px solid var(--line-2); margin-bottom: var(--space-2); }
.tag-index__search { position: relative; flex: 0 0 240px; display: flex; align-items: center; }
.tag-index__search > svg { position: absolute; left: var(--space-3); color: var(--ink-3); pointer-events: none; }
.tag-index__search input { width: 100%; height: 34px; padding: 0 34px 0 34px; background: var(--bg-soft); border: 1px solid transparent; border-radius: var(--radius-pill); font-size: var(--text-sm); color: var(--ink); font-family: var(--font); outline: none; transition: var(--tr-3); }
.tag-index__search input:focus { background: var(--bg); border-color: var(--ink-3); }
.tag-index__search input::placeholder { color: var(--ink-3); }
.tag-index__search-clear { position: absolute; right: var(--space-2); width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); border-radius: 50%; transition: var(--tr); }
.tag-index__search-clear:hover { background: var(--bg-deep); color: var(--ink); }

.tag-index__alphabet { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 1px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tag-index__alphabet::-webkit-scrollbar { display: none; }
.tag-index__alphabet a { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; font-family: var(--mono); font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); border-radius: var(--radius-sm); transition: var(--tr); }
.tag-index__alphabet a:hover { background: var(--bg-soft); color: var(--ink); }
.tag-index__alphabet-disabled { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; font-family: var(--mono); font-size: var(--text-xs); font-weight: 600; color: var(--ink-4); opacity: 0.3; user-select: none; }
.tag-index__fade { display: none; position: absolute; right: 0; top: var(--space-3); bottom: var(--space-3); width: var(--space-6); background: linear-gradient(to right, rgba(255,255,255,0) 0%, var(--bg) 100%); pointer-events: none; }

.tag-index__groups { display: flex; flex-direction: column; }
.tag-index__group { display: grid; grid-template-columns: var(--space-8) minmax(0, 1fr); gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: calc(var(--header-height) + var(--toolbar-height) + var(--space-3)); }
.tag-index__group:last-child { border-bottom: 0; padding-bottom: 0; }
.tag-index__group-letter { position: relative; padding-left: var(--space-3); font-family: var(--mono); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--ink-2); margin: var(--space-1) 0 0; font-variant-numeric: tabular-nums; }
.tag-index__group-letter::before { content: ""; position: absolute; left: 0; top: var(--space-1); bottom: var(--space-1); width: 3px; border-radius: 2px; background: var(--ink-4); }
.tag-index__group-body { display: flex; flex-direction: column; gap: var(--space-3); }
.tag-index__group-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag-index__group-more { align-self: flex-start; font-size: var(--text-xs); color: var(--ink-3); transition: color 0.18s var(--ease); }
.tag-index__group-more:hover { color: var(--red); }

.tag-index__group-list.is-collapsed .tag-pill:nth-child(n+13) { display: none; }
.tag-index__group-toggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 4px 12px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: var(--text-xs); color: var(--ink-3); cursor: pointer; transition: var(--tr); }
.tag-index__group-toggle:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink-3); }
.tag-index__group-toggle svg { flex: 0 0 auto; transition: transform 0.2s var(--ease); }
.tag-index__group-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.tag-index__empty { border-top: 1px solid var(--line-2); padding: var(--space-8) var(--space-5); text-align: center; }
.tag-index__empty-title { font-size: var(--text-base); font-weight: 600; color: var(--ink); margin: 0 0 var(--space-2); }
.tag-index__empty-desc { font-size: var(--text-sm); color: var(--ink-3); margin: 0; }

/* =========================================================
   PART 13 · 标签组页 (tag_group.html)
   ========================================================= */
.tag-group { padding: var(--space-5) 0 var(--space-8); }
.tag-group__header { padding-bottom: var(--space-5); border-bottom: 1px solid var(--line-2); margin-bottom: var(--space-5); }
.tag-group__header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-2); }
.tag-group__title { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; line-height: var(--leading-tight); color: var(--ink); margin: 0; }
.tag-group__title-badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 20px; font-weight: 700; border-radius: var(--radius-md); letter-spacing: -0.02em; }
.tag-group__back { flex: 0 0 auto; display: inline-flex; align-items: center; height: 30px; padding: 0 var(--space-3); background: var(--bg-soft); border-radius: var(--radius-sm); font-size: var(--text-xs); color: var(--ink-2); transition: var(--tr); }
.tag-group__back:hover { background: var(--bg-deep); color: var(--ink); }
.tag-group__desc { max-width: 720px; margin: 0; font-size: var(--text-sm); color: var(--ink-2); line-height: var(--leading-loose); }
.tag-group__desc b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.tag-group__top { padding: var(--space-4) 0; margin-bottom: var(--space-5); }
.tag-group__top-head { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-3); }
.tag-group__top-title { font-size: var(--text-base); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: var(--tracking-tight); }
.tag-group__top-subtitle { font-size: var(--text-xs); color: var(--ink-3); }
.tag-group__top-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.tag-group__top-name { overflow: hidden; text-overflow: ellipsis; }

.tag-group__toolbar { position: sticky; top: var(--header-height); z-index: 40; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; background: var(--bg); border-bottom: 1px solid var(--line-2); margin-bottom: var(--space-4); }
.tag-group__search { margin-left: auto; }
.tag-group__toolbar-count { font-size: var(--text-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

.tag-group__all { padding: var(--space-2) 0 var(--space-6); }
.tag-group__all-head { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-4); }
.tag-group__all-title { font-size: var(--text-base); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: var(--tracking-tight); }
.tag-group__all-subtitle { font-size: var(--text-xs); color: var(--ink-3); }
.tag-group__grid { display: flex; flex-wrap: wrap; gap: var(--space-2); min-height: 200px; }

.tag-group__more { display: flex; align-items: center; justify-content: center; width: 100%; height: 40px; margin-top: var(--space-5); background: var(--bg-soft); border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--ink-2); cursor: pointer; transition: var(--tr); }
.tag-group__more:hover { background: var(--bg-deep); color: var(--ink); }

.tag-group__empty-title { font-size: var(--text-base); font-weight: 600; color: var(--ink); margin: 0 0 var(--space-2); }
.tag-group__empty-desc { font-size: var(--text-sm); color: var(--ink-3); margin: 0; }

.tag-group__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line-2); }

/* =========================================================
   PART 14 · 搜索页 (search.html 两态合一)
   ========================================================= */
.search-page { padding: var(--space-5) 0 var(--space-8); }
.page-search { display: flex; align-items: center; gap: 6px; height: 34px; max-width: 480px; margin: var(--space-3) 0; padding: 0 6px 0 12px; background: var(--bg-soft); border: 1px solid transparent; border-radius: var(--radius-pill); transition: var(--tr-3); }
.page-search:focus-within { background: var(--bg); border-color: var(--ink-3); }
.page-search__icon { flex: 0 0 auto; color: var(--ink-3); }
.page-search__input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; background: transparent; border: 0; font-family: var(--font); font-size: var(--text-sm); color: var(--ink); outline: none; }
.page-search__input::placeholder { color: var(--ink-3); }
.page-search__submit { flex: 0 0 auto; height: 26px; padding: 0 12px; background: var(--ink); color: var(--white); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 500; transition: var(--tr); }
.page-search__submit:hover { background: var(--red); }

.search-header { padding-bottom: var(--space-4); margin-bottom: var(--space-4); }
.search-header__title { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); margin: 0 0 var(--space-2); }
.search-header__keyword { color: var(--red); word-break: break-word; }
.search-header__count { margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.search-header__count b { color: var(--ink); font-weight: 600; }

.search-suggest-line { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-xs); color: var(--ink-3); }
.search-suggest-line__label { color: var(--ink-3); margin-right: 2px; }
.search-suggest-line__item { padding: 3px 10px; background: var(--bg-soft); border-radius: var(--radius-pill); font-size: var(--text-xs); color: var(--ink-2); transition: var(--tr); }
.search-suggest-line__item:hover { background: var(--bg-deep); color: var(--ink); }

.search-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-7); align-items: start; }
.search-main { min-width: 0; }
.search-side { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: var(--space-6); }

.search-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; margin-bottom: var(--space-2); border-bottom: 1px solid var(--line-2); }
.search-toolbar .sort { flex: 0 0 auto; }
.search-toolbar .sort__item a b { font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 4px; }
.search-toolbar__count { flex: 0 0 auto; font-size: var(--text-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.search-toolbar__count b { color: var(--ink-2); font-weight: 600; }

.post-item--search { align-items: center; padding: 20px 12px; margin: 0 -12px 12px; }
.post-item--search .post-title { margin-bottom: 10px; }
.post-item--search .post-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 14px; font-size: var(--text-sm); line-height: var(--leading-loose); color: var(--ink-2); max-width:96%; }
.post-item--search .post-desc mark { background: transparent; color: var(--red); font-weight: 600; padding: 0; }
.post-item--search .post-item-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.post-item--search .post-other { flex: 0 1 auto; display: flex; align-items: center; gap: 12px; font-size: var(--text-xs); }
.post-item--search .post-badge { flex: 0 0 auto; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; background: var(--red-soft); color: var(--red); border-radius: var(--radius-sm); font-size: 11px; font-weight: 500; white-space: nowrap; }

.search-body[data-state="results"] .search-empty-block { display: none; }
.search-body[data-state="empty"]   .search-results-block { display: none; }
.search-body[data-state="results"] .search-side [data-when="empty"]   { display: none; }
.search-body[data-state="empty"]   .search-side [data-when="results"] { display: none; }
.search-body[data-state="empty"] .search-suggest-line { display: none; }
.search-body[data-state="empty"] .search-empty { border-bottom: 0; }

.search-more { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding-top: var(--space-6); margin-top: var(--space-4); border-top: 1px solid var(--line-2); }
.search-more .button-show-more { margin: 0; }
.search-empty { border-bottom: 1px solid var(--line-2); padding: var(--space-8) var(--space-5); text-align: center; }
.search-empty__icon { display: inline-flex; align-items: center; justify-content: center; color: var(--ink-4); margin-bottom: var(--space-5); }
.search-empty__title { font-size: var(--text-lg); font-weight: 600; color: var(--ink); margin: 0 0 var(--space-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-empty__desc { max-width: 480px; margin: 0 auto var(--space-4); font-size: var(--text-sm); color: var(--ink-3); line-height: var(--leading-loose); }
.search-empty__actions { display: flex; align-items: center; justify-content: center; gap: var(--space-3); flex-wrap: wrap; }

.search-correct { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); font-size: var(--text-sm); }
.search-correct__label { color: var(--ink-3); }
.search-correct__item { padding: var(--space-1) var(--space-3); background: var(--red-soft); color: var(--red); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 500; transition: background 0.18s var(--ease); }
.search-correct__item:hover { background: var(--pink-deep); }

.search-history { padding: var(--space-5) 0; border-bottom: 1px solid var(--line-2); }
.search-history__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.search-history__title { font-size: var(--text-sm); font-weight: 600; color: var(--ink); margin: 0; }
.search-history__clear { font-size: var(--text-xs); color: var(--ink-3); transition: color 0.18s var(--ease); }
.search-history__clear:hover { color: var(--red); }
.search-history__list { display: flex; flex-direction: column; }
.search-history__item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line-2); transition: color 0.18s var(--ease); }
.search-history__item:last-child { border-bottom: 0; }
.search-history__item:hover .search-history__text { color: var(--red); }
.search-history__text { min-width: 0; font-size: var(--text-sm); color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-history__time { font-size: var(--text-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }

mark { background: var(--red-soft); color: var(--red); padding: 0 2px; border-radius: 2px; font-weight: inherit; }

/* =========================================================
   PART 15 · 404 页
   ========================================================= */
.error-page { margin-top: var(--header-height); padding: var(--space-7) 0 var(--space-8); }
.error-hero { max-width: 640px; margin: 0 auto; text-align: center; padding-bottom: var(--space-8); border-bottom: 1px dashed var(--line-2); }
.error-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: var(--space-6); user-select: none; }
.error-code { font-family: var(--mono); font-size: 140px; font-weight: 800; line-height: 0.8; letter-spacing: -0.06em; color: transparent; background: linear-gradient(180deg, var(--bg-deep) 0%, var(--line) 100%); -webkit-background-clip: text; background-clip: text; margin-top: -10px; position: relative; z-index: 0; }
.error-link-broken { display: flex; align-items: center; gap: 8px; color: var(--ink-4); position: relative; z-index: 1; }
.error-link-dot { width: 8px; height: 8px; background: var(--ink-4); border-radius: 50%; }
.error-link-line { width: 32px; height: 2px; background: var(--ink-4); border-radius: 2px; }
.error-link-icon { width: 32px; height: 32px; color: var(--ink-3); background: var(--bg); padding: 4px; border-radius: 50%; box-shadow: 0 0 0 4px var(--bg); }
.error-title { font-size: var(--text-xl); font-weight: 700; color: var(--ink); margin: 0 0 var(--space-3); letter-spacing: -0.01em; }
.error-desc { font-size: var(--text-sm); color: var(--ink-3); line-height: var(--leading-loose); margin: 0 auto var(--space-5); }
.error-search-wrap { max-width: 440px; margin: 0 auto var(--space-5); }
.page-search--center { margin-left: auto; margin-right: auto; background: var(--bg); border: 1px solid var(--line-2); height: 48px; box-shadow: var(--shadow-sm); padding: 0 8px 0 16px; }
.page-search--center:focus-within { border-color: var(--ink); box-shadow: var(--shadow-md); }
.page-search--center .page-search__submit { height: 32px; padding: 0 16px; font-size: var(--text-sm); }
.error-actions { display: flex; align-items: center; justify-content: center; gap: var(--space-3); }
.error-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 var(--space-5); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 500; background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); transition: var(--tr-3); }
.error-btn:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink-3); }
.error-btn--primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.error-btn--primary:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.error-recommend-wrap { max-width: 640px; margin: var(--space-6) auto 0; }
.error-recommend-header { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-4); padding: 0 var(--space-2); }
.error-recommend-title { font-size: var(--text-base); font-weight: 600; color: var(--ink); margin: 0; }
.error-recommend-sub { font-size: var(--text-xs); color: var(--ink-3); }
.error-recommend-list { display: flex; flex-direction: column; }
.error-recommend-list li a { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-3); border-radius: var(--radius-md); transition: background 0.2s var(--ease); }
.error-recommend-list li a:hover { background: var(--bg-soft); }
.error-recommend-index { font-family: var(--mono); font-size: var(--text-lg); font-weight: 700; color: var(--ink-4); font-variant-numeric: tabular-nums; opacity: 0.6; transition: color 0.2s; }
.error-recommend-list li a:hover .error-recommend-index { color: var(--red); opacity: 1; }
.error-recommend-content { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.error-recommend-name { font-size: var(--text-sm); font-weight: 500; color: var(--ink); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.error-recommend-list li a:hover .error-recommend-name { color: var(--red); }
.error-recommend-tag { flex: 0 0 auto; padding: 2px 8px; background: var(--red-soft); color: var(--red); font-size: 11px; font-weight: 500; border-radius: var(--radius-sm); }

/* =========================================================
   PART 16 · 共用组件（sort / 标签 / 按钮）
   ========================================================= */
.sort { display: flex; align-items: center; gap: var(--space-4); flex: 0 0 auto; }
.sort__item a { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-sm); color: var(--ink-3); padding: 6px 0; position: relative; transition: color 0.18s var(--ease); }
.sort__item a:hover { color: var(--ink); }
.sort__item.is-active a { color: var(--ink); font-weight: 600; }
.sort__item.is-active a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 1px; background: var(--red); }
.sort__item svg { flex: 0 0 auto; }

.tag-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; font-size: var(--text-xs); font-weight: 500; color: var(--ink-2); background: var(--bg-soft); border-radius: var(--radius-pill); white-space: nowrap; transition: var(--tr); }
.tag-pill:hover { background: var(--bg-deep); color: var(--ink); }
.tag-pill--count { height: 34px; padding: 0 var(--space-3); gap: var(--space-2); }
.tag-pill__count { font-size: 11px; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color 0.18s var(--ease); }
.tag-pill--count:hover .tag-pill__count { color: var(--ink-2); }

.tag-empty__btn, .search-empty__btn, .tag-group__nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 500; transition: var(--tr);
}
.search-empty__btn, .tag-group__nav-btn { padding: 0 var(--space-4); background: var(--bg-soft); color: var(--ink-2); }
.search-empty__btn { padding: 0 var(--space-5); }
.tag-group__nav-btn { gap: 6px; white-space: nowrap; }
.search-empty__btn:hover, .tag-group__nav-btn:hover { background: var(--bg-deep); color: var(--ink); }
.search-empty__btn--primary { background: var(--ink); color: var(--white); }
.search-empty__btn--primary:hover { background: var(--red); color: var(--white); }

/* =========================================================
   PART 17 · 全局响应式统筹
   ========================================================= */

/* 1024px - 平板 */
@media (max-width: 1024px) {
  .board__wrap { grid-template-columns: 1fr 1fr; }
  .board__col--right { grid-column: 1 / -1; flex-direction: row; min-height: 200px; }
  .board__col--right > * { flex: 1 1 0; min-height: 200px; }

  .feed__wrap { grid-template-columns: 80px minmax(0, 1fr); gap: 32px; }
  .feed__side--right { display: none; } /* 隐藏右侧栏 */
  .feed-item__cover { flex: 0 0 140px; width: 140px; height: 88px; }

  .matrix-home { grid-template-columns: 1fr; gap: var(--space-6); }
  .aside-container { max-width: 324px; margin: var(--space-5) auto 0; }
  .posts-list.is-grid-view { grid-template-columns: 1fr; }

  /* 搜索页原来是唯一漏了单列化的两栏布局：390px 下 280px 侧栏 + 32px 间距
     把主列挤到 15px，结果列表与分页全被压成一条竖线。与文章页侧栏同步处理。 */
  .search-layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .search-side { position: static; max-width: 324px; margin: var(--space-5) auto 0; }

  .about-layout { grid-template-columns: 1fr; gap: var(--space-5); }
  .about-toc { position: sticky; top: var(--header-height); z-index: 40; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); background: var(--bg); border-bottom: 1px solid var(--line-2); }
  .about-toc__list { flex-direction: row; gap: var(--space-5); border-left: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0; }
  .about-toc__list::-webkit-scrollbar { display: none; }
  .about-toc__link { flex: 0 0 auto; margin-left: 0; padding: 14px 0; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .about-toc__link.is-active { border-left-color: transparent; border-bottom-color: var(--red); }
  .about-section { scroll-margin-top: calc(var(--header-height) + 56px); }

  .report-layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .report-aside { position: static; }
  .report-main { max-width: 720px; margin-left: auto; margin-right: auto; }
  .report-notice__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
  .report-notice__list li { padding-left: 28px; margin-bottom: 0; }
  .report-hero__stats { flex-direction: column; gap: var(--space-2); }

  .tag-body { grid-template-columns: 1fr; }
  /* 侧栏小屏与文章页 .aside-container 同构：单列、限宽 324、水平居中。
     原来是 1fr 1fr 并排两列，390px 下每块只剩 160px 宽，标签云被挤成一长条
     （实测「相关标签」386px 高、「热门浏览」539px 高），与文章页侧栏观感不一致。 */
  .tag-side {
    position: static;
    max-width: 324px;
    margin: var(--space-5) auto 0;
    gap: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line-2);
  }
  .tag-group__top-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag-index__toolbar, .tag-group__toolbar { flex-wrap: wrap; gap: var(--space-3); }
  .tag-index__search, .tag-group__search { flex: 1 1 100%; max-width: 360px; }
  .tag-group__search { margin-left: 0; }
  .tag-index__alphabet { flex: 1 1 100%; }
  .tag-featured__track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 720px - 手机 */
@media (max-width: 720px) {
  :root {
    --text-xs: 12px; --text-sm: 14px; --text-base: 16px; --text-lg: 19px; --text-xl: 22px; --text-2xl: 24px;
    --header-height: 56px; --toolbar-height: 92px;
  }

  /* 分页：小屏收窄按钮与间距，保证一行能放下 首页/1/2/3/末页 而不换行 */
  .search-pagination { gap: 5px; margin: 28px 0 8px; }
  .search-pagination .page-link { min-width: 34px; height: 34px; padding: 0 10px; font-size: var(--text-xs); }
  .search-pagination > a:not(.page-link),
  .search-pagination > span:not(.page-link) { min-width: 34px; height: 34px; padding: 0 10px; }
  
  .wrap { padding: 0 var(--space-4); margin-top: var(--header-height); }

  /* 顶栏适配 */
  .header__inner { padding: 0 var(--space-4); height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
  .header__logo-mark { width: 28px; height: 28px; border-radius: 9px; }
  .header__logo-text { font-size: 17px; }
  .header__nav { display: none; }
  .header__menu-btn { display: inline-flex; }
  .header__tools { margin-left: auto; gap: 2px; }
  .header__icon-btn { width: 40px; height: 40px; }
  .header__icon-btn svg { width: 20px; height: 20px; }
  .header__icon-btn--write { display: none; }

  /* 首屏焦点图适配 */
  .board { padding: var(--space-3) var(--space-4) 0; }
  .board__wrap { grid-template-columns: 1fr; gap: var(--space-3); align-items: start; }
  .board__col--center { order: -1; }
  .board__col--right { flex-direction: column; }
  .board__col--left .secondary-card, .board__col--left .ad-card, .board__col--right .vote-card, .board__col--right .create-card { flex: 0 0 auto; }
  .secondary-card { aspect-ratio: 4 / 3; min-height: 200px; }
  .ad-card { flex-direction: row; align-items: center; padding: 10px; gap: var(--space-3); min-height: 84px; }
  .ad-card__thumb { flex: 0 0 var(--space-8); width: var(--space-8); height: var(--space-8); min-height: 0; }
  .ad-card__info { padding: 0; flex: 1 1 auto; min-width: 0; }
  .hero { flex: 0 0 auto; }
  .hero__viewport { aspect-ratio: 4 / 3; min-height: 200px; }
  .hero__overlay { padding: 28px var(--space-4) var(--space-4); }
  .hero__prefix { font-size: var(--text-xs); }
  .hero__title { font-size: var(--text-lg); }
  .hero__dots { padding-top: 10px; }
  .vote-card { padding: var(--space-4); min-height: 120px; }
  .vote-card__bg { width: 64px; height: 64px; right: -12px; bottom: -12px; }
  .create-card { padding: 10px; }
  .create-card__thumb { flex: 0 0 auto; aspect-ratio: 16 / 9; min-height: 0; }
  .create-card__title { font-size: var(--text-sm); }
  .create-card__desc { font-size: 11px; }

  /* ---- 补回：首屏横向滑动卡片移动端适配 ---- */
  .board__group { margin-top: var(--space-4); }
  .board__group-track { gap: 10px; padding-bottom: 10px; margin: 0 calc(-1 * var(--space-4)); padding-left: var(--space-4); padding-right: var(--space-4); }
  .board__group::after { display: none; }
  .group-card { flex: 0 0 78vw; max-width: 280px; padding: var(--space-3); min-height: 160px; }
  .group-card--user { flex: 0 0 55vw; max-width: 200px; min-height: 140px; }

  /* === 核心修改：首页 Feed 移动端排版 === */
  .feed { margin-top: 32px; }
  .feed__wrap { 
    grid-template-columns: 1fr; /* 彻底改为单列铺满 */
    padding: 24px var(--space-4); 
    gap: 0; 
  }
  
  /* 隐藏左侧导航、右侧边栏 */
  .feed__side--left, .feed__side--right { 
    display: none !important; 
  }

  /* 中间列表撑满并调整间隙 */
  .feed-item {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .feed-item__link {
    gap: 16px;
  }
  .feed-item__title {
    font-size: 16px;
    margin-bottom: 16px;
    -webkit-line-clamp: 2;
  }
  .feed-item__cover {
    flex: 0 0 110px;
    width: 110px;
    height: 74px;
  }
  .feed-item__meta {
    font-size: 12px;
    flex-wrap: wrap;
  }

  /* 文章详情页适配 */
  .post-page { padding: var(--space-5) 0 0; max-width: 100%; margin-top: 56px; }
  .article-header, .article-body, .article-footer, .comments, .related { max-width: 100%; }
  .post-page .article-header, .post-page .article-body, .post-page .article-footer { padding-left: var(--space-4); padding-right: var(--space-4); }
  .article-header__title { font-size: 26px; line-height: 1.35; letter-spacing: normal; margin-bottom: 0; }
  .article-header__author { flex: 1 1 100%; margin-top: 16px; }
  .article-header__banner { border-radius: var(--radius-md); }
  .article-body { margin-top: 24px; }
    .article-content {
    font-size: 16px;
    line-height: 1.8;
  }

  .article-content p { margin-bottom: 18px; }

  .article-content h1 { margin: 36px 0 16px; font-size: 24px; }
  .article-content h2 {
    margin: 40px 0 16px;
    font-size: 20px;
    line-height: 1.5;
  }
  .article-content h2::before { margin-right: 8px; }
  .article-content h3 { margin: 30px 0 12px; font-size: 17px; }
  .article-content h4 { margin: 24px 0 10px; font-size: 15px; }

  .article-content blockquote {
    margin: 24px 0;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.75;
  }

  .article-content ul,
  .article-content ol {
    margin-bottom: 18px;
    padding-left: 20px;
  }
  .article-content li {
    margin-bottom: 6px;
    line-height: 1.75;
  }

  .article-content img,
  .article-content video {
    margin: 18px auto;
    border-radius: 4px;
  }
  .article-content figcaption { margin-top: 8px; font-size: 11px; }

  /* 表格横向滚动（对齐 .about-table-wrap 的移动端处理） */
  .article-content table {
    display: block;
    width: 100%;
    margin: 22px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .article-content th,
  .article-content td {
    padding: 10px 12px;
    font-size: 13px;
  }
  .article-content td:first-child { min-width: 76px; }

  .article-content pre { margin: 18px 0; padding: 12px; font-size: 12px; }
  .article-content pre.mermaid { padding: 14px; margin: 20px 0; }
  .article-content pre.mermaid[data-processed] { padding: 16px 10px; }

  .article-content details { margin: 18px 0; padding: 12px 14px; }
  .article-content summary { font-size: 14px; }

  .article-footer { margin-top: 24px; margin-bottom: 32px; }
  .toc-trigger { display: none; }

  /* 评论、相关推荐 */
  .comments { margin-top: 0; padding: 32px 0 24px; }
  .comments__inner, .related__inner { padding: 0 16px; }
  .comments__card { padding: 20px; border-radius: 16px; }
  .comment-item { gap: 12px; margin-bottom: 24px; }
  .comment-item__avatar { width: 32px; height: 32px; }
  .comment-item__name { font-size: 14px; }
  .comment-item__time { font-size: 12px; }
  .comment-item__body { font-size: 14px; }
  .comment-item--reply { margin-left: 44px; gap: 10px; }
  .comment-item--reply .comment-item__avatar { width: 28px; height: 28px; }
  .comment-item--reply .comment-item__body { font-size: 13px; }
  .risk-card { margin-top: var(--space-4); padding: 0 var(--space-4); }
  .risk-card__head { padding: 12px 0 10px; }
  .risk-card__list { grid-template-columns: 1fr; gap: var(--space-3); padding: 12px 0 14px; }
  .article-stop { margin: var(--space-5) 0; padding-left: var(--space-4); }
  
  /* 底部操作栏适配 */
  .article-bar-wrapper { margin-top: 24px; min-height: 52px; padding: 0 16px; }
  .article-bar-wrapper.is-floating .article-bar { bottom: var(--bar-bottom-gap); padding: 0 16px; }
  .article-bar__inner { height: 52px; padding: 6px 12px 6px 6px; gap: 8px; }
  .article-bar__comment { height: 36px; padding: 0 10px; font-size: 12px; }
  .article-bar__action { height: 36px; width: 32px; }
  .article-bar__action svg { width: 18px; height: 18px; }
  .article-bar__count { display: none; }
  .related__card__body { padding: 20px; gap: 16px; }
  .related__card__title { font-size: 16px; margin-bottom: 8px; }
  .related__card__cover { flex: 0 0 96px; width: 96px; height: 72px; border-radius: 6px; }

  /* Matrix 列表页、关于页适配 */
  .matrix-page { padding: var(--space-4) 0 0; }
  .matrix-page-header { margin-bottom: var(--space-4); }
  .matrix-page-header__main { flex-direction: column; align-items: stretch; gap: var(--space-3); padding-bottom: var(--space-3); }
  .matrix-page-header__title { font-size: 24px; white-space: normal; }
  .matrix-page-header__desc { font-size: var(--text-xs); line-height: 1.7; }
  .matrix-page-header__meta { gap: var(--space-4); }
  .matrix-page-header__stat b { font-size: var(--text-base); }
  .btn-write { height: 40px; padding: 0 16px; font-size: 14px; align-self: flex-start; }
  .page-tabs ul { gap: var(--space-4); }
  .page-tabs a { padding: 0 0 10px; font-size: var(--text-sm); border-bottom-width: 2px; }
  .matrix-toolbar { margin-bottom: var(--space-2); }
  .post-item { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .posts-list-item:first-child .post-item { padding-top: 8px; }
  .post-title { font-size: 16px; line-height: 22px; margin-bottom: 16px; }
  .post-item-bottom { flex-wrap: wrap; gap: 6px; }
  .post-author { margin-right: 12px; }
  .post-cover { width: 110px; height: 74px; }
  .aside-container { margin-top: var(--space-4); }

  .about-page { padding: var(--space-4) 0 var(--space-7); }
  .about-hero { padding-bottom: var(--space-5); margin-bottom: var(--space-5); }
  .about-hero__title { font-size: 28px; }
  .about-hero__desc { font-size: var(--text-sm); line-height: 1.7; margin-bottom: var(--space-4); }
  .about-hero__meta { gap: var(--space-4); font-size: var(--text-xs); }
  .about-section { margin-bottom: var(--space-6); }
  .about-section__title { font-size: var(--text-lg); margin-bottom: var(--space-4); }
  .about-prose { font-size: 15px; line-height: 1.8; }
  .about-note { padding: var(--space-4); margin: var(--space-5) 0; }
  .about-note p { font-size: 14px; }
  .about-table th, .about-table td { padding: 10px 12px; font-size: 13px; }
  .about-table { min-width: 480px; }
  .about-table td:first-child { white-space: normal; }
  .about-table-wrap { background-image: linear-gradient(to right, var(--bg) 30%, rgba(255, 255, 255, 0)), linear-gradient(to left, var(--bg) 30%, rgba(255, 255, 255, 0)), radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0)); background-position: left center, right center, left center, right center; background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }

  /* Report 申诉页适配 */
  .report-page { padding: var(--space-4) 0 var(--space-7); }
  .report-hero { padding-bottom: var(--space-4); margin-bottom: var(--space-5); }
  .report-hero__title { font-size: 26px; }
  .report-hero__desc { font-size: var(--text-xs); }
  .report-notice { padding: var(--space-4); }
  .report-notice__list { grid-template-columns: 1fr; gap: 0; }
  .report-notice__list li { padding-left: 28px; margin-bottom: var(--space-3); }
  .report-notice__list li:last-child { margin-bottom: 0; }
  .report-form { gap: var(--space-5); }
  .form-textarea { min-height: 120px; }
  .form-upload { padding: var(--space-5) var(--space-3); }
  .form-upload__hint { font-size: 11px; }
  .report-form__submit { height: 46px; }
  .form-success { padding: var(--space-6) var(--space-4); }
  .form-success__title { font-size: var(--text-lg); }
  .form-success__desc { font-size: var(--text-xs); line-height: 1.7; }

  /* 弹窗与工具栏适配 */
  .modal { padding: var(--space-4) var(--space-3); align-items: center; justify-content: center; }
  .modal__panel { max-width: none; border-radius: var(--radius-lg); transform: translateY(0) scale(0.96); overflow-y: auto; }
  .modal.is-open .modal__panel { transform: translateY(0) scale(1); }
  .form-input, .comment-editor__textarea, .search-modal__input { font-size: 16px; scroll-margin-top: 80px; scroll-margin-bottom: 240px; }
  .modal--search { align-items: flex-start; padding-top: max(var(--space-3), env(safe-area-inset-top, 0px)); }
  .modal--search .modal__panel--search { transform: translateY(-16px) scale(0.98); opacity: 0; }
  .modal--search.is-open .modal__panel--search { transform: translateY(0) scale(1); opacity: 1; }
  .search-modal__field { padding: var(--space-3) var(--space-4); }
  .search-modal__input { height: var(--space-6); }
  .search-modal__section { padding: var(--space-3) var(--space-4) var(--space-4); }
  .search-modal__kbd { display: none; }
  .search-modal__cancel { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 8px; font-size: 14px; color: var(--ink-2); margin-left: 4px; }
  .modal--comment { padding: 0; align-items: flex-end; }
  .modal__panel--comment { max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .modal--comment.is-open .modal__panel--comment { transform: translateY(0); }
  .comment-editor__textarea { min-height: 100px; }
  .modal__toast { top: max(60px, calc(env(safe-area-inset-top, 0px) + 52px)); }
   /* 移动端底部与悬浮按钮修复 */
  .app-toolbar { 
    right: var(--space-4); 
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); 
    gap: 4px; 
    padding: 4px; 
  }
  .app-toolbar__btn { width: 44px; height: 44px; }
  .app-toolbar__btn svg { width: var(--space-4h); height: var(--space-4h); }
  
  .footer { 
    /* 恢复正常的上下间距 */
    padding: var(--space-5) var(--space-4); 
  }
  .footer__inner { 
    flex-direction: column; 
    gap: 8px; 
    text-align: center; 
    font-size: 12px; 
  }
  .footer__inner a { 
    padding: 6px 12px; 
    margin: -6px -12px; 
  }

  /* 移动端微调 */
  .modal__toast--bottom-right {
    right: 16px;
    bottom: 80px;
  }
}

/* =========================================================
   PART 18 · 无障碍 / 减少动效
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* 会员登录态：header 头像入口（/apps/member_state.php 登录后 JS 替换登录按钮） */
.header__member { color: var(--ink-2); }
.header__member-face { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: block; border: 1px solid var(--line); }
