@charset "UTF-8";
/* =========================================================================
 * 星穹列车 · HSR Theme
 * 仿《崩坏：星穹铁道》UI 风格的 Typecho 主题样式表
 *
 * 目录
 *   01. 设计变量 / 主题色
 *   02. 基础重置与排版
 *   03. 通用组件（按钮、标签、面板、面包屑……）
 *   04. 背景层（星尘 / 星云 / 网格）
 *   05. 状态栏与页头
 *   06. 首页主视觉
 *   07. 内容区外壳与文章流
 *   08. 文章卡片
 *   09. 侧边栏与小组件
 *   10. 归档页头 / 搜索
 *   11. 文章详情
 *   12. 正文排版
 *   13. 评论
 *   14. 分页 / 空状态 / 404
 *   15. 页脚 / 搜索弹层 / 回到顶部
 *   16. 响应式
 *   17. 动效与可访问性
 * ====================================================================== */

/* =========================================================================
 * 01. 设计变量 / 主题色
 * ====================================================================== */

:root {
    /* 尺寸 */
    --shell: 1240px;
    --shell-narrow: 820px;
    --radius: 2px;
    --cut-card: 20px;
    --cut-btn: 9px;

    /* 字体 */
    --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", ui-monospace, Consolas,
        "Liberation Mono", monospace;

    /* 缓动 */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    /* 深空配色（默认）—— 取自星穹铁道的深蓝星域 */
    --bg: #050a14;
    --bg-soft: #08101d;
    --surface: #0b1524;
    --surface-2: #101d30;
    --surface-3: #16253b;
    --line: rgb(150 185 240 / .11);
    --line-soft: rgb(150 185 240 / .06);
    --line-strong: rgb(150 185 240 / .21);
    --text: #e9eef7;
    --text-dim: #9aa7bd;
    --text-mute: #64718c;
    --grid-line: rgb(140 180 255 / .028);
    --shadow: 0 30px 70px -40px rgb(0 0 0 / .95);
    --shadow-soft: 0 16px 40px -28px rgb(0 0 0 / .8);
    --overlay: rgb(3 7 14 / .84);
}

html[data-theme="light"] {
    --bg: #ece7db;
    --bg-soft: #f4f0e6;
    --surface: #fffdf8;
    --surface-2: #fbf7ef;
    --surface-3: #f2ecdf;
    --line: rgb(58 46 22 / .14);
    --line-soft: rgb(58 46 22 / .075);
    --line-strong: rgb(58 46 22 / .26);
    --text: #191d25;
    --text-dim: #4d5665;
    --text-mute: #78818f;
    --grid-line: rgb(58 46 22 / .035);
    --shadow: 0 28px 60px -40px rgb(70 58 32 / .5);
    --shadow-soft: 0 14px 36px -28px rgb(70 58 32 / .38);
    --overlay: rgb(62 52 30 / .42);
}

/* 强调色 */
html[data-accent="gold"] {
    --accent: #d8c48f;
    --accent-2: #f4e7c4;
    --accent-deep: #8a6d2c;
    --accent-rgb: 216 196 143;
}

html[data-accent="cyan"] {
    --accent: #67d6f5;
    --accent-2: #c4f4ff;
    --accent-deep: #0c6a85;
    --accent-rgb: 103 214 245;
}

html[data-accent="violet"] {
    --accent: #b6a4ff;
    --accent-2: #e4dcff;
    --accent-deep: #5742b5;
    --accent-rgb: 182 164 255;
}

html[data-accent="jade"] {
    --accent: #85e3bb;
    --accent-2: #cbffea;
    --accent-deep: #1c7a58;
    --accent-rgb: 133 227 187;
}

html[data-accent="crimson"] {
    --accent: #ff8f8f;
    --accent-2: #ffd6d6;
    --accent-deep: #a83a3a;
    --accent-rgb: 255 143 143;
}

html {
    --accent-ink: var(--accent-2);
    --accent-surface: rgb(var(--accent-rgb) / .1);
    --accent-line: rgb(var(--accent-rgb) / .34);
}

html[data-theme="light"] {
    --accent-ink: var(--accent-deep);
    --accent-surface: rgb(var(--accent-rgb) / .18);
    --accent-line: rgb(var(--accent-rgb) / .55);
}

/* =========================================================================
 * 02. 基础重置与排版
 * ====================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html[data-theme="light"] {
    color-scheme: light;
}

body {
    position: relative;
    z-index: 0;
    margin: 0;
    min-height: 100vh;
    background: transparent;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.78;
    font-feature-settings: "kern" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s var(--ease);
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

/* 让 [hidden] 始终生效，避免被组件的 display 规则覆盖 */
[hidden] {
    display: none !important;
}

::selection {
    background: rgb(var(--accent-rgb) / .28);
    color: var(--text);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border: 2px solid var(--bg);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--line-strong);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 1px;
}

kbd {
    display: inline-block;
    min-width: 1.6em;
    padding: .1em .42em;
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 3px;
    background: var(--surface-2);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: .72em;
    line-height: 1.5;
    text-align: center;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 50%;
    z-index: 200;
    padding: 10px 20px;
    background: var(--accent);
    color: #0a0c10;
    font-weight: 600;
    transform: translate(-50%, -150%);
    transition: transform .25s var(--ease);
}

.skip-link:focus {
    transform: translate(-50%, 0);
}

.is-muted {
    color: var(--text-mute);
}

.dot {
    margin: 0 .45em;
    color: var(--text-mute);
}

.ico {
    flex: none;
    vertical-align: -0.15em;
}

/* 通用容器 */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 48px);
}

.shell--narrow {
    max-width: var(--shell-narrow);
}

/* =========================================================================
 * 03. 通用组件
 * ====================================================================== */

/* --- 眉题 --- */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.eyebrow__dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    box-shadow: 0 0 10px rgb(var(--accent-rgb) / .9);
    transform: rotate(45deg);
}

.eyebrow__slash {
    color: var(--line-strong);
}

/* --- 按钮：胶囊形 + 内嵌一圈细描边 --- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 27px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: .03em;
    white-space: nowrap;
    transition: background-color .22s var(--ease), color .22s var(--ease),
        border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}

/* 靠里一圈的描边 */
.btn::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid currentColor;
    border-radius: inherit;
    opacity: .28;
    pointer-events: none;
    transition: opacity .22s var(--ease);
}

.btn:hover::before {
    opacity: .46;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--accent);
    color: #0a0c10;
    border-color: var(--accent);
}

.btn--primary::before {
    opacity: .34;
}

/* hover 只做轻微提亮与描边加强，不再叠加光晕 */
.btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0c10;
    filter: brightness(1.05);
}

.btn--primary:hover::before {
    opacity: .5;
}

.btn--line {
    border-color: var(--line-strong);
    background: rgb(255 255 255 / .015);
    color: var(--text-dim);
}

.btn--line:hover {
    border-color: var(--accent-line);
    background: var(--accent-surface);
    color: var(--accent-ink);
}

.btn--sm {
    padding: 8px 19px;
    font-size: 13.5px;
    gap: 7px;
}

.btn--sm::before {
    inset: 3px;
}

.btn--lg {
    padding: 15px 34px;
    font-size: 15.5px;
}

.btn--lg::before {
    inset: 5px;
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn .ico {
    opacity: .85;
    transition: transform .22s var(--ease);
}

.btn:hover .ico {
    transform: translateX(2px);
}

.btn--primary:hover .ico {
    transform: translateX(2px);
}

/* --- 标签 --- */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    background: rgb(255 255 255 / .02);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 13.5px;
    letter-spacing: .04em;
    line-height: 1.5;
    transition: all .2s var(--ease);
}

.tag-chip:hover,
.tag-chip.is-active {
    border-color: var(--accent-line);
    background: var(--accent-surface);
    color: var(--accent-ink);
}

.tag-chip span {
    color: var(--text-mute);
    font-size: .9em;
}

/* --- 元信息小胶囊 --- */
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 13.5px;
    letter-spacing: .03em;
    white-space: nowrap;
    transition: color .2s var(--ease);
}

a.meta-chip:hover {
    color: var(--accent-ink);
}

