/* Google Fonts 通过 base.html 中的 <link> 标签加载，避免 @import 阻塞渲染 */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-elevated: #222230;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --accent-primary: #87ceeb;
    --accent-primary-rgb: 135, 206, 235;
    --accent-secondary: #6fbf73;
    --accent-tertiary: #a7d96a;
    --accent-glow: rgba(135, 206, 235, 0.15);
    --accent-glow-strong: rgba(135, 206, 235, 0.3);
    --border-subtle: rgba(var(--card-info-tint), 0.06);
    --border-default: rgba(var(--card-info-tint), 0.1);
    --border-accent: rgba(135, 206, 235, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --shadow-glow-strong: 0 0 60px var(--accent-glow-strong);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-float: cubic-bezier(0.16, 1, 0.3, 1);
    --cursor-size: 20px;
    --cursor-ring-size: 40px;
    /* 三分类卡片主题变量（可由站点设置动态覆盖） */
    --glass-nav: 0.1;
    --card-nav-tint: 255,255,255;
    --card-hero-tint: 255,255,255;
    --card-info-tint: 255,255,255;
    --glass-hero: 0.06;
    --glass-info: 0.06;
    --hero-blur: 20px;
}

.cursor-dot {
    position: fixed;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(8px);
}

.cursor-ring {
    position: fixed;
    width: var(--cursor-ring-size);
    height: var(--cursor-ring-size);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.5;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent-secondary);
    opacity: 0.8;
}

.cursor-dot.click {
    transform: translate(-50%, -50%) scale(0.8);
}

.cursor-ring.click {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}

@media (max-width: 768px) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --card-hover-tilt-x: 3deg;
    --card-hover-tilt-y: -5deg;
    --card-hover-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    --card-hover-rotate-x: 0deg;
    --card-hover-rotate-y: 0deg;
    --card-glow-x: 50%;
    --card-glow-y: 50%;
    --card-glow-opacity: 0;
    --card-edge-glow-opacity: 0;
    --card-glow-strength: 1;
    --card-edge-glow-strength: 1;
    --nav-logo-row-width: 160px;
    --nav-menu-row-width: 372px;
    --nav-neck-height: 44px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-fast: 0ms;
        --duration-normal: 0ms;
        --duration-slow: 0ms;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

@media (max-width: 768px) {
    * {
        cursor: auto;
    }
    
    a, button, .post-card, .latest-card, .category-card, input, .nav-link, .logo, .btn {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    a:active, button:active {
        opacity: 0.8;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none;
}

.global-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-primary);
}

.global-video-bg video,
.global-video-bg img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(var(--bg-brightness, 0.3));
}

.global-video-bg video {
    z-index: 1;
}

.global-video-bg img {
    z-index: 0;
}

@media (max-aspect-ratio: 16/9) {
    .global-video-bg video,
    .global-video-bg img {
        width: 100%;
        height: auto;
    }
}

@media (min-aspect-ratio: 16/9) {
    .global-video-bg video,
    .global-video-bg img {
        width: auto;
        height: 100%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.header {
    position: fixed;
    top: calc(var(--space-md) + var(--safe-area-top));
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    z-index: 100;
}

/* ── 导航栏包装器：音乐圆圈 + 导航胶囊并排 ── */
.header-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── 导航栏音乐小圆圈 ── */
.nav-music-pill {
    display: flex;
    align-items: center;
    height: 44px;
    background: rgba(var(--card-nav-tint),var(--glass-nav));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 100px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    max-width: 44px;
    transition:
        max-width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}

.nav-music-pill:hover,
.nav-music-pill.playlist-open {
    max-width: 300px;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.22);
}

.nav-music-disc {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.nav-music-disc-ring {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-music-disc-ring.spinning {
    animation: discSpin 3s linear infinite, musicGlow 1.4s ease-in-out infinite;
}

@keyframes musicGlow {
    0%, 100% { box-shadow: 0 0 0px 0px rgba(var(--accent-primary-rgb, 139,92,246), 0.0); }
    50%       { box-shadow: 0 0 10px 5px rgba(var(--accent-primary-rgb, 139,92,246), 0.65); }
}

/* ── 导航栏音乐小圆圈包装（overflow:visible，让音符飘出 pill 外） ── */
.nav-music-pill-wrap {
    position: relative;
    flex-shrink: 0;
}

/* 飘动音符 — 相对 wrap 定位，在 pill overflow:hidden 外部自由飘动 */
.music-float-note {
    position: absolute;
    /* 圆圈宽44px，圆环30px居中，右上角约 top:4px left:32px */
    top: 2px;
    left: 30px;
    font-size: 12px;
    color: var(--accent-primary);
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 0 4px rgba(var(--accent-primary-rgb), 0.6);
    z-index: 201;
}

/* :has() 检测 spinning 状态触发动画，无需额外 JS */
.nav-music-pill-wrap:has(.spinning) .music-float-note {
    animation: noteFloat 2.4s ease-out infinite;
}
.nav-music-pill-wrap:has(.spinning) .music-float-note.n2 {
    animation-delay: 0.8s;
    left: 33px;
    top: 4px;
    font-size: 10px;
}
.nav-music-pill-wrap:has(.spinning) .music-float-note.n3 {
    animation-delay: 1.6s;
    left: 28px;
    top: 1px;
    font-size: 11px;
}

@keyframes noteFloat {
    0%   { opacity: 0;  transform: translate(0, 0) rotate(0deg);      }
    15%  { opacity: 1;                                                  }
    80%  { opacity: 0.6;                                                }
    100% { opacity: 0;  transform: translate(8px, -22px) rotate(25deg); }
}

.nav-music-disc-inner {
    width: 15px;
    height: 15px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-music-disc-inner svg {
    width: 9px;
    height: 9px;
    color: var(--accent-primary);
}

.nav-music-expand-content {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease 0.2s;
    overflow: hidden;
}

.nav-music-pill:hover .nav-music-expand-content,
.nav-music-pill.playlist-open .nav-music-expand-content {
    opacity: 1;
    pointer-events: auto;
}

.nav-music-song-name {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-music-controls {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
}

.nav-music-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out-quart);
    flex-shrink: 0;
}

.nav-music-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-primary);
}

.nav-music-btn svg {
    width: 13px;
    height: 13px;
}

.nav-music-play-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.nav-link.active,
.nav-link[aria-current='page'] {
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-link.active::before,
.nav-link[aria-current='page']::before {
    opacity: 0.22;
}

.nav-link.active span,
.nav-link[aria-current='page'] span {
    text-shadow: 0 0 18px rgba(var(--accent-primary-rgb), 0.28);
}

/* ── 播放列表面板 ── */
.music-playlist-panel {
    position: fixed;
    width: 320px;
    background: rgba(var(--card-nav-tint),var(--glass-nav));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all var(--duration-normal) var(--ease-out-quart);
    z-index: 200;
}

.page-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease,
        transform 0.55s var(--ease-out-expo);
    will-change: opacity, transform;
}

.page-reveal.page-reveal-hero {
    transform: translateY(28px) scale(0.988);
}

.page-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.music-playlist-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ── Rekorder 风格：水平胶囊，hover 展宽，菜单从右侧滑入 ── */
.header-inner {
    background: rgba(var(--card-nav-tint),var(--glass-nav));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 100px;
    padding: 0;
    width: var(--nav-logo-row-width);
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    cursor: default;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    transition:
        width 0.55s var(--ease-out-expo),
        box-shadow 0.3s ease;
}

.header-inner:hover,
.header-inner.nav-open {
    width: var(--nav-menu-row-width);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.22);
}

.header.scrolled .header-inner {
    background: rgba(255, 255, 255, 0.1);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    padding: 10px 20px;
    background: transparent;
    border: none;
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    transition: color var(--duration-fast) var(--ease-out-quart);
}

.logo:hover {
    color: var(--accent-primary);
}

.logo span {
    position: relative;
    z-index: 1;
}

/* 折叠提示：logo 右侧小三角，展开后淡出 */
.logo::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 4px solid var(--text-muted);
    opacity: 0.3;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.header-inner:hover .logo::after,
.header-inner.nav-open .logo::after {
    opacity: 0;
}

.nav-logo-img {
    display: inline-block;
    height: 24px;
    width: auto;
    max-width: 120px;
    max-height: 28px;
    object-fit: contain;
    flex-shrink: 1;
    vertical-align: middle;
}

/* 有 logo 图片时隐藏展开提示三角 */
.logo:has(.nav-logo-img[style*="display: inline-block"])::after,
.logo:has(.nav-logo-img:not([style*="display: none"]))::after {
    display: none;
}

/* ── 导航菜单：水平排列，从右侧滑入 ── */
.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    max-width: 0;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    /* 竖线分隔符 */
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0;
    transition:
        max-width 0.5s var(--ease-out-expo),
        opacity 0.2s ease 0.18s;
}

.header-inner:hover .nav-links,
.header-inner.nav-open .nav-links {
    max-width: 400px;
    opacity: 1;
    pointer-events: auto;
    padding: 0 14px 0 12px;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    border-radius: 100px;
    transition: opacity var(--duration-fast) var(--ease-out-quart);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::before {
    opacity: 0.15;
}

.nav-link span {
    position: relative;
    z-index: 1;
}

.main {
    min-height: 100vh;
    padding: 120px 0 var(--space-3xl);
}

.hero {
    padding: var(--space-3xl) 0;
    margin-bottom: var(--space-3xl);
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s var(--ease-out-expo) forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s var(--ease-out-expo) 0.15s forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-default), transparent);
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.post-card {
    position: relative;
    background: rgba(var(--card-info-tint),var(--glass-info));
    backdrop-filter: blur(3px) saturate(180%);
    -webkit-backdrop-filter: blur(3px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    --card-hover-rotate-x: 0deg;
    --card-hover-rotate-y: 0deg;
    transition: opacity 0.46s var(--ease-float), box-shadow var(--duration-normal) var(--ease-out-quart), border-color var(--duration-normal) var(--ease-out-quart), background-color var(--duration-normal) var(--ease-out-quart);
    opacity: 0;
    animation: cardReveal 0.6s var(--ease-out-expo) forwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* 初始入场延迟：仅对首屏前 5 张生效，JS 动态注入的卡片通过 style.animationDelay 覆盖 */
.post-card:nth-child(1) { animation-delay: 0.2s; }
.post-card:nth-child(2) { animation-delay: 0.25s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.35s; }
.post-card:nth-child(5) { animation-delay: 0.4s; }
/* 第 6 张起无延迟，由 JS 按需设置 */
.post-card:nth-child(n+6) { animation-delay: 0s; }

@keyframes cardReveal {
    to {
        opacity: 1;
    }
}

.post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-quart);
    pointer-events: none;
}

