/* ==========================================================================
   ORYZO — 受 oryzo.ai 启发的 Hexo 主题
   设计语言：极暗暖棕底 × 奶油色文字 × 焦橙强调
   签名元素：等宽微标签 + 虚线分隔 + 巨大展示标题 + 焦橙光晕
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
    /* 底色阶（极暗暖棕） */
    --ink: #100904;
    --ink-2: #180f09;
    --ink-3: #221610;
    --ink-4: #2e1e15;
    --brown: #382416;
    --grey-brown: #6c5f51;
    --olive: #445231;
    --olive-light: #5d6c49;

    /* 强调色（焦橙） */
    --orange: #dc5000;
    --orange-bright: #f4670d;
    --orange-soft: rgba(220, 80, 0, 0.16);
    --orange-glow: rgba(220, 80, 0, 0.45);

    /* 文字色（暖奶油 / 浅桃） */
    --cream: #ffedd7;
    --peach: #f6e0c6;
    --muted: #a98b74;
    --faint: #6c5f51;

    /* 分隔线（虚线是本站签名元素） */
    --line: rgba(255, 237, 215, 0.16);
    --line-strong: rgba(255, 237, 215, 0.32);

    /* 语义映射 */
    --bg: var(--ink);
    --surface: var(--ink-2);
    --surface-2: var(--ink-3);
    --text: var(--cream);
    --text-2: var(--peach);
    --accent: var(--orange);
    --accent-text: #100904;

    /* 字体：
       oryzo 用的是付费可变字体 Halyard，这里用系统字栈逼近同样的几何感。
       DM Mono 的等宽气质用系统等宽栈复刻——不引外部 CDN，
       because Google Fonts 在国内访问不稳定。 */
    --font-display: 'Outfit', 'Avenir Next', 'Century Gothic', 'PingFang SC',
        'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
    --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono',
        'Roboto Mono', Menlo, Consolas, 'Liberation Mono', monospace;

    /* 尺度 */
    --pad-x: 45px;
    --maxw: 1440px;
    --topbar-h: 68px;
    --r-pill: 999px;
    --r-sm: 6px;
    --r-md: 12px;

    --shadow-glow: 0 0 0 1px var(--orange-soft), 0 8px 40px -8px var(--orange-glow);
}

/* 浅色模式 = 同一套色板反转（暖纸感） */
[data-theme='light'] {
    --bg: #f3e6d4;
    --surface: #faeedd;
    --surface-2: #f3e3cd;
    --ink-2: #faeedd;
    --ink-3: #f3e3cd;
    --ink-4: #e8d5bc;
    --text: #1d1108;
    --text-2: #3d2415;
    --muted: #6c4f3a;
    --faint: #8a6b52;
    --line: rgba(29, 17, 8, 0.18);
    --line-strong: rgba(29, 17, 8, 0.34);
    --accent: #b84200;
    --accent-text: #fff3e4;
    --orange-soft: rgba(184, 66, 0, 0.12);
    --orange-glow: rgba(184, 66, 0, 0.28);
}

/* --------------------------------------------------------------------------
   2. 基础
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    /* 粘性页脚：内容不足一屏时，把页脚压到视口底部而不是浮在中间。
       顶栏/抽屉都是 fixed，不占文档流，所以这里只有 main 和 footer 参与弹性布局。 */
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

/* main 吃掉剩余高度，页脚自然被推到整页底部 */
main {
    flex: 1 0 auto;
}

/* 胶片颗粒：oryzo 全站有一层极细噪点，用 SVG feTurbulence 复刻，零请求 */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--accent);
    color: var(--accent-text);
}

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

/* 滚动条也跟上色调 */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--ink-4);
    border-radius: 99px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* 内联图标兜底尺寸：helper 输出的 svg 只有 viewBox，不约束会被放大到撑满容器 */
.nav-link svg,
.stream-meta svg,
.pager svg,
.tag-chip svg,
.social-link svg,
.drawer svg,
.cloud-name svg,
.feature-icon svg,
.empty svg,
.filing svg,
.scroll-cue svg,
.qr-card svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. 排版工具类（对应 oryzo 的 body1/2/3、sub1/2、h1-h5）
   -------------------------------------------------------------------------- */
.mono {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.5;
}

.mono-dim {
    color: var(--muted);
}

/* 顶部虚线：oryzo 用 .o-dashline 大量分隔内容 */
.dash {
    border: 0;
    border-top: 1px dashed var(--line-strong);
    height: 0;
}