.meta-chip .ico {
    color: var(--text-mute);
}

.meta-chip--ghost {
    color: var(--text-mute);
}

/* --- 徽标 --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border: 1px solid var(--line-strong);
    background: var(--surface-3);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.7;
}

.badge--owner {
    border-color: var(--accent-line);
    background: var(--accent-surface);
    color: var(--accent-ink);
}

.badge--pending {
    border-color: rgb(255 190 92 / .4);
    background: rgb(255 190 92 / .1);
    color: #ffc978;
}

/* --- 面板 --- */
.panel {
    position: relative;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: var(--shadow-soft);
}

.panel::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 16px;
    height: 16px;
    border-top: 1px solid var(--accent-line);
    border-left: 1px solid var(--accent-line);
    pointer-events: none;
}

.panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--line-soft);
}

.panel__title {
    position: relative;
    padding-left: 11px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .04em;
}

.panel__title::before {
    content: "";
    position: absolute;
    top: .42em;
    left: 0;
    width: 3px;
    height: .9em;
    background: var(--accent);
    box-shadow: 0 0 12px rgb(var(--accent-rgb) / .6);
}

.panel__en {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .16em;
    color: var(--text-mute);
}

.panel__body {
    padding: 16px 18px 18px;
}

/* --- 面包屑 --- */
.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    letter-spacing: .05em;
    color: var(--text-mute);
}

.breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 34ch;
}

.breadcrumb__item + .breadcrumb__item::before {
    content: "/";
    color: var(--line-strong);
}

.breadcrumb__item a {
    color: var(--text-mute);
}

.breadcrumb__item a:hover {
    color: var(--accent-ink);
}

.breadcrumb__item.is-current span {
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- 区块标题（文章流 / 评论） --- */
.stream__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.stream__heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex: none;
}

.stream__index {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 15px;
    letter-spacing: -.05em;
    opacity: .85;
}

.stream__title {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
}

.stream__en {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .22em;
    color: var(--text-mute);
    white-space: nowrap;
}

.stream__rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
}

.stream__count {
    flex: none;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .12em;
    color: var(--text-dim);
}

.stream__count em {
    font-style: normal;
    color: var(--text-mute);
}

/* =========================================================================
 * 04. 背景层
 * ====================================================================== */

.cosmos {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
}

.cosmos__stars {
    position: absolute;
    inset: -20%;
    background-image:
        radial-gradient(1.2px 1.2px at 18px 24px, rgb(255 255 255 / .8), transparent),
        radial-gradient(1px 1px at 74px 118px, rgb(255 255 255 / .55), transparent),
        radial-gradient(1.4px 1.4px at 152px 52px, rgb(255 255 255 / .7), transparent),
        radial-gradient(1px 1px at 208px 164px, rgb(255 255 255 / .38), transparent),
        radial-gradient(1px 1px at 46px 196px, rgb(255 255 255 / .45), transparent),
        radial-gradient(1.6px 1.6px at 248px 226px, rgb(255 255 255 / .55), transparent);
    background-size: 300px 300px, 340px 340px, 420px 420px, 380px 380px, 260px 260px, 480px 480px;
    opacity: .5;
    animation: starDrift 140s linear infinite;
}

.cosmos__nebula {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(46% 34% at 78% 2%, rgb(64 118 226 / .26), transparent 72%),
        radial-gradient(58% 42% at 12% -6%, rgb(var(--accent-rgb) / .1), transparent 68%),
        radial-gradient(38% 30% at 96% 24%, rgb(96 78 214 / .16), transparent 72%),
        radial-gradient(70% 55% at 50% 106%, rgb(42 86 168 / .16), transparent 72%),
        radial-gradient(30% 24% at 4% 62%, rgb(38 92 172 / .12), transparent 70%);
}

html[data-theme="light"] .cosmos__stars {
    opacity: .22;
}

html[data-theme="light"] .cosmos__nebula {
    background:
        radial-gradient(58% 42% at 12% -6%, rgb(var(--accent-rgb) / .17), transparent 68%),
        radial-gradient(52% 40% at 88% 4%, rgb(140 170 235 / .1), transparent 68%),
        radial-gradient(70% 55% at 50% 106%, rgb(var(--accent-rgb) / .1), transparent 72%);
}

.cosmos__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(130% 90% at 50% 0%, #000 15%, transparent 78%);
    mask-image: radial-gradient(130% 90% at 50% 0%, #000 15%, transparent 78%);
}

.cosmos__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 0%, transparent 42%, rgb(0 0 0 / .55));
}

html[data-theme="light"] .cosmos__vignette {
    background: radial-gradient(120% 90% at 50% 0%, transparent 45%, rgb(120 104 70 / .12));
}

@keyframes starDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-60px, -120px, 0); }
}

/* =========================================================================
 * 05. 页头
 * ====================================================================== */

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

/* --- 阅读进度 --- */
.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: 100%;
    height: 2px;
    background: transparent;
    pointer-events: none;
}

.read-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgb(var(--accent-rgb) / .35), var(--accent));
    box-shadow: 0 0 14px rgb(var(--accent-rgb) / .8);
    transition: width .1s linear;
}

/* --- 主站头 --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line-soft);
    background: rgb(5 10 20 / .74);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
}

html[data-theme="light"] .site-header {
    background: rgb(240 237 230 / .78);
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-line) 18%, var(--accent-line) 82%, transparent);
    opacity: .55;
    transition: opacity .3s var(--ease);
}

.site-header.is-scrolled {
    background: rgb(5 10 20 / .94);
    box-shadow: 0 18px 46px -34px rgb(0 0 0 / .95);
}

html[data-theme="light"] .site-header.is-scrolled {
    background: rgb(236 231 219 / .96);
}

.site-header.is-scrolled::after {
    opacity: 1;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
}

/* 品牌 */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: none;
}

.brand__emblem,
.brand__logo {
    width: 40px;
    height: 40px;
    color: var(--accent);
    flex: none;
    transition: transform .5s var(--ease), filter .3s var(--ease);
}

.brand__logo {
    object-fit: contain;
}

.brand:hover .brand__emblem,
.brand:hover .brand__logo {
    transform: rotate(-8deg) scale(1.04);
    filter: drop-shadow(0 0 12px rgb(var(--accent-rgb) / .6));
}

.emblem__orbit {
    transform-origin: 24px 24px;
    animation: spinSlow 36s linear infinite;
}

@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

.brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.brand__name {
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand__sub {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 30ch;
}

/* 主导航 */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.main-nav__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--text-dim);
    font-size: 13.5px;
    letter-spacing: .02em;
    white-space: nowrap;
    transition: color .2s var(--ease);
}

.main-nav__no {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .06em;
    color: var(--text-mute);
    opacity: .7;
    transition: color .2s var(--ease);
}

.main-nav__item::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 2px;
    left: 14px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s var(--ease);
}

.main-nav__item:hover {
    color: var(--text);
}

.main-nav__item:hover::after {
    transform: scaleX(.5);
}

.main-nav__item.is-active {
    color: var(--accent-ink);
}

.main-nav__item.is-active .main-nav__no {
    color: var(--accent);
    opacity: 1;
}

.main-nav__item.is-active::after {
    transform: scaleX(1);
    box-shadow: 0 0 10px rgb(var(--accent-rgb) / .7);
}

/* 工具按钮 */
.header-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.tool-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgb(255 255 255 / .02);
    color: var(--text-dim);
    transition: all .2s var(--ease);
}

.tool-btn::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .16;
    pointer-events: none;
    transition: opacity .2s var(--ease);
}

.tool-btn:hover::before {
    opacity: .34;
}

.tool-btn:hover {
    border-color: var(--accent-line);
    background: var(--accent-surface);
    color: var(--accent-ink);
}

.tool-btn__sun,
.tool-btn__moon,
.tool-btn__open,
.tool-btn__close {
    display: inline-flex;
    transition: opacity .2s var(--ease), transform .35s var(--ease);
}

html[data-theme="dark"] .tool-btn__moon,
html[data-theme="light"] .tool-btn__sun {
    display: none;
}