.post-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 0.92));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

.post-card:hover::before {
    opacity: 0;
}

.post-card-link {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-height: 100px;
}

.post-card-cover {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.post-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-quart);
}

.post-card:hover .post-card-cover img {
    transform: none;
}

.post-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--bg-secondary));
    pointer-events: none;
}

.post-card-content {
    flex: 1;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.post-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(135, 206, 235, 0.12);
    border: 1px solid rgba(135, 206, 235, 0.22);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    transition: color var(--duration-fast) var(--ease-out-quart);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.post-card:hover .post-card-title {
    color: var(--text-primary);
}

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.post-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-views svg {
    width: 14px;
    height: 14px;
}

.load-more-container {
    text-align: center;
    margin-top: var(--space-2xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn:active:not(:disabled) {
    transform: translateY(1px) scale(0.97);
    transition-duration: 60ms;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 140px;
}

.empty-state, .error-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.empty-state svg, .error-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state p, .error-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.footer {
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-2xl) 0;
    padding-bottom: calc(var(--space-2xl) + var(--safe-area-bottom));
    margin-top: var(--space-3xl);
}

.footer-content {
    text-align: center;
    overflow: visible;
    max-height: none;
    height: auto;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

#footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
    max-height: none;
    height: auto;
    display: block;
}

#footer-text p {
    margin: 0 0 0.5em 0;
}

/* contenteditable 富文本编辑器产生的 div 子元素 */
#footer-text div {
    margin: 0 0 0.5em 0;
}

#footer-text p:last-child,
#footer-text div:last-child {
    margin-bottom: 0;
}

#footer-text a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

#footer-text a:hover {
    color: var(--color-accent-light);
    text-decoration: underline;
}

#footer-text img {
    max-height: 24px;
    max-width: 100px;
    vertical-align: middle;
    margin: 0 4px;
    border-radius: 2px;
}

#footer-text strong {
    color: var(--text-secondary);
}

#footer-text p[style*="text-align: center"],
#footer-text div[style*="text-align: center"] {
    text-align: center;
}

#footer-text p[style*="text-align: left"],
#footer-text div[style*="text-align: left"] {
    text-align: left;
}

#footer-text p[style*="text-align: right"],
#footer-text div[style*="text-align: right"] {
    text-align: right;
}

#footer-text p[style*="padding-left"],
#footer-text div[style*="padding-left"] {
    padding-left: 1em;
}

#post-layout-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: var(--space-xl);
    align-items: start;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.post-detail {
    background: rgba(var(--card-info-tint),var(--glass-info));
    backdrop-filter: blur(3px) saturate(180%);
    -webkit-backdrop-filter: blur(3px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    animation: fadeInUp 0.6s var(--ease-out-expo);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-header {
    margin-bottom: var(--space-xl);
}

.post-hero-panel {
    display: block;
    padding: clamp(24px, 4vw, 38px);
    border-radius: var(--radius-lg);
    background: rgba(var(--card-info-tint),var(--glass-info));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, calc(var(--glass-info) * 0.24));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--space-xl);
}

.post-hero-kicker,
.post-insight-label {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.post-hero-meta-row {
    margin-bottom: var(--space-md);
}

.post-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 0;
}

.post-hero-excerpt {
    margin-top: var(--space-md);
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.85;
}

.post-meta-grid {
    display: grid;
    gap: var(--space-md);
}

.post-meta-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 96px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(var(--card-info-tint), var(--glass-info));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-meta-label {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.post-meta-value {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: -0.04em;
}

.post-meta-value-small {
    font-size: 1rem;
    line-height: 1.5;
}

.post-cover-stage {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.post-header .post-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.post-header .post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.post-cover-full {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
}

.post-content-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: var(--space-xl);
    align-items: start;
}

/* 文章信息卡（阅读量/时长/发布时间）—— 位于侧栏顶部 */
.post-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-top: 8px;
}

.post-stats-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.post-stats-item-full {
    grid-column: 1 / -1;
}

.post-stats-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-display);
}

.post-stats-value {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.post-stats-value-date {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
}

.post-body-column {
    min-width: 0;
}

.post-insight-panel {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
    display: grid;
    gap: var(--space-md);
    align-content: start;
}

.post-insight-panel::-webkit-scrollbar {
    width: 3px;
}

.post-insight-panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.post-toc-card .toc-nav {
    margin-top: 8px;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.post-toc-card .toc-nav::-webkit-scrollbar {
    width: 3px;
}

.post-toc-card .toc-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.post-insight-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(var(--card-info-tint), var(--glass-info));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-insight-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.post-insight-empty {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.post-insight-actions {
    display: grid;
    gap: var(--space-sm);
}

.post-inline-btn {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.post-inline-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-secondary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary), var(--shadow-glow);
    transform: translateY(-1px);
}

.post-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    overflow-x: hidden;
    font-family: var(--font-body);
}

.post-body p {
    margin-bottom: 1.5em;
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
    font-family: var(--font-display);
    margin-top: 2em;
    margin-bottom: 0.75em;
    color: var(--text-primary);
}

.post-body h2 {
    font-size: 1.5rem;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--border-default);
}

.post-body h3 {
    font-size: 1.25rem;
}

.post-body a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--duration-fast) var(--ease-out-quart);
}

.post-body a:hover {
    border-bottom-color: var(--accent-primary);
}

.post-body ul, .post-body ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.post-body li {
    margin-bottom: 0.5em;
}

.post-body blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.06), rgba(111, 191, 115, 0.06));
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-body code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
}

.post-body pre {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.post-body pre code {
    background: none;
    padding: 0;
    display: block;
    white-space: pre !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    tab-size: 4;
}

.post-body img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    width: auto;
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
    display: block;
    object-fit: contain;
}

.post-body p[style*="text-align: left"],
.post-body div[style*="text-align: left"] {
    text-align: left;
}

.post-body p[style*="text-align: center"],
.post-body div[style*="text-align: center"] {
    text-align: center;
}

.post-body p[style*="text-align: right"],
.post-body div[style*="text-align: right"] {
    text-align: right;
}

.post-body p[style*="text-align: justify"],
.post-body div[style*="text-align: justify"] {
    text-align: justify;
}

.post-body p[style*="text-align: center"] img,
.post-body div[style*="text-align: center"] img {
    margin-left: auto;
    margin-right: auto;
}

.post-body p[style*="text-align: right"] img,
.post-body div[style*="text-align: right"] img {
    margin-left: auto;
    margin-right: 0;
}

.post-body p[style*="text-align: left"] img,
.post-body div[style*="text-align: left"] img {
    margin-left: 0;
    margin-right: auto;
}

.post-body p[style*="padding-left"],
.post-body div[style*="padding-left"],
.post-body p[style*="margin-left"],
.post-body div[style*="margin-left"] {
    margin-bottom: 1.5em;
}

.post-content-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
    transition: transform var(--duration-normal) var(--ease-out-quart);
}

.post-content-image:hover {
    transform: scale(1.02);
}

/* ── 文章正文：强制覆盖富文本编辑器存入的内联黑色 color 样式 ── */
.post-body {
    color: var(--text-primary) !important;
    background: transparent !important;
}
/* 非代码块子元素继承颜色（pre 内部不干预，让 hljs 高亮生效） */
.post-body *:not(pre, pre *) {
    color: inherit;
}
/* 链接保留高亮色 */
.post-body a,
.post-body a * {
    color: var(--accent-primary) !important;
}
/* 行内 code（不含 pre > code）用 accent 色 */
.post-body :not(pre) > code {
    color: var(--accent-primary) !important;
    background: var(--bg-tertiary) !important;
}
/* pre code：不强制颜色，让 hljs atom-one-dark 主题决定每个 token 颜色 */
.post-body pre code {
    color: inherit;
    background: transparent !important;
}
.post-body pre {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-subtle) !important;
}

/* ── Vditor 深色主题覆盖 (前台文章页 Markdown 渲染) ──────────────────── */
.post-body.vditor-reset {
    color: var(--text-primary) !important;
    background: transparent !important;
}
.post-body.vditor-reset p,
.post-body.vditor-reset li,
.post-body.vditor-reset td,
.post-body.vditor-reset th {
    color: var(--text-primary) !important;
}
.post-body.vditor-reset h1,
.post-body.vditor-reset h2,
.post-body.vditor-reset h3,
.post-body.vditor-reset h4,
.post-body.vditor-reset h5,
.post-body.vditor-reset h6 {
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-default);
}
.post-body.vditor-reset blockquote {
    color: var(--text-secondary) !important;
    border-left-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(124,58,237,0.06));
}
/* Vditor 行内 code 用 accent 色 */
.post-body.vditor-reset :not(pre) > code,
.post-body.vditor-reset .vditor-reset--left :not(pre) > code {
    color: var(--accent-primary) !important;
    background: var(--bg-tertiary) !important;
}
.post-body.vditor-reset pre,
.post-body.vditor-reset .vditor-reset--left pre {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-subtle) !important;
}
/* pre code 不强制颜色，保留 hljs atom-one-dark 语法高亮 */
.post-body.vditor-reset pre code,
.post-body.vditor-reset .vditor-reset--left pre code {
    color: inherit;
    background: transparent !important;
    display: block;
    white-space: pre !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    tab-size: 4;
}
.post-body.vditor-reset a {
    color: var(--accent-primary) !important;
}
.post-body.vditor-reset strong {
    color: var(--text-primary) !important;
}
.post-body.vditor-reset em {
    color: var(--text-secondary) !important;
}
.post-body.vditor-reset table {
    border-color: var(--border-default);
}
.post-body.vditor-reset table th {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}
.post-body.vditor-reset table td,
.post-body.vditor-reset table th {
    border-color: var(--border-default);
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.post-body table th,
.post-body table td {
    padding: 12px 14px;
    text-align: left;
}

.page-header {
    text-align: center;
    padding: var(--space-3xl) 0;
    margin-bottom: var(--space-2xl);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.categories-shell,
.category-posts-shell {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.categories-hero-panel,
.category-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
    gap: var(--space-xl);
    align-items: stretch;
    padding: clamp(24px, 4vw, 38px);
    border-radius: var(--radius-lg);
    background: rgba(var(--card-info-tint),var(--glass-info));
    border: 1px solid rgba(255, 255, 255, calc(var(--glass-info) * 0.24));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px) saturate(180%);
    -webkit-backdrop-filter: blur(2px) saturate(180%);
}

.categories-hero-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.categories-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.categories-hero-description {
    max-width: 56ch;
    margin-top: 14px;
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 1rem;
}

.categories-hero-metrics,
.category-hero-meta-grid {
    display: grid;
    gap: var(--space-md);
}

.categories-metric-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(var(--card-info-tint), var(--glass-info));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-metric-label {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.categories-metric-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    word-break: break-word;
    font-weight: 600;
}

.categories-hero-panel .categories-metric-card,
.category-hero-panel .categories-metric-card {
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 0.16));
    border-color: rgba(255, 255, 255, calc(var(--glass-info) * 0.16));
}