/* 点状下划线（导航激活态） */
.dot-underline {
    position: relative;
}
.dot-underline::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    border-bottom: 1px dotted currentColor;
}

/* --------------------------------------------------------------------------
   4. 顶栏
   -------------------------------------------------------------------------- */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 var(--pad-x);
    /* 必须高于 .drawer(140)/.drawer-backdrop(130)，否则抽屉张开时顶栏的关闭按钮被盖住点不到 */
    z-index: 150;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
}

.wordmark .mark {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.wordmark:hover .mark {
    transform: rotate(90deg);
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 4px 0;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    border-bottom: 1px dotted var(--accent);
}

.nav-link .ext {
    margin-left: 5px;
    opacity: 0.5;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.icon-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--orange-soft);
}

.icon-btn svg {
    width: 16px;
    height: 16px;
}

.icon-btn .moon-icon {
    display: none;
}
[data-theme='light'] .icon-btn .moon-icon {
    display: block;
}
[data-theme='light'] .icon-btn .sun-icon {
    display: none;
}

.menu-btn {
    display: none;
}

/* --------------------------------------------------------------------------
   5. 首屏 Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(var(--topbar-h) + 40px) var(--pad-x) 34px;
    overflow: hidden;
    isolation: isolate;
    background: var(--ink);
}

.hero-bg {
    position: absolute;
    inset: -30px;
    z-index: -3;
    background-image: var(--hero-image, none);
    background-size: cover;
    background-position: center;
    /* 把照片压进暖色调，和色板统一 */
    filter: saturate(0.55) sepia(0.3) brightness(0.42) contrast(1.05);
    transform: scale(1.04);
}

/* 暖色暗角，四角往里压 */
.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(120% 100% at 50% 45%, transparent 30%, rgba(16, 9, 4, 0.72) 100%),
        linear-gradient(180deg, rgba(16, 9, 4, 0.55) 0%, rgba(16, 9, 4, 0.2) 35%, rgba(16, 9, 4, 0.92) 100%);
}

/* 右下角一团焦橙光晕（oryzo 的 glow 元素） */
.hero-glow {
    position: absolute;
    right: -12%;
    bottom: -30%;
    width: 60vw;
    height: 60vw;
    max-width: 900px;
    max-height: 900px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 62%);
    opacity: 0.5;
    pointer-events: none;
    animation: glow-breathe 9s ease-in-out infinite;
}

@keyframes glow-breathe {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.62; transform: scale(1.06); }
}

.hero-inner {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
}

.hero-main {
    max-width: 900px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--peach);
}

.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--orange-soft);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 8.2vw, 7rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--cream);
    text-wrap: balance;
    margin-bottom: 24px;
}

.hero-title em {
    font-style: normal;
    color: var(--accent);
}

.hero-desc {
    font-size: clamp(0.95rem, 1.3vw, 1.125rem);
    line-height: 1.75;
    color: var(--peach);
    max-width: 32em;
    margin-bottom: 14px;
}

.hero-note {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    line-height: 1.9;
    color: var(--muted);
    max-width: 34em;
    margin-bottom: 30px;
}

