/*!
 * ================================================================
 *  Five 五形态视觉系统  theme-styles.css
 * ================================================================
 *  提供 5 套「形态迥异」的视觉风格：
 *
 *    earth      自然      通透 / 层叠 / 柔和渐变 / 现代阅读
 *    terminal   终端      直角 / 等宽 / 扫描线 / 磷光辉光 / [方括号] 选中
 *    comic      漫画      粗黑描边 / 硬阴影 / 半调网点 / 贴纸式倾斜选中
 *    editorial  杂志      零圆角零阴影 / 衬线 / 发丝线 / 下划线式选中
 *    cyber      赛博朋克   切角 clip-path / 霓虹辉光 / 玻璃拟态 / 脉冲选中
 *
 *  设计原则
 *  --------
 *  1. 不只是换颜色。每套风格在「圆角、边框、阴影、字体、字距、
 *     选中态形态、装饰元素、头像形状、图片滤镜、hover 动效、
 *     分隔线、滚动条」等维度上都各自独立。
 *  2. 纯覆盖式。只调整展示层，不接管 Halo 原有业务组件的行为。
 *  3. 不改动任何 HTML 业务结构，因此全部功能保持不变。
 *  4. 每套风格都同时适配 浅色 / 深色，与原有配色开关自由组合。
 *
 *  实现方式
 *  --------
 *  主题的 Tailwind 工具类已编译进 HTML，无法修改类名，
 *  因此这里采用「令牌重映射」：把 .bg-white / .text-gray-900 一类
 *  工具类统一指向 CSS 变量，再由每套风格重新定义变量与形态规则。
 *  选择器一律以 html[data-style="..."] 开头以取得足够优先级。
 * ================================================================
 */

/* ================================================================
 * 0. 设计令牌（每套风格在各自区块中重新定义）
 * ================================================================ */
html[data-style] {
  /* 表面 */
  --s-bg: #f8fafc;
  --s-surface: #ffffff;
  --s-surface-2: #f3f4f6;
  --s-surface-3: #e5e7eb;
  /* 文字 */
  --s-text: #111827;
  --s-text-dim: #4b5563;
  --s-text-mute: #9ca3af;
  --s-on-accent: #ffffff;
  /* 线条 */
  --s-line: #e5e7eb;
  --s-line-strong: #9ca3af;
  --s-line-w: 1px;
  --s-line-style: solid;
  /* 强调 */
  --s-accent: #2563eb;
  --s-accent-2: #6366f1;
  --s-hot: #dc2626;
  /* 形态 */
  --s-radius: 0.75rem;
  --s-radius-sm: 0.375rem;
  --s-radius-pill: 9999px;
  --s-radius-avatar: 9999px;
  --s-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
  --s-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --s-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  /* 排版 */
  --s-font: inherit;
  --s-font-head: inherit;
  --s-head-weight: 500;
  --s-head-spacing: normal;
  --s-head-transform: none;
  --s-body-spacing: normal;
  /* 遮罩 */
  --s-veil: rgb(31 41 55 / 0.4);
  /* 图片滤镜 */
  --s-img-filter: none;
  --s-img-filter-hover: none;
}

/* ================================================================
 * 1. 通用重映射：把 Tailwind 工具类接到令牌上
 *    （所有风格共享这一层，具体取值由各风格的令牌决定）
 * ================================================================ */

/* ---- 1.1 页面与表面 ---- */
html[data-style] body,
html[data-style] .bg-slate-50,
html[data-style].dark .dark\:bg-slate-900,
html[data-style].dark .dark\:bg-gray-900 {
  background-color: var(--s-bg) !important;
}

html[data-style] .bg-white,
html[data-style].dark .dark\:bg-slate-800,
html[data-style].dark .dark\:bg-gray-800 {
  background-color: var(--s-surface) !important;
}

html[data-style] .bg-gray-50,
html[data-style] .bg-gray-100,
html[data-style].dark .dark\:bg-slate-700,
html[data-style].dark .dark\:bg-slate-600 {
  background-color: var(--s-surface-2) !important;
}

html[data-style] .bg-gray-200,
html[data-style] .\!bg-gray-100,
html[data-style] .\!bg-gray-200,
html[data-style].dark .dark\:\!bg-slate-700 {
  background-color: var(--s-surface-3) !important;
}

/* hover 态表面 */
html[data-style] .hover\:bg-gray-50:hover,
html[data-style] .hover\:bg-gray-100:hover,
html[data-style] .hover\:bg-gray-200:hover,
html[data-style] .group:hover .group-hover\:bg-gray-100,
html[data-style].dark .dark\:hover\:bg-slate-600:hover,
html[data-style].dark .dark\:hover\:bg-slate-700:hover,
html[data-style].dark .dark\:group-hover\:bg-slate-700:is(.dark *),
html[data-style].dark .group:hover .dark\:group-hover\:bg-slate-700 {
  background-color: var(--s-surface-3) !important;
}

/* 遮罩层 */
html[data-style] .bg-gray-800\/40,
html[data-style].dark .dark\:bg-black\/80 {
  background-color: var(--s-veil) !important;
}

/* ---- 1.2 文字 ---- */
html[data-style] .text-gray-900,
html[data-style] .\!text-gray-900,
html[data-style] .text-slate-50,
html[data-style] .text-slate-100,
html[data-style].dark .dark\:text-slate-50,
html[data-style].dark .dark\:text-slate-100,
html[data-style].dark .dark\:\!text-slate-50 {
  color: var(--s-text) !important;
}

html[data-style] .text-gray-800,
html[data-style] .text-gray-700,
html[data-style] .text-gray-600,
html[data-style] .text-slate-200,
html[data-style] .text-slate-300,
html[data-style].dark .dark\:text-slate-200,
html[data-style].dark .dark\:text-slate-300 {
  color: var(--s-text-dim) !important;
}

html[data-style] .text-gray-500,
html[data-style] .text-gray-400,
html[data-style] .text-gray-300,
html[data-style] .text-slate-400,
html[data-style] .text-slate-500,
html[data-style] .text-slate-600,
html[data-style].dark .dark\:text-slate-400,
html[data-style].dark .dark\:text-slate-500,
html[data-style].dark .dark\:text-gray-600 {
  color: var(--s-text-mute) !important;
}

/* 文字 hover */
html[data-style] .hover\:text-gray-900:hover,
html[data-style] .hover\:text-gray-600:hover,
html[data-style] .hover\:text-gray-500:hover,
html[data-style] .group:hover .group-hover\:text-gray-900,
html[data-style].dark .dark\:hover\:text-white:hover,
html[data-style].dark .dark\:hover\:text-slate-50:hover,
html[data-style].dark .dark\:hover\:text-slate-100:hover,
html[data-style].dark .dark\:hover\:text-slate-200:hover,
html[data-style].dark .dark\:hover\:text-slate-300:hover,
html[data-style].dark .dark\:hover\:text-slate-500:hover,
html[data-style].dark .dark\:hover\:text-slate-600:hover,
html[data-style].dark .dark\:hover\:text-gray-300:hover {
  color: var(--s-text) !important;
}

/* 强调色 */
html[data-style] .hover\:text-blue-600:hover,
html[data-style] .group:hover .group-hover\:text-indigo-500,
html[data-style] .text-indigo-500,
html[data-style] .text-sky-600,
html[data-style] .group:hover .group-hover\:text-green-500 {
  color: var(--s-accent) !important;
}

html[data-style] .text-red-600,
html[data-style] .text-red-700,
html[data-style] .group:hover .group-hover\:text-red-600,
html[data-style] .hover\:text-red-700:hover,
html[data-style].dark .dark\:text-red-700 {
  color: var(--s-hot) !important;
}

/* ---- 1.3 线条 ---- */
html[data-style] .border-gray-100,
html[data-style] .border-gray-200,
html[data-style] .border-gray-300,
html[data-style] .border-l,
html[data-style] hr,
html[data-style].dark .dark\:border-slate-500,
html[data-style].dark .dark\:border-slate-600,
html[data-style].dark .dark\:border-slate-700,
html[data-style].dark .dark\:border-slate-800 {
  border-color: var(--s-line) !important;
}

html[data-style] .hover\:border-gray-400:hover,
html[data-style] .border-indigo-400,
html[data-style] .\!border-indigo-400,
html[data-style] .hover\:border-indigo-400:hover,
html[data-style].dark .dark\:border-indigo-200,
html[data-style].dark .dark\:\!border-indigo-200,
html[data-style].dark .dark\:hover\:border-indigo-200:hover,
html[data-style].dark .dark\:hover\:border-slate-700:hover {
  border-color: var(--s-accent) !important;
}

html[data-style] .divide-y > :not([hidden]) ~ :not([hidden]),
html[data-style] .divide-gray-50 > :not([hidden]) ~ :not([hidden]),
html[data-style] .divide-gray-100 > :not([hidden]) ~ :not([hidden]),
html[data-style].dark .dark\:divide-slate-600 > :not([hidden]) ~ :not([hidden]),
html[data-style].dark .dark\:divide-slate-700 > :not([hidden]) ~ :not([hidden]),
html[data-style].dark .dark\:divide-slate-800 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--s-line) !important;
  border-top-style: var(--s-line-style) !important;
}

/* 选中环（分类/标签筛选器） */
html[data-style] .ring-2 {
  --tw-ring-color: var(--s-accent) !important;
}

/* ---- 1.4 形态：圆角 / 阴影 ---- */
html[data-style] .rounded-xl,
html[data-style] .rounded-lg {
  border-radius: var(--s-radius) !important;
}

html[data-style] .rounded,
html[data-style] .rounded-md {
  border-radius: var(--s-radius-sm) !important;
}

html[data-style] .rounded-full {
  border-radius: var(--s-radius-pill) !important;
}

html[data-style] img.rounded-full,
html[data-style] .size-5.rounded-full,
html[data-style] .size-6.rounded-full,
html[data-style] .size-8.rounded-full,
html[data-style] .size-10.rounded-full,
html[data-style] .size-12.rounded-full,
html[data-style] .size-24.rounded-full {
  border-radius: var(--s-radius-avatar) !important;
}

html[data-style] .shadow,
html[data-style] .shadow-sm,
html[data-style] .shadow-md {
  box-shadow: var(--s-shadow) !important;
}

html[data-style] .shadow-lg,
html[data-style] .shadow-xl {
  box-shadow: var(--s-shadow-lg) !important;
}

html[data-style] .hover\:shadow:hover,
html[data-style] .hover\:shadow-md:hover,
html[data-style] .hover\:shadow-lg:hover {
  box-shadow: var(--s-shadow-hover) !important;
}

/* ---- 1.5 排版 ---- */
html[data-style] body {
  font-family: var(--s-font);
  letter-spacing: var(--s-body-spacing);
}

html[data-style] h1,
html[data-style] h2,
html[data-style] h3,
html[data-style] #site-title {
  font-family: var(--s-font-head);
  font-weight: var(--s-head-weight);
  letter-spacing: var(--s-head-spacing);
}

/* ---- 1.6 图片 ---- */
html[data-style] .aspect-w-16 img,
html[data-style] .aspect-w-1 img,
html[data-style] #photos img,
html[data-style] .moment-media img {
  filter: var(--s-img-filter);
  transition: filter 0.4s ease, transform 0.5s ease;
}

html[data-style] .aspect-w-16 a:hover img,
html[data-style] #photos .group:hover img,
html[data-style] .moment-media img:hover {
  filter: var(--s-img-filter-hover);
}

/* ---- 1.7 表单控件 ---- */
html[data-style] #pagination {
  color: var(--s-text) !important;
  font-family: var(--s-font);
}

html[data-style] #pagination option {
  background-color: var(--s-surface) !important;
  color: var(--s-text) !important;
}

/* ---- 1.8 正文（markdown-body / tailwind-typography）---- */
html[data-style] .markdown-body,
html[data-style] .tailwind-typography {
  color: var(--s-text-dim) !important;
  font-family: var(--s-font);
}

html[data-style] .markdown-body h1,
html[data-style] .markdown-body h2,
html[data-style] .markdown-body h3,
html[data-style] .markdown-body h4,
html[data-style] .tailwind-typography h1,
html[data-style] .tailwind-typography h2,
html[data-style] .tailwind-typography h3,
html[data-style] .tailwind-typography h4 {
  color: var(--s-text) !important;
  border-color: var(--s-line) !important;
}

html[data-style] .markdown-body a,
html[data-style] .tailwind-typography a {
  color: var(--s-accent) !important;
}

html[data-style] .markdown-body hr,
html[data-style] .markdown-body table td,
html[data-style] .markdown-body table th,
html[data-style] .markdown-body blockquote {
  border-color: var(--s-line) !important;
}

html[data-style] .markdown-body blockquote {
  color: var(--s-text-mute) !important;
}

html[data-style] .markdown-body pre,
html[data-style] .markdown-body code,
html[data-style] .tailwind-typography pre,
html[data-style] .tailwind-typography code {
  background-color: var(--s-surface-2) !important;
  color: var(--s-text) !important;
  border-radius: var(--s-radius-sm) !important;
}

/* ---- 1.9 文章目录（tocbot）---- */
html[data-style] .is-active-link {
  background-color: var(--s-surface-3) !important;
  color: var(--s-text) !important;
  border-radius: var(--s-radius-sm) !important;
}

html[data-style] .toc-list-item > .toc-list {
  border-color: var(--s-line) !important;
}

/* ---- 1.10 首页大图标题 ---- */
html[data-style] .pattern-header-text h1,
html[data-style] .pattern-header-text {
  font-family: var(--s-font-head);
  letter-spacing: var(--s-head-spacing);
  text-transform: var(--s-head-transform);
}

/* ---- 1.11 滚动条（OverlayScrollbars）---- */
html[data-style] .os-scrollbar-handle {
  background-color: var(--s-line-strong) !important;
}

html[data-style] .os-scrollbar-handle:hover {
  background-color: var(--s-accent) !important;
}

/* ================================================================
 * 2. 切换器自身的 UI（对全部 5 种风格均可用）
 * ================================================================ */
.style-switcher-menu {
  min-width: 11rem;
}

.style-switcher-option {
  display: flex;
  width: 100%;
  cursor: pointer;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: left;
  color: #4b5563;
  background: transparent;
  border: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dark .style-switcher-option {
  color: #f1f5f9;
}

.style-switcher-option:hover {
  background-color: #f9fafb;
  color: #2563eb;
}

.dark .style-switcher-option:hover {
  background-color: #475569;
}

.style-switcher-option .style-name {
  flex: 1 1 auto;
  white-space: nowrap;
}

/* 色卡：直接用 5 种风格各自的代表色，让选择一目了然 */
.style-swatch {
  position: relative;
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex: none;
  border: 1px solid rgb(0 0 0 / 0.25);
}

.style-swatch-earth {
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6 0%, #ffffff 50%, #e5e7eb 100%);
}

.style-swatch-terminal {
  border-radius: 0;
  background: #04160a;
  border-color: #33ff99;
  box-shadow: inset 0 0 0 1px #04160a, 0 0 4px rgb(51 255 153 / 0.7);
}

.style-swatch-terminal::after {
  content: ">";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  color: #33ff99;
}

.style-swatch-comic {
  border-radius: 0.25rem;
  background: #ffd400;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0 #000000;
}

.style-swatch-editorial {
  border-radius: 0;
  background: #faf9f5;
  border: 1px solid #14140f;
}

.style-swatch-editorial::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  border-top: 1px solid #b3271e;
}

.style-swatch-cyber {
  background: #05070f;
  border-color: #00f0ff;
  clip-path: polygon(0 0, 100% 0, 100% 65%, 65% 100%, 0 100%);
  box-shadow: 0 0 6px rgb(0 240 255 / 0.8);
}

.style-swatch-cyber::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: linear-gradient(135deg, #00f0ff 0%, #ff00a0 100%);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
}

/* 选中标记：默认隐藏，由 JS 给当前项加 .is-current */
.style-switcher-option .style-check {
  flex: none;
  opacity: 0;
  font-size: 0.75rem;
  transition: opacity 0.15s ease;
}

.style-switcher-option.is-current {
  color: #2563eb;
  font-weight: 600;
}

.dark .style-switcher-option.is-current {
  color: #93c5fd;
}

.style-switcher-option.is-current .style-check {
  opacity: 1;
}