.categories-hero-panel .categories-hero-metrics {
    align-content: center;
}

.categories-hero-panel .categories-metric-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.categories-overview-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
}

.categories-overview-card {
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(var(--card-info-tint), var(--glass-info));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-overview-label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.categories-overview-text {
    color: var(--text-secondary);
    line-height: 1.75;
}

.categories-grid-enhanced {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    isolation: isolate;
}

.categories-grid-enhanced::before {
    content: '';
    position: absolute;
    inset: -28px -20px;
    border-radius: calc(var(--radius-lg) + 16px);
    background:
        radial-gradient(circle at 16% 18%, rgba(135, 206, 235, 0.16), transparent 34%),
        radial-gradient(circle at 82% 24%, rgba(111, 191, 115, 0.14), transparent 30%),
        radial-gradient(circle at 50% 88%, rgba(255, 255, 255, 0.08), transparent 38%);
    filter: blur(30px);
    opacity: 0.78;
    pointer-events: none;
    z-index: -1;
}

.categories-grid-enhanced > * {
    position: relative;
    z-index: 1;
}

.category-card-enhanced {
    min-height: 176px;
    align-items: flex-start;
}

.category-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: 6px;
}

.category-icon-glyph {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.category-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 1.08));
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.category-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.category-open-hint {
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-hero-copy-block {
    min-width: 0;
}

.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.category-search-box {
    position: relative;
    width: min(640px, 100%);
}

.category-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.category-search-input {
    width: 100%;
    padding: 16px 52px;
    font-size: 1.05rem;
    border-radius: 14px;
    box-sizing: border-box;
}

.category-toolbar-status {
    color: var(--text-secondary);
    font-size: 0.92rem;
    text-align: right;
}

.category-featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 340px;
    gap: var(--space-xl);
    align-items: start;
}

.category-side-panel {
    padding: 22px;
    border-radius: 28px;
    background: rgba(var(--card-info-tint), var(--glass-info));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.category-feed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    isolation: isolate;
}

.category-feed-grid::before {
    content: '';
    position: absolute;
    inset: -28px -20px;
    border-radius: calc(var(--radius-lg) + 16px);
    background:
        radial-gradient(circle at 16% 18%, rgba(135, 206, 235, 0.16), transparent 34%),
        radial-gradient(circle at 82% 24%, rgba(111, 191, 115, 0.14), transparent 30%),
        radial-gradient(circle at 50% 88%, rgba(255, 255, 255, 0.08), transparent 38%);
    filter: blur(30px);
    opacity: 0.78;
    pointer-events: none;
    z-index: -1;
}

.category-feed-grid > * {
    position: relative;
    z-index: 1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.category-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: rgba(var(--card-info-tint),var(--glass-info));
    backdrop-filter: blur(3px) saturate(180%);
    -webkit-backdrop-filter: blur(3px) saturate(180%);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--duration-normal) var(--ease-out-quart);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.category-card-reveal {
    opacity: 0;
    translate: 0 18px;
    animation: categoryCardReveal 0.6s var(--ease-out-expo) forwards;
}

@keyframes categoryCardReveal {
    to {
        opacity: 1;
        translate: 0 0;
    }
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--duration-normal) var(--ease-out-quart);
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    translate: 8px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.category-card:hover::before {
    transform: scaleY(1);
}

.category-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.12), rgba(111, 191, 115, 0.12));
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    transition: transform var(--duration-normal) var(--ease-out-quart);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.category-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-count {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.about-content {
    background: rgba(var(--card-info-tint),var(--glass-info));
    backdrop-filter: blur(3px) saturate(180%);
    -webkit-backdrop-filter: blur(3px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    animation: fadeInUp 0.6s var(--ease-out-expo);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about-shell {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    align-items: center;
}

.about-hero-panel,
.about-layout {
    width: 100%;
    max-width: 860px;
}

.about-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: var(--space-xl);
    align-items: center;
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--radius-lg);
    background: rgba(var(--card-info-tint),var(--glass-info));
    border: 1px solid rgba(255, 255, 255, calc(var(--glass-info) * 0.24));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px) saturate(180%);
    -webkit-backdrop-filter: blur(2px) saturate(180%);
}

.about-hero-kicker,
.about-section-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.about-hero-description {
    max-width: 58ch;
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.85;
}

.about-identity-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.about-identity-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    padding: 22px;
    border-radius: 28px;
    background: rgba(var(--card-info-tint), var(--glass-info));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-hero-panel .about-identity-card {
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 0.16));
    border-color: rgba(255, 255, 255, calc(var(--glass-info) * 0.16));
}

.about-identity-avatar-wrap {
    display: flex;
    justify-content: center;
}

.about-identity-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 40px rgba(135, 206, 235, 0.22);
}

.about-identity-meta {
    text-align: center;
}

.about-identity-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-identity-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.about-identity-subtitle,
.about-identity-email {
    margin-top: 6px;
    color: var(--text-secondary);
}

.about-overview-grid {
    display: flex;
    flex-direction: row;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.about-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-overview-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 0.6));
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: none;
}

.about-side-card,
.about-main-card {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(var(--card-info-tint), var(--glass-info));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
}

.about-main-card {
    --card-glow-strength: 0.48;
    --card-edge-glow-strength: 0.4;
    --card-hover-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.about-side-card {
    --card-hover-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.about-overview-label {
    margin-bottom: 0;
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-overview-value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: start;
}

.about-section-head {
    margin-bottom: var(--space-lg);
}

.about-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    letter-spacing: -0.03em;
}

.about-content-enhanced {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    animation: none;
}

.about-content-enhanced .post-body {
    margin: 0;
}

.about-side-panel {
    display: grid;
    gap: var(--space-md);
}

.about-side-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-table th,
.content-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
}

.content-table th {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 600;
}

.content-table tbody tr {
    background: rgba(255, 255, 255, 0.05);
    transition: background-color var(--duration-fast) var(--ease-out-quart);
}

.content-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.content-table tbody tr:not(:last-child) td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-elevated);
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