.hero-note strong {
    color: var(--cream);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* 焦橙胶囊按钮：oryzo 的标志性组件 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.btn-orange {
    background: var(--accent);
    color: var(--accent-text);
}

.btn-orange:hover {
    background: var(--orange-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 34px -8px var(--orange-glow);
}

.btn-orange:hover svg {
    transform: translateX(3px);
}

.btn-ghost {
    background: rgba(255, 237, 215, 0.06);
    border-color: var(--line-strong);
    color: var(--cream);
}

.btn-ghost:hover {
    border-color: var(--cream);
    background: rgba(255, 237, 215, 0.12);
    transform: translateY(-2px);
}

/* 右侧竖排型号字样：oryzo 的 "ORYZO-1 MODEL" */
.hero-side {
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 6px;
}

.hero-side::before {
    content: '';
    width: 1px;
    height: 64px;
    background: linear-gradient(180deg, transparent, var(--line-strong));
}

/* 左下角说明块 + 底部滚动提示 */
.hero-foot {
    width: 100%;
    max-width: var(--maxw);
    margin: 46px auto 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.hero-caption {
    max-width: 260px;
    padding-top: 14px;
    border-top: 1px dashed var(--line-strong);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    line-height: 1.8;
    color: var(--muted);
}

.hero-caption strong {
    display: block;
    color: var(--cream);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.scroll-cue button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(16, 9, 4, 0.4);
    color: var(--cream);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.scroll-cue button:hover {
    border-color: var(--accent);
    background: var(--orange-soft);
    transform: translateY(3px);
}

.scroll-cue svg {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   6. 区块骨架
   -------------------------------------------------------------------------- */
.section {
    padding: 84px var(--pad-x);
    border-top: 1px dashed var(--line-strong);
}

.section-inner {
    max-width: var(--maxw);
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 46px;
}

.section-index {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-index::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text);
}

.section-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   7. 文章流（oryzo 的编号列表气质）
   -------------------------------------------------------------------------- */
.stream {
    display: flex;
    flex-direction: column;
}

.post-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    padding: 26px 4px;
    border-top: 1px dashed var(--line);
    transition: background 0.3s ease, padding 0.3s ease;
}

.stream > .post-row:last-child {
    border-bottom: 1px dashed var(--line);
}

.post-row:hover {
    background: linear-gradient(90deg, var(--orange-soft), transparent 65%);
}

.post-index {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--faint);
    transition: color 0.3s ease;
}

.post-row:hover .post-index {
    color: var(--accent);
}

.post-title {
    font-family: var(--font-display);
    font-size: clamp(1.0625rem, 1.9vw, 1.5rem);
    font-weight: 600;
    line-height: 1.32;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.post-row:hover .post-title {
    color: var(--accent);
}

.stream-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.stream-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stream-meta a {
    transition: color 0.25s ease;
}

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

.post-excerpt {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--muted);
    margin-top: 10px;
    max-width: 62ch;
}

.post-arrow {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-arrow svg {
    width: 16px;
    height: 16px;
}

.post-row:hover .post-arrow {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-text);
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. 特性 / 主题卡（oryzo 的 features-item）
   -------------------------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0;
    border-top: 1px dashed var(--line-strong);
}

.feature-card {
    padding: 32px 28px 34px;
    border-bottom: 1px dashed var(--line);
    border-right: 1px dashed var(--line);
    transition: background 0.3s ease;
}

.feature-card:last-child {
    border-right: none;
}

.feature-card:hover {
    background: var(--orange-soft);
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--accent);
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-card:hover .feature-icon {
    border-color: var(--accent);
    background: var(--orange-soft);
    transform: scale(1.06);
}

.feature-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. 关注 / 二维码墙
   -------------------------------------------------------------------------- */
.qr-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0;
    border-top: 1px dashed var(--line-strong);
}

.qr-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px 28px 32px;
    border-bottom: 1px dashed var(--line);
    border-right: 1px dashed var(--line);
    transition: background 0.3s ease;
}

.qr-card:last-child {
    border-right: none;
}

.qr-card:hover {
    background: var(--orange-soft);
}

.qr-card-figure {
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--cream);
    border: 1px solid var(--line);
}

.qr-card-figure img {
    width: 100%;
    height: auto;
}

.qr-card--square .qr-card-figure {
    max-width: 172px;
    aspect-ratio: 1;
}

.qr-card--square .qr-card-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-card--icons .qr-card-figure {
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 0;
}

.social-badge {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--muted);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-badge svg {
    width: 19px;
    height: 19px;
}

.social-badge:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-text);
    transform: translateY(-3px);
}

.qr-card-name {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
}

.qr-card-desc {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   10. 分页
   -------------------------------------------------------------------------- */
.pager {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 48px;
}

/* 「Page 01 / 03」——页码明示，避免只看到一个孤零零的数字 */
.pager-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--faint);
}

.pager-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pager-links a,
.pager-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--muted);
    transition: all 0.25s ease;
}

.pager-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--orange-soft);
}

.pager-links .current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

.pager-links .disabled,
.pager-links .space {
    opacity: 0.35;
    pointer-events: none;
}

.pager svg {
    width: 13px;
    height: 13px;
}

/* --------------------------------------------------------------------------
   11. 文章详情页
   -------------------------------------------------------------------------- */
.article {
    padding: calc(var(--topbar-h) + 64px) var(--pad-x) 90px;
}

.article-inner {
    max-width: 780px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.25s ease, gap 0.25s ease;
}

.back-link:hover {
    color: var(--accent);
    gap: 12px;
}

.back-link svg {
    width: 14px;
    height: 14px;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 22px;
    text-wrap: balance;
}

.article-header {
    padding-bottom: 30px;
    border-bottom: 1px dashed var(--line-strong);
    margin-bottom: 40px;
}