/* 切换风格时的整体过渡，让切换有「无缝」观感 */
html[data-style] body,
html[data-style] .bg-white,
html[data-style] .bg-slate-50 {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* ================================================================
 * 3. TERMINAL 终端
 * ----------------------------------------------------------------
 *    形态语言：全直角 · 等宽字体 · 扫描线 · 磷光辉光取代投影
 *              [方括号] 包裹选中项 · > 前缀 · 闪烁光标 · 虚线分隔
 *    浅色 = 纸白打印终端，深色 = CRT 磷光绿屏
 * ================================================================ */
html[data-style="terminal"] {
  --s-bg: #eceee4;
  --s-surface: #f7f8f2;
  --s-surface-2: #dfe2d6;
  --s-surface-3: #c8ccbc;
  --s-text: #10180f;
  --s-text-dim: #2f3b2c;
  --s-text-mute: #6a7566;
  --s-on-accent: #f7f8f2;
  --s-line: #9aa393;
  --s-line-strong: #5c6657;
  --s-accent: #0f7a3d;
  --s-accent-2: #0f7a3d;
  --s-hot: #b52d17;
  --s-veil: rgb(16 24 15 / 0.55);

  /* 形态：一律直角，连头像也是方的 */
  --s-radius: 0;
  --s-radius-sm: 0;
  --s-radius-pill: 0;
  --s-radius-avatar: 0;

  /* 阴影→硬边框轮廓，没有任何模糊 */
  --s-shadow: 0 0 0 1px var(--s-line);
  --s-shadow-lg: 0 0 0 2px var(--s-line-strong);
  --s-shadow-hover: 0 0 0 1px var(--s-accent);

  --s-line-style: dashed;
  --s-font: ui-monospace, "SFMono-Regular", "Cascadia Code", "Source Code Pro",
    Menlo, Consolas, "DejaVu Sans Mono", "Noto Sans Mono CJK SC", monospace;
  --s-font-head: var(--s-font);
  --s-head-weight: 700;
  --s-head-spacing: 0.06em;
  --s-head-transform: uppercase;
  --s-body-spacing: 0.01em;
  --s-img-filter: grayscale(1) contrast(1.1);
  --s-img-filter-hover: grayscale(0.4) contrast(1.15);
}

html[data-style="terminal"].dark {
  --s-bg: #030803;
  --s-surface: #06120a;
  --s-surface-2: #0c1f12;
  --s-surface-3: #143020;
  --s-text: #33ff99;
  --s-text-dim: #29cc7a;
  --s-text-mute: #1c8a52;
  --s-on-accent: #030803;
  --s-line: #1f6b41;
  --s-line-strong: #33ff99;
  --s-accent: #7dffc4;
  --s-accent-2: #7dffc4;
  --s-hot: #ff5f56;
  --s-veil: rgb(3 8 3 / 0.88);

  --s-shadow: 0 0 0 1px var(--s-line), 0 0 10px rgb(51 255 153 / 0.14);
  --s-shadow-lg: 0 0 0 1px var(--s-line-strong), 0 0 22px rgb(51 255 153 / 0.28);
  --s-shadow-hover: 0 0 0 1px var(--s-line-strong), 0 0 18px rgb(51 255 153 / 0.4);

  --s-img-filter: grayscale(1) sepia(1) hue-rotate(75deg) saturate(4) brightness(0.85);
  --s-img-filter-hover: grayscale(1) sepia(1) hue-rotate(75deg) saturate(6) brightness(1.05);
}

/* ---- 3.1 CRT 扫描线 + 屏幕晕影 ---- */
html[data-style="terminal"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgb(0 0 0 / 0.05) 0px,
    rgb(0 0 0 / 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
}

html[data-style="terminal"].dark body::before {
  background-image: repeating-linear-gradient(
    to bottom,
    rgb(51 255 153 / 0.055) 0px,
    rgb(51 255 153 / 0.055) 1px,
    transparent 1px,
    transparent 3px
  );
}

html[data-style="terminal"].dark body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgb(0 0 0 / 0.55) 100%);
}

/* ---- 3.2 顶栏：像终端窗口的标题栏 ---- */
html[data-style="terminal"] #header-menu {
  border-bottom: 1px solid var(--s-line-strong) !important;
  box-shadow: none !important;
}

html[data-style="terminal"] #site-title::before {
  content: "root@";
  color: var(--s-text-mute);
  font-weight: 400;
}

html[data-style="terminal"] #site-title::after {
  content: ":~$";
  color: var(--s-text-mute);
  font-weight: 400;
  margin-left: 0.15em;
}

/* 导航项：hover 时出现 > 提示符 */
html[data-style="terminal"] #header-menu ul > li > a {
  position: relative;
  text-transform: lowercase;
}

html[data-style="terminal"] #header-menu ul > li > a::before {
  content: ">";
  position: absolute;
  left: -0.85em;
  opacity: 0;
  transition: opacity 0.12s steps(2);
}

html[data-style="terminal"] #header-menu ul > li > a:hover::before {
  opacity: 1;
}

html[data-style="terminal"] #header-menu ul > li > a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- 3.3 卡片：终端窗口。顶部一条 ASCII 标题条 ---- */
html[data-style="terminal"] div.rounded-xl.bg-white,
html[data-style="terminal"] .rounded-xl.bg-white.p-3,
html[data-style="terminal"] .rounded-xl.bg-white.p-4 {
  border: 1px solid var(--s-line) !important;
  position: relative;
}

html[data-style="terminal"] .group.rounded-xl:hover,
html[data-style="terminal"] div.rounded-xl.bg-white:hover {
  border-color: var(--s-line-strong) !important;
}

/* 卡片标题前缀 */
html[data-style="terminal"] .rounded-xl h1 > a::before {
  content: "$ ";
  color: var(--s-text-mute);
}

/* 小部件标题：[ TITLE ] */
html[data-style="terminal"] aside h2::before,
html[data-style="terminal"] .toc-container h2::before {
  content: "[";
  color: var(--s-text-mute);
  margin-right: 0.2em;
}

html[data-style="terminal"] aside h2::after,
html[data-style="terminal"] .toc-container h2::after {
  content: "]";
  color: var(--s-text-mute);
  margin-left: 0.2em;
}

/* ---- 3.4 文章标题后的闪烁光标 ---- */
@keyframes s-term-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

html[data-style="terminal"] article#content > h1:first-child::after,
html[data-style="terminal"] .rounded-xl > h1.text-3xl::after {
  content: "\2588";
  margin-left: 0.15em;
  color: var(--s-accent);
  animation: s-term-blink 1.1s steps(1) infinite;
}

/* ---- 3.5 选中态：[ 方括号 ] 包裹 + 反色 ---- */
html[data-style="terminal"] #filters .\!bg-gray-100,
html[data-style="terminal"] #filters .\!text-gray-900,
html[data-style="terminal"] nav a.\!bg-gray-200 {
  background-color: var(--s-text) !important;
  color: var(--s-bg) !important;
  --tw-ring-color: transparent !important;
  box-shadow: none !important;
}

html[data-style="terminal"] #filters .\!bg-gray-100::before,
html[data-style="terminal"] nav a.\!bg-gray-200::before {
  content: "[";
  margin-right: 0.15em;
}

html[data-style="terminal"] #filters .\!bg-gray-100::after,
html[data-style="terminal"] nav a.\!bg-gray-200::after {
  content: "]";
  margin-left: 0.15em;
}

/* 标签选中（tag-filter 用 border 表达选中） */
html[data-style="terminal"] a.\!border-indigo-400 {
  background-color: var(--s-text) !important;
  color: var(--s-bg) !important;
  border-color: var(--s-text) !important;
}

/* TOC 当前项 */
html[data-style="terminal"] .is-active-link {
  background-color: transparent !important;
  color: var(--s-accent) !important;
  border-left: 2px solid var(--s-accent) !important;
}

html[data-style="terminal"] .is-active-link::before {
  content: "> ";
}

/* ---- 3.6 标签：#tag 直角，无边框，靠底色区分 ---- */
html[data-style="terminal"] a.rounded-full.border {
  border: 1px dashed var(--s-line) !important;
  background-color: transparent !important;
  text-transform: lowercase;
}

html[data-style="terminal"] a.rounded-full.border:hover {
  border-style: solid !important;
  border-color: var(--s-accent) !important;
  color: var(--s-accent) !important;
}

/* ---- 3.7 按钮：[ TEXT ] 形态 ---- */
html[data-style="terminal"] a.rounded-md.border,
html[data-style="terminal"] .whitespace-no-wrap.rounded-md {
  border: 1px solid var(--s-line-strong) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: none !important;
}

html[data-style="terminal"] a.rounded-md.border:hover {
  background-color: var(--s-text) !important;
  color: var(--s-bg) !important;
  border-color: var(--s-text) !important;
}

html[data-style="terminal"] #btn-scroll-to-top {
  border: 1px solid var(--s-line-strong) !important;
  border-radius: 0 !important;
}

/* ---- 3.8 头像：方形 + 描边 ---- */
html[data-style="terminal"] img.rounded-full {
  border: 1px solid var(--s-line-strong) !important;
  filter: var(--s-img-filter);
}

/* ---- 3.9 分隔线：ASCII 虚线 ---- */
html[data-style="terminal"] hr {
  border-top-style: dashed !important;
  border-top-width: 1px !important;
}

/* ---- 3.10 下拉菜单：终端弹窗 ---- */
html[data-style="terminal"] .menu-dropdown,
html[data-style="terminal"] ul.absolute.bg-white,
html[data-style="terminal"] .style-switcher-menu {
  border: 1px solid var(--s-line-strong) !important;
  border-radius: 0 !important;
}

/* ---- 3.11 深色下的文字辉光 ---- */
html[data-style="terminal"].dark body {
  text-shadow: 0 0 6px rgb(51 255 153 / 0.28);
}

html[data-style="terminal"].dark .pattern-header-text h1 {
  text-shadow: 0 0 12px rgb(51 255 153 / 0.75), 0 0 32px rgb(51 255 153 / 0.35) !important;
  color: var(--s-text) !important;
}

/* ---- 3.12 正文代码块：终端里的终端 ---- */
html[data-style="terminal"] .markdown-body pre {
  border: 1px dashed var(--s-line) !important;
}

html[data-style="terminal"] .markdown-body blockquote {
  border-left: 2px solid var(--s-accent) !important;
  padding-left: 0.9rem;
}

html[data-style="terminal"] .markdown-body blockquote::before {
  content: "# ";
  color: var(--s-text-mute);
}

/* ================================================================
 * 4. COMIC 漫画
 * ----------------------------------------------------------------
 *    形态语言：3~4px 粗描边 · 无模糊硬阴影 · 半调网点底纹
 *              卡片轻微歪斜 · hover 弹起 · 按钮按下会「陷进去」
 *              选中项是一张歪贴的黄色贴纸
 *    浅色 = 报刊彩页，深色 = 深夜霓虹漫画
 * ================================================================ */
html[data-style="comic"] {
  --s-bg: #fdf3d8;
  --s-surface: #fffdf6;
  --s-surface-2: #ffe9a8;
  --s-surface-3: #ffd400;
  --s-text: #12100c;
  --s-text-dim: #2b2721;
  --s-text-mute: #6f675a;
  --s-on-accent: #12100c;
  --s-line: #12100c;
  --s-line-strong: #12100c;
  --s-accent: #e5322d;
  --s-accent-2: #1b7ced;
  --s-hot: #e5322d;
  --s-veil: rgb(18 16 12 / 0.55);

  /* 形态：圆角适中但描边极粗，阴影完全不模糊 */
  --s-radius: 0.7rem;
  --s-radius-sm: 0.45rem;
  --s-radius-pill: 9999px;
  --s-radius-avatar: 9999px;
  --s-ink: #12100c;
  --s-shadow: 4px 4px 0 var(--s-ink);
  --s-shadow-lg: 8px 8px 0 var(--s-ink);
  --s-shadow-hover: 7px 7px 0 var(--s-ink);

  --s-font: "Comic Sans MS", "Chalkboard SE", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --s-font-head: var(--s-font);
  --s-head-weight: 900;
  --s-head-spacing: -0.01em;
  --s-body-spacing: 0.005em;
  --s-img-filter: contrast(1.18) saturate(1.45);
  --s-img-filter-hover: contrast(1.28) saturate(1.7);
}

html[data-style="comic"].dark {
  --s-bg: #10162b;
  --s-surface: #1b2444;
  --s-surface-2: #2b3766;
  --s-surface-3: #ffd400;
  --s-text: #fff8e1;
  --s-text-dim: #d9def2;
  --s-text-mute: #8f9ac4;
  --s-on-accent: #10162b;
  --s-line: #ffd400;
  --s-line-strong: #ffd400;
  --s-accent: #ff2e63;
  --s-accent-2: #35e0ff;
  --s-hot: #ff2e63;
  --s-veil: rgb(6 9 20 / 0.82);
  --s-ink: #ffd400;
  --s-shadow: 4px 4px 0 var(--s-ink);
  --s-shadow-lg: 8px 8px 0 var(--s-ink);
  --s-shadow-hover: 7px 7px 0 var(--s-ink);
  --s-img-filter: contrast(1.2) saturate(1.5) brightness(0.95);
  --s-img-filter-hover: contrast(1.3) saturate(1.8) brightness(1.05);
}

/* ---- 4.1 半调网点底纹 ---- */
html[data-style="comic"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgb(18 16 12 / 0.16) 1.4px, transparent 1.5px);
  background-size: 11px 11px;
}

html[data-style="comic"].dark body::before {
  background-image: radial-gradient(rgb(255 212 0 / 0.14) 1.4px, transparent 1.5px);
}

/* ---- 4.2 所有主容器：粗描边 ---- */
html[data-style="comic"] div.rounded-xl.bg-white,
html[data-style="comic"] .rounded-xl.bg-white.p-3,
html[data-style="comic"] .rounded-xl.bg-white.p-4,
html[data-style="comic"] #header-menu,
html[data-style="comic"] footer,
html[data-style="comic"] .menu-dropdown,
html[data-style="comic"] ul.absolute.bg-white,
html[data-style="comic"] .style-switcher-menu,
html[data-style="comic"] #btn-scroll-to-top {
  border: 3px solid var(--s-ink) !important;
}

html[data-style="comic"] #header-menu {
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom-width: 4px !important;
}

html[data-style="comic"] footer {
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-top-width: 4px !important;
}

/* ---- 4.3 卡片：歪贴的漫画分格，hover 时弹正并弹起 ---- */
html[data-style="comic"] #post-list > .group,
html[data-style="comic"] #post-list > div > .group {
  transform: rotate(-0.7deg);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

html[data-style="comic"] #post-list > .group:nth-child(even),
html[data-style="comic"] #post-list > div:nth-child(even) > .group {
  transform: rotate(0.8deg);
}

html[data-style="comic"] #post-list > .group:hover,
html[data-style="comic"] #post-list > div > .group:hover {
  transform: rotate(0deg) translate(-3px, -4px) !important;
  box-shadow: 9px 10px 0 var(--s-ink) !important;
}

/* 覆盖原版的 hover 上移与 ring，避免动效叠加 */
html[data-style="comic"] .hover\:-translate-y-1:hover {
  --tw-translate-y: 0 !important;
}

html[data-style="comic"] .hover\:ring-2:hover {
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  --tw-ring-shadow: 0 0 #0000 !important;
}

/* 侧边栏小部件也歪一点，但方向相反 */
html[data-style="comic"] aside > div {
  transform: rotate(0.5deg);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

html[data-style="comic"] aside > div:hover {
  transform: rotate(0deg) translate(-2px, -3px);
}

/* ---- 4.4 标题：描边 + 黄色高光，像漫画音效字 ---- */
html[data-style="comic"] .rounded-xl h1,
html[data-style="comic"] article#content h1,
html[data-style="comic"] article#content h2 {
  text-transform: uppercase;
  -webkit-text-stroke: 0.5px var(--s-ink);
}

html[data-style="comic"] .pattern-header-text h1 {
  color: #ffd400 !important;
  -webkit-text-stroke: 2.5px #12100c;
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 #12100c !important;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

html[data-style="comic"] #site-title {
  text-transform: uppercase;
  -webkit-text-stroke: 0.4px var(--s-ink);
}

/* 小部件标题左侧加一个星形爆点 */
html[data-style="comic"] aside h2::before {
  content: "\2605";
  color: var(--s-accent);
  margin-right: 0.15em;
  -webkit-text-stroke: 0.6px var(--s-ink);
}

/* ---- 4.5 选中态：歪贴的黄色贴纸 ---- */
html[data-style="comic"] #filters .\!bg-gray-100,
html[data-style="comic"] #filters .\!text-gray-900,
html[data-style="comic"] nav a.\!bg-gray-200 {
  background-color: #ffd400 !important;
  color: #12100c !important;
  border: 3px solid var(--s-ink) !important;
  box-shadow: 3px 3px 0 var(--s-ink) !important;
  transform: rotate(-2.2deg);
  --tw-ring-color: transparent !important;
  font-weight: 900;
}

html[data-style="comic"] a.\!border-indigo-400 {
  background-color: #ffd400 !important;
  color: #12100c !important;
  border: 3px solid var(--s-ink) !important;
  box-shadow: 3px 3px 0 var(--s-ink) !important;
  transform: rotate(-2deg);
  font-weight: 900;
}