.tool-btn__close {
    display: none;
}

.tool-btn--menu {
    display: none;
}

.tool-btn--menu[aria-expanded="true"] .tool-btn__open {
    display: none;
}

.tool-btn--menu[aria-expanded="true"] .tool-btn__close {
    display: inline-flex;
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    padding: 8px 0 22px;
    border-top: 1px solid var(--line-soft);
}

.mobile-menu.is-open {
    display: block;
    animation: menuIn .3s var(--ease-out);
}

@keyframes menuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text-dim);
    font-size: 15px;
}

.mobile-menu__item.is-active {
    color: var(--accent-ink);
}

.mobile-menu__no {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .1em;
    color: var(--text-mute);
}

.mobile-menu__item.is-active .mobile-menu__no {
    color: var(--accent);
}

.mobile-menu__search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-mute);
}

.mobile-menu__search input {
    flex: 1;
    padding: 12px 0;
    border: 0;
    background: none;
    outline: none;
    font-size: 14px;
}

.mobile-menu__search button {
    color: var(--accent-ink);
    font-size: 13px;
    letter-spacing: .06em;
}

/* =========================================================================
 * 06. 首页主视觉
 * ====================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
}

.hero__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgb(var(--accent-rgb) / .17);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hero__ring--1 {
    width: 460px;
    height: 460px;
    border-style: dashed;
    animation: spinSlow 120s linear infinite;
}

.hero__ring--2 {
    width: 660px;
    height: 660px;
    border-color: rgb(var(--accent-rgb) / .1);
    animation: spinSlow 180s linear infinite reverse;
}

.hero__ring--3 {
    width: 880px;
    height: 880px;
    border-color: rgb(var(--accent-rgb) / .07);
}

.hero__beam {
    position: absolute;
    top: -10%;
    right: 6%;
    width: 1px;
    height: 120%;
    background: linear-gradient(180deg, transparent, rgb(var(--accent-rgb) / .3), transparent);
    transform: rotate(14deg);
}

.hero__spark {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 12px 2px rgb(var(--accent-rgb) / .7);
    transform: rotate(45deg);
    animation: pulseDot 4s ease-in-out infinite;
}

.hero__spark--a { top: 22%; left: 8%; animation-delay: .4s; }
.hero__spark--b { top: 68%; right: 34%; animation-delay: 1.6s; }
.hero__spark--c { top: 14%; right: 12%; animation-delay: 2.8s; }

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: clamp(30px, 6vw, 80px);
    padding-top: clamp(56px, 8vw, 96px);
    padding-bottom: clamp(48px, 6vw, 76px);
}

.hero__content {
    max-width: 42ch;
}

.hero__title {
    margin: 18px 0 0;
    font-size: clamp(34px, 5.4vw, 62px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: balance;
    background: linear-gradient(180deg, var(--text) 30%, var(--text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__desc {
    margin-top: 18px;
    max-width: 46ch;
    color: var(--text-dim);
    font-size: 15.5px;
    line-height: 1.85;
    text-wrap: pretty;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* 数据面板 */
.hero__panel {
    position: relative;
    padding: 20px;
    border: 1px solid var(--line);
    background:
        linear-gradient(165deg, rgb(var(--accent-rgb) / .06), transparent 45%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: var(--shadow);
    border-radius: 0 18px 0 0;
}

.hero__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--accent-line);
    opacity: .35;
    border-radius: inherit;
    pointer-events: none;
}

.hero__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .16em;
    color: var(--text-mute);
}

.hero__panel-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6ee7a8;
}

.hero__panel-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: pulseDot 2.4s ease-in-out infinite;
}

.hero__emblem {
    display: flex;
    justify-content: center;
    margin: 6px 0 14px;
    color: var(--accent);
    opacity: .95;
    filter: drop-shadow(0 0 26px rgb(var(--accent-rgb) / .35));
}

.hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin: 0;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    background: var(--surface);
}

.stat dt {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .16em;
    color: var(--text-mute);
}

.stat dd {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--accent-ink);
    font-variant-numeric: tabular-nums;
}

.stat__label {
    font-size: 13px;
    color: var(--text-mute);
}

.hero__panel-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .12em;
    color: var(--text-mute);
}

.hero__panel-bar {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-line), transparent);
}

.hero__strip {
    position: relative;
    border-top: 1px solid var(--line-soft);
    background: rgb(0 0 0 / .18);
}

html[data-theme="light"] .hero__strip {
    background: rgb(255 255 255 / .35);
}

.hero__strip-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 32px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .18em;
    color: var(--text-mute);
    white-space: nowrap;
    overflow: hidden;
}

.hero__strip-sep {
    width: 1px;
    height: 10px;
    background: var(--line-strong);
}

.hero__strip-grow {
    flex: 1;
}

/* =========================================================================
 * 07. 内容区外壳与文章流
 * ====================================================================== */

.site-main {
    display: block;
    padding-bottom: clamp(56px, 8vw, 96px);
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    align-items: start;
    gap: clamp(28px, 4vw, 52px);
    padding-top: clamp(36px, 5vw, 56px);
}

.layout--full {
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--shell-narrow);
    margin: 0 auto;
}

.layout--entry {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.layout__main {
    min-width: 0;
}

.layout__side {
    position: sticky;
    top: 96px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* =========================================================================
 * 08. 文章卡片
 * ====================================================================== */

.stream__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.entry-card {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0;
    padding: 22px 24px 22px 0;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
    border-radius: 0 18px 0 0;
    transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease),
        box-shadow .3s var(--ease);
    animation: cardIn .6s var(--ease-out) backwards;
}

.entry-card.has-cover {
    grid-template-columns: 30px 220px minmax(0, 1fr);
    padding-left: 0;
    padding-right: 26px;
}

.entry-card:nth-child(1) { animation-delay: .04s; }
.entry-card:nth-child(2) { animation-delay: .1s; }
.entry-card:nth-child(3) { animation-delay: .16s; }
.entry-card:nth-child(4) { animation-delay: .22s; }
.entry-card:nth-child(5) { animation-delay: .28s; }
.entry-card:nth-child(n+6) { animation-delay: .32s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.entry-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(120% 100% at 100% 0%, rgb(var(--accent-rgb) / .1), transparent 60%);
    transition: opacity .35s var(--ease);
}

.entry-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.entry-card:hover::before {
    opacity: 1;
}


/* 左侧序号导轨 */
.entry-card__rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 2px;
}

.entry-card__no {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--text-mute);
    transition: color .3s var(--ease);
}

.entry-card:hover .entry-card__no {
    color: var(--accent);
}

.entry-card__line {
    flex: 1;
    width: 1px;
    background: linear-gradient(180deg, var(--line-strong), transparent);
}

/* 封面 */
.entry-card__cover {
    position: relative;
    display: block;
    overflow: hidden;
    margin-right: 22px;
    border: 1px solid var(--line);
    background: var(--surface-3);
    aspect-ratio: 16 / 10;
    border-radius: 0 10px 0 0;
}

.entry-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out), filter .4s var(--ease);
    filter: saturate(.9) contrast(1.02);
}

.entry-card:hover .entry-card__cover img {
    transform: scale(1.05);
    filter: saturate(1.05) contrast(1.05);
}

.entry-card__scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgb(var(--accent-rgb) / .16) 50%, transparent 65%);
    transform: translateX(-110%);
    transition: transform .9s var(--ease-out);
    pointer-events: none;
}

.entry-card:hover .entry-card__scan {
    transform: translateX(110%);
}

/* 正文区 */
.entry-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.entry-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.entry-card__title {
    font-size: clamp(18px, 2.1vw, 21px);
    font-weight: 600;
    line-height: 1.42;
    letter-spacing: .005em;
}

.entry-card__title a {
    position: relative;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .4s var(--ease), color .2s var(--ease);
}

.entry-card:hover .entry-card__title a {
    color: var(--accent-ink);
    background-size: 100% 1px;
}

.entry-card__excerpt {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.8;
}

.entry-card__excerpt p {
    margin: 0;
}

.entry-card__excerpt p + p {
    margin-top: .7em;
}

.entry-card__excerpt .more {
    margin: .8em 0 0;
}