.article-body {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text-2);
}

.article-body > * + * {
    margin-top: 1.4em;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--text);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin-top: 2.2em;
}

.article-body h2 {
    font-size: 1.5rem;
    padding-bottom: 0.4em;
    border-bottom: 1px dashed var(--line);
}

.article-body h3 {
    font-size: 1.1875rem;
}

.article-body h4 {
    font-size: 1.0625rem;
}

.article-body a {
    color: var(--accent);
    border-bottom: 1px solid var(--orange-soft);
    transition: border-color 0.25s ease;
}

.article-body a:hover {
    border-bottom-color: var(--accent);
}

.article-body strong {
    color: var(--text);
    font-weight: 600;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5em;
}

.article-body li + li {
    margin-top: 0.45em;
}

.article-body li > ul,
.article-body li > ol {
    margin-top: 0.45em;
}

.article-body blockquote {
    padding: 6px 22px;
    border-left: 2px solid var(--accent);
    background: var(--orange-soft);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    color: var(--text-2);
}

.article-body blockquote > * + * {
    margin-top: 0.8em;
}

.article-body code {
    padding: 0.18em 0.44em;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.86em;
}

.article-body pre {
    padding: 20px 22px;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow-x: auto;
    line-height: 1.65;
    font-size: 0.875rem;
}

.article-body pre code {
    padding: 0;
    background: none;
    color: var(--text-2);
    font-size: inherit;
}

/* Hexo 代码高亮 */
.article-body .highlight {
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 0.875rem;
}

.article-body .highlight table {
    width: 100%;
    border: none;
    background: none;
    margin: 0;
}

.article-body .highlight td {
    border: none;
    padding: 0;
    background: none;
}

.article-body .highlight .gutter {
    width: 1%;
    min-width: 46px;
    padding: 20px 12px 20px 16px;
    text-align: right;
    background: rgba(255, 237, 215, 0.03);
    border-right: 1px dashed var(--line);
    color: var(--faint);
    user-select: none;
    -webkit-user-select: none;
    font-variant-numeric: tabular-nums;
    vertical-align: top;
}

.article-body .highlight .gutter pre {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
}

.article-body .highlight .code pre {
    margin: 0;
    padding: 20px 22px;
    border: none;
    background: none;
}

.article-body .highlight figcaption {
    display: none;
}

/* 高亮着色：暖色调 */
.article-body .highlight .comment,
.article-body .highlight .quote {
    color: var(--faint);
    font-style: italic;
}
.article-body .highlight .keyword,
.article-body .highlight .selector-tag,
.article-body .highlight .built_in,
.article-body .highlight .literal {
    color: #f97316;
}
.article-body .highlight .string,
.article-body .highlight .number,
.article-body .highlight .attribute {
    color: #a3b18a;
}
.article-body .highlight .title,
.article-body .highlight .function .title,
.article-body .highlight .section {
    color: #f6e0c6;
}
.article-body .highlight .variable,
.article-body .highlight .template-variable,
.article-body .highlight .attr {
    color: #e9a06a;
}
.article-body .highlight .tag {
    color: var(--muted);
}
.article-body .highlight .name {
    color: #fb7185;
}

.article-body hr {
    height: 0;
    border: 0;
    border-top: 1px dashed var(--line-strong);
    margin: 2.6em 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    display: block;
    overflow-x: auto;
}

.article-body th,
.article-body td {
    padding: 10px 14px;
    border: 1px dashed var(--line);
    text-align: left;
}

.article-body th {
    background: var(--surface-2);
    color: var(--text);
    font-weight: 600;
}

.article-body img {
    border-radius: var(--r-md);
    margin: 1.8em auto;
    border: 1px solid var(--line);
}

/* 标签 + 上下篇 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px dashed var(--line-strong);
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    transition: all 0.25s ease;
}

.tag-chip svg {
    width: 11px;
    height: 11px;
}

.tag-chip:hover {
    color: var(--accent-text);
    background: var(--accent);
    border-color: var(--accent);
}

.article-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 34px;
    border-top: 1px dashed var(--line-strong);
}

.article-nav > * {
    padding: 22px 4px;
    border-bottom: 1px dashed var(--line);
    transition: background 0.3s ease;
}

.article-nav > * + * {
    border-left: 1px dashed var(--line);
    padding-left: 24px;
}

.article-nav > *:hover {
    background: var(--orange-soft);
}

.article-nav .next {
    text-align: right;
}

.nav-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.nav-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    transition: color 0.25s ease;
}

.article-nav > *:hover .nav-title {
    color: var(--accent);
}

.article-nav .placeholder {
    opacity: 0.4;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   12. 归档 / 分类 / 标签
   -------------------------------------------------------------------------- */