@media (max-width: 768px) {
    .about-shell {
        gap: var(--space-xl);
    }

    .about-hero-panel,
    .about-layout,
    .about-overview-grid {
        grid-template-columns: 1fr;
    }

    .categories-shell,
    .category-posts-shell {
        gap: var(--space-xl);
    }

    #post-layout-wrap {
        grid-template-columns: 1fr;
    }

    .post-content-shell {
        grid-template-columns: 1fr;
    }

    .post-insight-panel {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .post-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .post-stats-item-full {
        grid-column: auto;
    }

    .categories-hero-panel,
    .category-hero-panel,
    .category-featured-layout {
        grid-template-columns: 1fr;
    }

    .categories-overview-strip,
    .categories-grid-enhanced,
    .category-feed-grid {
        grid-template-columns: 1fr;
    }

    .category-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .category-toolbar-status {
        text-align: left;
    }

    .about-main-card,
    .about-overview-card,
    .about-side-card,
    .about-identity-card {
        padding: 16px;
    }

    :root {
        --nav-logo-row-width: 148px;
        --nav-menu-row-width: 148px;
        --nav-neck-height: 40px;
    }

    .header {
        top: var(--space-sm);
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .header-wrapper {
        align-items: flex-start;
    }
    
    .header-inner {
        width: var(--nav-logo-row-width);
        max-height: var(--nav-neck-height);
        border-radius: 22px;
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
        transition:
            max-height 0.35s var(--ease-out-expo),
            box-shadow 0.3s ease,
            border-radius 0.3s ease;
    }

    .header-inner:hover,
    .header-inner.nav-open {
        width: var(--nav-logo-row-width);
        max-height: 220px;
        border-radius: 22px;
    }
    
    .logo {
        width: 100%;
        font-size: 0.9rem;
        padding: 8px 14px;
        justify-content: space-between;
    }

    .logo::after {
        right: 12px;
    }

    .nav-links {
        width: 100%;
        max-width: none;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        white-space: normal;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 0 10px;
        transition:
            max-height 0.3s var(--ease-out-expo),
            opacity 0.2s ease,
            padding 0.2s ease;
    }

    .header-inner:hover .nav-links,
    .header-inner.nav-open .nav-links {
        max-width: none;
        max-height: 180px;
        opacity: 1;
        pointer-events: auto;
        padding: 10px;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px 7px;
        font-size: 0.72rem;
    }
    
    .nav-link span {
        font-size: 0.72rem;
    }
    
    .main {
        padding: 80px 0 var(--space-xl);
    }
    
    .hero {
        padding: var(--space-xl) 0;
        margin-bottom: var(--space-xl);
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .post-card-link {
        flex-direction: column;
    }
    
    .post-card-cover {
        width: 100%;
        height: 160px;
    }
    
    .post-card-cover::after {
        background: linear-gradient(180deg, transparent, var(--bg-secondary));
    }
    
    .post-card-content {
        padding: var(--space-md);
    }
    
    .post-card-title {
        font-size: 1rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .post-card-excerpt {
        -webkit-line-clamp: 2;
    }
    
    .post-card-meta {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .post-detail {
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }

    .post-insight-card {
        padding: 16px;
    }
    
    .post-header .post-title {
        font-size: 1.5rem;
    }
    
    .post-header .post-meta {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .post-body {
        font-size: 0.95rem;
    }
    
    .post-body h2 {
        font-size: 1.25rem;
    }
    
    .post-body h3 {
        font-size: 1.1rem;
    }
    
    .post-body pre {
        padding: var(--space-md);
        font-size: 0.85rem;
    }
    
    .post-cover-full {
        max-height: 300px;
        border-radius: var(--radius-md);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .category-card {
        padding: var(--space-md);
    }
    
    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .about-content {
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }
    
    .page-header {
        padding: var(--space-xl) 0;
        margin-bottom: var(--space-lg);
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .footer {
        /* 底部留出足够空间避开固定音乐播放器（48px圆 + 16px间距 + 16px余量 = 80px）*/
        padding: var(--space-lg) 0 80px;
        margin-top: var(--space-xl);
    }
    
    .footer p {
        font-size: 0.8rem;
    }

    #footer-text {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .about-hero-panel {
        padding: 18px 14px;
        border-radius: 24px;
    }

    .about-identity-avatar {
        width: 88px;
        height: 88px;
    }

    .about-overview-value {
        font-size: 1rem;
    }

    .categories-hero-panel,
    .category-hero-panel {
        padding: 18px 14px;
        border-radius: 24px;
    }

    .post-insight-card {
        padding: 14px;
        border-radius: 18px;
    }

    .post-hero-title {
        font-size: 1.7rem;
    }

    .post-hero-excerpt,
    .post-insight-text {
        font-size: 0.88rem;
    }

    .post-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .categories-overview-card,
    .category-side-panel {
        padding: 16px;
    }

    .category-search-input {
        padding: 12px 42px;
        font-size: 0.92rem;
    }

    .category-search-icon {
        left: 14px;
        width: 18px;
        height: 18px;
    }

    :root {
        --nav-logo-row-width: 136px;
        --nav-menu-row-width: 136px;
        --nav-neck-height: 36px;
    }

    .container {
        padding: 0 var(--space-sm);
    }

    #footer-text {
        padding: 0;
        word-break: break-word;
        white-space: normal;
        overflow: visible;
        line-height: 1.6;
    }

    .footer-content {
        overflow: visible;
    }

    .header-inner {
        max-height: var(--nav-neck-height);
        border-radius: 20px;
    }

    .header-inner:hover,
    .header-inner.nav-open {
        max-height: 210px;
        border-radius: 20px;
    }
    
    .logo {
        font-size: 0.82rem;
        padding: 7px 12px;
        min-width: 0;
        flex-shrink: 1;
        overflow: visible;
        white-space: nowrap;
        width: 100%;
        justify-content: space-between;
    }

    .nav-links {
        padding: 0 8px;
        gap: 5px;
    }

    .header-inner:hover .nav-links,
    .header-inner.nav-open .nav-links {
        padding: 8px;
        max-height: 170px;
    }
    
    .nav-link {
        padding: 3px 6px;
        font-size: 0.68rem;
    }
    
    .nav-link span {
        font-size: 0.68rem;
    }
    
    .main {
        padding: 70px 0 var(--space-lg);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .post-card-cover {
        height: 140px;
    }
    
    .post-card-content {
        padding: var(--space-sm);
    }
    
    .post-card-title {
        font-size: 0.95rem;
    }
    
    .post-card-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .post-category {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .post-date {
        font-size: 0.7rem;
    }
    
    .post-detail {
        padding: var(--space-sm);
    }
    
    .post-header .post-title {
        font-size: 1.25rem;
    }
    
    .post-body {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .post-body p {
        margin-bottom: 1em;
    }
    
    .post-body h2 {
        font-size: 1.1rem;
    }
    
    .post-body h3 {
        font-size: 1rem;
    }
    
    .post-body pre {
        padding: var(--space-sm);
        font-size: 0.8rem;
        margin: var(--space-sm) 0;
    }
    
    .post-body code {
        font-size: 0.85em;
    }
    
    .post-body blockquote {
        padding: 0.75em 1em;
        margin: 1em 0;
    }
    
    .post-cover-full {
        max-height: 220px;
        margin-bottom: var(--space-md);
    }
    
    .category-card {
        padding: var(--space-sm);
        gap: var(--space-md);
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .category-name {
        font-size: 1rem;
    }
    
    .category-description {
        font-size: 0.8rem;
    }
    
    .about-content {
        padding: var(--space-sm);
    }
    
    .page-header {
        padding: var(--space-lg) 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .btn svg {
        width: 14px;
        height: 14px;
    }
    
    .empty-state, .error-state {
        padding: var(--space-xl) var(--space-md);
    }
    
    .empty-state svg, .error-state svg {
        width: 48px;
        height: 48px;
    }
    
    .content-table th,
    .content-table td {
        padding: var(--space-sm);
        font-size: 0.85rem;
    }
    
    .pagination-btn {
        width: 36px;
        height: 36px;
    }
    
    .pagination-info {
        font-size: 0.8rem;
    }
}

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    position: relative;
    isolation: isolate;
    align-items: stretch;
}

.latest-posts-grid::before {
    content: '';
    position: absolute;
    inset: -28px -20px;
    border-radius: calc(var(--radius-lg) + 16px);
    background:
        radial-gradient(circle at 16% 18%, rgba(135, 206, 235, 0.16), transparent 34%),
        radial-gradient(circle at 82% 24%, rgba(111, 191, 115, 0.14), transparent 30%),
        radial-gradient(circle at 50% 88%, rgba(255, 255, 255, 0.08), transparent 38%);
    filter: blur(30px);
    opacity: 0.78;
    pointer-events: none;
    z-index: -1;
}

.latest-posts-grid > * {
    position: relative;
    z-index: 1;
}

.latest-shell {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.latest-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    gap: var(--space-xl);
    align-items: stretch;
    padding: clamp(24px, 4vw, 38px);
    border-radius: var(--radius-lg);
    background: rgba(var(--card-info-tint),var(--glass-info));
    border: 1px solid rgba(255, 255, 255, calc(var(--glass-info) * 0.24));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px) saturate(180%);
    -webkit-backdrop-filter: blur(2px) saturate(180%);
}

.latest-hero-kicker,
.latest-feed-kicker,
.latest-side-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.latest-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.latest-hero-description {
    max-width: 58ch;
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.85;
}

.latest-hero-metrics {
    display: grid;
    gap: var(--space-md);
}

.latest-metric-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(var(--card-info-tint), var(--glass-info));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.latest-hero-panel .latest-metric-card {
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 0.16));
    border-color: rgba(255, 255, 255, calc(var(--glass-info) * 0.16));
}

.latest-metric-label {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.latest-metric-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.latest-spotlight-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 340px;
    gap: var(--space-xl);
    align-items: stretch;
}

.latest-featured-card {
    border-radius: 28px;
    background: rgba(var(--card-info-tint), var(--glass-info));
    backdrop-filter: blur(3px) saturate(180%);
    -webkit-backdrop-filter: blur(3px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    height: 100%;
}

.latest-side-panel {
    border-radius: 28px;
    background: rgba(var(--card-info-tint), var(--glass-info));
    backdrop-filter: blur(3px) saturate(180%);
    -webkit-backdrop-filter: blur(3px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    height: 100%;
}

.latest-featured-link {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.latest-featured-cover-wrap {
    position: relative;
}

.latest-featured-card .latest-card-cover {
    height: 100%;
    min-height: 360px;
}

.latest-featured-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(7, 15, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.74rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.latest-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 36px);
}

.latest-featured-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.latest-featured-title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.latest-featured-excerpt {
    margin-top: var(--space-md);
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 0.98rem;
}

.latest-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.latest-featured-cta {
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.latest-featured-skeleton {
    height: 380px;
    border-radius: inherit;
}

.latest-side-panel {
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.latest-side-panel-head {
    margin-bottom: var(--space-md);
}

.latest-side-title,
.latest-feed-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    letter-spacing: -0.03em;
}

.latest-side-list {
    display: grid;
    gap: 12px;
    flex: 1;
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.latest-side-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 0.88));
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--duration-fast) var(--ease-out-quart);
    min-height: 0;
}

.latest-side-item:hover {
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 1.3));
    border-color: rgba(135, 206, 235, 0.22);
    transform: translateX(4px);
}

.latest-side-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border-radius: 999px;
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 1.05));
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
}

.latest-side-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.latest-side-item-title {
    display: block;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.latest-side-item-meta {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.6;
}

.latest-side-skeleton {
    height: 78px;
    border-radius: 18px;
}

.latest-feed-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.latest-feed-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-lg);
}

.latest-feed-status {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.latest-feed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.latest-card {
    position: relative;
    background: rgba(var(--card-info-tint),var(--glass-info));
    backdrop-filter: blur(3px) saturate(180%);
    -webkit-backdrop-filter: blur(3px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    --card-hover-rotate-x: 0deg;
    --card-hover-rotate-y: 0deg;
    transition: opacity 0.46s var(--ease-float), box-shadow var(--duration-normal) var(--ease-out-quart), border-color var(--duration-normal) var(--ease-out-quart), background-color var(--duration-normal) var(--ease-out-quart);
    opacity: 0;
    animation: cardReveal 0.6s var(--ease-out-expo) forwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.latest-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-quart);
    pointer-events: none;
}

.latest-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 0.92));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

.latest-card:hover::before {
    opacity: 0;
}

.latest-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.latest-card-cover {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.latest-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-quart);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.latest-card:hover .latest-card-cover img {
    transform: none;
}

.latest-card-cover-placeholder {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.12), rgba(111, 191, 115, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.latest-card-cover-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    opacity: 0.5;
}

.latest-card-content {
    flex: 1;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 140px;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.latest-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.latest-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    transition: color var(--duration-fast) var(--ease-out-quart);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.latest-card:hover .latest-card-title {
    color: var(--text-primary);
}

.latest-card-excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 2.4em;
    max-height: 2.4em;
}

.latest-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--space-sm);
}

.latest-card-skeleton {
    height: 320px;
}

.home-shell {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--space-3xl) + 24px) var(--space-lg) 140px;
    margin-bottom: 0;
    overflow: hidden;
    isolation: isolate;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 8% 12% auto;
    height: 320px;
    background:
        radial-gradient(circle at center, rgba(135, 206, 235, 0.22), transparent 58%),
        radial-gradient(circle at 70% 40%, rgba(111, 191, 115, 0.18), transparent 62%);
    filter: blur(8px);
    z-index: 0;
    pointer-events: none;
}

.home-hero::after {
    content: '';
    position: absolute;
    inset: auto 8% 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    z-index: 0;
}

.home-hero-particles,
.home-hero-noise {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-hero-noise {
    opacity: calc(var(--glass-hero) * 0.12);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(circle at center, black 42%, transparent 92%);
}

.home-hero-panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, calc(var(--glass-hero) * 0.24));
    background: rgba(var(--card-hero-tint),var(--glass-hero));
    backdrop-filter: blur(var(--hero-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--hero-blur)) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-lg);
    padding: 8px 14px;
    border: 1px solid rgba(135, 206, 235, calc(var(--glass-hero) * 0.18));
    border-radius: 999px;
    background: rgba(var(--card-hero-tint), calc(var(--glass-hero) * 0.12));
    color: rgba(240, 240, 245, 0.88);
    font-family: var(--font-display);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-datetime {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s var(--ease-out-expo) 0.1s forwards;
}