html[data-style="comic"] .is-active-link {
  background-color: #ffd400 !important;
  color: #12100c !important;
  border: 2px solid var(--s-ink) !important;
  font-weight: 900;
}

/* ---- 4.6 标签：贴纸胶囊 ---- */
html[data-style="comic"] a.rounded-full.border {
  border: 2px solid var(--s-ink) !important;
  box-shadow: 2px 2px 0 var(--s-ink) !important;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

html[data-style="comic"] a.rounded-full.border:hover {
  transform: translate(-1px, -2px) rotate(-2deg);
  box-shadow: 4px 4px 0 var(--s-ink) !important;
}

/* ---- 4.7 按钮：按下会陷进去 ---- */
html[data-style="comic"] a.rounded-md.border,
html[data-style="comic"] .whitespace-no-wrap.rounded-md {
  border: 3px solid var(--s-ink) !important;
  box-shadow: 4px 4px 0 var(--s-ink) !important;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

html[data-style="comic"] a.rounded-md.border:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--s-ink) !important;
}

html[data-style="comic"] a.rounded-md.border:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--s-ink) !important;
}

html[data-style="comic"] #btn-scroll-to-top {
  box-shadow: 4px 4px 0 var(--s-ink) !important;
}

html[data-style="comic"] #btn-scroll-to-top:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--s-ink) !important;
}

/* ---- 4.8 头像：粗黑圈 ---- */
html[data-style="comic"] img.rounded-full {
  border: 3px solid var(--s-ink) !important;
}

/* ---- 4.9 图片：加黑框 ---- */
html[data-style="comic"] .aspect-w-16 img,
html[data-style="comic"] #photos img,
html[data-style="comic"] .moment-media img {
  border-bottom: 3px solid var(--s-ink);
}

/* ---- 4.10 分隔线：粗黑线 ---- */
html[data-style="comic"] hr {
  border-top-width: 4px !important;
  border-top-color: var(--s-ink) !important;
}

html[data-style="comic"] .divide-y > :not([hidden]) ~ :not([hidden]) {
  border-top-width: 3px !important;
  border-color: var(--s-ink) !important;
}

/* ---- 4.11 引用：对话气泡 ---- */
html[data-style="comic"] .markdown-body blockquote {
  border: 3px solid var(--s-ink) !important;
  border-radius: 1rem !important;
  background: var(--s-surface-2) !important;
  box-shadow: 4px 4px 0 var(--s-ink) !important;
  padding: 0.9rem 1.1rem !important;
  position: relative;
}

html[data-style="comic"] .markdown-body pre {
  border: 3px solid var(--s-ink) !important;
  box-shadow: 4px 4px 0 var(--s-ink) !important;
}

/* ================================================================
 * 5. EDITORIAL 杂志
 * ----------------------------------------------------------------
 *    形态语言：彻底取消「浮动卡片」——没有圆角、没有阴影、没有色块，
 *              内容直接躺在纸面上，仅用发丝线分栏。
 *              衬线字体 · 首字下沉 · 小型大写字标签 · 灰度图片
 *              选中态不是色块，而是「粗下划线 + 字距收紧」
 *    浅色 = 米白纸，深色 = 墨黑纸
 * ================================================================ */
html[data-style="editorial"] {
  --s-bg: #faf9f5;
  --s-surface: #faf9f5; /* 与纸面同色：卡片「消失」 */
  --s-surface-2: #f0eee6;
  --s-surface-3: #e4e1d5;
  --s-text: #14140f;
  --s-text-dim: #3d3b33;
  --s-text-mute: #8a877b;
  --s-on-accent: #faf9f5;
  --s-line: #d7d4c8;
  --s-line-strong: #14140f;
  --s-accent: #b3271e;
  --s-accent-2: #14140f;
  --s-hot: #b3271e;
  --s-veil: rgb(20 20 15 / 0.5);

  /* 形态：全零。这是本风格最核心的形态主张 */
  --s-radius: 0;
  --s-radius-sm: 0;
  --s-radius-pill: 0;
  --s-radius-avatar: 0;
  --s-shadow: none;
  --s-shadow-lg: none;
  --s-shadow-hover: none;

  --s-font: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia,
    "Times New Roman", "STSong", serif;
  --s-font-head: var(--s-font);
  --s-head-weight: 600;
  --s-head-spacing: -0.02em;
  --s-body-spacing: 0.008em;
  --s-img-filter: grayscale(1) contrast(1.05);
  --s-img-filter-hover: grayscale(0) contrast(1);
}

html[data-style="editorial"].dark {
  --s-bg: #121210;
  --s-surface: #121210;
  --s-surface-2: #1c1c19;
  --s-surface-3: #2a2a25;
  --s-text: #ecebe3;
  --s-text-dim: #c4c2b8;
  --s-text-mute: #86847a;
  --s-on-accent: #121210;
  --s-line: #33322c;
  --s-line-strong: #ecebe3;
  --s-accent: #e0654f;
  --s-accent-2: #ecebe3;
  --s-hot: #e0654f;
  --s-veil: rgb(0 0 0 / 0.8);
  --s-img-filter: grayscale(1) contrast(0.95) brightness(0.9);
  --s-img-filter-hover: grayscale(0) contrast(1) brightness(1);
}

/* ---- 5.1 纸面：极细的竖直栏线做背景肌理 ---- */
html[data-style="editorial"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, rgb(20 20 15 / 0.028) 1px, transparent 1px);
  background-size: 5.5rem 100%;
}

html[data-style="editorial"].dark body::before {
  background-image: linear-gradient(to right, rgb(236 235 227 / 0.03) 1px, transparent 1px);
}

/* ---- 5.2 报头：只有一条粗线，没有阴影 ---- */
html[data-style="editorial"] #header-menu {
  border-bottom: 2px solid var(--s-line-strong) !important;
  box-shadow: none !important;
}

html[data-style="editorial"] #site-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
}

html[data-style="editorial"] #header-menu ul > li > a {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

html[data-style="editorial"] #header-menu ul > li > a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* ---- 5.3 卡片消融：不再是盒子，而是被发丝线分开的条目 ---- */
html[data-style="editorial"] div.rounded-xl.bg-white,
html[data-style="editorial"] .rounded-xl.bg-white.p-3,
html[data-style="editorial"] .rounded-xl.bg-white.p-4 {
  border: 0 !important;
  border-bottom: 1px solid var(--s-line) !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

html[data-style="editorial"] #post-list > .group:hover,
html[data-style="editorial"] div.rounded-xl.bg-white:hover {
  box-shadow: none !important;
  border-bottom-color: var(--s-line-strong) !important;
}

/* 取消原版的位移与 ring 动效，杂志风不做位移 */
html[data-style="editorial"] .hover\:-translate-y-1:hover {
  --tw-translate-y: 0 !important;
}

html[data-style="editorial"] .hover\:ring-2:hover {
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  --tw-ring-shadow: 0 0 #0000 !important;
}

html[data-style="editorial"] .group:hover .group-hover\:scale-105 {
  --tw-scale-x: 1 !important;
  --tw-scale-y: 1 !important;
}

/* 侧边栏小部件：顶部一条粗线 + 小型大写标题 */
html[data-style="editorial"] aside > div {
  border: 0 !important;
  border-top: 2px solid var(--s-line-strong) !important;
  padding-top: 0.85rem !important;
}

html[data-style="editorial"] aside h2,
html[data-style="editorial"] .toc-container h2 {
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.8rem !important;
  font-weight: 700;
}

html[data-style="editorial"] .toc-container {
  border: 0 !important;
  border-top: 2px solid var(--s-line-strong) !important;
  box-shadow: none !important;
}

/* ---- 5.4 标题：大字号、字距收紧 ---- */
html[data-style="editorial"] .rounded-xl h1 {
  letter-spacing: -0.025em;
  line-height: 1.18;
}

html[data-style="editorial"] .pattern-header-text h1 {
  font-weight: 600;
  letter-spacing: -0.03em;
  text-shadow: none !important;
  border-bottom: 1px solid rgb(255 255 255 / 0.55);
  padding-bottom: 0.35rem;
}

/* ---- 5.5 正文：首字下沉 ---- */
html[data-style="editorial"] article#content.markdown-body > p:first-of-type::first-letter,
html[data-style="editorial"] article#content.tailwind-typography > p:first-of-type::first-letter {
  float: left;
  font-size: 3.35em;
  line-height: 0.84;
  font-weight: 700;
  margin: 0.06em 0.09em 0 0;
  color: var(--s-text);
}

html[data-style="editorial"] .markdown-body,
html[data-style="editorial"] .tailwind-typography {
  line-height: 1.85;
}

html[data-style="editorial"] .markdown-body blockquote {
  border-left: 3px solid var(--s-accent) !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  padding: 0.25rem 0 0.25rem 1.1rem !important;
  margin: 1.6rem 0 !important;
  font-style: normal;
  font-size: 1em;
  color: var(--s-text-dim) !important;
  text-align: left;
}

html[data-style="editorial"] .markdown-body pre {
  border: 1px solid var(--s-line) !important;
  background: var(--s-surface-2) !important;
}

/* ---- 5.6 选中态：下划线，不是色块 ---- */
html[data-style="editorial"] #filters .\!bg-gray-100,
html[data-style="editorial"] #filters .\!text-gray-900,
html[data-style="editorial"] nav a.\!bg-gray-200 {
  background-color: transparent !important;
  color: var(--s-text) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--s-accent) !important;
  --tw-ring-color: transparent !important;
  box-shadow: none !important;
}

html[data-style="editorial"] a.\!border-indigo-400 {
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid var(--s-accent) !important;
  color: var(--s-text) !important;
  font-weight: 700 !important;
}

html[data-style="editorial"] .is-active-link {
  background-color: transparent !important;
  color: var(--s-text) !important;
  font-weight: 700;
  border-left: 2px solid var(--s-accent) !important;
  border-radius: 0 !important;
}

/* ---- 5.7 标签：去掉胶囊，改成小型大写 + 间隔号 ---- */
html[data-style="editorial"] a.rounded-full.border {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-right: 0.9rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-style: normal !important;
}

html[data-style="editorial"] a.rounded-full.border:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--s-accent) !important;
}

html[data-style="editorial"] a.rounded-full.border + a.rounded-full.border::before {
  content: "\00B7";
  margin-right: 0.9rem;
  color: var(--s-text-mute);
}

/* ---- 5.8 按钮：无框纯文字 + 下划线 ---- */
html[data-style="editorial"] a.rounded-md.border,
html[data-style="editorial"] .whitespace-no-wrap.rounded-md {
  border: 0 !important;
  border-bottom: 1px solid var(--s-line-strong) !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  font-variant: small-caps;
  letter-spacing: 0.08em;
}

html[data-style="editorial"] a.rounded-md.border:hover {
  border-bottom-color: var(--s-accent) !important;
  color: var(--s-accent) !important;
  background: transparent !important;
}

html[data-style="editorial"] #btn-scroll-to-top {
  border: 1px solid var(--s-line-strong) !important;
  box-shadow: none !important;
}

/* ---- 5.9 头像：方形证件照 ---- */
html[data-style="editorial"] img.rounded-full {
  border: 1px solid var(--s-line) !important;
  filter: grayscale(1);
}

html[data-style="editorial"] img.rounded-full:hover {
  filter: grayscale(0);
}

/* ---- 5.10 分隔线：发丝 ---- */
html[data-style="editorial"] hr {
  border-top-width: 1px !important;
}

/* ---- 5.11 下拉菜单：纸片，只有细框 ---- */
html[data-style="editorial"] .menu-dropdown,
html[data-style="editorial"] ul.absolute.bg-white,
html[data-style="editorial"] .style-switcher-menu {
  border: 1px solid var(--s-line-strong) !important;
  box-shadow: none !important;
  background-color: var(--s-bg) !important;
}

/* ---- 5.12 友链 / 归档条目：去盒子化 ---- */
html[data-style="editorial"] .rounded.border.border-gray-300,
html[data-style="editorial"] .rounded-xl.border.border-gray-300 {
  border: 0 !important;
  border-bottom: 1px solid var(--s-line) !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ================================================================
 * 6. CYBER 赛博朋克
 * ----------------------------------------------------------------
 *    形态语言：clip-path 斜切角（不是圆角也不是直角，是第三种轮廓）
 *              霓虹辉光取代投影 · 玻璃拟态毛玻璃 · 网格底纹
 *              L 形角标装饰 · 标题 glitch 双色偏移
 *              选中态是「左侧霓虹竖条 + 呼吸脉冲」
 *    浅色 = 全息白 HUD，深色 = 霓虹雨夜
 * ================================================================ */
html[data-style="cyber"] {
  --s-bg: #e8ecf4;
  --s-surface: rgb(255 255 255 / 0.72);
  --s-surface-2: rgb(0 144 255 / 0.09);
  --s-surface-3: rgb(209 0 160 / 0.16);
  --s-text: #0a1020;
  --s-text-dim: #2b3a55;
  --s-text-mute: #6b7a96;
  --s-on-accent: #ffffff;
  --s-line: rgb(0 144 255 / 0.35);
  --s-line-strong: #0090ff;
  --s-accent: #d100a0;
  --s-accent-2: #0090ff;
  --s-hot: #ff2d6f;
  --s-veil: rgb(232 236 244 / 0.72);

  --s-neon-1: #0090ff;
  --s-neon-2: #d100a0;
  --s-radius: 0;
  --s-radius-sm: 0;
  --s-radius-pill: 0;
  --s-radius-avatar: 0;
  --s-shadow: 0 0 0 1px var(--s-line);
  --s-shadow-lg: 0 0 18px rgb(0 144 255 / 0.28);
  --s-shadow-hover: 0 0 0 1px var(--s-line-strong), 0 0 16px rgb(0 144 255 / 0.3);

  --s-font: "Rajdhani", "Chakra Petch", ui-monospace, "SFMono-Regular", Menlo,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --s-font-head: var(--s-font);
  --s-head-weight: 700;
  --s-head-spacing: 0.05em;
  --s-head-transform: uppercase;
  --s-body-spacing: 0.02em;
  --s-img-filter: saturate(1.25) contrast(1.08);
  --s-img-filter-hover: saturate(1.6) contrast(1.15) hue-rotate(-8deg);

  /* 统一的切角形状 */
  --s-clip: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --s-clip-sm: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

html[data-style="cyber"].dark {
  --s-bg: #04060e;
  --s-surface: rgb(12 20 40 / 0.62);
  --s-surface-2: rgb(0 240 255 / 0.09);
  --s-surface-3: rgb(255 0 160 / 0.18);
  --s-text: #d8f6ff;
  --s-text-dim: #8fb8d4;
  --s-text-mute: #5a7a99;
  --s-on-accent: #04060e;
  --s-line: rgb(0 240 255 / 0.32);
  --s-line-strong: #00f0ff;
  --s-accent: #ff00a0;
  --s-accent-2: #00f0ff;
  --s-hot: #ff2d6f;
  --s-veil: rgb(2 4 10 / 0.88);

  --s-neon-1: #00f0ff;
  --s-neon-2: #ff00a0;
  --s-shadow: 0 0 0 1px var(--s-line), 0 0 14px rgb(0 240 255 / 0.16);
  --s-shadow-lg: 0 0 26px rgb(0 240 255 / 0.35);
  --s-shadow-hover: 0 0 0 1px var(--s-line-strong), 0 0 22px rgb(0 240 255 / 0.42);
  --s-img-filter: saturate(1.3) contrast(1.1) brightness(0.92);
  --s-img-filter-hover: saturate(1.7) contrast(1.2) brightness(1.05) hue-rotate(-10deg);
}

/* ---- 6.1 网格底纹 + 霓虹光晕 ---- */
html[data-style="cyber"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgb(0 144 255 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 144 255 / 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
}

html[data-style="cyber"].dark body::before {
  background-image: linear-gradient(rgb(0 240 255 / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 240 255 / 0.055) 1px, transparent 1px);
}

html[data-style="cyber"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60rem 40rem at 12% -10%, rgb(0 144 255 / 0.16), transparent 62%),
    radial-gradient(52rem 38rem at 92% 8%, rgb(209 0 160 / 0.14), transparent 62%);
}

html[data-style="cyber"].dark body::after {
  background: radial-gradient(60rem 40rem at 12% -10%, rgb(0 240 255 / 0.14), transparent 62%),
    radial-gradient(52rem 38rem at 92% 8%, rgb(255 0 160 / 0.14), transparent 62%);
}

/* ---- 6.2 玻璃拟态：所有表面半透明 + 毛玻璃 ---- */
html[data-style="cyber"] #header-menu,
html[data-style="cyber"] div.rounded-xl.bg-white,
html[data-style="cyber"] .rounded-xl.bg-white.p-3,
html[data-style="cyber"] .rounded-xl.bg-white.p-4,
html[data-style="cyber"] footer,
html[data-style="cyber"] .menu-dropdown,
html[data-style="cyber"] ul.absolute.bg-white,
html[data-style="cyber"] .style-switcher-menu {
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--s-line) !important;
}

html[data-style="cyber"] #header-menu {
  border-width: 0 0 1px 0 !important;
  border-bottom-color: var(--s-line-strong) !important;
  box-shadow: 0 1px 22px rgb(0 240 255 / 0.18) !important;
}