.entry-card__excerpt .more a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: 13.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.entry-card__excerpt .more a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.entry-card__excerpt img {
    max-height: 320px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.entry-card__excerpt h1,
.entry-card__excerpt h2,
.entry-card__excerpt h3,
.entry-card__excerpt h4 {
    font-size: 15px;
    margin: .8em 0 .3em;
}

.entry-card__excerpt blockquote {
    margin: .5em 0;
    padding-left: 12px;
    border-left: 2px solid var(--accent-line);
    color: var(--text-mute);
}

.entry-card__foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.entry-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.entry-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.entry-card__comments {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-mute);
    font-family: var(--font-mono);
    font-size: 13.5px;
    transition: color .2s var(--ease);
}

.entry-card__comments:hover {
    color: var(--accent-ink);
}

/* =========================================================================
 * 09. 侧边栏与小组件
 * ====================================================================== */

.sidebar {
    gap: 18px;
}

.widget__empty {
    color: var(--text-mute);
    font-size: 13px;
}

/* 站点档案 */
.widget--profile .profile {
    padding: 24px 20px 20px;
    text-align: center;
}

.profile__avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--accent);
}

.profile__avatar img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 8px;
    border-radius: 0 10px 0 0;
}

.profile__name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .02em;
}

.profile__desc {
    margin-top: 6px;
    color: var(--text-mute);
    font-size: 14.5px;
    line-height: 1.7;
}

.profile__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0 16px;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.profile__stats span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 4px;
}

.profile__stats span + span {
    border-left: 1px solid var(--line-soft);
}

.profile__stats b {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 600;
    color: var(--accent-ink);
    font-variant-numeric: tabular-nums;
}

.profile__stats em {
    font-style: normal;
    font-size: 12.5px;
    letter-spacing: .08em;
    color: var(--text-mute);
}

/* 最新文章 */
.log-list {
    display: flex;
    flex-direction: column;
}

.log-item + .log-item {
    border-top: 1px solid var(--line-soft);
}

.log-item a {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    transition: color .2s var(--ease);
}

.log-item:first-child a {
    padding-top: 0;
}

.log-item:last-child a {
    padding-bottom: 0;
}

.log-item__no {
    flex: none;
    padding-top: 1px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .06em;
    color: var(--text-mute);
    transition: color .2s var(--ease);
}

.log-item a:hover .log-item__no {
    color: var(--accent);
}

.log-item__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.log-item__title {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-dim);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .2s var(--ease);
}

.log-item a:hover .log-item__title {
    color: var(--accent-ink);
}

.log-item__meta {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .08em;
    color: var(--text-mute);
}

/* 分类 */
.cat-list {
    display: flex;
    flex-direction: column;
}

.cat-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
    transition: color .2s var(--ease);
}

.cat-item:last-child a {
    border-bottom: 0;
    padding-bottom: 0;
}

.cat-item__dot {
    flex: none;
    width: 5px;
    height: 5px;
    border: 1px solid var(--text-mute);
    transform: rotate(45deg);
    transition: all .2s var(--ease);
}

.cat-item a:hover .cat-item__dot {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 10px rgb(var(--accent-rgb) / .8);
}

.cat-item__name {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s var(--ease);
}

.cat-item a:hover .cat-item__name {
    color: var(--accent-ink);
}

.cat-item__count {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-mute);
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

/* 归档 */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.archive-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    transition: color .2s var(--ease);
}

.archive-item__dot {
    flex: none;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line-strong);
    transition: all .2s var(--ease);
}

.archive-item a:hover .archive-item__dot {
    background: var(--accent);
    box-shadow: 0 0 10px rgb(var(--accent-rgb) / .9);
}

.archive-item__date {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: .06em;
    color: var(--text-dim);
    transition: color .2s var(--ease);
}

.archive-item a:hover .archive-item__date {
    color: var(--accent-ink);
}

.archive-item__count {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-mute);
}

/* 最近回复 */
.reply-list {
    display: flex;
    flex-direction: column;
}

.reply-item {
    border-bottom: 1px solid var(--line-soft);
}

.reply-item:last-child {
    border-bottom: 0;
}

.reply-item a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 0;
}

.reply-item:first-child a {
    padding-top: 0;
}

.reply-item:last-child a {
    padding-bottom: 0;
}

.reply-item__author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    transition: color .2s var(--ease);
}

.reply-item a:hover .reply-item__author {
    color: var(--accent-ink);
}

.reply-item__text {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-mute);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* =========================================================================
 * 10. 归档页头 / 搜索
 * ====================================================================== */

.archive-head {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line-soft);
}

.archive-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.archive-head__lead .eyebrow {
    margin-bottom: 12px;
}

.archive-head__title {
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.2;
    text-wrap: balance;
}

.archive-head__count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: none;
    padding-bottom: 4px;
}

.archive-head__count b {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    color: var(--accent-ink);
    font-variant-numeric: tabular-nums;
}

.archive-head__count span {
    font-size: 13.5px;
    letter-spacing: .1em;
    color: var(--text-mute);
}

.search-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 0 8px 0 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-mute);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.search-inline:focus-within {
    border-color: var(--accent-line);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .1);
}

.search-inline input {
    flex: 1;
    min-width: 0;
    padding: 14px 0;
    border: 0;
    background: none;
    outline: none;
    font-size: 14.5px;
    color: var(--text);
}

.search-inline input::placeholder {
    color: var(--text-mute);
}

.search-inline .btn {
    flex: none;
}

/* =========================================================================
 * 11. 文章详情
 * ====================================================================== */

.entry {
    min-width: 0;
}

.entry-head {
    margin-bottom: 28px;
}

.entry-head .eyebrow {
    margin-bottom: 14px;
}

.entry-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.018em;
    text-wrap: balance;
}

/* HUD 元信息 */
.entry-hud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    margin-top: 26px;
    border: 1px solid var(--line);
    background: var(--line-soft);
}

.hud-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 14px;
    background: var(--surface);
}

.hud-cell__key {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.hud-cell__val {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hud-cell__val a {
    color: var(--text-dim);
}

.hud-cell__val a:hover {
    color: var(--accent-ink);
}

/* 封面 */
.entry-cover {
    position: relative;
    margin: 0 0 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-3);
    border-radius: 0 20px 0 0;
}

.entry-cover img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.entry-cover__scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / .35));
    pointer-events: none;
}

/* 文章尾部 */
.entry-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
}

.entry-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.entry-foot__label {
    margin-right: 4px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.entry-share {
    display: flex;
    gap: 8px;
    flex: none;
}

/* 上一篇 / 下一篇 */
.entry-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

.entry-nav__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    transition: border-color .25s var(--ease), background .25s var(--ease);
}

.entry-nav__item:hover {
    border-color: var(--accent-line);
    background: linear-gradient(165deg, rgb(var(--accent-rgb) / .05), var(--surface));
}

.entry-nav__item--next {
    text-align: right;
    align-items: flex-end;
}

.entry-nav__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.entry-nav__title {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-dim);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.entry-nav__title a {
    color: var(--text-dim);
}

.entry-nav__title a:hover {
    color: var(--accent-ink);
}

/* 相关文章 */
.related {
    margin-top: 44px;
}

.related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: all .25s var(--ease);
}

.related-card:hover {
    border-color: var(--accent-line);
    background: var(--surface-2);
    transform: translateY(-1px);
}

.related-card__date {
    flex: none;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .06em;
    color: var(--text-mute);
}

.related-card__title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s var(--ease);
}

.related-card:hover .related-card__title {
    color: var(--accent-ink);
}

.related-card__arrow {
    flex: none;
    color: var(--text-mute);
    transition: transform .25s var(--ease), color .25s var(--ease);
}

.related-card:hover .related-card__arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* 目录 */
.toc {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 150px);
}

.toc .panel__head {
    flex: none;
}

.toc .panel__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.toc__list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-left: 1px solid var(--line-soft);
}

.toc__item {
    position: relative;
}

.toc__item--h3 .toc__link {
    padding-left: 24px;
    font-size: 14px;
}