.page-head {
    padding: calc(var(--topbar-h) + 64px) var(--pad-x) 0;
}

.page-head-inner {
    max-width: var(--maxw);
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--text);
}

.page-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-sub::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--accent);
}

.list-section {
    padding: 40px var(--pad-x) 90px;
}

.list-inner {
    max-width: var(--maxw);
    margin: 0 auto;
}

.archive-year {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 42px 0 6px;
}

.archive-year:first-child {
    margin-top: 0;
}

.archive-item {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 16px 4px;
    border-bottom: 1px dashed var(--line);
    transition: background 0.3s ease;
}

.archive-item:hover {
    background: linear-gradient(90deg, var(--orange-soft), transparent 65%);
}

.archive-date {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--faint);
}

.archive-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.25s ease;
}

.archive-item:hover .archive-title {
    color: var(--accent);
}

/* 分类 / 标签云 */
.cloud {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
    border-top: 1px dashed var(--line-strong);
}

.cloud-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 20px;
    border-bottom: 1px dashed var(--line);
    border-right: 1px dashed var(--line);
    transition: background 0.3s ease;
}

.cloud-item:hover {
    background: var(--orange-soft);
}

.cloud-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

.cloud-name svg {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

.cloud-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
}

/* 空状态 */
.empty {
    padding: 60px 30px;
    text-align: center;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
    color: var(--muted);
}

.empty p + p {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.empty code {
    padding: 2px 8px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--accent);
    font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   13. 页脚
   -------------------------------------------------------------------------- */
.footer {
    padding: 54px var(--pad-x) 40px;
    border-top: 1px dashed var(--line-strong);
    background: var(--surface);
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
}

.footer-wordmark {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.92;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 14px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    text-align: right;
}

.footer-filings {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.filing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--muted);
    transition: all 0.25s ease;
}

.filing:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.filing img {
    width: auto;
    height: 14px;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}

/* --------------------------------------------------------------------------
   14. 移动端：顶栏 + 抽屉
   -------------------------------------------------------------------------- */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 9, 4, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 130;
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: calc(var(--topbar-h) + 20px) 26px 30px;
    background: var(--surface);
    border-left: 1px dashed var(--line-strong);
    transform: translateX(100%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 140;
    overflow-y: auto;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
}

.drawer .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    font-size: 12px;
    border-bottom: 1px dashed var(--line);
}

.drawer .nav-link svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.drawer .nav-link.active::after {
    display: none;
}

.drawer .nav-link.active {
    color: var(--accent);
}

.drawer-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-social {
    display: flex;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   15. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    :root {
        --pad-x: 32px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .footer-right {
        align-items: flex-start;
        text-align: left;
    }

    .footer-filings {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    :root {
        --pad-x: 22px;
        --topbar-h: 60px;
    }

    .nav {
        display: none;
    }

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

    .hero {
        min-height: 92svh;
    }

    .hero-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

    .scroll-cue {
        margin-left: 0;
        flex-direction: row;
        align-items: center;
    }

    .section {
        padding: 60px var(--pad-x);
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 32px;
    }

    .post-row {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 16px;
        padding: 22px 2px;
    }

    .post-arrow {
        display: none;
    }

    .feature-card,
    .qr-card {
        border-right: none;
    }

    .article,
    .page-head,
    .list-section {
        padding-left: var(--pad-x);
        padding-right: var(--pad-x);
    }

    .article {
        padding-top: calc(var(--topbar-h) + 40px);
        padding-bottom: 64px;
    }

    .page-head {
        padding-top: calc(var(--topbar-h) + 40px);
    }

    .list-section {
        padding-bottom: 64px;
    }

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

    .article-nav > * + * {
        border-left: none;
        padding-left: 4px;
    }

    .article-nav .next {
        text-align: left;
    }

    .archive-item {
        flex-direction: column;
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-wordmark {
        font-size: 2.5rem;
    }
}

/* --------------------------------------------------------------------------
   16. 进场动画（尊重系统减少动画偏好）
   只在 JS 确实接管时才隐藏元素：.js 类由脚本第一时间打到 <html> 上，
   这样 JS 失效 / 被拦截时内容依然可见。
   -------------------------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