/* ---- 6.3 切角：本风格的轮廓签名 ---- */
html[data-style="cyber"] div.rounded-xl.bg-white,
html[data-style="cyber"] .rounded-xl.bg-white.p-3,
html[data-style="cyber"] .rounded-xl.bg-white.p-4,
html[data-style="cyber"] .rounded-lg.bg-white {
  clip-path: var(--s-clip);
}

html[data-style="cyber"] a.rounded-md.border,
html[data-style="cyber"] .whitespace-no-wrap.rounded-md,
html[data-style="cyber"] a.rounded-full.border,
html[data-style="cyber"] nav a.rounded,
html[data-style="cyber"] #btn-scroll-to-top {
  clip-path: var(--s-clip-sm);
}

/* 头像切角，变成六边形感 */
html[data-style="cyber"] img.rounded-full {
  clip-path: polygon(22% 0, 78% 0, 100% 50%, 78% 100%, 22% 100%, 0 50%);
  border: 0 !important;
}

/* ---- 6.4 L 形角标装饰 ---- */
html[data-style="cyber"] aside > div,
html[data-style="cyber"] .toc-container {
  position: relative;
}

html[data-style="cyber"] aside > div::before,
html[data-style="cyber"] .toc-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--s-neon-1);
  border-left: 2px solid var(--s-neon-1);
  pointer-events: none;
}

html[data-style="cyber"] aside > div::after,
html[data-style="cyber"] .toc-container::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid var(--s-neon-2);
  border-right: 2px solid var(--s-neon-2);
  pointer-events: none;
}

/* ---- 6.5 标题：glitch 双色偏移 ---- */
html[data-style="cyber"] #site-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-shadow: 1.5px 0 0 rgb(255 0 160 / 0.65), -1.5px 0 0 rgb(0 240 255 / 0.65);
}

html[data-style="cyber"] .pattern-header-text h1 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff !important;
  text-shadow: 2.5px 0 0 rgb(255 0 160 / 0.9), -2.5px 0 0 rgb(0 240 255 / 0.9),
    0 0 28px rgb(0 240 255 / 0.55) !important;
}

html[data-style="cyber"] .rounded-xl h1 {
  text-transform: none;
  letter-spacing: 0.015em;
}

html[data-style="cyber"] aside h2,
html[data-style="cyber"] .toc-container h2 {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem !important;
}

html[data-style="cyber"] aside h2::after,
html[data-style="cyber"] .toc-container h2::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  margin-left: 0.5rem;
  background: linear-gradient(to right, var(--s-neon-1), transparent);
}

/* ---- 6.6 选中态：左侧霓虹竖条 + 呼吸脉冲 ---- */
@keyframes s-cyber-pulse {
  0%,
  100% {
    box-shadow: -3px 0 0 0 var(--s-neon-1), 0 0 10px rgb(0 240 255 / 0.35);
  }
  50% {
    box-shadow: -3px 0 0 0 var(--s-neon-2), 0 0 22px rgb(255 0 160 / 0.5);
  }
}

html[data-style="cyber"] #filters .\!bg-gray-100,
html[data-style="cyber"] #filters .\!text-gray-900,
html[data-style="cyber"] nav a.\!bg-gray-200 {
  background-color: var(--s-surface-3) !important;
  color: var(--s-text) !important;
  --tw-ring-color: transparent !important;
  border-left: 3px solid var(--s-neon-1) !important;
  animation: s-cyber-pulse 2.6s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

html[data-style="cyber"] a.\!border-indigo-400 {
  background-color: var(--s-surface-3) !important;
  border: 1px solid var(--s-neon-2) !important;
  color: var(--s-text) !important;
  animation: s-cyber-pulse 2.6s ease-in-out infinite;
}

html[data-style="cyber"] .is-active-link {
  background-color: var(--s-surface-2) !important;
  color: var(--s-line-strong) !important;
  border-left: 3px solid var(--s-neon-1) !important;
  border-radius: 0 !important;
  text-shadow: 0 0 8px rgb(0 240 255 / 0.6);
}

/* ---- 6.7 卡片 hover：霓虹描边 + 轻微上浮 ---- */
html[data-style="cyber"] #post-list > .group,
html[data-style="cyber"] #post-list > div > .group {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html[data-style="cyber"] #post-list > .group:hover,
html[data-style="cyber"] div.rounded-xl.bg-white:hover {
  border-color: var(--s-line-strong) !important;
  box-shadow: 0 0 0 1px var(--s-line-strong), 0 0 26px rgb(0 240 255 / 0.28) !important;
}

html[data-style="cyber"] .hover\:ring-2:hover {
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  --tw-ring-shadow: 0 0 #0000 !important;
}

/* ---- 6.8 按钮：hover 扫光 ---- */
html[data-style="cyber"] a.rounded-md.border,
html[data-style="cyber"] .whitespace-no-wrap.rounded-md {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--s-line-strong) !important;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background-color: var(--s-surface-2) !important;
}

html[data-style="cyber"] a.rounded-md.border::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(0 240 255 / 0.45), transparent);
  transition: left 0.55s ease;
}

html[data-style="cyber"] a.rounded-md.border:hover::after {
  left: 130%;
}

html[data-style="cyber"] a.rounded-md.border:hover {
  box-shadow: 0 0 16px rgb(0 240 255 / 0.45) !important;
  color: var(--s-line-strong) !important;
}

html[data-style="cyber"] #btn-scroll-to-top {
  border: 1px solid var(--s-line-strong) !important;
  box-shadow: 0 0 16px rgb(0 240 255 / 0.35) !important;
}

/* ---- 6.9 标签：霓虹切角 ---- */
html[data-style="cyber"] a.rounded-full.border {
  border: 1px solid var(--s-line) !important;
  background-color: var(--s-surface-2) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-style: normal !important;
}

html[data-style="cyber"] a.rounded-full.border:hover {
  border-color: var(--s-neon-2) !important;
  color: var(--s-neon-2) !important;
  box-shadow: 0 0 12px rgb(255 0 160 / 0.4) !important;
}

/* ---- 6.10 分隔线：霓虹渐变 ---- */
html[data-style="cyber"] hr {
  border: 0 !important;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--s-neon-1), var(--s-neon-2), transparent);
}

/* ---- 6.11 正文 ---- */
html[data-style="cyber"] .markdown-body blockquote {
  border-left: 3px solid var(--s-neon-2) !important;
  background: var(--s-surface-2) !important;
  padding: 0.8rem 1rem !important;
}

html[data-style="cyber"] .markdown-body pre {
  border: 1px solid var(--s-line) !important;
  clip-path: var(--s-clip-sm);
  background: rgb(0 0 0 / 0.35) !important;
}

html[data-style="cyber"] .markdown-body a,
html[data-style="cyber"] .tailwind-typography a {
  text-shadow: 0 0 8px rgb(255 0 160 / 0.35);
}

/* ---- 6.12 图片：叠一层极淡扫描线 ---- */
html[data-style="cyber"] .aspect-w-16,
html[data-style="cyber"] #photos .group {
  position: relative;
}

html[data-style="cyber"] .aspect-w-16::after,
html[data-style="cyber"] #photos .group::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgb(0 240 255 / 0.06) 0px,
    rgb(0 240 255 / 0.06) 1px,
    transparent 1px,
    transparent 4px
  );
}

/* ================================================================
 * 7. FIVE 1.1 — 页面级视觉系统与细节增强
 * ----------------------------------------------------------------
 * 这一层补足各风格在页面构图、导航、Hero、内容与图库上的差异，
 * 同时集中处理键盘焦点、移动端、低动态偏好和组件切换质感。
 * ================================================================ */

/* ---- 7.1 Earth：默认风格也进入令牌系统 ---- */
html[data-style="earth"] {
  --s-bg: #f4f7fb;
  --s-surface: rgb(255 255 255 / 0.88);
  --s-surface-2: #edf2f7;
  --s-surface-3: #dde7f2;
  --s-text: #152033;
  --s-text-dim: #45556c;
  --s-text-mute: #8290a4;
  --s-on-accent: #ffffff;
  --s-line: rgb(100 116 139 / 0.18);
  --s-line-strong: rgb(59 130 246 / 0.42);
  --s-accent: #2563eb;
  --s-accent-2: #0d9488;
  --s-hot: #e11d48;
  --s-radius: 1.1rem;
  --s-radius-sm: 0.65rem;
  --s-radius-pill: 9999px;
  --s-radius-avatar: 9999px;
  --s-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 10px 30px rgb(15 23 42 / 0.06);
  --s-shadow-lg: 0 18px 55px rgb(15 23 42 / 0.13);
  --s-shadow-hover: 0 18px 48px rgb(37 99 235 / 0.14);
  --s-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --s-font-head: var(--s-font);
  --s-head-weight: 650;
  --s-head-spacing: -0.025em;
  --s-body-spacing: 0;
  --s-veil: rgb(15 23 42 / 0.48);
  --s-img-filter: saturate(0.94) contrast(1.02);
  --s-img-filter-hover: saturate(1.08) contrast(1.04);
}

html[data-style="earth"].dark {
  --s-bg: #0b1120;
  --s-surface: rgb(20 30 50 / 0.86);
  --s-surface-2: #1a2941;
  --s-surface-3: #243955;
  --s-text: #edf4ff;
  --s-text-dim: #b4c2d6;
  --s-text-mute: #74859f;
  --s-line: rgb(148 163 184 / 0.18);
  --s-line-strong: rgb(96 165 250 / 0.5);
  --s-accent: #60a5fa;
  --s-accent-2: #2dd4bf;
  --s-hot: #fb7185;
  --s-shadow: 0 1px 2px rgb(0 0 0 / 0.16), 0 14px 36px rgb(0 0 0 / 0.2);
  --s-shadow-lg: 0 22px 60px rgb(0 0 0 / 0.38);
  --s-shadow-hover: 0 20px 52px rgb(37 99 235 / 0.2);
  --s-veil: rgb(2 6 23 / 0.7);
}

html[data-style="earth"] body {
  background-image: radial-gradient(circle at 8% 0%, rgb(37 99 235 / 0.09), transparent 30rem),
    radial-gradient(circle at 92% 15%, rgb(13 148 136 / 0.07), transparent 28rem);
  background-attachment: fixed;
}

html[data-style="earth"].dark body {
  background-image: radial-gradient(circle at 8% 0%, rgb(37 99 235 / 0.14), transparent 32rem),
    radial-gradient(circle at 92% 15%, rgb(13 148 136 / 0.1), transparent 30rem);
}

html[data-style="earth"] #header-menu {
  background-color: color-mix(in srgb, var(--s-surface) 82%, transparent) !important;
  border-bottom: 1px solid var(--s-line);
  box-shadow: 0 8px 32px rgb(15 23 42 / 0.06) !important;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

html[data-style="earth"] div.rounded-xl.bg-white,
html[data-style="earth"] .rounded-xl.bg-white.p-3,
html[data-style="earth"] .rounded-xl.bg-white.p-4 {
  border: 1px solid var(--s-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-style="earth"] #post-list > .group,
html[data-style="earth"] #post-list > div > .group {
  isolation: isolate;
}

html[data-style="earth"] #post-list > .group::after,
html[data-style="earth"] #post-list > div > .group::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--s-accent), var(--s-accent-2), transparent);
  transition: opacity 0.3s ease;
}

html[data-style="earth"] #post-list > .group:hover::after,
html[data-style="earth"] #post-list > div > .group:hover::after {
  opacity: 1;
}

/* ---- 7.2 全局层级、焦点与选中文本 ---- */
html[data-style] {
  color-scheme: light;
  scroll-behavior: smooth;
}

html[data-style].dark {
  color-scheme: dark;
}

html[data-style] body {
  min-height: 100vh;
  overflow-x: clip;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[data-style] ::selection {
  color: var(--s-on-accent);
  background: var(--s-accent);
}

html[data-style] :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--s-accent) !important;
  outline-offset: 3px;
}

html[data-style] #header-menu {
  z-index: 30;
}

html[data-style] body > section.mx-auto,
html[data-style] body > main,
html[data-style] body > article {
  position: relative;
}

html[data-style] #post-list > .group,
html[data-style] #post-list > div > .group {
  position: relative;
}

html[data-style] #post-list h1 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

html[data-style] footer {
  border-top: 1px solid var(--s-line);
}

/* ---- 7.3 更具信息感的风格选择面板 ---- */
.style-switcher-menu {
  width: 18rem;
  min-width: 18rem;
  padding: 0.55rem !important;
  border: 1px solid rgb(148 163 184 / 0.24);
  border-radius: 0.9rem !important;
  box-shadow: 0 22px 60px rgb(15 23 42 / 0.2) !important;
  transform-origin: top right;
}

.style-switcher-option {
  position: relative;
  min-height: 3.35rem;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) 1rem;
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  row-gap: 0.05rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
}

.style-switcher-menu li + li {
  margin-top: 0.2rem;
}

.style-switcher-option .style-swatch {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 1.65rem;
  height: 1.65rem;
}

.style-switcher-option .style-name {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.85rem;
  font-weight: 650;
}

.style-switcher-option::after {
  grid-column: 2;
  grid-row: 2;
  color: #94a3b8;
  font-size: 0.66rem;
  line-height: 1rem;
  font-weight: 400;
  white-space: nowrap;
}

.style-switcher-option[data-style-value="earth"]::after { content: "AIR · GLASS · FLOW"; }
.style-switcher-option[data-style-value="terminal"]::after { content: "MONO · CRT · CLI"; }
.style-switcher-option[data-style-value="comic"]::after { content: "INK · DOT · POP"; }
.style-switcher-option[data-style-value="editorial"]::after { content: "SERIF · PAPER · GRID"; }
.style-switcher-option[data-style-value="cyber"]::after { content: "NEON · HUD · DATA"; }

.style-switcher-option .style-check {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  display: grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  border-radius: 9999px;
  color: white;
  background: #2563eb;
}

.style-switcher-option.is-current {
  background: rgb(37 99 235 / 0.08);
}

.dark .style-switcher-option.is-current {
  background: rgb(96 165 250 / 0.12);
}

/* ---- 7.4 每套风格的页面构图签名 ---- */
html[data-style="terminal"] body > section.mx-auto {
  border-left: 1px dashed var(--s-line);
  border-right: 1px dashed var(--s-line);
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

html[data-style="terminal"] #post-list {
  gap: 1rem !important;
}

html[data-style="terminal"] #post-list > .group::before,
html[data-style="terminal"] #post-list > div > .group::before {
  content: "OUTPUT";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  padding: 0.12rem 0.35rem;
  color: var(--s-bg);
  background: var(--s-text);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

html[data-style="terminal"] .pattern-header-text {
  align-items: flex-start !important;
  max-width: 80rem;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-inline: 1.5rem;
}

html[data-style="comic"] body > section.mx-auto {
  padding-top: 0.5rem;
}

html[data-style="comic"] #post-list {
  gap: 2rem !important;
}

html[data-style="comic"] #post-list > .group:nth-child(3n + 1)::before,
html[data-style="comic"] #post-list > div:nth-child(3n + 1) > .group::before {
  content: "WOW!";
  position: absolute;
  z-index: 3;
  top: -0.85rem;
  right: 0.75rem;
  padding: 0.18rem 0.55rem;
  color: #12100c;
  background: #ffd400;
  border: 2px solid var(--s-ink);
  box-shadow: 2px 2px 0 var(--s-ink);
  transform: rotate(4deg);
  font-size: 0.68rem;
  font-weight: 900;
}

html[data-style="comic"] .pattern-header-text {
  transform: translateY(-45%) rotate(-1deg);
}

html[data-style="editorial"] body > section.mx-auto {
  max-width: 90rem !important;
}

html[data-style="editorial"] #post-list {
  gap: 0 !important;
  border-top: 3px double var(--s-line-strong);
}

html[data-style="editorial"] #post-list > .group,
html[data-style="editorial"] #post-list > div > .group {
  padding-block: 1rem;
}

html[data-style="editorial"] #post-list > .group:nth-child(odd),
html[data-style="editorial"] #post-list > div:nth-child(odd) > .group {
  padding-right: 1rem;
}

html[data-style="editorial"] #post-list > .group:nth-child(even),
html[data-style="editorial"] #post-list > div:nth-child(even) > .group {
  padding-left: 1rem;
  border-left: 1px solid var(--s-line) !important;
}

html[data-style="editorial"] .pattern-header-text {
  align-items: flex-start !important;
  max-width: 78rem;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-inline: 1.5rem;
}