.toc__link {
    display: block;
    padding: 7px 10px 7px 14px;
    color: var(--text-mute);
    font-size: 14.5px;
    line-height: 1.55;
    transition: color .2s var(--ease), background .2s var(--ease);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toc__link:hover {
    color: var(--text);
    background: rgb(255 255 255 / .025);
}

.toc__link.is-active {
    color: var(--accent-ink);
    background: var(--accent-surface);
}

.toc__link.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px rgb(var(--accent-rgb) / .8);
}

/* 档案信息 */
.meta-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0 0 16px;
}

.meta-list__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

.meta-list__row:last-child {
    border-bottom: 0;
}

.meta-list dt {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .14em;
    color: var(--text-mute);
}

.meta-list dd {
    margin: 0;
    font-size: 14.5px;
    color: var(--text-dim);
    text-align: right;
}

.meta-list dd a:hover {
    color: var(--accent-ink);
}

/* =========================================================================
 * 12. 正文排版
 * ====================================================================== */

.prose {
    color: var(--text);
    font-size: 16px;
    line-height: 1.92;
    overflow-wrap: break-word;
    word-break: break-word;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose p {
    margin: 0 0 1.35em;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    position: relative;
    margin: 2.1em 0 .85em;
    font-weight: 650;
    line-height: 1.35;
    scroll-margin-top: 88px;
    color: var(--text);
}

.prose h1 { font-size: 1.72em; }
.prose h2 { font-size: 1.42em; padding-left: 16px; }
.prose h3 { font-size: 1.2em; padding-left: 14px; }
.prose h4 { font-size: 1.06em; padding-left: 12px; }
.prose h5,
.prose h6 { font-size: 1em; color: var(--text-dim); }

.prose h2::before,
.prose h3::before,
.prose h4::before {
    content: "";
    position: absolute;
    top: .28em;
    bottom: .28em;
    left: 0;
    width: 3px;
    background: var(--accent);
    box-shadow: 0 0 12px rgb(var(--accent-rgb) / .55);
}

.prose h3::before {
    width: 2px;
    opacity: .8;
}

.prose h4::before {
    width: 2px;
    opacity: .6;
}

.prose a {
    color: var(--accent-ink);
    text-decoration: none;
    background-image: linear-gradient(var(--accent-line), var(--accent-line));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
    transition: background-size .3s var(--ease), color .2s var(--ease);
}

.prose a:hover {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 100% 2px;
}

.prose strong {
    font-weight: 650;
    color: var(--text);
}

.prose em {
    font-style: italic;
    color: var(--text-dim);
}

.prose del {
    color: var(--text-mute);
}

.prose mark {
    padding: 0 .2em;
    background: rgb(var(--accent-rgb) / .22);
    color: var(--text);
}

.prose ul,
.prose ol {
    margin: 0 0 1.35em;
    padding-left: 1.4em;
}

.prose ul {
    list-style: none;
}

.prose ul > li {
    position: relative;
}

.prose ul > li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: -1.1em;
    width: 4px;
    height: 4px;
    background: var(--accent);
    transform: rotate(45deg);
    opacity: .8;
}

.prose ol {
    list-style: decimal;
}

.prose ol > li::marker {
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: .9em;
}

.prose li {
    margin: .35em 0;
}

.prose li > ul,
.prose li > ol {
    margin: .4em 0;
}

.prose blockquote {
    position: relative;
    margin: 1.8em 0;
    padding: 18px 22px 18px 26px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--accent);
    background: linear-gradient(90deg, rgb(var(--accent-rgb) / .07), transparent 65%);
    color: var(--text-dim);
}

.prose blockquote::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-top: 1px solid var(--accent-line);
    border-right: 1px solid var(--accent-line);
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose blockquote cite {
    display: block;
    margin-top: .6em;
    font-size: .85em;
    font-style: normal;
    color: var(--text-mute);
}

.prose hr {
    position: relative;
    height: 1px;
    margin: 2.6em 0;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}

.prose hr::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent);
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 12px rgb(var(--accent-rgb) / .8);
}

.prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6em auto;
    border: 1px solid var(--line);
    background: var(--surface-3);
    border-radius: 0 12px 0 0;
}

.prose figure {
    margin: 1.8em 0;
}

.prose figure img {
    margin: 0 auto;
}

.prose figcaption {
    margin-top: 10px;
    font-size: 14.5px;
    text-align: center;
    color: var(--text-mute);
}

/* 代码 */
.prose code {
    padding: .15em .42em;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: .86em;
    border-radius: 2px;
}

.prose pre {
    position: relative;
    margin: 1.7em 0;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    overflow-x: auto;
    line-height: 1.7;
    border-radius: 0 12px 0 0;
}

.prose pre code {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-dim);
    font-size: 13px;
    border-radius: 0;
}

.prose pre::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: .5;
}

/* 代码复制按钮（由 JS 注入） */
.code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-mute);
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .06em;
    opacity: 0;
    transition: opacity .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

pre:hover .code-copy {
    opacity: 1;
}

.code-copy:hover {
    border-color: var(--accent-line);
    color: var(--accent-ink);
}

.code-copy.is-done {
    color: #6ee7a8;
    border-color: rgb(110 231 168 / .4);
}

/* 表格 */
.prose table {
    width: 100%;
    margin: 1.7em 0;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid var(--line);
}

.prose thead {
    background: var(--surface-2);
}

.prose th,
.prose td {
    padding: 10px 14px;
    border: 1px solid var(--line-soft);
    text-align: left;
}

.prose th {
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: .04em;
    color: var(--text);
}

.prose tbody tr:hover {
    background: rgb(var(--accent-rgb) / .04);
}

/* 视频 / 嵌入 */
.prose iframe,
.prose video {
    max-width: 100%;
    border: 1px solid var(--line);
}

.prose .protected {
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.prose .protected input {
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

/* =========================================================================
 * 13. 评论
 * ====================================================================== */

.comments {
    margin-top: 52px;
}

.comments__head {
    margin-bottom: 22px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-list .comment-list {
    gap: 12px;
    margin-top: 12px;
}

.comment {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border-radius: 0 12px 0 0;
    transition: border-color .25s var(--ease);
}

.comment:hover {
    border-color: var(--line-strong);
}

.comment--owner {
    border-color: var(--accent-line);
    background:
        linear-gradient(165deg, rgb(var(--accent-rgb) / .07), transparent 55%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
}

.comment--child {
    border-color: var(--line-soft);
    background: var(--surface);
}

.comment__avatar {
    position: relative;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-3);
    border-radius: 0 8px 0 0;
}

/* 首字母底色始终铺在头像下方，头像加载成功后再淡入覆盖 */
.comment__avatar::before {
    content: attr(data-initial);
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, rgb(var(--accent-rgb) / .16), var(--surface-3));
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
}

.comment__avatar img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .3s var(--ease);
}

.comment__avatar img.is-loaded {
    opacity: 1;
}

.comment__main {
    min-width: 0;
}

.comment__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.comment__author {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.comment__author a:hover {
    color: var(--accent-ink);
}

.comment__time {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .06em;
    color: var(--text-mute);
}

.comment__time:hover {
    color: var(--accent-ink);
}

.comment__body {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.comment__body p {
    margin: 0 0 .7em;
}

.comment__body p:last-child {
    margin-bottom: 0;
}

.comment__body a {
    color: var(--accent-ink);
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-underline-offset: 3px;
}

.comment__body code {
    padding: .1em .35em;
    background: var(--surface-3);
    font-family: var(--font-mono);
    font-size: .88em;
}

.comment__body blockquote {
    margin: .6em 0;
    padding-left: 12px;
    border-left: 2px solid var(--line-strong);
    color: var(--text-mute);
}

.comment__foot {
    margin-top: 8px;
    font-size: 14px;
}

.comment__foot a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-mute);
    transition: color .2s var(--ease);
}

.comment__foot a:hover {
    color: var(--accent-ink);
}

.comment__children {
    margin-top: 12px;
    padding-left: 0;
}

/* 评论表单 */
.respond {
    position: relative;
    margin-top: 30px;
    padding: 22px;
    border: 1px solid var(--line);
    background:
        linear-gradient(165deg, rgb(var(--accent-rgb) / .045), transparent 40%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
}

.respond::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 18px;
    height: 18px;
    border-top: 1px solid var(--accent-line);
    border-left: 1px solid var(--accent-line);
}

.respond__head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
}