.home-date {
    font-family: var(--font-display);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.home-time {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    display: flex;
    align-items: baseline;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.time-seconds {
    display: inline-block;
    min-width: 1.5em;
    text-align: left;
    color: var(--accent-primary);
}

.time-seconds.time-animate {
    animation: secondChange 0.3s var(--ease-out-expo);
}

@keyframes secondChange {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-hero-avatar {
    width: 132px;
    height: 132px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, calc(var(--glass-hero) * 0.3));
    box-shadow: 
        0 0 24px rgba(135, 206, 235, calc(var(--glass-hero) * 0.24)),
        0 0 12px rgba(255, 255, 255, calc(var(--glass-hero) * 0.1));
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: scale(0.8);
    animation: avatarReveal 0.8s var(--ease-out-expo) 0.2s forwards;
    transition: transform var(--duration-normal) var(--ease-out-quart), box-shadow var(--duration-normal) var(--ease-out-quart);
}

.home-hero-avatar::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(135, 206, 235, calc(var(--glass-hero) * 0.24)), rgba(111, 191, 115, calc(var(--glass-hero) * 0.24)));
    filter: blur(10px);
    z-index: -1;
    opacity: calc(var(--glass-hero) * 0.9);
}

.home-hero-avatar:hover {
    transform: scale(1.05);
    box-shadow: 
    0 0 36px rgba(135, 206, 235, calc(var(--glass-hero) * 0.32)),
    0 0 18px rgba(255, 255, 255, calc(var(--glass-hero) * 0.12));
}

.home-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--ease-out-quart);
}

.home-hero-avatar:hover img {
    transform: scale(1.1);
}

@keyframes avatarReveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.home-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    /* 流光渐变：白色高光在青 → 紫 → 粉之间扫过 */
    background: linear-gradient(
        105deg,
        var(--accent-primary)  0%,
        #ffffff                12%,
        var(--accent-secondary) 30%,
        var(--accent-tertiary)  52%,
        #ffffff                68%,
        var(--accent-primary)  82%,
        #ffffff                95%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation:
        heroReveal      0.8s var(--ease-out-expo) 0.3s forwards,
        shimmerTitle    5s   linear               1.1s infinite;
}

.home-hero-title::before,
.home-hero-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.home-hero-title::before {
    color: rgba(135, 206, 235, 0.78);
    transform: translate(-2px, 0);
}

.home-hero-title::after {
    color: rgba(167, 217, 106, 0.78);
    transform: translate(2px, 0);
}

.home-hero-title.glitch-active::before,
.home-hero-title.glitch-active::after {
    opacity: 0.9;
    animation: heroGlitch 0.6s steps(2, end);
}

.home-hero-subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 600px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    /* 副标题：柔和扫光，白色微光在灰白之间缓缓游走 */
    background: linear-gradient(
        105deg,
        var(--text-secondary) 0%,
        var(--text-primary)   25%,
        rgba(135, 206, 235, 0.88) 48%,
        var(--text-primary)   72%,
        var(--text-secondary) 100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation:
        heroReveal        0.8s var(--ease-out-expo) 0.4s forwards,
        shimmerSubtitle   7s   ease-in-out          1.2s infinite;
}

.home-type-cursor {
    width: 0.7ch;
    height: 1.1em;
    border-right: 2px solid rgba(255, 255, 255, 0.82);
    animation: blinkCursor 1s steps(1, end) infinite;
}

.home-hero-description {
    max-width: 680px;
    margin: var(--space-lg) auto 0;
    color: rgba(240, 240, 245, 0.78);
    font-size: clamp(0.98rem, 2.2vw, 1.08rem);
    line-height: 1.85;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s var(--ease-out-expo) 0.5s forwards;
}

.home-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s var(--ease-out-expo) 0.58s forwards;
}

.home-stat-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 11px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, calc(var(--glass-hero) * 0.14));
    background: rgba(var(--card-hero-tint), calc(var(--glass-hero) * 0.12));
    text-align: left;
    box-shadow: none;
}

.home-stat-label {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-stat-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-weight: 600;
}

.home-hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s var(--ease-out-expo) 0.66s forwards;
}

.home-hero-btn {
    min-width: 164px;
}

.home-scroll-btn {
    background: rgba(var(--card-hero-tint), calc(var(--glass-hero) * 0.1));
}

.home-signal-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-lg);
    padding: 12px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, calc(var(--glass-hero) * 0.14));
    background: rgba(var(--card-hero-tint), calc(var(--glass-hero) * 0.1));
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s var(--ease-out-expo) 0.74s forwards;
}

.home-signal-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(var(--card-hero-tint), calc(var(--glass-hero) * 0.12));
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-signal-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.16);
}

.home-signal-text {
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.home-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 44px;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: rgba(240, 240, 245, 0.78);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 1;
}

.home-scroll-arrow {
    position: relative;
    width: 24px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.home-scroll-arrow::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(135, 206, 235, 0.9));
    transform: translateX(-50%);
    animation: scrollPulse 1.8s ease-in-out infinite;
}

.home-content-section {
    position: relative;
    z-index: 1;
}

.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.home-section-kicker {
    margin-bottom: 10px;
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.home-section-description {
    max-width: 640px;
    margin-top: 10px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.home-section-link:hover {
    color: var(--accent-primary);
    border-color: rgba(135, 206, 235, 0.28);
    box-shadow: 0 0 24px rgba(135, 206, 235, 0.12);
}

.home-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
}

.home-post-card {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.55s var(--ease-out-expo),
        transform 0.55s var(--ease-out-expo),
        box-shadow var(--duration-normal) var(--ease-out-quart),
        border-color var(--duration-normal) var(--ease-out-quart);
}

.home-post-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.home-post-card-featured {
    grid-column: span 2;
}

.home-post-card .latest-card-cover {
    height: 188px;
}

.home-post-card-featured .latest-card-cover {
    height: 240px;
}

.home-post-cover-wrap {
    position: relative;
}

.home-post-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(7, 15, 28, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 1;
}

.home-post-serial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.home-post-card-featured .latest-card-content {
    padding: 20px;
}

.home-post-card-featured .latest-card-title {
    font-size: 1.24rem;
}

.home-post-card-featured .latest-card-excerpt {
    -webkit-line-clamp: 3;
    max-height: 4.5em;
}

.post-category-muted {
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.home-archive-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: start;
}

.home-archive-summary {
    display: grid;
    gap: var(--space-md);
    align-content: start;
}

.home-archive-summary-card {
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(var(--card-info-tint), calc(var(--glass-info) * 1.25)), rgba(var(--card-info-tint), calc(var(--glass-info) * 0.55)));
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
}

.home-archive-summary-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.85;
}

.home-archive-summary-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-archive-summary-value {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: -0.04em;
}

.home-archive-summary-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.92rem;
}

.archive-timeline {
    position: relative;
    display: grid;
    gap: var(--space-md);
}

.archive-year-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    text-decoration: none;
    color: inherit;
    background: rgba(var(--card-info-tint), var(--glass-info));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(3px) saturate(180%);
    -webkit-backdrop-filter: blur(3px) saturate(180%);
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.55s var(--ease-out-expo),
        transform 0.55s var(--ease-out-expo),
        border-color var(--duration-fast) var(--ease-out-quart),
        background var(--duration-fast) var(--ease-out-quart),
        box-shadow var(--duration-fast) var(--ease-out-quart);
}

.archive-year-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.archive-year-item:hover {
    border-color: rgba(135, 206, 235, 0.28);
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 1.35));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.archive-year-item:hover .archive-year-count,
.archive-year-item:hover .archive-year-note {
    color: var(--text-primary);
}

.archive-year-line {
    position: absolute;
    left: 31px;
    top: 0;
    bottom: -16px;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
}

.archive-year-item:last-child .archive-year-line {
    display: none;
}

.archive-year-dot {
    position: relative;
    width: 12px;
    height: 12px;
    margin-top: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.45);
}

.archive-year-main {
    min-width: 0;
}

.archive-year-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: 10px;
}

.archive-year-label {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.archive-year-count {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.archive-year-bar {
    height: 8px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 1.1));
    overflow: hidden;
}

.archive-year-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    box-shadow: 0 0 16px rgba(135, 206, 235, 0.28);
}

.archive-year-note {
    color: var(--text-secondary);
    line-height: 1.65;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-empty-state {
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 0.82));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
}

@keyframes shimmerTitle {
    0%   { background-position: 0%   center; }
    100% { background-position: 300% center; }
}

@keyframes shimmerSubtitle {
    0%, 100% { background-position: 0%   center; }
    50%      { background-position: 100% center; }
}