html[data-style="editorial"] .pattern-header-text h1 {
  max-width: 18ch;
  text-align: left !important;
}

html[data-style="cyber"] body > section.mx-auto {
  max-width: 84rem !important;
}

html[data-style="cyber"] #post-list {
  gap: 1.35rem !important;
}

html[data-style="cyber"] #post-list > .group::before,
html[data-style="cyber"] #post-list > div > .group::before {
  content: "// DATA";
  position: absolute;
  z-index: 3;
  top: 0.35rem;
  right: 1.1rem;
  color: var(--s-neon-1);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-shadow: 0 0 8px currentColor;
}

html[data-style="cyber"] .pattern-header-text {
  align-items: flex-end !important;
  max-width: 82rem;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-inline: 1.5rem;
}

/* ---- 7.5 Hero、内容页、相册和归档的差异化 ---- */
html[data-style] body > section:first-of-type [class*="bg-cover"] {
  background-blend-mode: soft-light, normal;
}

html[data-style="earth"] .pattern-header-text h1 {
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 30px rgb(0 0 0 / 0.34) !important;
}

html[data-style="earth"] article#content,
html[data-style="earth"] .markdown-body,
html[data-style="earth"] .tailwind-typography {
  line-height: 1.82;
}

html[data-style] article#content :where(img, video) {
  border-radius: var(--s-radius-sm);
}

html[data-style="terminal"] article#content :where(img, video),
html[data-style="editorial"] article#content :where(img, video) {
  border-radius: 0;
}

html[data-style="terminal"] article#content img {
  border: 1px dashed var(--s-line-strong);
}

html[data-style="editorial"] article#content {
  max-width: 76ch;
  margin-inline: 0; /* 正文靠左顶格，不在页面中居中 */
  text-align: left; /* 显式左对齐：父容器（署名卡）的居中不得继承到正文 */
}

html[data-style="cyber"] article#content :where(img, video) {
  clip-path: var(--s-clip-sm);
}

html[data-style="earth"] #photos .group,
html[data-style="earth"] .rounded.border.border-gray-300 {
  box-shadow: var(--s-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

html[data-style="earth"] #photos .group:hover,
html[data-style="earth"] .rounded.border.border-gray-300:hover {
  transform: translateY(-3px);
  box-shadow: var(--s-shadow-hover);
}

html[data-style="comic"] #photos .group:nth-child(even) {
  transform: rotate(1deg);
}

html[data-style="comic"] #photos .group:nth-child(odd) {
  transform: rotate(-1deg);
}

html[data-style="editorial"] #photos {
  gap: 1px !important;
  background: var(--s-line);
  border: 1px solid var(--s-line);
}

html[data-style="editorial"] #photos .group {
  border-radius: 0 !important;
}

/* ---- 7.6 精细响应式：保留原网格设置，仅调整视觉节奏 ---- */
@media (min-width: 768px) {
  html[data-style="editorial"] body > section.mx-auto.grid {
    grid-template-columns: minmax(0, 1fr) 18rem;
    column-gap: 2.5rem;
  }

  html[data-style="cyber"] body > section.mx-auto.grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

  html[data-style="terminal"] body > section.mx-auto.grid {
    column-gap: 1rem;
  }
}

@media (max-width: 767px) {
  .style-switcher-menu {
    position: fixed !important;
    top: 4.25rem !important;
    right: 0.75rem !important;
    left: auto !important;
    width: min(18rem, calc(100vw - 1.5rem));
    min-width: 0;
  }

  html[data-style] body > section.mx-auto {
    margin-top: 1rem !important;
  }

  html[data-style="comic"] #post-list {
    padding-inline: 0.2rem;
  }

  html[data-style="editorial"] #post-list > .group,
  html[data-style="editorial"] #post-list > div > .group {
    padding-inline: 0 !important;
    border-left: 0 !important;
  }

  html[data-style="terminal"] .pattern-header-text,
  html[data-style="editorial"] .pattern-header-text,
  html[data-style="cyber"] .pattern-header-text {
    width: 100%;
  }

  html[data-style] .pattern-header-text h1 {
    font-size: clamp(2rem, 10vw, 2.5rem) !important;
    line-height: 1.08;
  }

  html[data-style="comic"] .pattern-header-text {
    padding-inline: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-style] {
    scroll-behavior: auto;
  }

  html[data-style] *,
  html[data-style] *::before,
  html[data-style] *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@supports not (color: color-mix(in srgb, white, black)) {
  html[data-style="earth"] #header-menu {
    background-color: var(--s-surface) !important;
  }
}

/* ================================================================
 * 8. 布局引擎（v2.0 结构级差异化）
 * ----------------------------------------------------------------
 * 同一套 DOM，通过 grid 重排实现每套风格不同的「页面骨架」：
 *   terminal  侧边栏移到左侧 · 文章列表强制单列日志
 *   comic     Bento 拼贴：首卡跨双栏
 *   editorial 无侧边栏 · 报纸头版：头条通栏 + 双栏小稿
 *   cyber     斜切网格 · 中列交错位移
 * ================================================================ */

/* ---- 8.1 Terminal：左栏系统面板 + 单列命令日志 ---- */
@media (min-width: 768px) {
  html[data-style="terminal"] body > section.mx-auto.grid {
    grid-template-columns: 18rem minmax(0, 1fr) !important;
    column-gap: 1.25rem !important;
  }

  html[data-style="terminal"] body > section.mx-auto.grid > div.z-0 {
    grid-column: 2;
    grid-row: 1;
  }

  html[data-style="terminal"] body > section.mx-auto.grid > aside {
    grid-column: 1;
    grid-row: 1;
    width: 100% !important;
  }
}

html[data-style="terminal"] #post-list {
  grid-template-columns: minmax(0, 1fr) !important;
}

html[data-style="terminal"] #post-list > .group,
html[data-style="terminal"] #post-list > div > .group {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px dashed var(--s-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.7rem 0.4rem 1.05rem;
}

html[data-style="terminal"] #post-list .aspect-w-16 {
  display: none !important;
}

html[data-style="terminal"] #post-list h1 {
  font-size: 1.3rem !important;
}

/* 终端是「窗口」不是「卡片」，去掉原版 hover 上移 */
html[data-style="terminal"] .hover\:-translate-y-1:hover {
  --tw-translate-y: 0 !important;
}

html[data-style="terminal"] #post-list .p-4 {
  padding-left: 0.35rem;
}

/* ---- 8.2 Comic：Bento 拼贴，首卡跨双栏 ----
      md+ 强制双列：无论用户选择 grid_2/grid_3/single，
      Comic 都以双列拼贴呈现（single 布局下 span 2 才合法，不会溢出）。 */
@media (min-width: 768px) {
  html[data-style="comic"] #post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.6rem !important;
  }

  html[data-style="comic"] #post-list > .group:first-child,
  html[data-style="comic"] #post-list > div:first-child > .group:first-child {
    grid-column: span 2;
  }

  html[data-style="comic"] #post-list > .group:first-child h1,
  html[data-style="comic"] #post-list > div:first-child > .group:first-child h1 {
    font-size: 1.8rem !important;
  }
}

/* ---- 8.3 Editorial：报纸头版（保留右栏「专栏」，小部件功能完整） ---- */
@media (min-width: 768px) {
  html[data-style="editorial"] #post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* 头条：通栏 + 大字号 */
  html[data-style="editorial"] #post-list > .group:first-child,
  html[data-style="editorial"] #post-list > div:first-child > .group:first-child {
    grid-column: 1 / -1;
    border-bottom: 2px solid var(--s-line-strong) !important;
    margin-bottom: 0.4rem;
  }

  html[data-style="editorial"] #post-list > .group:first-child h1,
  html[data-style="editorial"] #post-list > div:first-child > .group:first-child h1 {
    font-size: 2.05rem !important;
    line-height: 1.18;
    max-width: 26ch;
  }

  /* 小稿去封面，纯文字分栏 */
  html[data-style="editorial"] #post-list > .group:not(:first-child) .aspect-w-16,
  html[data-style="editorial"] #post-list > div:not(:first-child) > .group .aspect-w-16 {
    display: none !important;
  }

  /* 双栏发丝线：右栏左侧加栏线（头条占首行后的奇数列为右栏） */
  html[data-style="editorial"] #post-list > .group:nth-child(odd):not(:first-child),
  html[data-style="editorial"] #post-list > div:nth-child(odd):not(:first-child) > .group {
    padding-right: 0 !important;
    border-left: 1px solid var(--s-line) !important;
    padding-left: 1rem !important;
  }

  html[data-style="editorial"] #post-list > .group:nth-child(even),
  html[data-style="editorial"] #post-list > div:nth-child(even) > .group {
    padding-left: 0 !important;
    padding-right: 1rem !important;
    border-left: 0 !important;
  }
}

/* ---- 8.4 Cyber：斜切网格 · 中列交错位移 ---- */
@media (min-width: 1024px) {
  html[data-style="cyber"] #post-list > .group:nth-child(3n + 2) {
    transform: translateY(0.9rem);
  }
}

/* ================================================================
 * 9. 结构块与固定层（v2.0 风格专属 DOM 的视觉定义）
 * ----------------------------------------------------------------
 * 所有结构块默认隐藏，仅由对应 data-style 点亮；
 * 全部为纯装饰：无交互、无 ID 复用、无业务逻辑。
 * ================================================================ */

/* ---- 9.0 默认隐藏 ---- */
#comic-ticker,
#editorial-masthead,
#reading-progress,
#cyber-toast,
#cyber-rail-left,
#cyber-rail-right,
#term-status {
  display: none;
}

/* ---- 9.1 切换器被后台关闭时隐藏入口 ---- */
html[data-style-switcher="off"] .style-switcher {
  display: none !important;
}

/* 各风格下切换器面板的轮廓统一（覆盖 7.3 的默认圆角） */
html[data-style="terminal"] .style-switcher-menu,
html[data-style="editorial"] .style-switcher-menu,
html[data-style="cyber"] .style-switcher-menu {
  border-radius: 0 !important;
}

/* ---- 9.2 Comic 滚动字幕条 ---- */
html[data-style="comic"] #comic-ticker {
  display: block;
  overflow: hidden;
  background: #ffd400;
  color: #12100c;
  border-bottom: 4px solid #12100c;
}

.tf-ticker-track {
  display: flex;
  width: max-content;
  /* 右对齐起步：内容从屏幕右边缘进入，向左完整穿越（经典 marquee） */
  margin-left: auto;
  animation: tf-ticker-scroll 26s linear infinite;
}

.tf-ticker-track > span,
.tf-ticker-track > span a {
  padding-right: 3rem;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* 站名：加粗 + 波浪下划线 */
.tf-ticker-track .tf-ticker-site {
  text-transform: uppercase;
  text-decoration: underline wavy 2px;
  text-underline-offset: 4px;
}

/* 标签词：红色强调 */
.tf-ticker-track .tf-ticker-label {
  color: #e5322d;
}

/* 文章标题：黑色链接，hover 变红 + 波浪下划线 */
.tf-ticker-track .tf-ticker-title {
  color: #12100c;
  text-decoration: none;
  transition: color 0.15s ease;
}

.tf-ticker-track a.tf-ticker-title:hover {
  color: #e5322d;
  text-decoration: underline wavy 2px;
  text-underline-offset: 3px;
}

.tf-ticker-track a.tf-ticker-title:focus-visible {
  outline: 2px solid #12100c;
  outline-offset: 2px;
}

/* 分类名：蓝色强调 */
.tf-ticker-track .tf-ticker-cat {
  color: #1b7ced;
  font-weight: 900;
}

#comic-ticker:hover .tf-ticker-track {
  animation-play-state: paused;
}

@keyframes tf-ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---- 9.3 Editorial 报头条（日期 / 刊名 / 期号） ---- */
html[data-style="editorial"] #editorial-masthead {
  display: block;
  background: var(--s-bg);
  border-bottom: 2px solid var(--s-line-strong);
  font-family: var(--s-font-head);
}

.tf-mast-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0.85rem 1.5rem 0.6rem;
}

.tf-mast-date,
.tf-mast-issue {
  font-size: 0.74rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--s-text-mute);
  white-space: nowrap;
}

.tf-mast-slogan {
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--s-text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 报头中的站点名：交给 header 的 #site-title（衬线报头字体），不重复渲染 */
html[data-style="editorial"] #site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  .tf-mast-meta {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.3rem;
    padding: 0.6rem 1rem 0.45rem;
  }

  .tf-mast-slogan {
    order: 3;
    width: 100%;
    text-align: center;
  }
}

/* ---- 9.3b Editorial 右栏「专栏」：小部件功能完整，报纸化呈现 ---- */
html[data-style="editorial"] body > section.mx-auto.grid > aside {
  border-left: 1px solid var(--s-line);
  padding-left: 1.5rem;
}

@media (max-width: 767px) {
  html[data-style="editorial"] body > section.mx-auto.grid > aside {
    border-left: 0;
    padding-left: 0;
  }
}

/* ---- 9.4 Terminal 底部状态栏 ---- */
html[data-style="terminal"] #term-status {
  display: flex;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  align-items: center;
  justify-content: space-between;
  padding: 0.28rem 1rem;
  border-top: 1px solid var(--s-line-strong);
  background: var(--s-surface);
  font-family: var(--s-font);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--s-text-dim);
}

html[data-style="terminal"].dark #term-status {
  box-shadow: 0 -1px 14px rgb(51 255 153 / 0.18);
}

html[data-style="terminal"] body {
  padding-bottom: 2.5rem;
}

html[data-style="terminal"] #btn-scroll-to-top {
  bottom: 3.25rem !important;
  z-index: 45 !important;
}

.tf-term-caret {
  color: var(--s-accent);
  animation: s-term-blink 1.1s steps(1) infinite;
}

/* 终端窗口三色指示灯（红黄绿） */
html[data-style="terminal"] #term-status .tf-term-left::before {
  content: "\25CF";
  margin-right: 0.9rem;
  font-size: 0.5rem;
  vertical-align: 0.12em;
  color: #ff5f56;
  text-shadow: 10px 0 0 #ffbd2e, 20px 0 0 #27c93f;
}

/* ---- 9.5 Cyber HUD 侧轨 ---- */
#cyber-rail-left,
#cyber-rail-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.3rem;
  border: 1px solid var(--s-line);
  background: rgb(12 20 40 / 0.72);
  background: color-mix(in srgb, var(--s-surface) 60%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  writing-mode: vertical-rl;
  font-family: var(--s-font);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--s-text-mute);
}

#cyber-rail-left {
  left: 0.6rem;
}

#cyber-rail-right {
  right: 0.6rem;
}

.tf-rail-head {
  color: var(--s-neon-1);
  text-shadow: 0 0 8px rgb(0 240 255 / 0.55);
}

#cyber-rail-left b,
#cyber-rail-right b {
  color: var(--s-neon-2);
  font-weight: 700;
  text-shadow: 0 0 8px rgb(255 0 160 / 0.5);
}

@media (min-width: 1280px) {
  html[data-style="cyber"] #cyber-rail-left,
  html[data-style="cyber"] #cyber-rail-right {
    display: flex;
  }
}

/* ---- 9.6 Cyber 首屏 Toast ---- */
html[data-style="cyber"] #cyber-toast {
  display: flex;
}

#cyber-toast {
  position: fixed;
  top: 4.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--s-line-strong);
  background: var(--s-surface);
  clip-path: var(--s-clip-sm);
  font-family: var(--s-font);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--s-text-dim);
  opacity: 0;
  animation: tf-toast 4.4s ease-out 0.4s 1 forwards;
  pointer-events: none;
}

@keyframes tf-toast {
  0% {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
  8%,
  76% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
}

.tf-toast-1 {
  color: var(--s-neon-1);
  text-shadow: 0 0 10px currentColor;
}

.tf-toast-2 {
  font-size: 0.58rem;
  color: var(--s-neon-2);
  text-shadow: 0 0 10px currentColor;
}

/* ---- 9.7 Earth 阅读进度条 ---- */
html[data-style="earth"] #reading-progress {
  display: block;
}

#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--s-accent), var(--s-accent-2));
  box-shadow: 0 0 12px rgb(37 99 235 / 0.45);
  pointer-events: none;
}

/* Cyber 版进度条：霓虹双色 */
html[data-style="cyber"] #reading-progress {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--s-neon-1), var(--s-neon-2));
  box-shadow: 0 0 14px rgb(0 240 255 / 0.55), 0 0 26px rgb(255 0 160 / 0.35);
}

/* ---- 9.8 Cyber：顶栏扫描线 ---- */
@keyframes s-cyber-scan {
  0% {
    top: -2px;
    opacity: 0;
  }
  12%,
  88% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 2px);
    opacity: 0;
  }
}