.respond__title {
    position: relative;
    padding-left: 11px;
    font-size: 15px;
    font-weight: 600;
}

.respond__title::before {
    content: "";
    position: absolute;
    top: .35em;
    left: 0;
    width: 3px;
    height: .95em;
    background: var(--accent);
}

.respond__en {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .16em;
    color: var(--text-mute);
}

.respond__cancel {
    font-size: 14px;
}

.respond__cancel a {
    color: var(--text-mute);
}

.respond__cancel a:hover {
    color: var(--accent-ink);
}

.comment-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field--wide {
    grid-column: 1 / -1;
}

.field--block {
    display: flex;
    margin-bottom: 14px;
}

.field__label {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.field__label i {
    margin-left: 3px;
    font-style: normal;
    color: var(--accent);
}

.field input,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.field textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.8;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-mute);
    opacity: .8;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent-line);
    background: var(--surface-2);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .09);
}

.comment-form__identity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border: 1px solid var(--line-soft);
    background: var(--surface);
    font-size: 14.5px;
    color: var(--text-mute);
}

.comment-form__identity a {
    color: var(--accent-ink);
}

.comment-form__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.comment-form__hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: var(--text-mute);
}

.comments__empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
    border: 1px dashed var(--line-strong);
    color: var(--text-mute);
    font-size: 13.5px;
}

.comments__empty-icon {
    color: var(--line-strong);
}

.comments__closed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    color: var(--text-mute);
    font-size: 13px;
}

/* =========================================================================
 * 14. 分页 / 空状态 / 404
 * ====================================================================== */

.pager {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 30px;
}

/* Typecho 的 Box 分页只给「当前页 / 上一页 / 下一页」加类名，
   普通页码的 span 没有类，因此这里直接以 .pager a 作为基础选择器。 */
.pager > span {
    display: inline-flex;
}

.pager a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 13.5px;
    transition: all .2s var(--ease);
}

.pager a::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid currentColor;
    border-radius: inherit;
    opacity: .2;
    pointer-events: none;
    transition: opacity .2s var(--ease);
}

.pager a:hover::before {
    opacity: .4;
}

.pager a:hover {
    border-color: var(--accent-line);
    background: var(--accent-surface);
    color: var(--accent-ink);
}

.pager .is-current > a {
    border-color: var(--accent);
    background: var(--accent);
    color: #0a0c10;
    font-weight: 600;
}

.pager__item--prev > a,
.pager__item--next > a {
    padding: 0 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: .02em;
}

.pager > span > span {
    padding: 0 6px;
    color: var(--text-mute);
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: clamp(40px, 8vw, 76px) 24px;
    border: 1px dashed var(--line-strong);
    background: rgb(var(--accent-rgb) / .02);
    text-align: center;
}

.empty-state__icon {
    display: flex;
    margin-bottom: 6px;
    color: var(--line-strong);
}

.empty-state__title {
    font-size: 17px;
    font-weight: 600;
}

.empty-state__desc {
    max-width: 40ch;
    color: var(--text-mute);
    font-size: 13.5px;
}

.empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

/* 404 */
.notfound {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(56px, 12vw, 120px) 0 clamp(40px, 8vw, 80px);
    text-align: center;
    overflow: hidden;
}

.notfound__deco {
    position: absolute;
    top: clamp(20px, 6vw, 40px);
    left: 50%;
    width: min(560px, 90vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
    pointer-events: none;
}

.notfound__ring {
    position: absolute;
    inset: 0;
    border: 1px dashed rgb(var(--accent-rgb) / .14);
    border-radius: 50%;
    animation: spinSlow 90s linear infinite;
}

.notfound__ring--2 {
    inset: 16%;
    border-style: solid;
    border-color: rgb(var(--accent-rgb) / .08);
    animation-direction: reverse;
    animation-duration: 60s;
}

.notfound__cross--x,
.notfound__cross--y {
    position: absolute;
    top: 50%;
    left: 50%;
    background: rgb(var(--accent-rgb) / .12);
}

.notfound__cross--x {
    width: 130%;
    height: 1px;
    transform: translate(-50%, -50%);
}

.notfound__cross--y {
    width: 1px;
    height: 130%;
    transform: translate(-50%, -50%);
}

.notfound__code {
    position: relative;
    margin: 18px 0 6px;
    font-family: var(--font-mono);
    font-size: clamp(88px, 18vw, 168px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .06em;
    color: transparent;
    background: linear-gradient(180deg, var(--accent-2), var(--accent) 45%, rgb(var(--accent-rgb) / .25));
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 60px rgb(var(--accent-rgb) / .18);
}

.notfound__title {
    position: relative;
    margin-top: 6px;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 650;
}

.notfound__desc {
    position: relative;
    max-width: 46ch;
    margin-top: 12px;
    color: var(--text-dim);
    font-size: 14.5px;
}

.notfound__search {
    position: relative;
    width: min(520px, 100%);
    margin-top: 28px;
    text-align: left;
}

.notfound__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.notfound__links {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.notfound__links-label {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.notfound__meta {
    position: relative;
    margin-top: 34px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .14em;
    color: var(--text-mute);
    opacity: .7;
}

/* =========================================================================
 * 15. 页脚 / 搜索弹层 / 回到顶部
 * ====================================================================== */

.site-footer {
    position: relative;
    margin-top: auto;
    border-top: 1px solid var(--line-soft);
    background: linear-gradient(180deg, transparent, rgb(0 0 0 / .25));
    overflow: hidden;
}

html[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, transparent, rgb(120 104 70 / .07));
}

.site-footer__glow {
    position: absolute;
    top: -1px;
    left: 50%;
    width: min(800px, 90vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
    transform: translateX(-50%);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(40px, 6vw, 64px) 0 34px;
}

.site-footer__emblem {
    display: inline-flex;
    color: var(--accent);
    opacity: .9;
}

.site-footer__name {
    margin-top: 12px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .01em;
}

.site-footer__desc {
    margin-top: 8px;
    max-width: 34ch;
    color: var(--text-mute);
    font-size: 13px;
    line-height: 1.75;
}

.site-footer__socials {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.social-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text-mute);
    transition: all .2s var(--ease);
}

.social-link::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .18;
    pointer-events: none;
    transition: opacity .2s var(--ease);
}

.social-link:hover::before {
    opacity: .36;
}

.social-link:hover {
    border-color: var(--accent-line);
    background: var(--accent-surface);
    color: var(--accent-ink);
    transform: translateY(-2px);
}

.footer-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
}

.footer-heading em {
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 12.5px;
    letter-spacing: .18em;
    color: var(--text-mute);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-mute);
    font-size: 13px;
    transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer-links a:hover {
    color: var(--accent-ink);
    transform: translateX(2px);
}

.footer-links li {
    color: var(--text-mute);
    font-size: 13px;
}

.footer-links__count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-mute);
    opacity: .7;
}

.footer-links li {
    display: flex;
    align-items: center;
}


.site-footer__note {
    padding: 16px 0;
    border-top: 1px solid var(--line-soft);
    color: var(--text-mute);
    font-size: 14.5px;
    line-height: 1.8;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 0 30px;
    border-top: 1px solid var(--line-soft);
}

.site-footer__copy,
.site-footer__meta {
    font-size: 14px;
    color: var(--text-mute);
}

.site-footer__copy a:hover,
.site-footer__meta a:hover {
    color: var(--accent-ink);
}

.site-footer__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .08em;
}

/* 回到顶部 */
.to-top {
    position: fixed;
    right: clamp(16px, 3vw, 32px);
    bottom: clamp(16px, 3vw, 32px);
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgb(11 21 36 / .82);
    color: var(--text-dim);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: all .25s var(--ease);
}

.to-top::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .2;
    pointer-events: none;
    transition: opacity .25s var(--ease);
}

.to-top:hover::before {
    opacity: .42;
}

