/* 门槛 · THRESHOLD — 样式表（v3.17）
   流星：回到 v3.11 那版，两条关键帧 msFly1 / msFly2。
   星空：51 颗星呼吸在 index.html 的内联 SVG；柔光扫过是 bnShimmer。 */
  /* ═══════════════════════════════════════════════════════════════
     门槛 · THRESHOLD  v1.0
     = v0.9 全部内容（一字未删、一层未删）
       + ksyaki.com 的信息架构：文章卡 / 分类条 / 分页 / 侧栏 / 服务状态 / 授权页脚
     色彩仍是"被污染的神圣"：焦黑／骨白／电光蓝／锈与余烬
     ═══════════════════════════════════════════════════════════════ */
  :root {
    --void: #F6F1E6;
    --void-warm: #F1E9D9;
    --stone: #EFE7D7;
    --stone-light: #E2D7C1;

    --bone: #2A241C;
    --bone-dim: rgba(42,36,28,0.66);
    --bone-faint: rgba(42,36,28,0.16);
    --bone-ghost: rgba(42,36,28,0.05);

    --blue: #2B4BC4;
    --blue-dim: #B9C6EC;
    --blue-soft: #2C4FBE;
    --blue-ghost: rgba(43,75,196,0.08);

    --rust: #8B3A2A;
    --rust-dim: #C08A76;
    --ember: #9C5226;
    --gold: #7A6128;
    --gold-dim: #C9B489;

    --serif: 'Cormorant Garamond','Noto Serif SC','EB Garamond','Songti SC','STSong','SimSun',Georgia,serif;
    --mono: 'JetBrains Mono','IBM Plex Mono','Courier Prime',ui-monospace,Consolas,Menlo,monospace;
    --sans: 'Inter','IBM Plex Sans',-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;

    --rail: 78px;
    --gut: 58px;
    --maxw: 1440px;      /* 加侧栏后放宽，主栏仍受 --readw 约束 */
    --readw: 780px;      /* 正文可读宽度 */
    --aside: 274px;      /* 侧栏宽 */
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

  body {
    background: var(--void);
    color: var(--bone);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.92;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  ::selection { background: rgba(43,75,196,0.42); color: var(--bone); }
  ::-webkit-scrollbar { width: 7px; }
  ::-webkit-scrollbar-track { background: #EDE4D2; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, var(--blue-dim), var(--rust-dim)); }
  ::-webkit-scrollbar-thumb:hover { background: linear-gradient(to bottom, var(--blue), var(--ember)); }
  *:focus-visible { outline: 1px solid var(--blue); outline-offset: 4px; }

  code, kbd, pre, .mono { font-family: var(--mono); }

  /* ═══ 纹理六层 ═══ */
  body::before {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(ellipse 70% 48% at 50% -6%, rgba(43,75,196,0.07), transparent 60%),
      radial-gradient(ellipse 55% 40% at 88% 14%, rgba(168,91,42,0.045), transparent 62%),
      radial-gradient(ellipse 60% 42% at 50% 106%, rgba(139,58,42,0.06), transparent 62%),
      radial-gradient(ellipse 38% 30% at 10% 52%, rgba(122,97,40,0.03), transparent 70%);
  }
  .tx-grain {
    position: fixed; inset: -50%; width: 200%; height: 200%;
    z-index: 9998; pointer-events: none; opacity: .10; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 9s steps(5) infinite; will-change: transform;
  }
  @keyframes grainShift {
    0%,100% { transform: translate(0,0); }
    25% { transform: translate(-3%, 2%); }
    50% { transform: translate(2%, -3%); }
    75% { transform: translate(-2%, -2%); }
  }
  .tx-vignette {
    position: fixed; inset: 0; z-index: 9995; pointer-events: none;
    background: radial-gradient(ellipse 82% 72% at 50% 46%, transparent 42%, rgba(240,232,216,0.62) 100%);
  }

  /* ═══ 首屏横幅插画（手绘 SVG，非位图）═══ */
  .banner {
    position: relative; margin: 0 0 14px; overflow: hidden;
    border: 1px solid rgba(42,36,28,0.10); border-radius: 3px;
    box-shadow: 0 26px 70px rgba(110,92,64,0.165), 0 0 90px rgba(43,75,196,0.07) inset;
  }
  .banner svg, .banner img {
    display: block; width: 100%; height: clamp(110px, 16vw, 168px);
  }
  /* 位图进场：先压色，再让品牌色罩上去 —— 不这样处理，网图会"贴"在页面上 */
  .banner img {
    object-fit: cover; object-position: 50% 50%;
    filter: saturate(.92) contrast(1.04) brightness(1.06);
    background: #E9DFC9;
  }
  /* 三层叠加：① 左右品牌色罩 ② 底部渐隐（把字压出来） ③ 页面噪点（对齐整站质感） */
  .banner::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(100deg, rgba(43,75,196,0.20) 0%, rgba(43,75,196,0.04) 38%, transparent 62%),
      linear-gradient(260deg, rgba(139,58,42,0.18) 0%, transparent 52%),
      linear-gradient(to bottom, rgba(246,241,230,0.06) 0%, transparent 32%, rgba(246,241,230,0.42) 74%, rgba(246,241,230,0.78) 100%);
  }
  /* 流星：CSS 只做淡入淡出（方向与位移由 SVG 属性与 animateTransform 承担）
     · ease-**out**：开头快、结尾缓 —— ease-in 开头极慢，等于"延迟后突然蹦出来"，
       那正是上一版"突兀"的来源；换掉它，淡入才是真的淡入。
     · 时间轴与位移对齐：12% 到峰值、84% 淡尽，此时它已经出画（trans 已走到 86%）。
     · 起点给 .12 而不是 0：避免第一帧完全看不见导致"凭空冒出来"。 */
    /* ═══ 流星（回到最初那版）═══
     v3.11 原样：两条关键帧，旋转与位移都写在关键帧里，透明度 5%→16% 满、24% 淡出。
     不写 transform-box / transform-origin —— 它们会把旋转吃掉、只剩横线。 */
  .meteor { color: #B08A52; will-change: transform, opacity; }
  .meteor.m1 {
    animation: msFly1 9.5s linear infinite;
    animation-delay: 1.2s;
  }
  .meteor.m2 {
    animation: msFly2 13s linear infinite;
    animation-delay: 5.6s;
    opacity: .78;
  }
  @keyframes msFly1 {
    0%    { transform: translate(180px, 40px) rotate(28.5deg); opacity: 0; }
    5%    { opacity: 1; }
    16%   { opacity: 1; }
    24%   { transform: translate(620px, 280px) rotate(28.5deg); opacity: 0; }
    100%  { transform: translate(620px, 280px) rotate(28.5deg); opacity: 0; }
  }
  @keyframes msFly2 {
    0%    { transform: translate(680px, 20px) rotate(24deg); opacity: 0; }
    7%    { opacity: .9; }
    20%   { opacity: .9; }
    30%   { transform: translate(1090px, 232px) rotate(24deg); opacity: 0; }
    100%  { transform: translate(1090px, 232px) rotate(24deg); opacity: 0; }
  }

  /* 极慢的柔光扫过：让整幅星空有"活"的感觉 */
  .banner .bn-shimmer {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(43,75,196,0.11) 50%, transparent 62%);
    background-size: 260% 100%;
    animation: bnShimmer 22s ease-in-out infinite;
  }
  @keyframes bnShimmer {
    0%, 100% { background-position: 130% 0; }
    50% { background-position: -30% 0; }
  }
  .banner .bn-grain {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    opacity: .14; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='bn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23bn)'/%3E%3C/svg%3E");
  }
  .banner figcaption {
    position: absolute; left: 22px; bottom: 16px; z-index: 2;
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  }
  .banner .bn-title {
    font-family: var(--serif); font-size: clamp(20px, 2.6vw, 30px);
    letter-spacing: .06em; color: var(--bone);
    text-shadow: 0 2px 18px rgba(246,241,230,0.9);
  }
  .banner .bn-sub {
    font-family: var(--mono); font-size: 12px; letter-spacing: .3em;
    text-transform: uppercase; color: var(--gold); opacity: .85;
  }

  /* ═══ 首屏一行：搜索入口 ═══ */
  .hero-lead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
  /* ═══ 顶栏搜索：占中间弹性区，左＝品牌+导航，右＝进入 ═══ */
  .nav-search {
    position: relative; flex: 1 1 auto; min-width: 0;
    max-width: 620px; height: 36px; margin: 0 10px;
    display: flex; align-items: center;
    border: 1px solid rgba(42,36,28,0.16); border-radius: 3px;
    background: rgba(42,36,28,0.04);
    transition: border-color .3s, background .3s, box-shadow .3s;
  }
  .nav-search:focus-within {
    border-color: var(--blue); background: rgba(43,75,196,0.07);
    box-shadow: 0 0 0 3px rgba(43,75,196,0.10);
  }
  .nav-search input {
    flex: 1; min-width: 0; height: 100%;
    background: none; border: none; outline: none;
    color: var(--bone); font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.05em;
    padding: 0 14px; caret-color: var(--blue-soft);
  }
  .nav-search input::placeholder { color: rgba(42,36,28,0.42); letter-spacing: 0.12em; }
  .nav-search .ns-ico {
    flex-shrink: 0; height: 100%; display: flex; align-items: center;
    padding: 0 14px; cursor: pointer; background: none;
    border: none; border-left: 1px solid rgba(43,75,196,0.16);
    font-family: var(--serif); font-size: 15px; color: var(--blue-soft);
    transition: color .3s, background .3s;
  }
  .nav-search .ns-ico:hover { color: var(--bone); background: rgba(43,75,196,0.14); }

  /* ═══ 下拉面板：贴在输入框正下方，与它连成一体 ═══ */
  .hits-panel {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    max-height: 56vh; overflow-y: auto; z-index: 60; display: none;
    /* 毛玻璃：底色压到 62%，靠 blur + saturate 把背景"磨"出来 */
    background: rgba(239,231,215,0.62);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border: 1px solid rgba(42,36,28,0.14);
    box-shadow:
      0 30px 70px rgba(110,92,64,0.165),
      0 0 0 1px rgba(43,75,196,0.10),
      0 0 70px rgba(43,75,196,0.06);
    padding: 5px 0 8px;
  }
  /* 面板内每行也用极淡的被动态，让玻璃感连续 */
  .hits-panel .hh:hover { background: rgba(42,36,28,0.07); }
  .nav-search:focus-within .hits-panel,
  .hits-panel.pinned { display: block; }
  .hits-panel::before {
    content: ''; position: absolute; top: -6px; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, transparent, rgba(43,75,196,0.55), transparent);
  }
  .hits-panel .hh-info {
    padding: 9px 16px 5px; font-family: var(--mono); font-size: 13px;
    color: var(--bone-dim); letter-spacing: .04em;
  }
  .hits-panel .hh-info b { color: var(--blue-soft); font-weight: 500; }
  .hits-panel .hh-group {
    padding: 10px 16px 4px; font-family: var(--mono); font-size: 12px;
    letter-spacing: .3em; text-transform: uppercase; color: var(--gold); opacity: .85;
  }
  .hits-panel .hh {
    display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 11px;
    align-items: baseline; width: 100%; text-align: left; cursor: pointer;
    background: none; border: none; padding: 9px 16px;
    color: var(--bone); font-family: var(--serif); font-size: 15px;
    transition: background .22s, padding-left .22s;
  }
  .hits-panel .hh:hover { background: rgba(43,75,196,0.09); padding-left: 21px; }
  .hits-panel .hh .k {
    font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--ember);
  }
  .hits-panel .hh .t { min-width: 0; }
  .hits-panel .hh .t small { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--bone-dim); margin-top: 2px; }
  .hits-panel .hh .go { font-family: var(--mono); font-size: 13px; color: var(--blue-soft); opacity: .5; }
  .hits-panel .hh:hover .go { opacity: 1; }
  .hits-panel .hh[disabled] { opacity: .45; cursor: not-allowed; }
  .hits-panel::-webkit-scrollbar { width: 6px; }
  .hits-panel::-webkit-scrollbar-thumb { background: rgba(43,75,196,0.3); }



  /* ═══ 搜索浮层 ═══ */
  .search { position: fixed; inset: 0; z-index: 10003; display: flex; align-items: flex-start; justify-content: center; }
  .search[hidden] { display: none; }
  .search-mask {
    position: absolute; inset: 0; background: rgba(240,232,216,0.78);
    backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
    animation: sFade .28s ease;
  }
  @keyframes sFade { from { opacity: 0; } to { opacity: 1; } }
  .search-box {
    position: relative; width: min(680px, calc(100vw - 40px));
    margin-top: 12vh; max-height: 74vh; display: flex; flex-direction: column;
    border: 1px solid rgba(43,75,196,0.34); background: rgba(12,11,9,0.97);
    box-shadow: 0 30px 90px rgba(110,92,64,0.216), 0 0 90px rgba(43,75,196,0.10);
    animation: sRise .32s cubic-bezier(.4,0,.2,1);
  }
  @keyframes sRise { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
  .search-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, transparent, var(--blue), var(--ember), transparent);
  }
  .search-box .term-body { padding: 18px 20px 6px; min-height: 0; }
  .search-box .hits { max-height: 52vh; overflow-y: auto; }
  .search-box .prompt-line input { font-size: 15px; }
  .s-close {
    font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--bone-dim); background: none; border: 1px solid rgba(42,36,28,0.16);
    padding: 4px 9px; cursor: pointer; transition: all .3s;
  }
  .s-close:hover { color: var(--bone); border-color: rgba(43,75,196,0.45); }
  .search-empty { padding: 30px 6px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--bone-dim); }
  .search-empty b { display: block; font-family: var(--serif); font-size: 17px; color: var(--bone); margin-bottom: 8px; letter-spacing: 0; }
  .search-group {
    padding: 12px 6px 6px; font-family: var(--mono); font-size: 12px;
    letter-spacing: .3em; text-transform: uppercase; color: var(--gold); opacity: .8;
  }
  .search-foot {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 11px 18px; border-top: 1px solid rgba(43,75,196,0.12);
    font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em;
    color: rgba(42,36,28,0.34); text-transform: uppercase;
  }
  .search-foot kbd { color: var(--blue-soft); border: 1px solid rgba(43,75,196,0.28); padding: 1px 5px; margin-right: 5px; }
  .search-foot .sp { margin-left: auto; }

  /* ═══ 页脚：备案 / 版权 ═══ */
  .foot-legal {
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center;
    margin-top: 14px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em;
    color: rgba(42,36,28,0.30);
  }
  .foot-legal a { color: rgba(42,36,28,0.42); text-decoration: none; border-bottom: 1px solid rgba(42,36,28,0.14); transition: all .3s; }
  .foot-legal a:hover { color: var(--bone); border-color: rgba(43,75,196,0.5); }
  .foot-legal .todo {
    color: var(--ember); border: 1px dashed rgba(168,91,42,0.45);
    padding: 3px 9px; letter-spacing: .08em;
  }
  .foot-copy { margin-top: 12px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; color: rgba(42,36,28,0.24); }


  /* ═══ hero 光缝 ═══ */
  .hero { position: relative; }
  .crack {
    position: absolute; right: -40px; top: 34px;
    width: 1px; height: 120px; opacity: .5;
    background: linear-gradient(to bottom, transparent, var(--blue-soft) 40%, var(--ember) 70%, transparent);
  }

  /* ═══ 顶部进度条 ═══ */
  .progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 10000; pointer-events: none; }
  .progress i {
    display: block; height: 100%; width: 0;
    background: linear-gradient(to right, var(--blue-dim), var(--blue), var(--ember), var(--rust));
    box-shadow: 0 0 14px rgba(43,75,196,0.5); transition: width .12s linear;
  }

  /* ═══ 骨架 ═══ */
  .shell {
    position: relative; z-index: 10;
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: var(--rail) 1fr;
  }
  .rail {
    position: relative; padding: 26px 0;
    border-right: 1px solid rgba(43,75,196,0.10);
    display: flex; flex-direction: column; align-items: center; gap: 22px;
  }
  .rail::after {
    content: ''; position: absolute; top: 0; bottom: 0; right: -1px; width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(43,75,196,0.34) 20%,
      rgba(122,97,40,0.22) 55%, transparent);
  }
  .vtext {
    writing-mode: vertical-rl;
    font-family: var(--mono); font-size: 12px;
    letter-spacing: 0.52em; text-transform: uppercase;
    color: var(--bone-dim); white-space: nowrap;
  }
  .vtext.blue { color: var(--blue-soft); opacity: .72; }
  .vtext.rust { color: var(--ember); opacity: .55; }
  .vtext.faint { color: rgba(42,36,28,0.20); }
  .vtext .dot { color: var(--gold); }
  .sigil {
    font-family: var(--serif); font-size: 22px; line-height: 1;
    color: var(--blue-soft); text-shadow: 0 0 18px rgba(43,75,196,0.45);
    animation: sigilPulse 7s ease-in-out infinite;
  }
  @keyframes sigilPulse {
    0%,100% { opacity: .55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
  }

  .main { padding: 0 var(--gut) 0 calc(var(--gut) - 14px); min-width: 0; }
  .wrap { max-width: var(--readw); }   /* 正文列 */

  /* ═══ 顶栏 ═══ */
  .nav {
    display: flex; align-items: center; gap: 22px;
    padding: 18px 0;
    background: rgba(246,241,230,0.55);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-bottom: 1px solid rgba(43,75,196,0.12);
    font-family: var(--mono); font-size: 13px;
    letter-spacing: 0.22em; text-transform: uppercase;
  }
  .nav .brand { display: flex; align-items: baseline; gap: 12px; color: var(--bone); text-decoration: none; }
  .nav .brand b { font-family: var(--serif); font-size: 18px; font-weight: 500; }
  /* v3.18：站名变长后的窄屏适配，避免顶栏挤爆 */
  @media (max-width: 700px) {
    .hero-title .l2 { font-size: .52em; letter-spacing: .04em; padding-left: .6em; }
  }
  @media (max-width: 900px) {
    .nav .brand { gap: 8px; }
    .nav .brand b { font-size: 14px; letter-spacing: 0; }
    .nav .brand .ver { display: none; }
  }
  .nav .brand .ver {
    font-family: var(--mono); font-size: 12px; font-style: normal;
    letter-spacing: .12em; color: var(--ember); opacity: .7; align-self: center;
  }
  .nav .brand span { color: var(--blue-soft); font-size: 16px; }
  .nav .links { display: flex; gap: 22px; margin-left: auto; }
  .nav a { color: var(--bone-dim); text-decoration: none; font-weight: 500; transition: color .35s; }
  .nav a:hover { color: var(--blue-soft); }
  .nav .cta {
    align-self: center; margin-left: auto; flex-shrink: 0;
    color: var(--bone); border: 1px solid rgba(43,75,196,0.4);
    padding: 8px 16px; background: rgba(43,75,196,0.08); transition: all .35s;
  }
  .nav .cta:hover { border-color: var(--blue); background: rgba(43,75,196,0.2); box-shadow: 0 0 24px rgba(43,75,196,0.3); }

  /* ═══ Hero ═══ */
  .hero { padding: 26px 0 0; }
  .hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 34vw, 440px);
    gap: clamp(24px, 4vw, 56px); align-items: center;
  }
  .hero-text { min-width: 0; }

  /* 首屏插画：方形 + 底部裁切，带一层极淡的品牌色罩把调子压进页面 */
  .hero-art {
    position: relative; margin: 0; overflow: hidden;
    border: 1px solid rgba(42,36,28,0.10); border-radius: 3px;
    box-shadow: 0 30px 70px rgba(110,92,64,0.165), 0 0 90px rgba(43,75,196,0.06);
  }
  .hero-art img { display: block; width: 100%; height: auto; }
  .hero-art::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(to bottom, rgba(246,241,230,0.10) 0%, transparent 22%, transparent 62%, rgba(246,241,230,0.55) 100%),
      linear-gradient(105deg, rgba(43,75,196,0.10), transparent 55%);
  }
  .hero-art figcaption {
    position: absolute; left: 16px; bottom: 13px; z-index: 2;
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  }
  .hero-art .art-name {
    font-family: var(--serif); font-size: 17px; color: var(--bone);
    letter-spacing: .04em; text-shadow: 0 2px 14px rgba(246,241,230,0.9);
  }
  .hero-art .art-sub {
    font-family: var(--mono); font-size: 12px; letter-spacing: .28em;
    text-transform: uppercase; color: var(--gold); opacity: .9;
  }
  .epoch {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--mono); font-size: 12.5px;
    letter-spacing: 0.5em; text-transform: uppercase;
    color: var(--blue-soft); opacity: .85; margin-bottom: 20px;
  }
  .epoch::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .55; }
  .epoch i { font-style: normal; color: var(--gold); }

  .hero-title {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.16; letter-spacing: .01em; margin-bottom: 6px;
  }
  /* 站名两字：强调色 + 细下划线（纸面上比发光阴影干净） */
  .hero-title .glow {
    color: var(--ember); font-style: normal; font-weight: 700;
    padding-bottom: .02em;
    border-bottom: 2px solid rgba(168,91,42,0.32);
    text-shadow: none;
  }
  /* 第二行：缩成副题，字号减半、字距放宽、左侧一道金线 */
  .hero-title .l2 {
    display: block; margin-top: .46em;
    padding-left: .72em; border-left: 2px solid var(--gold);
    font-size: .46em; font-weight: 400;
    line-height: 1.55; letter-spacing: .1em;
    color: var(--bone-dim);
  }
  .hero-title .rust {
    color: var(--ember); font-style: italic; font-weight: 300;
    text-shadow: 0 0 22px rgba(168,91,42,0.45), 0 0 68px rgba(168,91,42,0.18);
  }
  .hero-sub {
    font-family: var(--serif); font-style: italic;
    font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7;
    color: var(--bone-dim); max-width: 620px; margin-bottom: 16px;
  }
  .hero-sub b { font-style: normal; font-weight: 500; color: var(--bone); }
  .latin {
    font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.42em;
    text-transform: uppercase; color: rgba(42,36,28,0.26); margin-bottom: 40px;
  }

  /* ── 门口终端 ── */
  .term {
    position: relative; border: 1px solid rgba(43,75,196,0.22);
    background: linear-gradient(180deg, rgba(239,231,215,0.92), rgba(246,241,230,0.96));
    backdrop-filter: blur(6px);
    box-shadow: 0 24px 70px rgba(110,92,64,0.186), 0 0 90px rgba(43,75,196,0.05) inset;
    margin-bottom: 16px;
  }
  .term::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, transparent, var(--blue), var(--ember), transparent);
    opacity: .85;
  }
  .term-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px; border-bottom: 1px solid rgba(43,75,196,0.14);
    font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--bone-dim);
  }
  .term-bar .dots { display: flex; gap: 6px; margin-right: 6px; }
  .term-bar .dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
  .term-bar .dots i:nth-child(1) { background: #5A2A22; }
  .term-bar .dots i:nth-child(2) { background: #5A4A22; }
  .term-bar .dots i:nth-child(3) { background: #22482A; }
  .term-bar .path { color: var(--blue-soft); }
  .term-bar .right { margin-left: auto; letter-spacing: .18em; opacity: .7; }

  .term-body {
    padding: 18px 20px 8px;
    font-family: var(--mono); font-size: 14px; line-height: 1.9;
    min-height: 148px;
  }
  .prompt-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .prompt-line .ps1 { color: var(--blue-soft); white-space: nowrap; }
  .prompt-line .ps2 { color: var(--ember); }
  .prompt-line .glyph { color: var(--bone-dim); }
  #termInput {
    flex: 1; min-width: 200px;
    background: none; border: none; outline: none;
    color: var(--bone); font-family: var(--mono); font-size: 13px;
    caret-color: var(--blue-soft); padding: 2px 0;
  }
  #termInput::placeholder { color: rgba(42,36,28,0.22); }

  .hits { margin-top: 10px; }
  .hit {
    display: grid; grid-template-columns: 88px 1fr auto; gap: 14px;
    align-items: baseline; width: 100%; text-align: left;
    background: none; border: none; border-top: 1px solid rgba(43,75,196,0.08);
    padding: 11px 8px; color: var(--bone); cursor: pointer;
    font-family: var(--serif); font-size: 15px; transition: background .3s, padding-left .3s;
  }
  .hit:hover, .hit.on { background: rgba(43,75,196,0.06); padding-left: 14px; }
  .hit .k {
    font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--ember);
  }
  .hit .t { min-width: 0; }
  .hit .t small { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--bone-dim); margin-top: 2px; }
  .hit .go { font-family: var(--mono); font-size: 13px; color: var(--blue-soft); opacity: .5; }
  .hit:hover .go, .hit.on .go { opacity: 1; }
  .hit[disabled] { opacity: .42; cursor: not-allowed; }
  .term-empty {
    padding: 14px 8px; font-family: var(--mono); font-size: 12px;
    color: var(--bone-dim); border-top: 1px solid rgba(43,75,196,0.08);
  }
  .term-foot {
    display: flex; gap: 18px; flex-wrap: wrap;
    padding: 10px 20px 14px; border-top: 1px solid rgba(43,75,196,0.10);
    font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em;
    color: rgba(42,36,28,0.34); text-transform: uppercase;
  }
  .term-foot kbd {
    color: var(--blue-soft); border: 1px solid rgba(43,75,196,0.28);
    padding: 1px 5px; font-size: 12.5px; margin-right: 5px;
  }
  .term-foot .sp { margin-left: auto; }

  /* 首屏事实条 */
  .facts {
    display: flex; flex-wrap: wrap;
    border-top: 1px solid rgba(42,36,28,0.09);
    border-bottom: 1px solid rgba(42,36,28,0.09);
    margin-bottom: 92px;
  }
  .facts.is-empty { display: none; }
  .fact { flex: 1 1 120px; padding: 15px 20px; border-right: 1px solid rgba(42,36,28,0.07); }
  .fact:last-child { border-right: none; }
  .fact b { display: block; font-family: var(--mono); font-size: 20px; font-weight: 600; }
  .fact span {
    display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.32em;
    text-transform: uppercase; color: var(--bone-dim); margin-top: 5px;
  }

  /* ═══ 章节通用 ═══ */
  .sec { margin-bottom: 118px; scroll-margin-top: 30px; }
  .sec-head {
    display: flex; align-items: baseline; gap: 16px;
    padding-bottom: 14px; margin-bottom: 36px;
    border-bottom: 1px solid rgba(42,36,28,0.10); position: relative;
  }
  .sec-head::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 40px; height: 1px;
    background: var(--ember); box-shadow: 0 0 10px rgba(168,91,42,0.45);
  }
  .sec-num { font-family: var(--mono); font-size: 13px; letter-spacing: .3em; color: var(--ember); }
  .sec-head h2 {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(23px, 2.8vw, 31px); letter-spacing: -.01em;
  }
  .sec-head em { font-style: italic; color: var(--blue-soft); font-weight: 300; }
  .sec-sub {
    margin-left: auto; font-family: var(--mono); font-size: 12px;
    letter-spacing: .3em; text-transform: uppercase; color: var(--bone-dim); opacity: .62;
  }
  .sec-note {
    font-family: var(--sans); font-size: 13.5px; line-height: 1.75;
    color: var(--bone-dim); max-width: 620px; margin-bottom: 26px;
  }
  .sec-note b { color: var(--bone); font-weight: 500; }

  /* ═══ 博客：主列 + 侧栏 ═══ */
  .blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--aside);
    gap: 44px; align-items: start;
  }
  .blog-main { min-width: 0; }

  /* 分类条（ksyaki 的 categories 条） */
  .catbar {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    padding-bottom: 18px; margin-bottom: 20px;
    border-bottom: 1px solid rgba(43,75,196,0.10);
  }
  .cat {
    font-family: var(--mono); font-size: 13px; letter-spacing: .08em;
    color: var(--bone-dim); background: none; cursor: pointer;
    border: 1px solid rgba(43,75,196,0.16); padding: 5px 12px;
    transition: all .3s;
  }
  .cat b { color: var(--blue-soft); font-weight: 500; margin-left: 5px; }
  .cat:hover { color: var(--bone); border-color: rgba(43,75,196,0.45); }
  .cat[aria-pressed="true"] {
    color: var(--bone); border-color: var(--blue);
    background: rgba(43,75,196,0.14); box-shadow: 0 0 18px rgba(43,75,196,0.18);
  }
  .cat[aria-pressed="true"] b { color: var(--ember); }
  .catbar .tag-clear {
    margin-left: auto; font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--ember); background: none;
    border: none; border-bottom: 1px solid rgba(168,91,42,0.4); cursor: pointer; padding-bottom: 2px;
  }

  /* 文章卡 */
  .post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .post-card {
    display: flex; flex-direction: column; gap: 11px;
    text-decoration: none; color: var(--bone);
    border: 1px solid rgba(42,36,28,0.08);
    background: rgba(42,36,28,0.018);
    padding: 14px; position: relative; border-radius: 3px;
    transition: border-color .5s, background .5s, transform .5s, box-shadow .5s;
  }
  .post-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, transparent, var(--blue), transparent);
    opacity: 0; transition: opacity .5s;
  }
  .post-card:hover {
    border-color: rgba(43,75,196,0.30); background: rgba(42,36,28,0.035);
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(110,92,64,0.126);
  }
  .post-excerpt { -webkit-line-clamp: 2; font-size: 14px; line-height: 1.75; }
  .post-card:hover::before { opacity: 1; }

  /* 封面：有图用图；没图用"图版"（不编造素材，用排版占位） */
  .cover { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--stone); }
  .cover img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.7) contrast(1.05); transition: filter .6s, transform .6s; }
  .post-card:hover .cover img { filter: saturate(1) contrast(1.1); transform: scale(1.04); }
  .cover.plate {
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 12px;
    border: 1px solid rgba(122,97,40,0.18);
    background:
      repeating-linear-gradient(58deg, rgba(42,36,28,0.022) 0 1px, transparent 1px 8px),
      linear-gradient(150deg, rgba(43,75,196,0.14), rgba(139,58,42,0.16) 60%, transparent);
  }
  .cover.plate .pl-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    font-family: var(--mono); font-size: 12px; letter-spacing: .2em;
    text-transform: uppercase; color: var(--gold); opacity: .85;
  }
  .cover.plate .pl-glyph {
    font-family: var(--serif); font-size: 34px; line-height: 1;
    color: var(--bone); opacity: .30; text-shadow: 0 0 22px rgba(43,75,196,0.4);
  }
  .cover.plate .pl-cat {
    font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--blue-soft); opacity: .9;
  }
  .cover .hot {
    position: absolute; top: 8px; right: 8px;
    font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
    padding: 2px 7px; color: var(--ember);
    border: 1px solid rgba(168,91,42,0.45); background: rgba(246,241,230,0.75);
  }

  .post-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .post-meta {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    font-family: var(--mono); font-size: 12px; letter-spacing: .17em;
    text-transform: uppercase; color: rgba(42,36,28,0.44);
  }
  .post-meta .badge-cat {
    color: var(--blue-soft); border: 1px solid rgba(43,75,196,0.3);
    padding: 2px 8px; background: rgba(43,75,196,0.07);
  }
  .post-meta .views::before { content: '◉ '; color: var(--gold); }
  .post-name { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.42; letter-spacing: -.005em; }
  .post-card:hover .post-name { color: var(--blue-soft); }
  .post-excerpt {
    font-family: var(--sans); font-size: 13px; line-height: 1.7;
    color: var(--bone-dim);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .post-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
  .post-tags span {
    font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
    color: var(--bone-dim); border-bottom: 1px solid rgba(42,36,28,0.12);
  }
  .post-foot {
    display: flex; gap: 14px; margin-top: auto; padding-top: 6px;
    font-family: var(--mono); font-size: 12.5px; color: var(--bone-dim); opacity: .8;
  }
  .post-foot .who { color: var(--gold); }

  /* 分页 */
  .pager {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    margin-top: 26px; padding-top: 20px;
    border-top: 1px solid rgba(43,75,196,0.10);
  }
  .pager button {
    font-family: var(--mono); font-size: 13px; letter-spacing: .1em;
    min-width: 34px; padding: 7px 10px; cursor: pointer;
    color: var(--bone-dim); background: none;
    border: 1px solid rgba(43,75,196,0.16); transition: all .3s;
  }
  .pager button:hover:not(:disabled) { color: var(--bone); border-color: rgba(43,75,196,0.45); }
  .pager button[aria-current="page"] {
    color: var(--bone); border-color: var(--blue);
    background: rgba(43,75,196,0.14); box-shadow: 0 0 18px rgba(43,75,196,0.18);
  }
  .pager button:disabled { opacity: .3; cursor: not-allowed; }
  .pager .pg-info {
    margin-left: auto; font-family: var(--mono); font-size: 12.5px;
    letter-spacing: .18em; text-transform: uppercase; color: rgba(42,36,28,0.34);
  }

  /* ── 侧栏 ── */
  .aside { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 22px; }
  .panel { border: 1px solid rgba(42,36,28,0.08); background: rgba(42,36,28,0.016); border-radius: 3px; }
  .panel h3 {
    display: flex; align-items: center; gap: 9px;
    font-family: var(--mono); font-size: 12.5px; font-weight: 500;
    letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
    padding: 13px 15px; margin: 0;
    border-bottom: 1px solid rgba(43,75,196,0.10);
  }
  .panel h3::before { content: '☿'; color: var(--blue-soft); font-size: 12px; }
  .panel .pad { padding: 12px 15px 15px; }
  .panel ul { list-style: none; }
  .panel li { border-bottom: 1px solid rgba(42,36,28,0.05); }
  .panel li:last-child { border-bottom: none; }

  .hot-item {
    display: flex; gap: 10px; align-items: baseline;
    padding: 9px 0; text-decoration: none; color: var(--bone-dim);
    transition: color .3s, padding-left .3s;
  }
  .hot-item:hover { color: var(--bone); padding-left: 5px; }
  .hot-item .rank {
    font-family: var(--mono); font-size: 12.5px; color: var(--ember);
    min-width: 18px; flex-shrink: 0;
  }
  .hot-item .ht { font-family: var(--serif); font-size: 14.5px; line-height: 1.45; flex: 1; min-width: 0; }
  .hot-item .hv { font-family: var(--mono); font-size: 12.5px; color: var(--gold); flex-shrink: 0; }

  .cat-tree { font-family: var(--mono); font-size: 13px; }
  .cat-tree .lvl1, .cat-tree .lvl2 {
    display: flex; align-items: center; gap: 8px; width: 100%;
    background: none; border: none; cursor: pointer; text-align: left;
    padding: 7px 0; color: var(--bone-dim); transition: color .3s, padding-left .3s;
  }
  .cat-tree .lvl1:hover, .cat-tree .lvl2:hover { color: var(--bone); padding-left: 4px; }
  .cat-tree .lvl1[aria-pressed="true"], .cat-tree .lvl2[aria-pressed="true"] { color: var(--blue-soft); }
  .cat-tree .lvl2 { padding-left: 16px; font-size: 13px; }
  .cat-tree .lvl2::before { content: '└'; color: rgba(42,36,28,0.22); font-size: 12.5px; }
  .cat-tree .cnt { margin-left: auto; color: rgba(42,36,28,0.34); }
  .cat-tree .lvl1[aria-pressed="true"] .cnt, .cat-tree .lvl2[aria-pressed="true"] .cnt { color: var(--ember); }

  .tagcloud { display: flex; flex-wrap: wrap; gap: 7px; max-height: 92px; overflow: hidden; }
  .tagcloud.open { max-height: none; }
  .tagcloud-more {
    margin-top: 10px; width: 100%; text-align: left;
    font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--ember); background: none; border: none; cursor: pointer; padding: 0;
  }
  .tagcloud-more:hover { color: var(--bone); }
  .tagcloud button {
    font-family: var(--mono); font-size: 12.5px;
    color: var(--bone-dim); background: none; cursor: pointer;
    border: 1px solid rgba(42,36,28,0.12); padding: 4px 9px; transition: all .3s;
  }
  .tagcloud button:hover { color: var(--bone); border-color: rgba(43,75,196,0.4); }
  .tagcloud button[aria-pressed="true"] {
    color: var(--bone); border-color: var(--blue); background: rgba(43,75,196,0.14);
  }
  .tagcloud button i { font-style: normal; color: var(--gold); margin-left: 5px; }

  .svc { font-family: var(--mono); font-size: 13px; }
  .svc a, .svc span.row {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 0; text-decoration: none; color: var(--bone-dim);
    border-bottom: 1px solid rgba(42,36,28,0.05); transition: color .3s;
  }
  .svc a:last-child, .svc span.row:last-child { border-bottom: none; }
  .svc a:hover { color: var(--bone); }
  .svc .dot2 { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--blue-soft); box-shadow: 0 0 6px var(--blue-soft); }
  .svc .dot2.m { background: var(--ember); box-shadow: 0 0 6px var(--ember); }
  .svc .dot2.o { background: var(--rust); box-shadow: none; opacity: .7; }
  .svc .sn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .svc .st { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

  /* ═══ 文档 ═══ */
  .viewswitch {
    display: inline-flex; border: 1px solid rgba(122,97,40,0.28);
    margin-bottom: 20px; font-family: var(--mono); font-size: 12.5px;
    letter-spacing: .2em; text-transform: uppercase;
  }
  .viewswitch button {
    background: none; border: none; color: var(--bone-dim);
    padding: 8px 16px; cursor: pointer; transition: all .35s;
    font-family: inherit; font-size: inherit; letter-spacing: inherit;
  }
  .viewswitch button[aria-pressed="true"] { background: rgba(122,97,40,0.14); color: var(--bone); }
  .viewswitch button:hover { color: var(--bone); }

  .spec { width: 100%; border-collapse: collapse; font-size: 14px; }
  .spec caption {
    text-align: left; font-family: var(--mono); font-size: 12.5px;
    letter-spacing: .3em; text-transform: uppercase; color: var(--bone-dim); padding-bottom: 12px;
  }
  .spec th {
    text-align: left; font-family: var(--mono); font-weight: 500; font-size: 12px;
    letter-spacing: .26em; text-transform: uppercase; color: var(--bone-dim);
    padding: 0 16px 11px 0; border-bottom: 1px solid rgba(122,97,40,0.22);
  }
  .spec td {
    padding: 15px 16px 15px 0; vertical-align: top;
    border-bottom: 1px solid rgba(42,36,28,0.07);
    color: var(--bone-dim); line-height: 1.6;
  }
  .spec tbody tr { transition: background .35s; }
  .spec tbody tr:hover { background: rgba(122,97,40,0.045); }
  .spec td:first-child { font-family: var(--serif); font-size: 16.5px; color: var(--bone); }
  .spec td.mono { font-family: var(--mono); font-size: 12.5px; color: var(--gold); }
  .spec .acts { white-space: nowrap; }
  .spec .acts a, .spec .acts span {
    font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold); border-bottom: 1px solid rgba(122,97,40,0.35);
    text-decoration: none; margin-right: 14px; transition: all .3s;
  }
  .spec .acts a:hover { color: var(--bone); border-color: var(--gold); }
  .spec .acts span { color: var(--bone-dim); border-color: transparent; }

  .doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .doc-card {
    position: relative; padding: 26px 22px 22px;
    border: 1px solid rgba(42,36,28,0.09); background: rgba(42,36,28,0.018);
    border-radius: 3px;
    transition: border-color .6s, background .6s, box-shadow .6s, transform .6s;
  }
  .doc-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), var(--ember), transparent);
    opacity: 0; transition: opacity .6s;
  }
  .doc-card:hover {
    border-color: rgba(122,97,40,0.42); background: rgba(246,241,230,0.72);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(110,92,64,0.15), 0 0 60px rgba(122,97,40,0.06);
  }
  .doc-card:hover::before { opacity: 1; }
  .doc-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
  .doc-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: .7rem; letter-spacing: .05em;
    color: var(--gold); border: 1px solid rgba(122,97,40,0.3); background: rgba(122,97,40,0.05);
    transition: all .6s;
  }
  .doc-card:hover .doc-icon { color: var(--ember); border-color: rgba(168,91,42,0.5); background: rgba(168,91,42,0.08); }
  .doc-info { flex: 1; min-width: 0; }
  .doc-name { font-family: var(--serif); font-size: 18.5px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
  .doc-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .15em; color: var(--bone-dim); opacity: .7; }
  .doc-desc { font-family: var(--sans); font-size: 14px; line-height: 1.7; color: var(--bone-dim); margin-bottom: 18px; }
  .doc-actions { display: flex; gap: 10px; }
  .doc-btn {
    flex: 1; font-family: var(--mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
    text-align: center; padding: 10px 14px; cursor: pointer; text-decoration: none;
    border: 1px solid rgba(122,97,40,0.3); background: rgba(122,97,40,0.05); color: var(--gold);
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: all .4s;
  }
  .doc-btn:hover { background: rgba(122,97,40,0.15); border-color: var(--gold); color: var(--bone); }
  .doc-btn.primary { background: rgba(43,75,196,0.08); border-color: rgba(43,75,196,0.3); color: var(--blue-soft); }
  .doc-btn.primary:hover { background: rgba(43,75,196,0.18); border-color: var(--blue); color: var(--bone); }
  .doc-btn.dead { opacity: .5; cursor: not-allowed; }
  .doc-btn.dead:hover { background: rgba(139,58,42,0.10); border-color: rgba(139,58,42,0.5); color: var(--ember); }

  .ex-badge {
    display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .2em;
    padding: 1px 6px; margin-left: 8px; vertical-align: middle;
    color: var(--rust); border: 1px solid rgba(139,58,42,0.4); opacity: .9;
  }

  /* ═══ 业务 ═══ */
  .biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .biz-card {
    position: relative; padding: 30px 20px 24px;
    border: 1px solid rgba(42,36,28,0.09); background: rgba(42,36,28,0.018);
    border-radius: 3px; text-decoration: none; color: var(--bone);
    display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center;
    transition: border-color .6s, background .6s, box-shadow .6s, transform .6s;
  }
  .biz-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, transparent, var(--blue), var(--ember), transparent);
    opacity: 0; transition: opacity .6s;
  }
  .biz-card:hover {
    border-color: rgba(43,75,196,0.35); background: rgba(246,241,230,0.72);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(110,92,64,0.15), 0 0 60px rgba(43,75,196,0.08);
  }
  .biz-card:hover::before { opacity: 1; }
  .biz-icon {
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 1.5rem; color: var(--blue-soft);
    filter: drop-shadow(0 0 16px rgba(43,75,196,0.3)); transition: all .6s;
  }
  .biz-card:hover .biz-icon { color: var(--blue); filter: drop-shadow(0 0 24px rgba(43,75,196,0.6)); transform: scale(1.1); }
  .biz-name { font-family: var(--serif); font-size: 19.5px; font-weight: 600; letter-spacing: .02em; }
  .biz-desc { font-family: var(--sans); font-size: 13.5px; line-height: 1.6; color: var(--bone-dim); }
  .biz-path {
    font-family: var(--mono); font-size: 12.5px; padding: 5px 13px; margin-top: 3px;
    border: 1px solid rgba(43,75,196,0.2); border-radius: 50px;
    color: var(--blue-soft); background: rgba(43,75,196,0.05); transition: all .6s;
  }
  .biz-card:hover .biz-path { border-color: var(--blue); background: rgba(43,75,196,0.12); color: var(--bone); }
  .biz-status {
    position: absolute; top: 14px; right: 14px; width: 6px; height: 6px; border-radius: 50%;
    background: var(--blue-soft); box-shadow: 0 0 8px var(--blue-soft);
    animation: statusPulse 3s ease-in-out infinite;
  }
  .biz-status.offline { background: var(--rust); box-shadow: 0 0 8px var(--rust); animation: none; opacity: .6; }
  .biz-status.maintenance { background: var(--ember); box-shadow: 0 0 8px var(--ember); }
  @keyframes statusPulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
  .biz-num {
    position: absolute; top: 14px; left: 16px;
    font-family: var(--mono); font-size: 12px; letter-spacing: .15em;
    color: var(--bone-dim); opacity: .3; transition: all .6s;
  }
  .biz-card:hover .biz-num { opacity: .65; color: var(--blue-soft); }

  /* 服务状态条（对位 ksyaki 的 status 子域） */
  .svcbar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px; background: rgba(43,75,196,0.10);
    border: 1px solid rgba(43,75,196,0.10); margin-top: 18px;
  }
  .svcbar .cell2 {
    background: var(--void); padding: 13px 15px;
    display: flex; align-items: center; gap: 9px;
    font-family: var(--mono); font-size: 13px; color: var(--bone-dim);
    text-decoration: none; transition: background .4s, color .4s;
  }
  .svcbar a.cell2:hover { background: var(--void-warm); color: var(--bone); }
  .svcbar .nm2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .svcbar .st2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }

  /* ═══ 空态 ═══ */
  .empty {
    padding: 38px 20px; text-align: center;
    font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--bone-dim);
    border: 1px dashed rgba(43,75,196,0.14);
  }
  .empty b { display: block; font-family: var(--serif); font-size: 16px; letter-spacing: 0; color: var(--bone); margin-bottom: 6px; }

  /* ═══ 页脚 ═══ */
  .foot {
    border-top: 1px solid rgba(43,75,196,0.14);
    padding: 56px 0 44px; margin-top: 96px; text-align: center; position: relative;
  }
  .foot::before {
    content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    width: 64px; height: 1px; background: var(--ember); box-shadow: 0 0 12px rgba(168,91,42,0.5);
  }
  .foot-sigil {
    font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--blue);
    text-shadow: 0 0 30px rgba(43,75,196,0.5); margin-bottom: 20px;
    animation: sigilPulse 8s ease-in-out infinite;
  }
  .foot-line { font-family: var(--serif); font-style: italic; font-size: 16.5px; line-height: 1.75; color: var(--bone-dim); }
  .foot-line.accent { color: var(--ember); opacity: .78; }
  .foot-meta {
    font-family: var(--mono); font-size: 12px; letter-spacing: .4em; text-transform: uppercase;
    color: rgba(42,36,28,0.16); margin-top: 22px;
  }
  .foot-badges {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-top: 26px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em;
  }
  .foot-badges a, .foot-badges span {
    color: rgba(42,36,28,0.34); text-decoration: none;
    border: 1px solid rgba(42,36,28,0.12); padding: 5px 11px; transition: all .3s;
  }
  .foot-badges a:hover { color: var(--bone); border-color: rgba(43,75,196,0.4); }
  .foot-badges .cc { border-color: rgba(122,97,40,0.28); color: var(--gold); }
  .foot-rule { width: 46px; height: 1px; background: rgba(42,36,28,0.14); margin: 26px auto 0; }

  /* ═══ Toast ═══ */
  .toast {
    position: fixed; left: 50%; bottom: 34px; z-index: 10001;
    transform: translateX(-50%) translateY(90px); opacity: 0; pointer-events: none;
    padding: 13px 24px; background: rgba(246,241,230,0.96);
    border: 1px solid rgba(43,75,196,0.42); color: var(--bone);
    font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
    box-shadow: 0 12px 44px rgba(110,92,64,0.198), 0 0 40px rgba(43,75,196,0.16);
    backdrop-filter: blur(10px); transition: all .45s cubic-bezier(.4,0,.2,1);
    max-width: calc(100vw - 40px);
  }
  .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
  .toast.bad { border-color: rgba(139,58,42,0.6); box-shadow: 0 12px 44px rgba(110,92,64,0.198), 0 0 40px rgba(139,58,42,0.2); }
  .toast.good { border-color: rgba(74,122,74,0.55); }

  /* ═══ 返回顶部 ═══ */
  .to-top {
    position: fixed; right: 26px; bottom: 26px; z-index: 9999;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--blue-soft);
    background: rgba(246,241,230,0.88); border: 1px solid rgba(43,75,196,0.25);
    backdrop-filter: blur(10px); cursor: pointer;
    opacity: 0; transform: translateY(20px); pointer-events: none;
    transition: all .5s cubic-bezier(.4,0,.2,1);
  }
  .to-top.show { opacity: 1; transform: none; pointer-events: auto; }
  .to-top:hover { color: var(--bone); border-color: var(--blue); box-shadow: 0 0 28px rgba(43,75,196,0.3); }

  /* ═══ 维护页 ═══ */
  .maintenance {
    display: none; position: fixed; inset: 0; z-index: 10002;
    background: var(--void); flex-direction: column;
    align-items: center; justify-content: center; text-align: center; padding: 24px;
  }
  .maintenance.active { display: flex; }
  .maintenance::before {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 70% 50% at 50% -5%, rgba(43,75,196,0.07), transparent 60%),
      radial-gradient(ellipse 60% 40% at 50% 105%, rgba(139,58,42,0.05), transparent 60%);
  }
  .m-inner { position: relative; max-width: 540px; padding: 40px 24px; }
  .m-icon {
    font-family: var(--serif); font-size: 64px; color: var(--ember); font-style: italic;
    text-shadow: 0 0 30px rgba(168,91,42,0.5); margin-bottom: 30px;
    animation: mFloat 3.5s ease-in-out infinite;
  }
  @keyframes mFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
  .m-title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 40px); margin-bottom: 22px; }
  .m-title .rust { color: var(--ember); font-style: italic; text-shadow: 0 0 20px rgba(168,91,42,0.4); }
  .m-body { font-family: var(--sans); font-size: 15px; line-height: 1.9; color: var(--bone-dim); margin-bottom: 30px; }
  .m-time {
    display: inline-block; font-family: var(--mono); font-size: 13px;
    padding: 13px 26px; margin-bottom: 26px; letter-spacing: .08em;
    border: 1px solid rgba(168,91,42,0.35); background: rgba(168,91,42,0.06); color: var(--ember);
  }
  .m-time span { color: var(--bone); font-weight: 500; }
  .m-back {
    display: inline-block; font-family: var(--mono); font-size: 12px;
    letter-spacing: .2em; text-transform: uppercase; color: var(--blue-soft);
    text-decoration: none; border-bottom: 1px solid rgba(43,75,196,0.3);
    padding-bottom: 4px; transition: all .4s;
  }
  .m-back:hover { color: var(--bone); border-color: var(--blue); }

  /* ═══ 滚动进入 ═══ */
  .rv { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
  .rv.in { opacity: 1; transform: none; }

  /* ═══ 响应式 ═══ */
  @media (max-width: 1200px) {
    :root { --aside: 250px; --gut: 44px; }
    .blog-layout { gap: 32px; }
    .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 1000px) {
    :root { --gut: 34px; }
    .blog-layout { grid-template-columns: 1fr; }
    .aside { position: static; }
    .biz-grid { grid-template-columns: repeat(2, 1fr); }
    .nav .links { display: none; }
  }
  @media (max-width: 820px) {
    :root { --rail: 46px; --gut: 24px; }
    body { font-size: 16px; }
    .main { padding: 0 20px 0 4px; }
    .vtext { font-size: 12px; letter-spacing: .34em; }
    .sigil { font-size: 16px; }
    .hero { padding-top: 38px; }
    .post-list { grid-template-columns: 1fr; }
    .post-card { flex-direction: row; align-items: flex-start; }
    .post-card .cover { width: 132px; flex-shrink: 0; }
    .doc-grid, .biz-grid { grid-template-columns: 1fr; gap: 14px; }
    .spec td:first-child { white-space: normal; }
    .hit { grid-template-columns: 64px 1fr auto; }
    .sec { margin-bottom: 70px; }
    .sec-sub { display: none; }
    .facts { margin-bottom: 56px; }
    .to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
    .facts .fact { flex: 1 1 45%; }
    .nav { flex-wrap: wrap; gap: 14px; }
    .nav-search { max-width: none; height: 34px; margin: 0 4px; }
    .hero-grid { grid-template-columns: 1fr; gap: 22px; }
    .hero-art { order: -1; max-width: 420px; }
    .hero-lead { gap: 10px; }
    .banner svg { height: 200px; }
    .banner figcaption { left: 14px; bottom: 12px; }
    .search-box { margin-top: 6vh; max-height: 84vh; }
  }
  @media (max-width: 560px) {
    .nav-search { order: 9; flex: 1 1 100%; margin: 8px 0 0; }
    .hits-panel { max-height: 48vh; }
    .rail { display: none; }
    .shell { grid-template-columns: 1fr; }
    .main { padding: 0 18px; }
    .term-body { font-size: 12px; min-height: 130px; }
    #termInput { font-size: 12px; min-width: 120px; }
    .hit { grid-template-columns: 1fr; gap: 3px; }
    .hit .go { display: none; }
    .doc-actions { flex-direction: column; }
    .pager .pg-info { width: 100%; margin-left: 0; }
  }

  /* ═══ 无障碍 ═══ */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important; animation-iteration-count: 1 !important;
      transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
    .tx-grain { animation: none; }
    .crack { animation: none; }
    .banner .bn-shimmer { display: none; }
    .meteor { display: none; }
    .banner svg animate, .banner svg animateTransform { display: none; }
    .dust { display: none; }
    .rv { opacity: 1; transform: none; }
  }

  /* ═══ 打印 ═══ */
  @media print {
    .tx-grain, .tx-scan, .tx-strata, .tx-stone, .tx-vignette, .dust,
    .progress, .toast, .to-top, .rail, .nav .links, .viewswitch, .biz-status, .crack,
    .catbar, .pager, .aside, .search { display: none !important; }
    .hero-search { display: none !important; }
    body { background: #fff; color: #111; font-size: 11pt; }
    .shell { display: block; max-width: none; }
    .main { padding: 0; }
    .wrap { max-width: none; }
    .hero-title .glow, .hero-title .rust, .foot-sigil { color: #111; text-shadow: none; }
    .term { border-color: #bbb; background: #fafafa; box-shadow: none; backdrop-filter: none; }
    #termInput { color: #111; }
    .term-foot, .sec-sub { color: #666; }
    .post-card, .doc-card, .biz-card { background: #fff; border-color: #ddd; box-shadow: none; backdrop-filter: none; break-inside: avoid; }
    .post-excerpt, .doc-desc, .biz-desc, .hero-sub, .foot-line, .sec-note, .post-meta, .post-foot { color: #444; }
    .post-name, .doc-name, .biz-name, .sec-head h2, .hero-title { color: #111; }
    .spec th, .spec td, .foot, .post-card { border-color: #ddd; }
    .post-name, .doc-name, .doc-meta, .doc-desc, .sec-head h2 { font-family: Georgia,'Songti SC',serif; }
    .sec { margin-bottom: 26px; }
    .cover.plate { background: #f2f2f2; }
  }