@keyframes heroGlitch {
    0% {
        clip-path: inset(0 0 68% 0);
    }
    25% {
        clip-path: inset(12% 0 34% 0);
    }
    50% {
        clip-path: inset(64% 0 8% 0);
    }
    75% {
        clip-path: inset(28% 0 42% 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes blinkCursor {
    0%, 45% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes scrollPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 12px);
    }
}

@media (max-width: 768px) {
    .latest-shell {
        gap: var(--space-xl);
    }

    .latest-hero-panel,
    .latest-spotlight-layout {
        grid-template-columns: 1fr;
    }

    .latest-featured-link {
        grid-template-columns: 1fr;
    }

    .latest-featured-card .latest-card-cover {
        min-height: 220px;
    }

    .latest-feed-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .latest-feed-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: auto;
        padding: var(--space-xl) var(--space-sm) 110px;
    }

    .home-hero-panel {
        padding: 20px 16px 24px;
        border-radius: 24px;
    }

    .home-hero-badge {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .home-hero-avatar {
        width: 96px;
        height: 96px;
    }

    .home-datetime {
        margin-bottom: var(--space-md);
    }

    .home-date {
        font-size: 0.8rem;
    }

    .home-time {
        font-size: 1.25rem;
    }

    .home-hero-title {
        font-size: 2rem;
        margin-bottom: var(--space-sm);
    }

    .home-hero-subtitle {
        font-size: 0.95rem;
    }

    .home-hero-description {
        font-size: 0.92rem;
        margin-top: var(--space-md);
    }

    .home-hero-stats {
        grid-template-columns: 1fr;
    }

    .home-hero-actions {
        flex-direction: column;
    }

    .home-signal-strip {
        justify-content: flex-start;
    }

    .home-hero-btn {
        width: 100%;
    }

    .home-scroll-indicator {
        bottom: 26px;
    }

    .home-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-posts-grid {
        grid-template-columns: 1fr;
    }

    .home-post-card-featured {
        grid-column: auto;
    }

    .home-post-card-featured .latest-card-cover {
        height: 188px;
    }

    .home-archive-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .latest-hero-panel {
        padding: 18px 14px;
        border-radius: 24px;
    }

    .latest-featured-content,
    .latest-side-panel {
        padding: 16px;
    }

    .latest-featured-title {
        font-size: 1.35rem;
    }

    .latest-featured-excerpt,
    .latest-feed-status,
    .latest-side-item-meta {
        font-size: 0.82rem;
    }

    .latest-metric-card {
        padding: 5px 10px;
    }

    .latest-featured-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .latest-posts-grid {
        gap: var(--space-md);
    }

    .latest-card-cover {
        height: 140px;
    }

    .latest-card-content {
        padding: var(--space-sm);
    }

    .latest-card-title {
        font-size: 0.9rem;
    }

    .latest-card-excerpt {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .latest-card-meta {
        gap: 4px;
    }

    .home-hero {
        padding: var(--space-lg) 0 96px;
    }

    .home-hero-panel {
        padding: 18px 14px 20px;
    }

    .home-hero-avatar {
        width: 75px;
        height: 75px;
        margin-bottom: var(--space-sm);
    }

    .home-datetime {
        margin-bottom: var(--space-sm);
    }

    .home-date {
        font-size: 0.75rem;
    }

    .home-time {
        font-size: 1.1rem;
    }

    .home-hero-title {
        font-size: 1.65rem;
        margin-bottom: 4px;
    }

    .home-hero-subtitle {
        font-size: 0.85rem;
    }

    .home-type-cursor {
        height: 0.95em;
    }

    .home-hero-description {
        font-size: 0.86rem;
    }

    .home-signal-strip {
        gap: 8px;
        padding: 10px 12px;
    }

    .home-signal-chip,
    .home-post-badge,
    .home-post-serial {
        font-size: 0.68rem;
    }

    .home-stat-card,
    .home-archive-summary-card,
    .archive-year-item {
        padding: 10px 12px;
    }

    .archive-year-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .home-scroll-label {
        display: none;
    }
}

.category-search {
    display: grid;
    place-items: center;
    margin-bottom: var(--space-xl);
}

.search-box {
    position: relative;
    width: min(640px, 100%);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 15px 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: all var(--duration-fast) var(--ease-out-quart);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-clear svg {
    width: 12px;
    height: 12px;
    color: var(--text-secondary);
}

.search-clear.hidden {
    display: none;
}

.category-posts-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.post-card-category {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    height: 100%;
}

.post-card-category .post-card-link {
    display: flex;
    flex-direction: row;
    flex: 1;
    height: 100%;
    align-items: stretch;
}

.post-card-cover-category {
    width: 130px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    align-self: stretch;
}

.post-card-cover-category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.post-card-cover-category::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
    pointer-events: none;
}

.skeleton-card-category {
    height: 100px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-quart);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pagination-ellipsis {
    color: var(--text-muted);
    margin: 0 var(--space-xs);
}

@media (max-width: 768px) {
    .post-card-cover-category {
        width: 100%;
        height: 120px;
    }
    
    .skeleton-card-category {
        height: 180px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .pagination-info {
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-xs);
    }
    
    .category-search {
        margin-bottom: var(--space-md);
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        padding: 10px 36px 10px 36px;
        font-size: 0.85rem;
    }
    
    .search-icon {
        width: 18px;
        height: 18px;
        left: 12px;
    }
    
    .search-clear {
        right: 8px;
        width: 22px;
        height: 22px;
    }
    
    .search-clear svg {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .post-card-cover-category {
        height: 100px;
    }
    
    .skeleton-card-category {
        height: 160px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination-btn {
        width: 32px;
        height: 32px;
    }
    
    .pagination-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .pagination-info {
        font-size: 0.75rem;
    }
    
    .search-input {
        padding: 8px 32px 8px 32px;
        font-size: 0.8rem;
        border-radius: var(--radius-md);
    }
    
    .search-icon {
        width: 16px;
        height: 16px;
        left: 10px;
    }
    
    .search-clear {
        right: 6px;
        width: 20px;
        height: 20px;
        padding: 2px;
    }
    
    .search-clear svg {
        width: 8px;
        height: 8px;
    }
}

.music-player {
    position: fixed;
    top: 100px;
    left: auto;
    right: var(--space-lg);
    z-index: 1000;
    user-select: none;
}

.music-edge-trigger {
    display: none;
    position: fixed;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.music-edge-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.music-edge-trigger.edge-hidden-left,
.music-edge-trigger.edge-hidden-right {
    display: flex;
}

.music-edge-trigger.edge-hidden-left {
    left: 0;
    border-radius: 0 50% 50% 0;
    border-left: none;
}

.music-edge-trigger.edge-hidden-right {
    right: 0;
    left: auto;
    border-radius: 50% 0 0 50%;
    border-right: none;
}

.music-disc-edge {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.music-disc-edge.spinning {
    animation: discSpin 3s linear infinite;
}

.music-disc-inner-edge {
    width: 18px;
    height: 18px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-disc-inner-edge svg {
    width: 12px;
    height: 12px;
    color: var(--accent-primary);
}

.music-player.edge-hidden .music-player-mini {
    opacity: 0;
    pointer-events: none;
}

.music-player.edge-hidden .music-player-expanded {
    opacity: 0;
}

.music-player-mini {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 320px;
    background: rgba(var(--card-nav-tint),var(--glass-nav));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 12px 8px 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    cursor: grab;
    transition: background var(--duration-fast) var(--ease-out-quart), 
                border-color var(--duration-fast) var(--ease-out-quart),
                box-shadow var(--duration-fast) var(--ease-out-quart);
}

.music-player-mini:active {
    cursor: grabbing;
}

.music-player-mini:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.music-disc {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.music-disc.spinning {
    animation: discSpin 3s linear infinite;
}

@keyframes discSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-disc-inner {
    width: 24px;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-disc-inner svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.music-info-mini {
    flex: 1;
    min-width: 0;
    max-width: 150px;
}

.music-name-mini {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.music-progress-mini {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.music-progress-bar-mini {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.music-control-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out-quart);
    flex-shrink: 0;
}

.music-control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
}

.music-control-btn svg {
    width: 18px;
    height: 18px;
}

.music-expand-btn {
    transform: rotate(180deg);
}

.music-player-expanded {
    position: fixed;
    width: 320px;
    background: rgba(var(--card-nav-tint),var(--glass-nav));
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--duration-normal) var(--ease-out-quart);
    z-index: 999;
}

.music-player.expanded .music-player-expanded {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.music-player.expanded-below .music-player-expanded {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.music-player.expanded-left .music-player-expanded {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.music-player.expanded-right .music-player-expanded {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.music-expanded-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.music-disc-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(135, 206, 235, 0.3);
}

.music-disc-large.spinning {
    animation: discSpin 3s linear infinite;
}

.music-disc-inner-large {
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-disc-inner-large svg {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
}

.music-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.music-collapse-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.music-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.music-collapse-btn svg {
    width: 18px;
    height: 18px;
}

.music-info-expanded {
    text-align: center;
    margin-bottom: var(--space-md);
}

.music-name-expanded {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.music-time span {
    margin: 0 2px;
}

.music-progress-expanded {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.music-progress-bar-expanded {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.music-progress-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.music-controls-expanded {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.music-control-btn-lg {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.music-control-btn-lg:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transform: scale(1.05);
}

.music-control-btn-lg svg {
    width: 24px;
    height: 24px;
}

.music-play-btn-lg {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
}

.music-play-btn-lg:hover {
    box-shadow: 0 0 30px rgba(135, 206, 235, 0.4);
    color: var(--bg-primary);
}

.music-volume {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0 var(--space-sm);
    margin-bottom: var(--space-lg);
}

.music-volume-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.music-volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.music-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out-quart);
}

.music-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.music-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.music-playlist {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
}

.music-reset-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.music-reset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.music-reset-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.16);
}

.music-reset-btn svg {
    width: 16px;
    height: 16px;
}

.music-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.music-playlist-count {
    font-size: 0.75rem;
}

.music-playlist-items {
    max-height: 200px;
    overflow-y: auto;
}

.music-playlist-empty {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.music-playlist-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.music-playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.music-playlist-item.active {
    background: rgba(135, 206, 235, 0.12);
}

.music-playlist-item-index {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.music-playlist-item.active .music-playlist-item-index {
    display: none;
}

.music-playlist-item-name {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-playlist-item.active .music-playlist-item-name {
    color: var(--accent-primary);
}

.music-playlist-item-playing {
    display: none;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
}

.music-playlist-item.active .music-playlist-item-playing {
    display: flex;
}

.music-playlist-item-playing svg {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
    animation: musicNote 1s ease-in-out infinite;
}

@keyframes musicNote {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.music-playlist-items::-webkit-scrollbar {
    width: 4px;
}

.music-playlist-items::-webkit-scrollbar-track {
    background: transparent;
}

.music-playlist-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .music-player {
        position: fixed;
        bottom: 16px;
        right: 16px;
        left: auto;
        top: auto;
        width: auto;
        max-width: none;
        touch-action: none;
    }
    
    .music-player-mini {
        width: 48px;
        height: 48px;
        max-width: 48px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
        box-sizing: border-box;
        justify-content: center;
        touch-action: none;
        cursor: grab;
        pointer-events: auto;
    }
    
    .music-player-mini:active {
        cursor: grabbing;
    }
    
    .music-disc {
        width: 48px;
        height: 48px;
        pointer-events: none;
    }
    
    .music-disc-inner {
        width: 28px;
        height: 28px;
        pointer-events: none;
    }
    
    .music-disc-inner svg {
        width: 18px;
        height: 18px;
        pointer-events: none;
    }
    
    .music-info-mini {
        display: none;
    }
    
    .music-name-mini {
        display: none;
    }
    
    .music-progress-mini {
        display: none;
    }
    
    .music-control-btn {
        display: none;
    }
    
    .music-edge-trigger {
        display: none !important;
    }
    
    .music-player-expanded {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 75vh;
        overflow-y: auto;
        padding: 10px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        pointer-events: auto;
    }
    
    .music-player.expanded .music-player-expanded,
    .music-player.expanded-below .music-player-expanded {
        transform: translateY(0) scale(1);
    }
    
    .music-expanded-header {
        margin-bottom: 10px;
    }
    
    .music-disc-large {
        width: 48px;
        height: 48px;
        box-shadow: 0 0 20px rgba(135, 206, 235, 0.3);
    }
    
    .music-disc-inner-large {
        width: 30px;
        height: 30px;
    }
    
    .music-disc-inner-large svg {
        width: 18px;
        height: 18px;
    }
    
    .music-collapse-btn {
        width: 28px;
        height: 28px;
    }

    .music-reset-btn {
        width: 28px;
        height: 28px;
    }
    
    .music-collapse-btn svg {
        width: 14px;
        height: 14px;
    }

    .music-reset-btn svg {
        width: 13px;
        height: 13px;
    }

    .music-header-actions {
        gap: 6px;
    }
    
    .music-info-expanded {
        margin-bottom: 8px;
    }
    
    .music-name-expanded {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    .music-time {
        font-size: 0.7rem;
    }
    
    .music-progress-expanded {
        height: 4px;
        margin-bottom: 10px;
    }
    
    .music-controls-expanded {
        gap: 12px;
        margin-bottom: 10px;
    }
    
    .music-control-btn-lg {
        width: 36px;
        height: 36px;
    }
    
    .music-control-btn-lg svg {
        width: 18px;
        height: 18px;
    }
    
    .music-play-btn-lg {
        width: 44px;
        height: 44px;
    }
    
    .music-volume {
        gap: 6px;
        padding: 0 4px;
        margin-bottom: 10px;
    }
    
    .music-volume-icon {
        width: 16px;
        height: 16px;
    }
    
    .music-volume-slider {
        height: 3px;
    }
    
    .music-volume-slider::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
    }
    
    .music-playlist {
        padding-top: 8px;
    }
    
    .music-playlist-header {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }
    
    .music-playlist-count {
        font-size: 0.65rem;
    }
    
    .music-playlist-items {
        max-height: 100px;
    }
    
    .music-playlist-item {
        padding: 6px;
        gap: 6px;
    }
    
    .music-playlist-item-index {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
    
    .music-playlist-item-name {
        font-size: 0.75rem;
    }
    
    .music-playlist-item-playing {
        width: 20px;
        height: 20px;
    }
    
    .music-playlist-item-playing svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .music-player {
        position: fixed;
        bottom: 12px;
        right: 12px;
        left: auto;
        width: auto;
        max-width: none;
    }
    
    .music-player-mini {
        width: 44px;
        height: 44px;
        max-width: 44px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
    }
    
    .music-disc {
        width: 44px;
        height: 44px;
    }
    
    .music-disc-inner {
        width: 26px;
        height: 26px;
    }
    
    .music-disc-inner svg {
        width: 16px;
        height: 16px;
    }
    
    .music-player-expanded {
        max-height: 70vh;
        padding: 8px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        border-radius: 12px 12px 0 0;
    }
    
    .music-expanded-header {
        margin-bottom: 8px;
    }
    
    .music-disc-large {
        width: 40px;
        height: 40px;
    }
    
    .music-disc-inner-large {
        width: 26px;
        height: 26px;
    }
    
    .music-disc-inner-large svg {
        width: 16px;
        height: 16px;
    }
    
    .music-collapse-btn {
        width: 24px;
        height: 24px;
    }

    .music-reset-btn {
        width: 24px;
        height: 24px;
    }
    
    .music-collapse-btn svg {
        width: 12px;
        height: 12px;
    }

    .music-reset-btn svg {
        width: 11px;
        height: 11px;
    }

    .music-header-actions {
        gap: 5px;
    }
    
    .music-info-expanded {
        margin-bottom: 6px;
    }
    
    .music-name-expanded {
        font-size: 0.85rem;
    }
    
    .music-time {
        font-size: 0.65rem;
    }
    
    .music-progress-expanded {
        height: 3px;
        margin-bottom: 8px;
    }
    
    .music-controls-expanded {
        gap: 10px;
        margin-bottom: 8px;
    }
    
    .music-control-btn-lg {
        width: 32px;
        height: 32px;
    }
    
    .music-control-btn-lg svg {
        width: 16px;
        height: 16px;
    }
    
    .music-play-btn-lg {
        width: 40px;
        height: 40px;
    }
    
    .music-volume {
        margin-bottom: 8px;
    }
    
    .music-volume-icon {
        width: 14px;
        height: 14px;
    }
    
    .music-volume-slider::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
    }
    
    .music-playlist {
        padding-top: 6px;
    }
    
    .music-playlist-header {
        font-size: 0.65rem;
    }
    
    .music-playlist-items {
        max-height: 80px;
    }
    
    .music-playlist-item {
        padding: 5px;
        gap: 5px;
    }
    
    .music-playlist-item-index {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
    
    .music-playlist-item-name {
        font-size: 0.7rem;
    }
    
    .music-playlist-item-playing {
        width: 18px;
        height: 18px;
    }
    
    .music-playlist-item-playing svg {
        width: 10px;
        height: 10px;
    }
}

/* ── 触屏设备：保持折叠，点击后再展开 ── */
@media (pointer: coarse) {
    /* 触屏 pill 内隐藏上/下一曲，节省空间；完整面板里有这两个按钮 */
    #navMusicPrevBtn,
    #navMusicNextBtn {
        display: none;
    }

    .nav-music-song-name {
        max-width: 90px;
    }
}

/* ── 音乐圆圈移动端适配 ── */
@media (max-width: 768px) {
    .nav-music-pill {
        height: 38px;
        max-width: 38px;
    }

    .nav-music-pill:hover,
    .nav-music-pill.playlist-open {
        max-width: 260px;
    }

    .nav-music-disc {
        width: 38px;
        height: 38px;
    }

    .nav-music-disc-ring {
        width: 26px;
        height: 26px;
    }

    .nav-music-disc-inner {
        width: 13px;
        height: 13px;
    }

    .nav-music-song-name {
        max-width: 80px;
        font-size: 0.7rem;
    }

    .music-playlist-panel {
        position: fixed;
        bottom: 0;
        left: 0 !important;
        right: 0;
        top: auto !important;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 75vh;
        overflow-y: auto;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        transform: translateY(20px) scale(1);
    }

    .music-playlist-panel.open {
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   阅读进度条
   ============================================================ */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    z-index: 99999;
    transition: width 0.12s linear;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(var(--accent-primary-rgb), 0.6), 0 0 4px rgba(var(--accent-primary-rgb), 0.4);
}

/* ============================================================
   标签胶囊 (Tag Pills)
   ============================================================ */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 999px;
    background: rgba(111, 191, 115, 0.15);
    border: 1px solid rgba(111, 191, 115, 0.3);
    color: var(--accent-secondary);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    white-space: nowrap;
}
.tag-pill:hover {
    background: rgba(111, 191, 115, 0.28);
    border-color: rgba(111, 191, 115, 0.6);
    box-shadow: 0 0 10px rgba(111, 191, 115, 0.35);
    color: #c4b5fd;
}
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

/* ============================================================
   全站搜索
   ============================================================ */
.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row-reverse; /* 图标在右，输入框向左展开 */
    flex-shrink: 0;
}
.search-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(var(--card-nav-tint),var(--glass-nav));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    transition: color 0.2s, box-shadow 0.2s, background 0.2s;
}
.search-icon-btn:hover {
    color: var(--accent-primary);
    box-shadow: 0 4px 24px rgba(135, 206, 235, 0.25);
    background: rgba(135, 206, 235, 0.12);
}
.search-icon-btn svg {
    width: 18px;
    height: 18px;
}
.search-input-wrap {
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.25s ease;
    margin-right: 8px; /* 输入框在图标左侧，留间距 */
}
.search-input-wrap.open {
    max-width: 220px;
    opacity: 1;
}
.search-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    padding: 5px 12px;
    outline: none;
    width: 200px;
    transition: border-color 0.2s, background 0.2s;
}
.search-input:focus {
    border-color: var(--accent-primary);
    background: rgba(135, 206, 235, 0.06);
}
.search-input::placeholder {
    color: var(--text-muted, rgba(240,240,245,0.35));
}
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 300px;
    max-width: 380px;
    background: rgba(var(--card-info-tint),var(--glass-info));
    backdrop-filter: blur(3px) saturate(180%);
    -webkit-backdrop-filter: blur(3px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow: hidden;
    animation: fadeIn 0.15s ease;
}
.search-dropdown-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s;
    cursor: pointer;
}
.search-dropdown-item:last-child {
    border-bottom: none;
}
.search-dropdown-item:hover {
    background: rgba(135, 206, 235, 0.08);
}
.search-dropdown-item.active {
    background: rgba(135, 206, 235, 0.12);
}
.search-dropdown-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-dropdown-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-dropdown-empty {
    padding: 16px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

mark.search-hl {
    background: rgba(var(--accent-primary-rgb), 0.18);
    color: var(--accent-primary);
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 600;
}
.search-dropdown-loading {
    padding: 10px 0;
}
.search-dropdown-skeleton-row {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.search-dropdown-skeleton-row:last-child {
    border-bottom: none;
}
.search-dropdown-skeleton-title {
    height: 12px;
    width: 78%;
    margin-bottom: 8px;
}
.search-dropdown-skeleton-meta {
    height: 10px;
    width: 52%;
}
@media (max-width: 768px) {
    .search-input-wrap.open {
        max-width: 150px;
    }
    .search-input {
        width: 130px;
    }
    .search-dropdown {
        min-width: 260px;
        right: 0;
    }
}

/* ============================================================
   文章目录 TOC
   ============================================================ */
.post-layout {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}
.post-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.post-toc::-webkit-scrollbar {
    width: 4px;
}
.post-toc::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
}
.toc-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.toc-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}
.toc-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.toc-link.active {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    background: rgba(135, 206, 235, 0.07);
}
.toc-link.toc-h2 { padding-left: 16px; }
.toc-link.toc-h3 { padding-left: 28px; font-size: 0.75rem; }
@media (max-width: 1100px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
    .post-toc {
        display: none;
    }
}

/* ============================================================
   系列导航（同分类上下篇）
   ============================================================ */
.series-nav {
    margin-top: 48px;
    padding: 24px;
    background: rgba(var(--card-info-tint),var(--glass-info));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}
.series-nav-category {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    text-decoration: none;
    margin-bottom: 16px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.series-nav-category:hover {
    opacity: 1;
}
.series-nav-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.series-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(var(--card-info-tint),calc(var(--glass-info) * 0.75));
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.series-nav-item:not(.series-nav-empty):hover {
    background: rgba(135, 206, 235, 0.07);
    border-color: rgba(135, 206, 235, 0.25);
    transform: translateY(-2px);
}
.series-nav-next {
    align-items: flex-end;
    text-align: right;
}
.series-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
}
.series-nav-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}
.series-nav-empty {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.5;
    justify-content: center;
    align-items: center;
    cursor: default;
    border-style: dashed;
}
@media (max-width: 640px) {
    .series-nav-row {
        grid-template-columns: 1fr;
    }
    .series-nav-next {
        align-items: flex-start;
        text-align: left;
    }
}

/* ============================================================
   ① 文章卡片悬停微动效增强
   ============================================================ */
.post-card {
    will-change: auto;
}
.post-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 0.92));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}
.post-card:hover .post-card-cover img {
    transform: none;
}

.latest-card {
    will-change: auto;
}
.latest-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(var(--card-info-tint), calc(var(--glass-info) * 0.92));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}
.latest-card:hover .latest-card-cover img {
    transform: none;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .post-card,
    .latest-card,
    .category-card,
    .latest-featured-card,
    .latest-side-panel,
    .latest-side-item,
    .post-hero-panel,
    .home-hero-panel,
    .categories-hero-panel,
    .category-hero-panel,
    .latest-hero-panel,
    .about-hero-panel,
    .series-nav,
    .series-nav-item,
    .post-meta-card,
    .post-insight-card,
    .categories-metric-card,
    .categories-overview-card,
    .about-identity-card,
    .about-overview-card,
    .about-side-card,
    .about-main-card,
    .latest-metric-card {
        --card-hover-rotate-x: 0deg;
        --card-hover-rotate-y: 0deg;
        --card-glow-x: 50%;
        --card-glow-y: 50%;
        --card-glow-opacity: 0;
        --card-edge-glow-opacity: 0;
        --card-glow-strength: 1;
        --card-edge-glow-strength: 1;
        background-image:
            radial-gradient(
                circle at var(--card-glow-x) var(--card-glow-y),
                rgba(255, 255, 255, calc(var(--card-glow-opacity) * var(--card-glow-strength))) 0%,
                rgba(255, 255, 255, calc(var(--card-glow-opacity) * var(--card-glow-strength) * 0.42)) 10%,
                rgba(255, 255, 255, 0) 28%
            ),
            radial-gradient(
                circle at calc(100% - var(--card-glow-x)) calc(100% - var(--card-glow-y)),
                rgba(135, 206, 235, calc(var(--card-edge-glow-opacity) * var(--card-edge-glow-strength) * 0.9)) 0%,
                rgba(135, 206, 235, calc(var(--card-edge-glow-opacity) * var(--card-edge-glow-strength) * 0.34)) 16%,
                rgba(135, 206, 235, 0) 36%
            ),
            linear-gradient(
                115deg,
                rgba(255, 255, 255, 0) 28%,
                rgba(202, 232, 255, calc(var(--card-edge-glow-opacity) * var(--card-edge-glow-strength) * 0.46)) 46%,
                rgba(167, 217, 106, calc(var(--card-edge-glow-opacity) * var(--card-edge-glow-strength) * 0.14)) 56%,
                rgba(255, 255, 255, 0) 68%
            );
        background-repeat: no-repeat;
        transform-style: preserve-3d;
        transform-origin: center center;
        will-change: transform, translate, box-shadow;
        transition:
            transform 0.46s var(--ease-float),
            translate 0.46s var(--ease-float),
            box-shadow 0.46s var(--ease-float),
            background var(--duration-normal) var(--ease-out-quart),
            border-color var(--duration-normal) var(--ease-out-quart);
    }

    .post-card:hover,
    .latest-card:hover,
    .category-card:hover,
    .latest-featured-card:hover,
    .latest-side-panel:hover,
    .latest-side-item:hover,
    .post-hero-panel:hover,
    .home-hero-panel:hover,
    .categories-hero-panel:hover,
    .category-hero-panel:hover,
    .latest-hero-panel:hover,
    .about-hero-panel:hover,
    .series-nav:hover,
    .series-nav-item:not(.series-nav-empty):hover,
    .post-meta-card:hover,
    .post-insight-card:hover,
    .categories-metric-card:hover,
    .categories-overview-card:hover,
    .about-identity-card:hover,
    .about-overview-card:hover,
    .about-side-card:hover,
    .about-main-card:hover,
    .latest-metric-card:hover {
        background-image:
            radial-gradient(
                circle at var(--card-glow-x) var(--card-glow-y),
                rgba(255, 255, 255, calc(var(--card-glow-opacity) * var(--card-glow-strength))) 0%,
                rgba(255, 255, 255, calc(var(--card-glow-opacity) * var(--card-glow-strength) * 0.42)) 10%,
                rgba(255, 255, 255, 0) 28%
            ),
            radial-gradient(
                circle at calc(100% - var(--card-glow-x)) calc(100% - var(--card-glow-y)),
                rgba(135, 206, 235, calc(var(--card-edge-glow-opacity) * var(--card-edge-glow-strength) * 0.9)) 0%,
                rgba(135, 206, 235, calc(var(--card-edge-glow-opacity) * var(--card-edge-glow-strength) * 0.34)) 16%,
                rgba(135, 206, 235, 0) 36%
            ),
            linear-gradient(
                115deg,
                rgba(255, 255, 255, 0) 28%,
                rgba(202, 232, 255, calc(var(--card-edge-glow-opacity) * var(--card-edge-glow-strength) * 0.46)) 46%,
                rgba(167, 217, 106, calc(var(--card-edge-glow-opacity) * var(--card-edge-glow-strength) * 0.14)) 56%,
                rgba(255, 255, 255, 0) 68%
            );
        transform: perspective(1400px) rotateX(var(--card-hover-rotate-x)) rotateY(var(--card-hover-rotate-y));
        box-shadow: var(--card-hover-shadow);
    }

    .post-card:hover,
    .latest-card:hover,
    .category-card:hover {
        transform: perspective(1400px) rotateX(calc(var(--card-hover-rotate-x) * 1.2)) rotateY(calc(var(--card-hover-rotate-y) * 1.2)) translateZ(16px);
    }

    .post-card:hover,
    .latest-card:hover,
    .category-card:hover {
        box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
    }

    .about-main-card:hover {
        transform: perspective(1400px) rotateX(calc(var(--card-hover-rotate-x) * 0.45)) rotateY(calc(var(--card-hover-rotate-y) * 0.45)) translateZ(6px);
    }

    .about-side-card:hover {
        transform: perspective(1400px) rotateX(calc(var(--card-hover-rotate-x) * 0.2)) rotateY(calc(var(--card-hover-rotate-y) * 0.2));
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }

    .category-card:hover {
        translate: 8px -2px;
    }

    .latest-side-item:hover {
        translate: 4px 0;
    }

    .series-nav-item:not(.series-nav-empty):hover {
        translate: 0 -2px;
    }
}

/* ============================================================
   ② 骨架屏统一化 — latest-card-skeleton / category-card-skeleton
   ============================================================ */

/* 最新文章骨架卡片：顶部封面区 + 三行文字 */
.latest-card-skeleton {
    height: 300px;
    background:
        /* 三行文字 */
        linear-gradient(var(--bg-elevated) 14px, transparent 14px) calc(16px) calc(228px) / calc(100% - 32px) 14px no-repeat,
        linear-gradient(var(--bg-elevated) 14px, transparent 14px) calc(16px) calc(252px) / 70% 14px no-repeat,
        linear-gradient(var(--bg-elevated) 14px, transparent 14px) calc(16px) calc(276px) / 45% 14px no-repeat,
        /* 分类标签 */
        linear-gradient(var(--bg-elevated) 10px, transparent 10px) calc(16px) calc(200px) / 60px 10px no-repeat,
        /* 封面区块 */
        linear-gradient(var(--bg-elevated) 180px, transparent 180px) 0 0 / 100% 180px no-repeat,
        /* 底板 shimmer */
        linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
    background-size:
        calc(100% - 32px) 14px,
        70% 14px,
        45% 14px,
        60px 10px,
        100% 180px,
        200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
}

/* 分类卡片骨架：左侧图标圆 + 右侧两行文字 */
.category-card-skeleton {
    height: 96px;
    background:
        /* 标题行 */
        linear-gradient(var(--bg-elevated) 14px, transparent 14px) 80px 28px / 140px 14px no-repeat,
        /* 副标题行 */
        linear-gradient(var(--bg-elevated) 11px, transparent 11px) 80px 52px / 90px 11px no-repeat,
        /* 左侧图标圆 */
        radial-gradient(circle, var(--bg-elevated) 24px, transparent 24px) 28px 50% no-repeat,
        /* 底板 shimmer */
        linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
    background-size:
        140px 14px,
        90px 11px,
        56px 56px,
        200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
}

.post-detail-skeleton,
.about-skeleton,
.category-header-skeleton {
    display: flex;
    flex-direction: column;
}

.post-detail-skeleton {
    gap: 12px;
}

.post-skeleton-title {
    height: 32px;
    width: 75%;
    margin-bottom: 12px;
}

.post-skeleton-meta {
    height: 16px;
    width: 28%;
    margin-bottom: 12px;
}

.post-skeleton-cover {
    height: 300px;
    margin-bottom: 12px;
    border-radius: var(--radius-lg);
}

.post-skeleton-line,
.about-skeleton-line,
.category-header-skeleton-title,
.category-header-skeleton-desc {
    height: 16px;
}

.post-skeleton-line.short,
.about-skeleton-line.short {
    width: 83%;
}

.about-skeleton {
    gap: 12px;
}

.category-header-skeleton {
    gap: 8px;
    align-items: center;
}

.category-header-skeleton-title {
    width: 25%;
    height: 32px;
}

.category-header-skeleton-desc {
    width: 50%;
}

/* ============================================================
   ④ 错误页样式
   ============================================================ */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    gap: var(--space-xl);
}
.error-page-code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    filter: drop-shadow(0 0 40px rgba(0,212,255,0.25));
}
.error-page-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.error-page-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 420px;
    line-height: 1.7;
    margin: 0;
}
.error-page-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-sm);
}
.error-page-glitch {
    position: relative;
    display: inline-block;
}
.error-page-glitch::before,
.error-page-glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.error-page-glitch::before {
    animation: glitch-1 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, 0);
}
.error-page-glitch::after {
    animation: glitch-2 3s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(2px, 0);
}
@keyframes glitch-1 {
    0%, 90%, 100% { transform: translate(-2px, 0); opacity: 0; }
    92%            { transform: translate(-4px, -2px); opacity: 0.6; }
    94%            { transform: translate(2px, 2px);  opacity: 0.6; }
    96%            { transform: translate(-2px, 0);   opacity: 0; }
}
@keyframes glitch-2 {
    0%, 90%, 100% { transform: translate(2px, 0); opacity: 0; }
    92%            { transform: translate(4px, 2px);  opacity: 0.6; }
    94%            { transform: translate(-2px, -2px); opacity: 0.6; }
    96%            { transform: translate(2px, 0);    opacity: 0; }
}