html[data-theme="light"] .to-top {
    background: rgb(255 255 255 / .85);
}

.to-top:hover {
    border-color: var(--accent);
    color: var(--accent-ink);
    transform: translateY(-2px);
}

/* 搜索弹层 */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(60px, 12vh, 140px) 20px 20px;
}

.search-modal[hidden] {
    display: none;
}

.search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fadeIn .25s var(--ease);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-modal__panel {
    position: relative;
    width: min(640px, 100%);
    padding: 22px;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(165deg, rgb(var(--accent-rgb) / .07), transparent 45%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: 0 40px 100px -40px rgb(0 0 0 / .9);
    border-radius: 0 16px 0 0;
    animation: modalIn .35s var(--ease-out);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.search-modal__label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.search-modal__close {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text-mute);
    transition: all .2s var(--ease);
}

.search-modal__close::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .18;
    pointer-events: none;
}

.search-modal__close:hover::before {
    opacity: .36;
}

.search-modal__close:hover {
    border-color: var(--accent-line);
    color: var(--accent-ink);
}

.search-modal__form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 0 16px;
    border: 1px solid var(--line-strong);
    background: var(--bg-soft);
    color: var(--text-mute);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.search-modal__form:focus-within {
    border-color: var(--accent-line);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .1);
}

.search-modal__form input {
    flex: 1;
    min-width: 0;
    padding: 16px 0;
    border: 0;
    background: none;
    outline: none;
    font-size: 16px;
    color: var(--text);
}

.search-modal__form input::placeholder {
    color: var(--text-mute);
}

.search-modal__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-mute);
}

.search-modal__foot kbd {
    margin: 0 1px;
}

.search-modal__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.search-modal__tags-label {
    margin-right: 4px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-mute);
}

/* =========================================================================
 * 16. 响应式
 * ====================================================================== */

@media (max-width: 1180px) {
    .layout,
    .layout--entry {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .entry-card.has-cover {
        grid-template-columns: 26px 190px minmax(0, 1fr);
    }
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .tool-btn--menu {
        display: inline-flex;
    }

    .site-header__inner {
        gap: 14px;
    }

    .brand {
        margin-right: auto;
    }

    .layout,
    .layout--entry {
        grid-template-columns: minmax(0, 1fr);
    }

    .layout__side {
        position: static;
        top: auto;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        align-items: start;
    }

    .entry-side {
        display: none;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .hero__panel {
        max-width: 420px;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .meta-chip--ghost {
        display: none;
    }

    .entry-card,
    .entry-card.has-cover {
        grid-template-columns: 26px minmax(0, 1fr);
        padding: 18px 18px 18px 0;
    }

    .entry-card__cover {
        grid-column: 2;
        margin: 0 0 16px;
        aspect-ratio: 16 / 8;
    }

    .entry-card__body {
        grid-column: 2;
    }

    .entry-card__rail {
        grid-row: 1 / span 3;
    }

    .entry-nav {
        grid-template-columns: 1fr;
    }

    .entry-nav__item--next {
        text-align: left;
        align-items: flex-start;
    }

    .comment-form__grid {
        grid-template-columns: 1fr;
    }

    .archive-head__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .archive-head__count {
        padding-bottom: 0;
    }

    .entry-hud {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15.5px;
    }

    .site-header__inner {
        height: 62px;
    }


    .brand__emblem,
    .brand__logo {
        width: 34px;
        height: 34px;
    }

    .brand__name {
        font-size: 15px;
    }

    .brand__sub {
        display: none;
    }

    .header-tools {
        gap: 4px;
    }

    .tool-btn {
        width: 34px;
        height: 34px;
    }

    .hero__inner {
        padding-top: 44px;
        padding-bottom: 40px;
    }

    .hero__actions .btn {
        flex: 1;
        justify-content: center;
    }

    .hero__strip {
        display: none;
    }

    .hero__stats {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .pager__item--prev > a,
    .pager__item--next > a {
        padding: 0 12px;
    }

    .stream__en {
        display: none;
    }

    .comment {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 14px;
    }

    .comment__avatar {
        width: 36px;
        height: 36px;
    }

    .comment__time {
        margin-left: 0;
        width: 100%;
    }

    .respond {
        padding: 16px;
    }

    .entry-cover img {
        max-height: 280px;
    }

    .prose pre {
        padding: 14px 16px;
    }

    .prose pre code {
        font-size: 14px;
    }

    .related__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-modal {
        padding-top: 40px;
    }

    .search-modal__panel {
        padding: 16px;
    }
}

/* =========================================================================
 * 17. 动效与可访问性
 * ====================================================================== */

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

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* 打印 */
@media print {
    .cosmos,
    .site-header,
    .site-footer,
    .layout__side,
    .entry-share,
    .entry-nav,
    .related,
    .comments,
    .to-top,
    .search-modal,
    .read-progress,
    .hero__deco,
    .hero__panel {
        display: none !important;
    }

    body {
        background: #fff;
        color: #111;
    }

    .prose a {
        color: #111;
        text-decoration: underline;
    }

    .entry-card,
    .panel,
    .comment,
    .respond {
        border-color: #ccc;
        background: #fff;
        box-shadow: none;
    }
}


/* =========================================================================
 * 18. 星图节点 / 文书阅读（参考游戏「智库」与「银河公义奖彰」）
 * ====================================================================== */

/* --- 纸张变量 --- */
:root,
html[data-theme="dark"] {
    --paper: #d9cfb8;
    --paper-ink: #424854;
    --paper-strong: #2e3440;
    --paper-dim: #5b6270;
    --paper-mute: #808793;
    --paper-line: rgb(122 94 42 / .2);
    --paper-line-strong: rgb(122 94 42 / .36);
    --paper-edge: rgb(150 120 60 / .24);
    --paper-dots: rgb(122 94 42 / .05);
    --paper-link: #6c5016;
    --paper-link: color-mix(in oklab, var(--accent-deep) 74%, #170f04);
    --paper-shadow:
        inset 0 0 0 1px rgb(255 255 255 / .26),
        inset 0 0 120px rgb(96 78 42 / .12),
        0 34px 70px -52px rgb(0 0 0 / .9),
        0 0 46px -34px rgb(var(--accent-rgb) / .1);
}

html[data-theme="light"] {
    --paper: #fbf7ed;
    --paper-ink: #39404c;
    --paper-strong: #242a34;
    --paper-dim: #565e6b;
    --paper-mute: #7f8794;
    --paper-line: rgb(122 94 42 / .28);
    --paper-line-strong: rgb(122 94 42 / .48);
    --paper-edge: rgb(122 94 42 / .42);
    --paper-dots: rgb(122 94 42 / .08);
    --paper-link: #7a5c1e;
    --paper-link: color-mix(in oklab, var(--accent-deep) 84%, #1a1206);
    --paper-shadow:
        inset 0 0 0 1px rgb(255 255 255 / .85),
        inset 0 0 92px rgb(120 100 60 / .05),
        0 26px 56px -38px rgb(84 66 34 / .5),
        0 2px 10px -6px rgb(84 66 34 / .28);
}

/* --- 星图节点 --- */
.node {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--node-size, 190px);
    height: var(--node-size, 190px);
    color: var(--accent);
    flex: none;
}

.node__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.node__spin {
    transform-origin: 100px 100px;
    animation: spinSlow 140s linear infinite;
}

.node__core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: calc(var(--node-size) * .58);
    height: calc(var(--node-size) * .58);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 44%, rgb(var(--accent-rgb) / .2) 0 42%, transparent 70%);
    filter: drop-shadow(0 0 22px rgb(var(--accent-rgb) / .34));
}

.node__core .emblem,
.node__core svg {
    width: 100%;
    height: 100%;
}

.node__glow {
    position: absolute;
    inset: 16%;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(var(--accent-rgb) / .1), transparent 68%);
    pointer-events: none;
}

/* --- 首页主视觉里的节点 --- */
.hero__node {
    display: flex;
    justify-content: center;
    margin: -4px 0 16px;
}

/* 轨道上的运行光点 */
.hero__ring::before,
.hero__ring::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgb(var(--accent-rgb) / .9);
    pointer-events: none;
}

.hero__ring--1::before {
    top: -2.5px;
    left: 50%;
    width: 5px;
    height: 5px;
}

.hero__ring--1::after {
    bottom: 16%;
    left: 5%;
    width: 4px;
    height: 4px;
    opacity: .7;
}

.hero__ring--2::before {
    top: 24%;
    right: 3%;
    width: 4px;
    height: 4px;
    opacity: .6;
}

.hero__ring--2::after {
    bottom: 6%;
    left: 23%;
    width: 3px;
    height: 3px;
    opacity: .45;
}

.hero__ring--3::before {
    top: 46%;
    left: -2px;
    width: 3px;
    height: 3px;
    opacity: .35;
}

/* --- 侧栏档案头像节点 --- */
.profile__avatar .node {
    margin: -6px 0 -2px;
}

/* --- 阅读区容器 --- */
.reader {
    position: relative;
}

.reader--terminal .entry-body {
    padding-top: 6px;
}

/* --- 文书：米白纸张 --- */
.reader--document {
    margin-top: clamp(20px, 3.2vw, 34px);
    padding: clamp(26px, 4vw, 46px) clamp(20px, 4.6vw, 54px) clamp(30px, 4.2vw, 52px);
    color: var(--paper-ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(var(--paper-dots) 1px, transparent 1px),
        radial-gradient(120% 80% at 50% -14%, rgb(255 255 255 / .34), transparent 58%),
        linear-gradient(180deg, transparent 72%, rgb(122 94 42 / .05));
    background-size: 16px 16px, 100% 100%, 100% 100%;
    border: 1px solid var(--paper-edge);
    box-shadow: var(--paper-shadow);
}

/* 内层细线 */
.reader--document::before {
    content: "";
    position: absolute;
    inset: 11px;
    border: 1px solid var(--paper-line);
    pointer-events: none;
}

/* 四角饰线 */
.reader--document::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .85;
    background-repeat: no-repeat;
    background-image:
        linear-gradient(var(--accent-deep), var(--accent-deep)),
        linear-gradient(var(--accent-deep), var(--accent-deep)),
        linear-gradient(var(--accent-deep), var(--accent-deep)),
        linear-gradient(var(--accent-deep), var(--accent-deep)),
        linear-gradient(var(--accent-deep), var(--accent-deep)),
        linear-gradient(var(--accent-deep), var(--accent-deep)),
        linear-gradient(var(--accent-deep), var(--accent-deep)),
        linear-gradient(var(--accent-deep), var(--accent-deep));
    background-size:
        20px 1px, 1px 20px,
        20px 1px, 1px 20px,
        20px 1px, 1px 20px,
        20px 1px, 1px 20px;
    background-position:
        11px 11px, 11px 11px,
        calc(100% - 11px) 11px, calc(100% - 11px) 11px,
        11px calc(100% - 11px), 11px calc(100% - 11px),
        calc(100% - 11px) calc(100% - 11px), calc(100% - 11px) calc(100% - 11px);
}

/* 文书页眉 */
.reader__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(20px, 3vw, 30px);
    padding-bottom: 13px;
    border-bottom: 1px solid var(--paper-line);
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--paper-mute);
}