html[data-style="cyber"] #header-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--s-neon-1), var(--s-neon-2), transparent);
  animation: s-cyber-scan 5.5s linear infinite;
  pointer-events: none;
}

/* ================================================================
 * 10. 页型排版（Hero / 内容页 / 404 / 插件页的差异化收尾）
 * ================================================================ */

/* ---- 10.1 首页站点标题 Hero：五套风格各自签名 ---- */
html[data-style="editorial"] body > section:first-of-type .h-96 span.text-5xl {
  font-family: var(--s-font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgb(255 255 255 / 0.55);
  padding-bottom: 0.25rem;
}

html[data-style="terminal"] body > section:first-of-type .h-96 span.text-5xl {
  font-family: var(--s-font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

html[data-style="terminal"] body > section:first-of-type .h-96 span.text-5xl::after {
  content: "\2588";
  margin-left: 0.18em;
  color: var(--s-accent);
  animation: s-term-blink 1.1s steps(1) infinite;
}

html[data-style="comic"] body > section:first-of-type .h-96 span.text-5xl {
  text-transform: uppercase;
  -webkit-text-stroke: 2px #12100c;
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 #12100c;
}

/* 漫画式弹跳入场（reduced-motion 时被全局规则禁用） */
@keyframes tf-comic-pop {
  0% {
    transform: scale(0.55) rotate(-5deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.12) rotate(2deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

html[data-style="comic"] body > section:first-of-type .h-96 span.text-5xl,
html[data-style="comic"] .pattern-header-text h1 {
  animation: tf-comic-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
}

html[data-style="cyber"] body > section:first-of-type .h-96 span.text-5xl {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: s-cyber-glitch 3.4s steps(1) infinite;
}

/* ---- 10.2 Terminal：首页 Hero 开机序列 + 内容页命令前缀 ---- */
html[data-style="terminal"] body > section:first-of-type > div.h-96 {
  position: relative;
}

html[data-style="terminal"] body > section:first-of-type > div.h-96::before {
  content: "> five boot sequence …\A   load modules ......... OK\A   init interface ....... OK";
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  z-index: 2;
  font-family: var(--s-font);
  font-size: 0.7rem;
  line-height: 1.75;
  letter-spacing: 0.08em;
  color: var(--s-text);
  opacity: 0.78;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.55);
  white-space: pre;
  pointer-events: none;
}

html[data-style="terminal"].dark body > section:first-of-type > div.h-96::before {
  text-shadow: 0 0 10px rgb(51 255 153 / 0.55);
}

html[data-style="terminal"] .pattern-header-text::before {
  content: "$ ./halo --open";
  align-self: flex-start;
  margin: 0 0 0.35rem 0.35rem;
  font-family: var(--s-font);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--s-text-mute);
}

html[data-style="terminal"].dark .pattern-header-text::before {
  color: var(--s-accent);
  text-shadow: 0 0 10px rgb(51 255 153 / 0.6);
}

html[data-style="terminal"] .pattern-header-text h1::after {
  content: "\2588";
  margin-left: 0.18em;
  color: var(--s-accent);
  animation: s-term-blink 1.1s steps(1) infinite;
}

/* ---- 10.3 Cyber：标题 glitch 故障抖动 ---- */
@keyframes s-cyber-glitch {
  0%,
  100% {
    text-shadow: 2.5px 0 0 rgb(255 0 160 / 0.9), -2.5px 0 0 rgb(0 240 255 / 0.9),
      0 0 28px rgb(0 240 255 / 0.55);
  }
  25% {
    text-shadow: -3px 0 0 rgb(255 0 160 / 0.9), 3px 0 0 rgb(0 240 255 / 0.9),
      0 0 30px rgb(255 0 160 / 0.5);
  }
  50% {
    text-shadow: 2px 2px 0 rgb(255 0 160 / 0.85), -2px -2px 0 rgb(0 240 255 / 0.85),
      0 0 34px rgb(0 240 255 / 0.6);
  }
  75% {
    text-shadow: -2px 1px 0 rgb(255 0 160 / 0.9), 2px -1px 0 rgb(0 240 255 / 0.9),
      0 0 26px rgb(255 0 160 / 0.5);
  }
}

html[data-style="cyber"] .pattern-header-text h1 {
  animation: s-cyber-glitch 3.4s steps(1) infinite;
}

/* ---- 10.4 页脚：每套风格收尾签名 ---- */
html[data-style="terminal"] footer {
  background: transparent !important;
  border-top: 1px dashed var(--s-line-strong) !important;
}

html[data-style="terminal"] footer::before {
  content: "> connection closed · exit 0";
  display: block;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.9rem 1.5rem 0;
  font-family: var(--s-font);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--s-text-mute);
}

html[data-style="editorial"] footer {
  background: var(--s-bg) !important;
}

html[data-style="editorial"] footer::before {
  content: "· · · END OF ISSUE · · ·";
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.28em;
  color: var(--s-text-mute);
  padding: 0 1rem 0.8rem;
}

html[data-style="comic"] footer::before {
  content: "★ THE END ★";
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--s-accent);
  -webkit-text-stroke: 0.5px var(--s-ink);
  padding: 0 1rem 0.6rem;
}

html[data-style="cyber"] footer {
  background: color-mix(in srgb, var(--s-surface) 72%, transparent) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--s-line-strong) !important;
  box-shadow: 0 -1px 26px rgb(0 240 255 / 0.16) !important;
}

html[data-style="cyber"] footer::after {
  content: "/// END OF TRANSMISSION";
  display: block;
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  color: var(--s-neon-1);
  text-shadow: 0 0 8px currentColor;
  padding: 0.4rem 0 0.2rem;
}

/* ---- 10.5 内容页：杂志眉线 + 文末落款 ---- */
html[data-style="editorial"] article#content {
  border-top: 1px solid var(--s-line-strong);
  padding-top: 1.1rem;
}

html[data-style="editorial"] article#content::after {
  content: "—— 完 ——";
  display: block;
  margin-top: 2.6rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.42em;
  color: var(--s-text-mute);
}

/* ---- 10.6 友链卡片 ---- */
html[data-style="comic"] .rounded.border.border-gray-300,
html[data-style="comic"] .rounded-xl.border.border-gray-300 {
  border: 3px solid var(--s-ink) !important;
  box-shadow: 3px 3px 0 var(--s-ink) !important;
}

html[data-style="terminal"] .rounded.border.border-gray-300,
html[data-style="terminal"] .rounded-xl.border.border-gray-300 {
  border: 1px dashed var(--s-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-style="cyber"] .rounded.border.border-gray-300,
html[data-style="cyber"] .rounded-xl.border.border-gray-300 {
  border: 1px solid var(--s-line) !important;
  background: var(--s-surface-2) !important;
  clip-path: var(--s-clip-sm);
}

/* ---- 10.7 图库 ---- */
html[data-style="comic"] #photos .group {
  background: #fffdf6;
  padding: 6px 6px 8px;
  border: 2px solid var(--s-ink);
  box-shadow: 3px 3px 0 var(--s-ink);
}

html[data-style="terminal"] #photos .group img {
  border: 1px dashed var(--s-line-strong);
  padding: 2px;
}

html[data-style="cyber"] #photos img {
  clip-path: var(--s-clip-sm);
}

/* ---- 10.8 瞬间 ---- */
html[data-style="comic"] .moment-media img {
  border: 3px solid var(--s-ink);
  box-shadow: 3px 3px 0 var(--s-ink);
}

html[data-style="terminal"] .moment-media img {
  border: 1px dashed var(--s-line-strong);
}

html[data-style="cyber"] .moment-media img {
  clip-path: var(--s-clip-sm);
}

html[data-style="editorial"] .moment-media img {
  border: 1px solid var(--s-line);
}

/* ---- 10.9 404 页面 ---- */
html[data-style="terminal"] .text-9xl {
  font-family: var(--s-font);
}

html[data-style="terminal"] .text-9xl::before {
  content: "command not found: ";
  font-size: 0.26em;
  vertical-align: middle;
  letter-spacing: 0.1em;
  color: var(--s-text-mute);
}

html[data-style="comic"] .text-9xl {
  color: #ffd400 !important;
  -webkit-text-stroke: 2px #12100c;
  text-shadow: 5px 5px 0 #12100c;
  text-transform: uppercase;
}

html[data-style="editorial"] .text-9xl {
  font-family: var(--s-font-head);
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--s-line-strong);
  display: inline-block;
  padding-bottom: 0.2rem;
}

html[data-style="cyber"] .text-9xl {
  color: var(--s-line-strong) !important;
  animation: s-cyber-glitch 3.4s steps(1) infinite;
}

/* ================================================================
 * 11. 动效与无障碍细节
 * ================================================================ */

/* 减少动态偏好：全局 7.2 已统一禁用动画；这里只补充静态可读性 */
html[data-style] .tf-block,
html[data-style] .tf-fixed {
  -webkit-tap-highlight-color: transparent;
}

/* ================================================================
 * 12. 打印样式
 * ================================================================ */
@media print {
  html[data-style] #header-menu,
  html[data-style] aside,
  html[data-style] #btn-scroll-to-top,
  html[data-style] .style-switcher,
  html[data-style] #term-status,
  html[data-style] #cyber-rail-left,
  html[data-style] #cyber-rail-right,
  html[data-style] #cyber-toast,
  html[data-style] #reading-progress,
  html[data-style] #comic-ticker,
  html[data-style] #editorial-masthead {
    display: none !important;
  }

  html[data-style] body {
    background: #ffffff !important;
    padding-bottom: 0 !important;
  }

  html[data-style] div.rounded-xl.bg-white,
  html[data-style] .bg-white {
    background: #ffffff !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  html[data-style="editorial"] body > section.mx-auto.grid {
    max-width: none !important;
  }
}

/* ================================================================
 * 13. COMIC 漫画增强（v2.0.6）
 * ----------------------------------------------------------------
 * 在既有粗描边/网点/歪斜基础上，补全漫画书的核心视觉语言：
 * 拟声词（POW! BAM! ZAP!）、双线分格框、对话框尾巴、胶带贴纸、
 * 斜纹分隔线、荧光笔高亮、波浪下划线、stagger 入场动画等。
 * 全部纯装饰，不影响任何功能；reduced-motion 下自动静止。
 * ================================================================ */

/* ---- 13.1 修复：WOW! 贴纸被卡片 overflow-hidden 裁切 → 移到卡片内部，
       并给 hover 加旋转动画；首卡改为 NEW! ---- */
html[data-style="comic"] #post-list > .group:nth-child(3n + 1)::before,
html[data-style="comic"] #post-list > div:nth-child(3n + 1) > .group::before {
  top: 0.55rem;
  right: 0.65rem;
  transform: rotate(6deg);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[data-style="comic"] #post-list > .group:nth-child(3n + 1):hover::before,
html[data-style="comic"] #post-list > div:nth-child(3n + 1) > .group:hover::before {
  transform: rotate(14deg) scale(1.18);
}

html[data-style="comic"] #post-list > .group:first-child::before,
html[data-style="comic"] #post-list > div:first-child > .group:first-child::before {
  content: "NEW!";
  top: 0.55rem;
  right: 0.65rem;
  transform: rotate(-5deg);
}

html[data-style="comic"] #post-list > .group:first-child:hover::before,
html[data-style="comic"] #post-list > div:first-child > .group:first-child:hover::before {
  transform: rotate(-12deg) scale(1.18);
}

/* ---- 13.2 hover 拟声词：POW! / BAM! / ZAP! 弹出 ---- */
html[data-style="comic"] #post-list > .group::after,
html[data-style="comic"] #post-list > div > .group::after {
  content: "POW!";
  position: absolute;
  z-index: 4;
  top: 42%;
  right: 9%;
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--s-accent);
  -webkit-text-stroke: 1px var(--s-ink);
  text-shadow: 2px 2px 0 var(--s-ink);
  transform: rotate(-8deg) scale(0);
  opacity: 0;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.12s ease;
  pointer-events: none;
}

html[data-style="comic"] #post-list > .group:nth-child(3n + 2)::after,
html[data-style="comic"] #post-list > div:nth-child(3n + 2) > .group::after {
  content: "BAM!";
  top: 38%;
  right: 12%;
  transform: rotate(6deg) scale(0);
  color: #1b7ced;
}

html[data-style="comic"] #post-list > .group:nth-child(3n + 3)::after,
html[data-style="comic"] #post-list > div:nth-child(3n + 3) > .group::after {
  content: "ZAP!";
  top: 44%;
  right: 7%;
  transform: rotate(-12deg) scale(0);
  color: #7a3ce8;
}

html[data-style="comic"] #post-list > .group:hover::after,
html[data-style="comic"] #post-list > div > .group:hover::after {
  transform: rotate(-6deg) scale(1);
  opacity: 1;
}

html[data-style="comic"] #post-list > .group:nth-child(3n + 2):hover::after {
  transform: rotate(6deg) scale(1);
}

html[data-style="comic"] #post-list > .group:nth-child(3n + 3):hover::after {
  transform: rotate(-12deg) scale(1);
}

/* ---- 13.3 双线分格框：外粗黑 + 内白线（真正的漫画格） ---- */
html[data-style="comic"] div.rounded-xl.bg-white,
html[data-style="comic"] .rounded-xl.bg-white.p-3,
html[data-style="comic"] .rounded-xl.bg-white.p-4 {
  box-shadow: 3px 3px 0 var(--s-ink), inset 0 0 0 2px var(--s-surface);
}

/* ---- 13.4 封面插图白框 ---- */
html[data-style="comic"] #post-list .aspect-w-16 {
  box-shadow: inset 0 0 0 4px #fffdf6, inset 0 0 0 5px var(--s-ink);
}

html[data-style="comic"].dark #post-list .aspect-w-16 {
  box-shadow: inset 0 0 0 4px var(--s-surface), inset 0 0 0 5px var(--s-ink);
}

/* ---- 13.5 卡片入场：逐个弹跳（保持歪斜姿态） ---- */
html[data-style="comic"] #post-list > .group,
html[data-style="comic"] #post-list > div > .group {
  --tf-rot: -0.7deg;
}

html[data-style="comic"] #post-list > .group:nth-child(even),
html[data-style="comic"] #post-list > div:nth-child(even) > .group {
  --tf-rot: 0.8deg;
}

@keyframes tf-comic-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(var(--tf-rot, 0deg));
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--tf-rot, 0deg));
  }
}

html[data-style="comic"] #post-list > .group,
html[data-style="comic"] #post-list > div > .group {
  animation: tf-comic-card-in 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

html[data-style="comic"] #post-list > .group:nth-child(2),
html[data-style="comic"] #post-list > div:nth-child(2) > .group { animation-delay: 55ms; }
html[data-style="comic"] #post-list > .group:nth-child(3),
html[data-style="comic"] #post-list > div:nth-child(3) > .group { animation-delay: 110ms; }
html[data-style="comic"] #post-list > .group:nth-child(4),
html[data-style="comic"] #post-list > div:nth-child(4) > .group { animation-delay: 165ms; }
html[data-style="comic"] #post-list > .group:nth-child(5),
html[data-style="comic"] #post-list > div:nth-child(5) > .group { animation-delay: 220ms; }
html[data-style="comic"] #post-list > .group:nth-child(6),
html[data-style="comic"] #post-list > div:nth-child(6) > .group { animation-delay: 275ms; }
html[data-style="comic"] #post-list > .group:nth-child(7),
html[data-style="comic"] #post-list > div:nth-child(7) > .group { animation-delay: 330ms; }
html[data-style="comic"] #post-list > .group:nth-child(8),
html[data-style="comic"] #post-list > div:nth-child(8) > .group { animation-delay: 385ms; }
html[data-style="comic"] #post-list > .group:nth-child(9),
html[data-style="comic"] #post-list > div:nth-child(9) > .group { animation-delay: 440ms; }

/* ---- 13.6 引用对话框：加三角尾巴（双层描边） ---- */
html[data-style="comic"] .markdown-body blockquote::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  bottom: -1rem;
  border: 0.85rem solid transparent;
  border-top-color: var(--s-surface-2);
  border-bottom: 0;
  z-index: 1;
}

html[data-style="comic"] .markdown-body blockquote::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  bottom: -1.15rem;
  border: 1rem solid transparent;
  border-top-color: var(--s-ink);
  border-bottom: 0;
}

/* ---- 13.7 小部件标题：半透明胶带贴纸 ---- */
html[data-style="comic"] aside > div {
  position: relative;
}

html[data-style="comic"] aside > div::after {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 4.6rem;
  height: 0.85rem;
  background: rgb(255 212 0 / 0.7);
  border-left: 2px dashed rgb(18 16 12 / 0.4);
  border-right: 2px dashed rgb(18 16 12 / 0.4);
  z-index: 2;
  pointer-events: none;
}

/* ---- 13.8 斜纹分隔线（漫画阴影线） ---- */
html[data-style="comic"] hr {
  border: 0 !important;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--s-ink) 0 4px,
    transparent 4px 9px
  );
}

/* ---- 13.9 荧光笔：正文强调 + 黄色选区 ---- */
html[data-style="comic"] .markdown-body strong,
html[data-style="comic"] .tailwind-typography strong {
  background: linear-gradient(transparent 58%, rgb(255 212 0 / 0.62) 58%);
  font-weight: 800;
  padding: 0 0.08em;
}

html[data-style="comic"] ::selection {
  background: #ffd400;
  color: #12100c;
}

/* ---- 13.10 漫画滚动条 ---- */
html[data-style="comic"] ::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}

html[data-style="comic"] ::-webkit-scrollbar-thumb {
  background: var(--s-ink);
  border: 3px solid var(--s-bg);
  border-radius: 0;
}

html[data-style="comic"] ::-webkit-scrollbar-track {
  background: var(--s-bg);
}

/* ---- 13.11 链接：波浪下划线 ---- */
html[data-style="comic"] .markdown-body a,
html[data-style="comic"] .tailwind-typography a {
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--s-accent);
}

/* ---- 13.12 分类标题牌：黄底黑字小牌 ---- */
html[data-style="comic"] #post-list a.mr-1 {
  display: inline-block;
  margin-right: 0.4rem !important;
  padding: 0 0.5rem;
  background: #ffd400;
  color: #12100c !important;
  border: 2px solid var(--s-ink);
  box-shadow: 2px 2px 0 var(--s-ink);
  font-size: 0.7rem !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transform: rotate(-1.5deg);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}

html[data-style="comic"] #post-list a.mr-1:hover {
  transform: rotate(2deg) translateY(-1px);
  box-shadow: 3px 3px 0 var(--s-ink);
}

/* ---- 13.13 文章标题 hover：描边变粗 + 变红 ---- */
html[data-style="comic"] #post-list h1 a:hover {
  color: var(--s-accent) !important;
  -webkit-text-stroke: 1px var(--s-ink);
}

/* ---- 13.14 首页 Hero：漂浮拟声词 ---- */
html[data-style="comic"] body > section:first-of-type > div.h-96 {
  position: relative;
}

html[data-style="comic"] body > section:first-of-type > div.h-96::after {
  content: "POW!";
  position: absolute;
  right: 5%;
  bottom: 10%;
  z-index: 2;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: #ffd400;
  -webkit-text-stroke: 2px #12100c;
  text-shadow: 4px 4px 0 #12100c;
  transform: rotate(8deg);
  animation: tf-comic-float 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tf-comic-float {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }
  50% {
    transform: rotate(5deg) translateY(-9px);
  }
}

/* ---- 13.15 404：抖动 + WHOOPS 提示 ---- */
@keyframes tf-comic-shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-2.5deg);
  }
  75% {
    transform: rotate(2.5deg);
  }
}

html[data-style="comic"] .text-9xl {
  animation: tf-comic-shake 0.45s ease 3;
}

html[data-style="comic"] .max-w-md p.text-2xl {
  font-style: italic;
}

/* ================================================================
 * 14. EDITORIAL 杂志增强（v2.0.7）
 * ----------------------------------------------------------------
 * 报纸视觉语言补全：thick-thin 报头线、LEAD 眉题、拉引文引号、
 * 表格报纸化、打字机代码、照片纸图框、专栏标头、红色选区等。
 * 全部纯装饰，不影响任何功能；reduced-motion 下自动静止。
 * ================================================================ */

/* ---- 14.1 报头 thick-thin 双线（顶部导航 + 页脚） ---- */
html[data-style="editorial"] #header-menu {
  border-bottom: 3px solid var(--s-line-strong) !important;
  box-shadow: 0 4px 0 -2px var(--s-line) !important;
}

html[data-style="editorial"] footer {
  border-top: 3px solid var(--s-line-strong) !important;
  box-shadow: inset 0 4px 0 -2px var(--s-line) !important;
}

/* ---- 14.2 首页头条：LEAD STORY 眉题 ---- */
html[data-style="editorial"] #post-list > .group:first-child::before,
html[data-style="editorial"] #post-list > div:first-child > .group:first-child::before {
  content: "LEAD STORY";
  display: block;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--s-line-strong);
  font-size: 0.68rem;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--s-accent);
}

/* ---- 14.3 首字下沉染色 + 导语 ---- */
html[data-style="editorial"] article#content.markdown-body > p:first-of-type::first-letter,
html[data-style="editorial"] article#content.tailwind-typography > p:first-of-type::first-letter {
  color: var(--s-accent);
}

html[data-style="editorial"] article#content > p:first-of-type {
  font-size: 1.04em;
}

/* ---- 14.4 拉引文：大引号 ---- */
html[data-style="editorial"] .markdown-body blockquote::before {
  content: "\201C";
  display: block;
  font-size: 1.5em;
  line-height: 0.6;
  margin-bottom: 0.15rem;
  font-family: var(--s-font-head);
  color: var(--s-accent);
}

/* ---- 14.5 链接：默认无下划线，hover 浮现 ---- */
html[data-style="editorial"] .markdown-body a,
html[data-style="editorial"] .tailwind-typography a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

html[data-style="editorial"] .markdown-body a:hover,
html[data-style="editorial"] .tailwind-typography a:hover {
  border-bottom-color: var(--s-accent);
}

/* ---- 14.6 表格报纸化 ---- */
html[data-style="editorial"] .markdown-body table {
  border-collapse: collapse;
  width: 100%;
}

html[data-style="editorial"] .markdown-body th {
  border-bottom: 2px solid var(--s-line-strong) !important;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  text-align: left;
}

html[data-style="editorial"] .markdown-body tbody tr:nth-child(even) {
  background: var(--s-surface-2);
}

html[data-style="editorial"] .markdown-body td {
  border-bottom: 1px solid var(--s-line);
}

/* ---- 14.7 列表符号染色 ---- */
html[data-style="editorial"] .markdown-body ul > li::marker,
html[data-style="editorial"] .markdown-body ol > li::marker {
  color: var(--s-accent);
  font-weight: 700;
}

/* ---- 14.8 侧边栏「专栏」标头 + 标题延伸线 ---- */
html[data-style="editorial"] aside::before {
  content: "\4E13\u680F COLUMNS";
  display: block;
  margin-bottom: 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--s-line-strong);
  font-size: 0.72rem;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--s-text);
}

html[data-style="editorial"] aside h2 {
  display: flex;
  align-items: center;
}

html[data-style="editorial"] aside h2::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  margin-left: 0.6rem;
  background: var(--s-line);
}

/* ---- 14.9 正文图片：照片纸细框 ---- */
html[data-style="editorial"] article#content img {
  border: 1px solid var(--s-line);
  padding: 4px;
  background: var(--s-surface);
}

/* ---- 14.10 行内代码：打字机字体 ---- */
html[data-style="editorial"] .markdown-body :not(pre) > code,
html[data-style="editorial"] .tailwind-typography :not(pre) > code {
  font-family: "Courier New", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
  border: 1px solid var(--s-line);
  padding: 0.1em 0.35em;
}

/* ---- 14.11 滚动条：细墨条 ---- */
html[data-style="editorial"] ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html[data-style="editorial"] ::-webkit-scrollbar-thumb {
  background: var(--s-line-strong);
  border: 2px solid var(--s-bg);
}

html[data-style="editorial"] ::-webkit-scrollbar-track {
  background: var(--s-bg);
}

/* ---- 14.12 选区：红底米字 ---- */
html[data-style="editorial"] ::selection {
  background: var(--s-accent);
  color: var(--s-on-accent);
}

/* ---- 14.13 小标题：报纸眉题 ---- */
html[data-style="editorial"] .markdown-body h2 {
  border-bottom: 1px solid var(--s-line) !important;
  padding-bottom: 0.4rem;
  margin-top: 2rem;
  letter-spacing: -0.01em;
}

html[data-style="editorial"] .markdown-body h3 {
  font-style: italic;
  color: var(--s-text-dim) !important;
}

/* ---- 14.14 404：PAGE NOT FOUND 眉题 ---- */
html[data-style="editorial"] .text-9xl::before {
  content: "PAGE NOT FOUND \00B7 ";
  font-size: 0.16em;
  vertical-align: middle;
  letter-spacing: 0.14em;
  color: var(--s-accent);
  font-variant: small-caps;
}

/* ---- 14.15 卡片 hover：标题下划线浮现 ---- */
html[data-style="editorial"] #post-list h1 a {
  text-decoration: none;
}

html[data-style="editorial"] #post-list .group:hover h1 a,
html[data-style="editorial"] #post-list > div > .group:hover h1 a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--s-accent);
}

/* ---- 14.16 页面淡入（报纸翻开） ---- */
@keyframes tf-editorial-fade {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}

html[data-style="editorial"] body {
  animation: tf-editorial-fade 0.45s ease both;
}

/* ================================================================
 * 15. EDITORIAL 杂志增强 v2（v2.0.8）
 * ----------------------------------------------------------------
 * 1) 文章页署名行（byline）报纸化重构
 * 2) 首页头条大图横幅：图文并排（封面 55% + 文字 45%）
 * 3) 深色模式微调：墨纸噪点、hover 红线、滚动条柔化
 * ================================================================ */

/* ---- 15.1 署名行（byline）：只作用于 upvote 卡片（属性选择器精准定位，
       不误伤图库/归档等其他 rounded-xl p-4 容器） ---- */
html[data-style="editorial"] div[x-data^="upvote"] {
  border-top: 1px solid var(--s-line) !important;
  border-bottom: 1px solid var(--s-line) !important;
  padding: 1.1rem 0 !important;
  margin-bottom: 1.6rem;
  /* 注意：容器上不设 text-align:center —— 该卡片还包含标题与正文，
     text-align 是继承属性，容器居中会导致正文文字全部居中 */
}

/* 署名行（作者区 + 按钮区）：纵向居中排列，居中只作用在这一行 */
html[data-style="editorial"] div[x-data^="upvote"] > div {
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.7rem !important;
  text-align: center;
}

html[data-style="editorial"] div[x-data^="upvote"] > div > div:first-child {
  justify-content: center !important;
}

/* 作者名：小型大写 + BY 眉题 */
html[data-style="editorial"] div[x-data^="upvote"] .text-sm.font-semibold {
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 0.85rem !important;
}

html[data-style="editorial"] div[x-data^="upvote"] .text-sm.font-semibold::before {
  content: "BY ";
  color: var(--s-accent);
  font-size: 0.68em;
  letter-spacing: 0.18em;
}

/* 日期/浏览行：小型大写 + 字距 */
html[data-style="editorial"] div[x-data^="upvote"] .text-xs {
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 0.72rem !important;
}

/* 头像：稍大的证件照 */
html[data-style="editorial"] div[x-data^="upvote"] img.size-10 {
  width: 2.9rem;
  height: 2.9rem;
}

/* ---- 15.2 首页头条大图横幅：图文并排（报纸头版头条版式）
   仅当头条卡片存在封面图时启用（:has 精准判定），无封面保持整行文字。
   使用 Grid 显式分栏（55% 图 + 45% 文），彻底避免 flex-nowrap
   把眉题/封面/文字挤在同一行导致的图片被压缩问题。 ---- */
@media (min-width: 768px) {
  html[data-style="editorial"] #post-list > .group:first-child:has(> .aspect-w-16),
  html[data-style="editorial"] #post-list > div:first-child > .group:first-child:has(> .aspect-w-16) {
    display: grid !important;
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
    grid-template-rows: auto minmax(0, 1fr);
  }

  /* LEAD STORY 眉题：横跨整行（第一行） */
  html[data-style="editorial"] #post-list > .group:first-child:has(> .aspect-w-16)::before,
  html[data-style="editorial"] #post-list > div:first-child > .group:first-child:has(> .aspect-w-16)::before {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  /* 封面：左列，与文字区等高（grid stretch），关闭 aspect padding 撑高 */
  html[data-style="editorial"] #post-list > .group:first-child:has(> .aspect-w-16) .aspect-w-16,
  html[data-style="editorial"] #post-list > div:first-child > .group:first-child:has(> .aspect-w-16) .aspect-w-16 {
    grid-column: 1;
    grid-row: 2;
    width: 100% !important;
    max-width: none !important;
    padding-bottom: 0 !important;
    height: 100%;
    min-height: 0;
  }

  /* 封面子元素（a/img）：流式布局填满封面容器 */
  html[data-style="editorial"] #post-list > .group:first-child:has(> .aspect-w-16) .aspect-w-16 > *,
  html[data-style="editorial"] #post-list > div:first-child > .group:first-child:has(> .aspect-w-16) .aspect-w-16 > * {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* 文字区：右列 */
  html[data-style="editorial"] #post-list > .group:first-child:has(> .aspect-w-16) .col-span-3,
  html[data-style="editorial"] #post-list > div:first-child > .group:first-child:has(> .aspect-w-16) .col-span-3 {
    grid-column: 2;
    grid-row: 2;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    padding: 1.3rem 1.6rem !important;
  }

  /* 头条标题：更大字号 */
  html[data-style="editorial"] #post-list > .group:first-child:has(> .aspect-w-16) h1,
  html[data-style="editorial"] #post-list > div:first-child > .group:first-child:has(> .aspect-w-16) h1 {
    font-size: 2.4rem !important;
    line-height: 1.16;
  }

  /* 头条摘要：略大 + 行数放宽 */
  html[data-style="editorial"] #post-list > .group:first-child:has(> .aspect-w-16) p,
  html[data-style="editorial"] #post-list > div:first-child > .group:first-child:has(> .aspect-w-16) p {
    font-size: 1.02em;
    -webkit-line-clamp: 4 !important;
  }
}

/* ---- 15.3 深色模式微调 ---- */

/* 墨纸纹理：极淡噪点 + 保留竖栏线 */
html[data-style="editorial"].dark body::before {
  background-image: linear-gradient(to right, rgb(236 235 227 / 0.03) 1px, transparent 1px),
    radial-gradient(rgb(236 235 227 / 0.02) 1px, transparent 1px);
  background-size: 5.5rem 100%, 3px 3px;
}

/* 卡片 hover：边界线用朱红（避免深色下纯白线过亮刺眼） */
html[data-style="editorial"].dark #post-list > .group:hover,
html[data-style="editorial"].dark #post-list > div > .group:hover,
html[data-style="editorial"].dark div.rounded-xl.bg-white:hover {
  border-bottom-color: var(--s-accent) !important;
}

/* 滚动条：柔化（深色下不用纯白） */
html[data-style="editorial"].dark ::-webkit-scrollbar-thumb {
  background: var(--s-line);
}

/* 正文图片框：深色下用纸色底 + 发丝线 */
html[data-style="editorial"].dark article#content img {
  border-color: var(--s-line);
  background: var(--s-surface-2);
}

/* 行内代码：深色下降低边框存在感 */
html[data-style="editorial"].dark .markdown-body :not(pre) > code,
html[data-style="editorial"].dark .tailwind-typography :not(pre) > code {
  border-color: var(--s-line);
}

/* 署名条分隔线在深色下保持发丝感 */
html[data-style="editorial"].dark div[x-data^="upvote"] {
  border-color: var(--s-line);
}

/* ================================================================
 * 16. CYBER 赛博朋克增强（v2.0.9）
 * ----------------------------------------------------------------
 * HUD 语言补全：卡片入场展开、瞄准内框、glitch 故障闪现、
 * 数据表、>_ 代码头、SYS.PANEL 面板标、霓虹滚动条/选区等。
 * 全部纯装饰，不影响功能；reduced-motion 下自动静止。
 * ================================================================ */

/* ---- 16.1 卡片入场：HUD 元素从右下角展开 ---- */
@keyframes tf-cyber-in {
  from {
    opacity: 0;
    clip-path: polygon(100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%);
  }
  to {
    opacity: 1;
    clip-path: var(--s-clip);
  }
}

html[data-style="cyber"] #post-list > .group,
html[data-style="cyber"] #post-list > div > .group {
  animation: tf-cyber-in 0.5s ease-out both;
}

html[data-style="cyber"] #post-list > .group:nth-child(2),
html[data-style="cyber"] #post-list > div:nth-child(2) > .group { animation-delay: 70ms; }
html[data-style="cyber"] #post-list > .group:nth-child(3),
html[data-style="cyber"] #post-list > div:nth-child(3) > .group { animation-delay: 140ms; }
html[data-style="cyber"] #post-list > .group:nth-child(4),
html[data-style="cyber"] #post-list > div:nth-child(4) > .group { animation-delay: 210ms; }
html[data-style="cyber"] #post-list > .group:nth-child(5),
html[data-style="cyber"] #post-list > div:nth-child(5) > .group { animation-delay: 280ms; }
html[data-style="cyber"] #post-list > .group:nth-child(6),
html[data-style="cyber"] #post-list > div:nth-child(6) > .group { animation-delay: 350ms; }
html[data-style="cyber"] #post-list > .group:nth-child(7),
html[data-style="cyber"] #post-list > div:nth-child(7) > .group { animation-delay: 420ms; }
html[data-style="cyber"] #post-list > .group:nth-child(8),
html[data-style="cyber"] #post-list > div:nth-child(8) > .group { animation-delay: 490ms; }
html[data-style="cyber"] #post-list > .group:nth-child(9),
html[data-style="cyber"] #post-list > div:nth-child(9) > .group { animation-delay: 560ms; }