.reader__code {
    color: var(--paper-link);
    font-weight: 600;
}

.reader__rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--paper-line-strong), transparent);
}

.reader__stamp {
    color: var(--paper-mute);
    white-space: nowrap;
}

/* --- 文书内的正文重写 --- */
.reader--document .prose {
    color: var(--paper-ink);
}

.reader--document .prose h1,
.reader--document .prose h2,
.reader--document .prose h3,
.reader--document .prose h4,
.reader--document .prose h5,
.reader--document .prose h6 {
    color: var(--paper-strong);
}

.reader--document .prose h2::before,
.reader--document .prose h3::before,
.reader--document .prose h4::before {
    background: var(--accent-deep);
    box-shadow: none;
}

.reader--document .prose a {
    color: var(--paper-link);
    background-image: linear-gradient(var(--paper-line-strong), var(--paper-line-strong));
}

.reader--document .prose a:hover {
    background-image: linear-gradient(var(--paper-link), var(--paper-link));
}

.reader--document .prose strong {
    color: var(--paper-strong);
}

.reader--document .prose em {
    color: var(--paper-dim);
}

.reader--document .prose del {
    color: var(--paper-mute);
}

.reader--document .prose mark {
    background: rgb(216 196 143 / .55);
    color: var(--paper-ink);
}

.reader--document .prose ul > li::before {
    background: var(--accent-deep);
    opacity: 1;
}

.reader--document .prose ol > li::marker {
    color: var(--accent-deep);
}

.reader--document .prose blockquote {
    border-color: var(--paper-line);
    border-left-color: var(--accent-deep);
    background: linear-gradient(90deg, rgb(122 94 42 / .08), transparent 68%);
    color: var(--paper-dim);
}

.reader--document .prose blockquote::before {
    border-color: var(--paper-line-strong);
}

.reader--document .prose blockquote cite {
    color: var(--paper-mute);
}

.reader--document .prose code {
    border-color: var(--paper-line);
    background: rgb(122 94 42 / .1);
    color: var(--paper-link);
}

.reader--document .prose pre {
    background: #070d17;
    border-color: rgb(7 13 23 / .12);
    box-shadow: 0 18px 40px -30px rgb(0 0 0 / .8);
}

.reader--document .prose pre code {
    color: #c6d2e4;
    background: none;
    border: 0;
}

.reader--document .prose pre::before {
    opacity: .35;
}

.reader--document .prose table {
    border-color: var(--paper-line);
}

.reader--document .prose th,
.reader--document .prose td {
    border-color: var(--paper-line);
}

.reader--document .prose thead {
    background: rgb(122 94 42 / .08);
}

.reader--document .prose th {
    color: var(--paper-strong);
}

.reader--document .prose tbody tr:hover {
    background: rgb(122 94 42 / .05);
}

.reader--document .prose hr {
    background: linear-gradient(90deg, transparent, var(--paper-line-strong) 20%, var(--paper-line-strong) 80%, transparent);
}

.reader--document .prose hr::after {
    background: var(--accent-deep);
    box-shadow: none;
}

.reader--document .prose img {
    border-color: var(--paper-line);
    border-radius: 0;
    box-shadow: 0 14px 30px -24px rgb(0 0 0 / .6);
}

.reader--document .prose figcaption {
    color: var(--paper-mute);
}

.reader--document .prose .protected {
    background: var(--paper);
    border-color: var(--paper-line);
}

.reader--document .prose .protected input {
    background: #fff;
    border-color: var(--paper-line);
    color: var(--paper-ink);
}

.reader--document .code-copy {
    border-color: rgb(150 185 240 / .18);
    background: #0d1726;
    color: #9fb0c8;
}

/* --- 目录：高亮项改为白底卡片（参考任务列表） --- */
.toc__link.is-active {
    color: var(--paper-ink);
    background: var(--paper);
    box-shadow:
        inset 0 0 0 1px var(--paper-line),
        0 10px 24px -18px rgb(0 0 0 / .95);
}

.toc__link.is-active::before {
    left: 0;
    width: 2px;
    background: var(--accent-deep);
    box-shadow: none;
}

/* --- 文书响应式 --- */
@media (max-width: 820px) {
    .reader--document {
        padding: 24px 20px 30px;
    }

    .reader--document::before {
        inset: 8px;
    }

    .reader--document::after {
        background-size:
            14px 1px, 1px 14px,
            14px 1px, 1px 14px,
            14px 1px, 1px 14px,
            14px 1px, 1px 14px;
        background-position:
            8px 8px, 8px 8px,
            calc(100% - 8px) 8px, calc(100% - 8px) 8px,
            8px calc(100% - 8px), 8px calc(100% - 8px),
            calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) calc(100% - 8px);
    }

    .reader__head {
        font-size: 12px;
        letter-spacing: .12em;
    }
}

@media (max-width: 480px) {
    .reader__stamp {
        display: none;
    }

    .reader--document {
        padding: 20px 16px 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .node__spin {
        animation: none;
    }
}