/* ---- 16.2 封面 hover：瞄准内框（HUD 锁定感） ---- */
html[data-style="cyber"] #post-list .group:hover .aspect-w-16 img {
  box-shadow: inset 0 0 0 1px var(--s-neon-1), inset 0 0 26px rgb(0 240 255 / 0.16);
}

/* ---- 16.3 标题 glitch 强化：偶发位移 + 色散故障闪现 ---- */
@keyframes tf-cyber-burst {
  0%,
  88%,
  100% {
    transform: none;
    filter: none;
  }
  89% {
    transform: translate(-2px, 1px) skewX(4deg);
    filter: hue-rotate(25deg) saturate(1.6);
  }
  91% {
    transform: translate(2px, -1px);
    filter: none;
  }
  93% {
    transform: translate(-1px, 0) skewX(-3deg);
    filter: hue-rotate(-20deg);
  }
  95% {
    transform: none;
    filter: none;
  }
}

html[data-style="cyber"] .pattern-header-text h1,
html[data-style="cyber"] body > section:first-of-type .h-96 span.text-5xl {
  animation: tf-cyber-burst 5.2s steps(1) infinite;
}

/* ---- 16.4 正文小标题：HUD 短线 + 等宽大写 ---- */
html[data-style="cyber"] .markdown-body h2 {
  border-left: 3px solid var(--s-neon-1) !important;
  border-bottom: 0 !important;
  padding-left: 0.7rem;
  font-family: var(--s-font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

html[data-style="cyber"] .markdown-body h3 {
  color: var(--s-neon-2) !important;
  font-family: var(--s-font);
  letter-spacing: 0.06em;
}

/* ---- 16.5 代码块：>_ 标签头 ---- */
html[data-style="cyber"] .markdown-body pre::before {
  content: ">_ CODE";
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--s-neon-1);
  text-shadow: 0 0 8px currentColor;
}

/* ---- 16.6 引用块：DATA FEED 标签 ---- */
html[data-style="cyber"] .markdown-body blockquote::before {
  content: "\25B8 DATA FEED";
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--s-neon-2);
  text-shadow: 0 0 8px currentColor;
}

/* ---- 16.7 表格：数据表化 ---- */
html[data-style="cyber"] .markdown-body table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--s-font);
}

html[data-style="cyber"] .markdown-body th {
  border-bottom: 2px solid var(--s-neon-1) !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: left;
  color: var(--s-text) !important;
}

html[data-style="cyber"] .markdown-body td {
  border-bottom: 1px solid var(--s-line);
}

html[data-style="cyber"] .markdown-body tbody tr:hover {
  background: var(--s-surface-2) !important;
}

/* ---- 16.8 霓虹滚动条 + 霓虹选区 ---- */
html[data-style="cyber"] ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html[data-style="cyber"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--s-neon-1), var(--s-neon-2));
  border: 2px solid var(--s-bg);
}

html[data-style="cyber"] ::-webkit-scrollbar-track {
  background: var(--s-bg);
}

html[data-style="cyber"] ::selection {
  background: var(--s-neon-2);
  color: #04060e;
}

/* ---- 16.9 侧边栏：SYS.PANEL 面板标头 ---- */
html[data-style="cyber"] aside::before {
  content: "SYS.PANEL // ONLINE";
  display: block;
  padding: 0.45rem 0.7rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--s-line);
  clip-path: var(--s-clip-sm);
  background: var(--s-surface-2);
  font-family: var(--s-font);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--s-neon-1);
  text-shadow: 0 0 8px currentColor;
}

/* ---- 16.10 按钮按压反馈 ---- */
html[data-style="cyber"] a.rounded-md.border:active,
html[data-style="cyber"] .whitespace-no-wrap.rounded-md:active {
  transform: scale(0.95);
  filter: brightness(1.4);
}

/* ---- 16.11 移动端抽屉：HUD 面板化 ---- */
html[data-style="cyber"] div.fixed.inset-x-4.top-8 {
  clip-path: var(--s-clip);
  border: 1px solid var(--s-line-strong) !important;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

/* ---- 16.12 Hero 四角 L 角标（首页站点标题横幅） ---- */
html[data-style="cyber"] body > section:first-of-type > div.h-96 {
  position: relative;
}

html[data-style="cyber"] body > section:first-of-type > div.h-96::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-top: 2px solid var(--s-neon-1);
  border-left: 2px solid var(--s-neon-1);
  z-index: 2;
  pointer-events: none;
}

html[data-style="cyber"] body > section:first-of-type > div.h-96::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-right: 2px solid var(--s-neon-2);
  border-bottom: 2px solid var(--s-neon-2);
  z-index: 2;
  pointer-events: none;
}

/* ================================================================
 * 17. CYBER 赛博朋克增强 v2（v2.1.0）
 * ----------------------------------------------------------------
 * 氛围层：深色霓虹雨丝、全屏 CRT 扫描线、封面系统提示；
 * HUD 细节：扫描线滚动、霓虹链接/列表/分页、终端联动。
 * 全部纯装饰；雨丝与扫描线在 reduced-motion 下自动静止。
 * ================================================================ */

/* ---- 17.1 深色：霓虹雨丝（body 光斑层追加斜向雨线 + 下落动画） ---- */
html[data-style="cyber"].dark body::after {
  background-image: radial-gradient(60rem 40rem at 12% -10%, rgb(0 240 255 / 0.14), transparent 62%),
    radial-gradient(52rem 38rem at 92% 8%, rgb(255 0 160 / 0.14), transparent 62%),
    repeating-linear-gradient(115deg, rgb(0 240 255 / 0.045) 0 1px, transparent 1px 7px);
  animation: tf-cyber-rain 1.1s linear infinite;
}

@keyframes tf-cyber-rain {
  to {
    background-position: 0 0, 0 0, -9px 20px;
  }
}

/* ---- 17.2 全屏 CRT 扫描线（缓慢下移的霓虹光带） ---- */
@keyframes tf-cyber-crt {
  from {
    top: -6%;
  }
  to {
    top: 106%;
  }
}

html[data-style="cyber"]::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9990;
  background: linear-gradient(90deg, transparent, rgb(0 240 255 / 0.28), rgb(255 0 160 / 0.2), transparent);
  box-shadow: 0 0 18px rgb(0 240 255 / 0.35);
  animation: tf-cyber-crt 7.5s linear infinite;
  pointer-events: none;
}

/* ---- 17.3 文章封面 Hero：系统提示行（标题下方） ---- */
html[data-style="cyber"] .pattern-header-text::after {
  content: "> OPENING FILE // DECRYPTING\u2026";
  margin-top: 0.9rem;
  font-family: var(--s-font);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgb(0 240 255 / 0.85);
  text-shadow: 0 0 10px rgb(0 240 255 / 0.55);
}

/* ---- 17.4 封面 hover：扫描线滚动（图片上的静态扫描线动起来） ---- */
@keyframes tf-cyber-scanline-move {
  to {
    background-position: 0 9px;
  }
}

html[data-style="cyber"] #post-list .group:hover .aspect-w-16::after,
html[data-style="cyber"] #photos .group:hover::after {
  animation: tf-cyber-scanline-move 1.15s linear infinite;
}

/* ---- 17.5 正文图片 hover：霓虹锁定框 ---- */
html[data-style="cyber"] article#content img:hover {
  box-shadow: 0 0 0 1px var(--s-neon-1), 0 0 26px rgb(0 240 255 / 0.28);
}

/* ---- 17.6 正文链接：霓虹下划线（hover 浮现） ---- */
html[data-style="cyber"] .markdown-body a,
html[data-style="cyber"] .tailwind-typography a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

html[data-style="cyber"] .markdown-body a:hover,
html[data-style="cyber"] .tailwind-typography a:hover {
  border-bottom-color: var(--s-neon-2);
}

/* ---- 17.7 列表符号：霓虹染色 ---- */
html[data-style="cyber"] .markdown-body ul > li::marker,
html[data-style="cyber"] .markdown-body ol > li::marker {
  color: var(--s-neon-1);
  text-shadow: 0 0 6px currentColor;
}

/* ---- 17.8 分页选择器：HUD 边框（不做 clip-path，保留原生下拉箭头） ---- */
html[data-style="cyber"] #pagination {
  border: 1px solid var(--s-line) !important;
  background-color: var(--s-surface-2) !important;
  padding: 0.25rem 0.5rem !important;
  letter-spacing: 0.05em;
}

/* ---- 17.9 顶栏图标 hover：霓虹辉光 ---- */
html[data-style="cyber"] #header-menu a:hover,
html[data-style="cyber"] #header-menu [x-data="dropdown"]:hover > div {
  text-shadow: 0 0 10px rgb(0 240 255 / 0.65);
}

/* ---- 17.10 Cyber 联动终端：>_ 入口在赛博世界同样可用 ---- */
html[data-style="cyber"] .terminal-trigger {
  display: list-item;
}

/* ================================================================
 * 18. EDITORIAL 杂志增强 v3（v2.1.1）
 * ----------------------------------------------------------------
 * 中文报纸排版：正文首行缩进、标题底线、花式分节符、双侧引号、
 * 分类眉题、标题字号梯度、刊头大字、报头双线呼应。
 * ================================================================ */

/* ---- 18.1 正文首行缩进（首段顶格导语，后续段落缩进 2 字符） ---- */
html[data-style="editorial"] article#content.markdown-body > p:not(:first-of-type),
html[data-style="editorial"] article#content.tailwind-typography > p:not(:first-of-type) {
  text-indent: 2em;
}

/* ---- 18.2 正文大标题：报纸文章标题底线 ---- */
html[data-style="editorial"] article#content h1 {
  border-bottom: 1px solid var(--s-line);
  padding-bottom: 0.55rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

/* ---- 18.3 花式分节符：❦（印刷体 fleuron） ---- */
html[data-style="editorial"] .markdown-body hr {
  border: 0 !important;
  height: 2.4rem;
  max-width: 60%;
  margin: 2rem auto !important;
  background: transparent;
}

html[data-style="editorial"] .markdown-body hr::before {
  content: "\2766";
  display: block;
  text-align: center;
  font-size: 1.05rem;
  line-height: 2.4rem;
  color: var(--s-accent);
}

/* ---- 18.4 引文双侧引号：上 ❝ 下 ❞ 呼应 ---- */
html[data-style="editorial"] .markdown-body blockquote::after {
  content: "\201D";
  display: block;
  margin-top: 0.15rem;
  font-size: 1.5em;
  line-height: 0.6;
  text-align: right;
  font-family: var(--s-font-head);
  color: var(--s-accent);
}

/* ---- 18.5 卡片分类眉题：红色小型大写（标题上方） ---- */
html[data-style="editorial"] #post-list a.mr-1 {
  display: inline-block;
  margin-right: 0.5rem;
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem !important;
  font-weight: 700;
  color: var(--s-accent) !important;
}

/* ---- 18.6 小稿标题字号梯度（与头条 2.4rem 形成报纸层级） ---- */
html[data-style="editorial"] #post-list > .group:not(:first-child) h1,
html[data-style="editorial"] #post-list > div:not(:first-child) > .group h1 {
  font-size: 1.3rem !important;
  line-height: 1.32;
}

/* ---- 18.7 首页刊头大字：站点标题放大 + 双线 ---- */
html[data-style="editorial"] body > section:first-of-type .h-96 span.text-5xl {
  font-size: clamp(2.6rem, 6vw, 4.6rem) !important;
  border-bottom: 3px solid var(--s-line-strong);
  box-shadow: 0 4px 0 -1px var(--s-line);
  padding-bottom: 0.4rem;
}

/* ---- 18.8 报头条顶部发丝线（与 header 双线呼应） ---- */
html[data-style="editorial"] #editorial-masthead {
  border-top: 1px solid var(--s-line);
}

/* ================================================================
 * 19. EDITORIAL 杂志增强 v4（v2.1.2）
 * ----------------------------------------------------------------
 * 归档页报纸化（版次年份标题）、分页/抽屉报纸化、
 * 作者名小型大写、头条微放大、正文朱红强调。
 * ================================================================ */

/* ---- 19.1 归档页报纸化 ---- */

/* 归档页标题：报纸版头大标题 + 底线 */
html[data-style="editorial"] .rounded-xl.bg-white.p-4 > h1 {
  border-bottom: 2px solid var(--s-line-strong);
  padding-bottom: 0.6rem;
  font-size: 1.8rem !important;
  letter-spacing: -0.02em;
}

/* 年份/月份标题：sticky「版次」——衬线 + 粗底线 + 字距 */
html[data-style="editorial"] .rounded-xl.bg-white.p-4 h2.sticky {
  font-family: var(--s-font-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 3px solid var(--s-line-strong);
  box-shadow: 0 3px 0 -1px var(--s-line);
  padding-bottom: 0.35rem;
  font-size: 1.15rem !important;
}

/* 归档文章标题：衬线 + hover 下划线浮现 */
html[data-style="editorial"] .rounded-xl.bg-white.p-4 a.truncate.text-xl {
  font-family: var(--s-font-head);
  letter-spacing: -0.01em;
  text-decoration: none;
}

html[data-style="editorial"] .rounded-xl.bg-white.p-4 a.truncate.text-xl:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--s-accent);
}

/* 归档日期：小型大写 + 字距 */
html[data-style="editorial"] .rounded-xl.bg-white.p-4 p.truncate.text-sm {
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.78rem !important;
  color: var(--s-text-mute) !important;
}

/* ---- 19.2 分页选择器：报纸发丝边框 ---- */
html[data-style="editorial"] #pagination {
  border: 1px solid var(--s-line) !important;
  background: var(--s-surface) !important;
  font-family: var(--s-font);
  padding: 0.2rem 0.4rem !important;
}

/* ---- 19.3 文章卡片作者名：小型大写 ---- */
html[data-style="editorial"] #post-list .text-sm.font-medium {
  font-variant: small-caps;
  letter-spacing: 0.07em;
}

/* ---- 19.4 头条封面 hover：极轻微放大（报纸克制动效） ---- */
html[data-style="editorial"] #post-list > .group:first-child:hover .aspect-w-16 img,
html[data-style="editorial"] #post-list > div:first-child > .group:first-child:hover .aspect-w-16 img {
  transform: scale(1.02);
}

/* ---- 19.5 移动端抽屉：报纸化（无圆角 + 墨线 + 纸色） ---- */
html[data-style="editorial"] div.fixed.inset-x-4.top-8 {
  border-radius: 0 !important;
  border: 1px solid var(--s-line-strong) !important;
  box-shadow: none !important;
  background: var(--s-bg) !important;
}

/* ---- 19.6 正文强调：朱红字（报纸红字标注） ---- */
html[data-style="editorial"] .markdown-body strong,
html[data-style="editorial"] .tailwind-typography strong {
  color: var(--s-hot) !important;
  font-weight: 800;
}

/* ================================================================
 * 20. EDITORIAL 杂志增强 v5（v2.1.3）
 * ----------------------------------------------------------------
 * 朱红阅读进度条、内容页封面灰度（报纸封面图）、
 * hero 副标题报纸化、页脚印刷信息行。
 * ================================================================ */

/* ---- 20.1 朱红阅读进度条（editorial 启用，JS 同步支持） ---- */
html[data-style="editorial"] #reading-progress {
  display: block;
  height: 2px;
  background: var(--s-accent);
  box-shadow: none;
}

/* ---- 20.2 内容页封面背景灰度：报纸封面图质感（不影响标题文字，
       封面背景 div 与标题是兄弟节点，filter 仅作用于背景） ---- */
html[data-style="editorial"] body > section:first-of-type > div > div.h-96 {
  filter: grayscale(0.55) contrast(1.05);
}

/* ---- 20.3 hero 副标题报纸化（小型大写 + 字距） ---- */
html[data-style="editorial"] body > section:first-of-type .h-96 span.text-sm {
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.8rem !important;
  opacity: 0.9;
}

/* ---- 20.4 页脚「印刷信息」行（报纸版权页） ---- */
html[data-style="editorial"] footer::after {
  content: "\6392\7248\FF1A FIVE EDITORIAL \00B7 \7EB8\5F20\FF1A\518D\751F\7EB8 \00B7 \6CB9\58A8\FF1A\5927\8C46\6CB9\58A8";
  display: block;
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  font-variant: small-caps;
  color: var(--s-text-mute);
}
