/* ==========================================
   HYPERTRANCE Y2K STYLE - 超频空间
   深蓝 + 银色金属风格 + 二进制 + 时间
   ========================================== */

/* ==========================================
   自定义字体
   ========================================== */
@font-face {
    font-family: 'Air';
    src: url('../fonts/air.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Hyper1';
    src: url('../fonts/hyper1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Hyper2';
    src: url('../fonts/hyper2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* 纯黑背景 - 只有微弱蓝色 */
    --deep-blue: #010204;
    --navy-blue: #020306;
    --cosmic-blue: #030408;
    --electric-blue: #0a1525;
    --ice-blue: #152540;
    --light-blue: #203555;
    
    /* 银色/金属色调 - 更亮的冷色调金属 */
    --chrome-silver: #8899aa;
    --bright-silver: #a0b0c0;
    --metallic: #7088a0;
    --steel: #506880;
    --platinum: #b0c0d0;
    
    /* 强调色 - 微弱冰蓝发光 */
    --neon-accent: #2080c0;
    --glow-white: #90b0d0;
    --soft-purple: #506080;
    
    /* 背景色 - 几乎纯黑 */
    --bg-dark: #010102;
    --bg-darker: #000001;
    --bg-gradient: linear-gradient(180deg, #000001 0%, #010204 20%, #020306 50%, #010204 80%, #000001 100%);
    --bg-card: rgba(2, 3, 6, 0.9);
    --bg-card-hover: rgba(3, 4, 8, 0.95);
    
    /* 文字色 - 更亮的银色 */
    --text-primary: #a0b0c0;
    --text-secondary: #8899aa;
    --text-muted: #607080;
    
    /* 渐变 */
    --gradient-silver: linear-gradient(135deg, #203040 0%, #405060 50%, #506575 100%);
    --gradient-chrome: linear-gradient(135deg, #354555 0%, #506575 25%, #405060 50%, #354555 75%, #203040 100%);
    --gradient-blue: linear-gradient(135deg, #0a1525 0%, #1565a0 100%);
    --gradient-glow: linear-gradient(135deg, #152540 0%, #1565a0 50%, #304060 100%);
    
    /* 字体 - 英文使用自定义字体，中文使用 Noto Sans SC */
    --font-display: 'Hyper1', sans-serif;
    --font-body: 'Hyper2', sans-serif;
    --font-time: 'Air', monospace;
    --font-chinese: 'Noto Sans SC', sans-serif;
    
    /* 动画时间 */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

/* ==========================================
   基础重置
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* ==========================================
   动态背景 - 宇宙深空风格 + 中心爆发光源
   ========================================== */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #020408 0%, #010203 30%, #000001 100%);
}

/* ==========================================
   Hypertrance 光源系统 - 偏右中心
   ========================================== */
.light-burst {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 核心光点 - 偏右偏下位置 (55%, 58%) */
.light-core {
    position: absolute;
    top: 58%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow:
        0 0 60px 30px rgba(255, 255, 255, 1),
        0 0 120px 60px rgba(220, 240, 255, 0.9),
        0 0 200px 100px rgba(180, 220, 255, 0.7),
        0 0 350px 175px rgba(100, 180, 255, 0.5),
        0 0 500px 250px rgba(60, 140, 220, 0.3),
        0 0 700px 350px rgba(30, 100, 180, 0.15);
    animation: corePulse 4s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 60px 30px rgba(255, 255, 255, 1),
            0 0 120px 60px rgba(220, 240, 255, 0.9),
            0 0 200px 100px rgba(180, 220, 255, 0.7),
            0 0 350px 175px rgba(100, 180, 255, 0.5),
            0 0 500px 250px rgba(60, 140, 220, 0.3),
            0 0 700px 350px rgba(30, 100, 180, 0.15);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        box-shadow:
            0 0 80px 40px rgba(255, 255, 255, 1),
            0 0 150px 75px rgba(220, 240, 255, 0.95),
            0 0 250px 125px rgba(180, 220, 255, 0.8),
            0 0 420px 210px rgba(100, 180, 255, 0.6),
            0 0 600px 300px rgba(60, 140, 220, 0.4),
            0 0 850px 425px rgba(30, 100, 180, 0.2);
    }
}

/* 隐藏CSS光束，使用Canvas绘制 */
.cross-beam-h,
.cross-beam-v,
.diagonal-beam {
    display: none;
}

@keyframes beamPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 放射状光线容器 */
.radial-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

/* 单条放射光线 */
.ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 1px;
    transform-origin: left center;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(150, 200, 255, 0.4) 10%,
        rgba(80, 150, 220, 0.1) 30%,
        transparent 60%
    );
}

/* 噪点/颗粒感叠加 */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* 电子干扰细线 */
.interference-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

.interference-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(100, 180, 255, 0.5) 20%,
        rgba(150, 200, 255, 0.8) 50%,
        rgba(100, 180, 255, 0.5) 80%,
        transparent 100%
    );
    animation: interferenceMove var(--duration) linear infinite;
}

@keyframes interferenceMove {
    0% { transform: translateX(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100vw); opacity: 0; }
}

/* 网格线 - 银色透明 */
.grid-lines {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(192, 199, 214, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 199, 214, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridPerspective 30s linear infinite;
    transform-origin: center center;
}

@keyframes gridPerspective {
    0% { 
        transform: perspective(1000px) rotateX(60deg) translateY(0) scale(1.5);
    }
    100% { 
        transform: perspective(1000px) rotateX(60deg) translateY(80px) scale(1.5);
    }
}

/* 扫描线效果 */
.scan-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    animation: scanPulse 4s ease-in-out infinite;
}

@keyframes scanPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* 星星背景 - 深空效果 */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background: radial-gradient(circle, var(--bright-silver) 0%, transparent 70%);
    border-radius: 50%;
    animation: starTwinkle var(--duration) ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(1);
        box-shadow: 0 0 2px rgba(232, 237, 245, 0.3);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3);
        box-shadow: 0 0 8px rgba(232, 237, 245, 0.8), 0 0 15px rgba(0, 212, 255, 0.4);
    }
}

/* ==========================================
   二进制代码流 - 核心效果
   ========================================== */
.binary-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.binary-column {
    position: absolute;
    top: -100%;
    font-family: var(--font-time);
    font-size: 14px;
    color: var(--neon-accent);
    text-shadow: 0 0 10px var(--neon-accent);
    opacity: 0.6;
    writing-mode: vertical-rl;
    animation: binaryFall var(--duration) linear infinite;
    letter-spacing: 5px;
}

@keyframes binaryFall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(200vh);
    }
}

.binary-char {
    display: inline-block;
    animation: binaryGlitch 0.5s ease-in-out infinite;
}

@keyframes binaryGlitch {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ==========================================
   飞速时间显示 - 蹦出效果
   ========================================== */
.time-display-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.flying-time {
    position: absolute;
    font-family: var(--font-time);
    color: rgba(192, 199, 214, 0.25);
    text-shadow:
        0 0 30px rgba(0, 212, 255, 0.5),
        0 0 60px rgba(0, 212, 255, 0.3),
        0 0 100px rgba(0, 212, 255, 0.2);
    white-space: nowrap;
    letter-spacing: 15px;
    opacity: 0;
    transform: scale(0);
}

/* 蹦出动画 */
.flying-time.pop-in {
    animation: timePop 0.15s ease-out forwards;
}

/* 横向滑动动画 */
.flying-time.sliding {
    animation: timeSlide var(--slide-duration) linear forwards;
}

/* 突然消失 */
.flying-time.pop-out {
    animation: timePopOut 0.05s ease-in forwards;
}

@keyframes timePop {
    0% {
        transform: scale(0) rotate(-5deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(2deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes timeSlide {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(var(--slide-distance)) scale(1);
        opacity: 1;
    }
}

@keyframes timePopOut {
    0% {
        transform: translateX(var(--current-x)) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(var(--current-x)) scale(0);
        opacity: 0;
    }
}

.time-static {
    position: fixed;
    top: 20px;
    right: 40px;
    font-family: var(--font-time);
    font-size: 2.5rem;
    color: var(--chrome-silver);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    z-index: 100;
    letter-spacing: 5px;
    opacity: 0.8;
}

.time-static .separator {
    animation: blinkSeparator 1s step-end infinite;
}

@keyframes blinkSeparator {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 流星效果 */
.meteor {
    position: absolute;
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, var(--chrome-silver) 50%, var(--neon-accent) 100%);
    animation: meteorFall var(--duration) linear infinite;
    opacity: 0;
}

@keyframes meteorFall {
    0% {
        transform: translateY(-100px) translateX(0) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(-200px) rotate(-45deg);
        opacity: 0;
    }
}

/* 漂浮形状 - 金属质感 */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-shape {
    position: absolute;
    opacity: 0.15;
    animation: floatRotate var(--duration) ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

@keyframes floatRotate {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
    }
    25% {
        transform: translateY(-15px) rotate(90deg) scale(1.05);
    }
    50% { 
        transform: translateY(-25px) rotate(180deg) scale(1.1);
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
    }
    75% {
        transform: translateY(-15px) rotate(270deg) scale(1.05);
    }
}

/* 光环效果 */
.light-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(192, 199, 214, 0.1);
    animation: ringPulse var(--duration) ease-out infinite;
}

@keyframes ringPulse {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 数据流线条 */
.data-stream {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--neon-accent) 20%,
        var(--chrome-silver) 50%,
        var(--neon-accent) 80%,
        transparent 100%
    );
    animation: dataFlow var(--duration) linear infinite;
    opacity: 0.5;
}

@keyframes dataFlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

/* 故障效果覆盖层 */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 212, 255, 0.05) 50%,
        transparent 100%
    );
}

.glitch-active {
    animation: glitchFlash 0.15s ease-out;
}

@keyframes glitchFlash {
    0% { opacity: 0; }
    25% { opacity: 0.3; }
    50% { opacity: 0; }
    75% { opacity: 0.2; }
    100% { opacity: 0; }
}

/* ==========================================
   鼠标跟随发光 - 冰蓝色
   ========================================== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(0, 212, 255, 0.1) 0%, 
        rgba(94, 143, 255, 0.05) 30%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* ==========================================
   导航栏 - 金属质感
   ========================================== */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(180deg, 
        rgba(5, 10, 26, 0.98) 0%, 
        rgba(5, 10, 26, 0.8) 50%,
        transparent 100%
    );
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(192, 199, 214, 0.1);
}

.nav-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: chromeShine 3s ease-in-out infinite;
    position: relative;
    letter-spacing: 3px;
}

@keyframes chromeShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    clip-path: inset(0 100% 0 0);
    animation: logoGlitch 5s infinite linear;
}

@keyframes logoGlitch {
    0%, 85%, 100% { clip-path: inset(0 100% 0 0); }
    87% { clip-path: inset(0 0 0 0); transform: translateX(2px); }
    89% { clip-path: inset(0 100% 0 0); }
    91% { clip-path: inset(0 0 0 0); transform: translateX(-2px); }
    93% { clip-path: inset(0 100% 0 0); }
}

.logo-sub {
    font-family: var(--font-time);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
    padding: 8px 0;
    transition: all var(--transition-normal);
    text-transform: uppercase;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-blue);
    transition: width var(--transition-normal);
    box-shadow: 0 0 10px var(--neon-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    width: 6px;
    height: 6px;
    background: var(--neon-accent);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--bright-silver);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover::after,
.nav-link.active::after {
    opacity: 1;
}

/* ==========================================
   主内容区
   ========================================== */

/* ==========================================
   首页全屏 Hero - 独占一页
   ========================================== */
.hero-fullpage {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-center {
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 400;
    color: var(--chrome-silver);
    letter-spacing: 20px;
    text-transform: uppercase;
    position: relative;
    text-shadow:
        0 0 40px rgba(21, 101, 160, 0.5),
        0 0 80px rgba(21, 101, 160, 0.3),
        0 0 120px rgba(21, 101, 160, 0.2);
    animation: heroGlow 4s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        text-shadow:
            0 0 40px rgba(21, 101, 160, 0.5),
            0 0 80px rgba(21, 101, 160, 0.3);
        opacity: 0.9;
    }
    50% {
        text-shadow:
            0 0 60px rgba(21, 101, 160, 0.7),
            0 0 100px rgba(21, 101, 160, 0.5),
            0 0 140px rgba(21, 101, 160, 0.3);
        opacity: 1;
    }
}

.hero-cn-title {
    font-family: var(--font-chinese);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 100;
    color: var(--metallic);
    letter-spacing: 30px;
    margin-top: 30px;
    text-shadow: 0 0 30px rgba(21, 101, 160, 0.3);
}

.hero-line {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-accent), transparent);
    margin: 40px auto;
    opacity: 0.5;
}

.hero-tagline {
    font-family: var(--font-time);
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 8px;
    text-transform: uppercase;
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    display: block;
    margin-bottom: 10px;
}

.scroll-arrow {
    color: var(--neon-accent);
    font-size: 1rem;
    opacity: 0.5;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ==========================================
   导航栏 - 滚动后显示
   ========================================== */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(1, 2, 3, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(64, 80, 96, 0.2);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-visible {
    transform: translateY(0);
    opacity: 1;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--chrome-silver);
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(21, 101, 160, 0.5);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--neon-accent);
    text-shadow: 0 0 15px rgba(21, 101, 160, 0.5);
}

/* ==========================================
   主内容区
   ========================================== */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

/* 旧版 Hero 样式保留兼容 */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.glitch-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: chromeShine 4s ease-in-out infinite;
    position: relative;
    letter-spacing: 4px;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
}

.glitch-text::before {
    animation: glitchBefore 4s infinite, chromeShine 4s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
    animation: glitchAfter 4s infinite, chromeShine 4s ease-in-out infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitchBefore {
    0%, 92%, 100% { transform: translateX(0); }
    93% { transform: translateX(-3px) skewX(-1deg); }
    95% { transform: translateX(3px) skewX(1deg); }
    97% { transform: translateX(-2px); }
}

@keyframes glitchAfter {
    0%, 92%, 100% { transform: translateX(0); }
    93% { transform: translateX(3px) skewX(1deg); }
    95% { transform: translateX(-3px) skewX(-1deg); }
    97% { transform: translateX(2px); }
}

.hero-subtitle {
    margin-top: 25px;
    font-family: var(--font-time);
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.typing-text {
    border-right: 2px solid var(--neon-accent);
    padding-right: 8px;
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    from, to { border-color: transparent; }
    50% { border-color: var(--neon-accent); }
}

.hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
}

.deco-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--chrome-silver) 50%, transparent 100%);
}

.deco-icon {
    color: var(--neon-accent);
    font-size: 1.2rem;
    animation: iconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--neon-accent));
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(45deg); opacity: 0.8; }
}

/* ==========================================
   区域标题
   ========================================== */
.section-header {
    padding: 0 40px;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.title-icon {
    color: var(--neon-accent);
    animation: cursorBlink 1.2s step-end infinite;
    filter: drop-shadow(0 0 5px var(--neon-accent));
}

.title-sub {
    font-family: var(--font-time);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 2px;
}

/* ==========================================
   分类筛选导航
   ========================================== */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 40px 40px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-filter::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid rgba(192, 199, 214, 0.15);
    border-radius: 30px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.15);
}

.category-btn.active {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--neon-accent);
    color: var(--neon-accent);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.25),
        inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.category-btn.active::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(135deg, var(--neon-accent), #ff00ff, var(--neon-accent));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

.category-btn .icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.category-btn:hover .icon {
    transform: scale(1.2);
}

.category-btn.active .icon {
    animation: iconPulse 1.5s ease-in-out infinite;
}

.category-btn .name {
    font-weight: 500;
}

.category-btn .count {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: rgba(192, 199, 214, 0.1);
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-btn.active .count {
    background: rgba(0, 212, 255, 0.2);
    color: var(--neon-accent);
}

/* 文章网格动画 */
.articles-grid.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.articles-grid.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ==========================================
   文章列表
   ========================================== */
.articles-section {
    padding: 60px 0 80px;
    display: block;
    width: 100%;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* 加载动画 */
.loading-indicator {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 80px;
    color: var(--text-muted);
    font-family: var(--font-display);
    letter-spacing: 3px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(192, 199, 214, 0.1);
    border-top-color: var(--neon-accent);
    border-right-color: var(--chrome-silver);
    border-radius: 50%;
    animation: spinGlow 1s linear infinite;
}

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

/* 文章卡片 - 金属边框 */
.article-card {
    background: var(--bg-card);
    border: 1px solid rgba(192, 199, 214, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    backdrop-filter: blur(10px);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-chrome);
    background-size: 200% 100%;
    animation: chromeShine 3s ease-in-out infinite;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.article-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(192, 199, 214, 0.05) 0%,
        transparent 50%,
        rgba(0, 212, 255, 0.05) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(192, 199, 214, 0.3);
    background: var(--bg-card-hover);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover::after {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--navy-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(192, 199, 214, 0.1),
        transparent,
        rgba(0, 212, 255, 0.1),
        transparent
    );
    animation: cardRotate 15s linear infinite;
    opacity: 0.5;
}

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

.card-icon {
    font-size: 3rem;
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

/* 封面图片样式 - 带有封面图的卡片 */
.card-image--has-cover {
    padding: 0;
}

.card-image--has-cover::before {
    display: none;
}

.card-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-normal) ease, filter var(--transition-normal) ease;
    filter: saturate(0.9) brightness(0.95);
}

.article-card:hover .card-cover-image {
    transform: scale(1.05);
    filter: saturate(1.1) brightness(1.05);
}

/* 封面图片霓虹边框效果 */
.card-image--has-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(0, 20, 40, 0.3);
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.article-card:hover .card-image--has-cover::after {
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.3),
        inset 0 0 40px rgba(0, 100, 200, 0.2);
    opacity: 0.6;
}

/* 文章详情页封面图片样式 */
.article-cover-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
    position: relative;
    border: 1px solid rgba(100, 150, 200, 0.2);
    box-shadow:
        0 0 30px rgba(0, 100, 200, 0.1),
        0 10px 40px rgba(0, 0, 0, 0.3);
}

.article-cover-container::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(0, 0, 0, 0.3) 85%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.article-cover-container::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow:
        inset 0 0 60px rgba(0, 100, 200, 0.1),
        inset 0 -2px 0 rgba(0, 150, 255, 0.3);
}

.article-cover-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    filter: saturate(0.95) brightness(0.98);
}

.card-content {
    padding: 28px;
    position: relative;
    z-index: 1;
}

.card-date {
    font-family: var(--font-time);
    font-size: 0.7rem;
    color: var(--neon-accent);
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: all var(--transition-fast);
    letter-spacing: 1px;
}

.article-card:hover .card-title {
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-family: var(--font-display);
    font-size: 0.65rem;
    padding: 5px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    color: var(--neon-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--neon-accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--chrome-silver);
    text-decoration: none;
    transition: all var(--transition-fast);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.card-link:hover {
    color: var(--neon-accent);
    gap: 15px;
    text-shadow: 0 0 10px var(--neon-accent);
}

/* ==========================================
   关于区域
   ========================================== */
.about-section {
    padding: 100px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 70px;
    padding: 0 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-avatar {
    flex-shrink: 0;
    text-align: center;
}

.avatar-frame {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-chrome);
    background-size: 200% 200%;
    animation: avatarChrome 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.3s ease;
}

.avatar-img:hover {
    filter: grayscale(0%) contrast(1);
}

.avatar-name {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--chrome-silver);
    margin-top: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes avatarChrome {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(21, 101, 160, 0.3);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 40px rgba(21, 101, 160, 0.5);
    }
}

.avatar-frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(64, 80, 96, 0.3);
    animation: ringRotate 10s linear infinite;
}

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

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--navy-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 4.5rem;
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: chromeShine 3s ease-in-out infinite;
}

.about-text {
    flex: 1;
}

.about-intro {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.9;
}

.highlight {
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.about-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 35px;
}

.about-links {
    display: flex;
    gap: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(192, 199, 214, 0.05);
    border: 1px solid rgba(192, 199, 214, 0.2);
    border-radius: 30px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: all var(--transition-normal);
    text-transform: uppercase;
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--neon-accent);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
}

.link-icon {
    color: var(--neon-accent);
}

/* ==========================================
   页脚
   ========================================== */
.footer {
    padding: 50px 40px;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 10, 26, 0.98) 100%);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 3px;
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info {
    font-family: var(--font-time);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.separator {
    margin: 0 18px;
    color: var(--neon-accent);
}

.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--chrome-silver) 20%,
        var(--neon-accent) 50%,
        var(--chrome-silver) 80%,
        transparent 100%
    );
    opacity: 0.3;
}

/* ==========================================
   文章页面样式
   ========================================== */
.article-page {
    padding: 130px 40px 80px;
    max-width: 960px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    font-family: var(--font-time);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.article-page-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: chromeShine 4s ease-in-out infinite;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.article-page-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.article-body {
    background: var(--bg-card);
    border: 1px solid rgba(192, 199, 214, 0.15);
    border-radius: 12px;
    padding: 50px;
    line-height: 1.9;
    backdrop-filter: blur(10px);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    font-family: var(--font-display);
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 35px 0 20px;
    letter-spacing: 1px;
}

.article-body h1 { font-size: 2rem; }
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.2rem; }

.article-body p {
    margin-bottom: 18px;
    color: var(--text-secondary);
}

.article-body a {
    color: var(--neon-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.article-body a:hover {
    border-color: var(--neon-accent);
    text-shadow: 0 0 10px var(--neon-accent);
}

.article-body code {
    font-family: var(--font-time);
    background: rgba(0, 212, 255, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    color: var(--neon-accent);
    font-size: 0.9em;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.article-body pre {
    background: var(--bg-darker);
    padding: 25px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid rgba(192, 199, 214, 0.1);
}

.article-body pre code {
    background: none;
    padding: 0;
    border: none;
}

.article-body blockquote {
    border-left: 3px solid var(--neon-accent);
    padding-left: 25px;
    margin: 25px 0;
    color: var(--text-muted);
    font-style: italic;
}

.article-body ul,
.article-body ol {
    margin: 18px 0;
    padding-left: 30px;
    color: var(--text-secondary);
}

.article-body li {
    margin-bottom: 10px;
}

.article-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 25px 0;
    border: 1px solid rgba(192, 199, 214, 0.2);
}

.article-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--chrome-silver), transparent);
    margin: 40px 0;
    opacity: 0.3;
}

/* 返回按钮 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-family: var(--font-display);
    color: var(--chrome-silver);
    text-decoration: none;
    transition: all var(--transition-fast);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.back-link:hover {
    color: var(--neon-accent);
    gap: 18px;
    text-shadow: 0 0 10px var(--neon-accent);
}

/* ==========================================
   响应式设计
   ========================================== */
@media (max-width: 768px) {
    .nav-bar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 25px;
    }
    
    .time-static {
        font-size: 1.5rem;
        top: auto;
        bottom: 20px;
        right: 20px;
    }
    
    /* 分类筛选响应式 */
    .category-filter {
        justify-content: flex-start;
        padding: 0 20px 30px;
        gap: 10px;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
    
    .category-btn .icon {
        font-size: 1rem;
    }
    
    .category-btn .count {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .section-header {
        padding: 0 20px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    
    .about-links {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .article-page {
        padding: 110px 20px 50px;
    }
    
    .article-body {
        padding: 30px;
    }
}

/* ==========================================
   滚动条样式
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--steel), var(--chrome-silver));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--chrome-silver), var(--neon-accent));
}

/* ==========================================
   选择文字样式
   ========================================== */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: white;
}

/* ==========================================
   阅读进度条
   ========================================== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg,
        var(--neon-accent) 0%,
        #ff00ff 50%,
        var(--neon-accent) 100%
    );
    background-size: 200% 100%;
    animation: progressGlow 2s ease-in-out infinite;
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow:
        0 0 10px var(--neon-accent),
        0 0 20px rgba(0, 212, 255, 0.5);
}

@keyframes progressGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ==========================================
   TOC 侧边栏（桌面端）
   ========================================== */
.toc-sidebar {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 260px;
    max-height: 70vh;
    background: rgba(2, 3, 6, 0.85);
    border: 1px solid rgba(192, 199, 214, 0.15);
    border-radius: 12px;
    padding: 20px;
    z-index: 100;
    backdrop-filter: blur(15px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.toc-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--neon-accent),
        transparent
    );
    opacity: 0.6;
}

.toc-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--chrome-silver);
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(192, 199, 214, 0.1);
    text-transform: uppercase;
}

.toc-nav {
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(192, 199, 214, 0.2) transparent;
}

.toc-nav::-webkit-scrollbar {
    width: 4px;
}

.toc-nav::-webkit-scrollbar-track {
    background: transparent;
}

.toc-nav::-webkit-scrollbar-thumb {
    background: rgba(192, 199, 214, 0.2);
    border-radius: 2px;
}

.toc-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 199, 214, 0.4);
}

/* TOC 项目样式 */
.toc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    position: relative;
    border-left: 2px solid transparent;
}

.toc-item:hover {
    background: rgba(0, 212, 255, 0.08);
    color: var(--text-primary);
}

.toc-item.active {
    background: rgba(0, 212, 255, 0.12);
    color: var(--neon-accent);
    border-left-color: var(--neon-accent);
    box-shadow:
        -2px 0 15px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.toc-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(192, 199, 214, 0.3);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.toc-item.active .toc-indicator {
    background: var(--neon-accent);
    box-shadow: 0 0 10px var(--neon-accent);
    animation: indicatorPulse 1.5s ease-in-out infinite;
}

@keyframes indicatorPulse {
    0%, 100% {
        box-shadow: 0 0 5px var(--neon-accent);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px var(--neon-accent);
        transform: scale(1.2);
    }
}

.toc-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 标题层级缩进 */
.toc-level-1 {
    font-weight: 600;
    font-size: 0.85rem;
}

.toc-level-2 {
    padding-left: 20px;
    font-size: 0.8rem;
}

.toc-level-3 {
    padding-left: 35px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.toc-level-3 .toc-indicator {
    width: 4px;
    height: 4px;
}

/* ==========================================
   TOC 移动端样式
   ========================================== */

/* 悬浮按钮 (FAB) */
.toc-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.2) 0%,
        rgba(0, 212, 255, 0.1) 100%
    );
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: var(--neon-accent);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.toc-fab:hover {
    transform: scale(1.1);
    box-shadow:
        0 8px 35px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 212, 255, 0.3);
}

.toc-fab:active {
    transform: scale(0.95);
}

/* 遮罩层 */
.toc-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toc-mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* 移动端面板 */
.toc-mobile-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: rgba(2, 3, 6, 0.98);
    border-top: 1px solid rgba(192, 199, 214, 0.15);
    border-radius: 20px 20px 0 0;
    z-index: 1002;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
}

.toc-mobile-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--neon-accent),
        transparent
    );
}

.toc-mobile-panel.open {
    transform: translateY(0);
}

.toc-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(192, 199, 214, 0.1);
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--chrome-silver);
    letter-spacing: 2px;
}

.toc-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(192, 199, 214, 0.1);
    border: 1px solid rgba(192, 199, 214, 0.2);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toc-close:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.4);
    color: #ff6464;
}

.toc-mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px 30px;
}

.toc-mobile-nav .toc-item {
    padding: 14px 15px;
    font-size: 0.9rem;
}

.toc-mobile-nav .toc-level-2 {
    padding-left: 25px;
}

.toc-mobile-nav .toc-level-3 {
    padding-left: 40px;
    font-size: 0.85rem;
}

/* ==========================================
   TOC 响应式
   ========================================== */
@media (max-width: 1400px) {
    .toc-sidebar {
        right: 15px;
        width: 220px;
    }
}

@media (max-width: 1200px) {
    .toc-sidebar {
        display: none;
    }
    
    .toc-fab {
        display: flex;
    }
}

@media (max-width: 768px) {
    .toc-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .toc-mobile-panel {
        max-height: 80vh;
    }
    
    .reading-progress-bar {
        height: 2px;
    }
}

/* 文章页面布局调整（有 TOC 时） */
@media (min-width: 1201px) {
    /* 首页保持垂直布局，文章页面需要单独处理 */
    .article-page {
        max-width: 950px;
        margin: 0 auto;
        padding-right: 240px;
    }
    
    /* TOC侧边栏不影响文章居中 */
    .toc-sidebar {
        flex-shrink: 0;
    }
}

@media (min-width: 1401px) {
    .article-page {
        max-width: 1300px;
        flex: 0 1 1100px;
    }
}

/* ==========================================
   合集导航样式
   ========================================== */
.collection-nav {
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.08) 0%,
        rgba(0, 100, 150, 0.05) 50%,
        rgba(0, 212, 255, 0.03) 100%
    );
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 5px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.collection-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--neon-accent),
        #ff00ff,
        var(--neon-accent),
        transparent
    );
    opacity: 0.6;
}

/* 合集头部 */
.collection-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.collection-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
}

.collection-name {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--chrome-silver);
    letter-spacing: 1px;
    flex: 1;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.collection-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--neon-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.collection-toggle:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--neon-accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
}

.current-progress {
    font-family: var(--font-time);
    font-size: 0.85rem;
}

.toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

/* 合集文章列表 */
.collection-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s ease,
                opacity 0.3s ease;
    opacity: 0;
}

.collection-list.expanded {
    max-height: 500px;
    padding-top: 20px;
    opacity: 1;
}

.collection-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(192, 199, 214, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.collection-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.collection-item:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

.collection-item:hover::before {
    background: var(--neon-accent);
}

/* 当前文章高亮 */
.collection-item.current {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--neon-accent);
    color: var(--neon-accent);
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.2),
        inset 0 0 15px rgba(0, 212, 255, 0.05);
}

.collection-item.current::before {
    background: linear-gradient(180deg, var(--neon-accent), #ff00ff);
    box-shadow: 0 0 10px var(--neon-accent);
}

/* 已读文章样式 */
.collection-item.read {
    opacity: 0.7;
}

.collection-item.read .item-status {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

/* 未读文章样式 */
.collection-item.unread .item-status {
    background: rgba(192, 199, 214, 0.15);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.item-status {
    font-size: 1rem;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.item-title {
    flex: 1;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-item.current .item-title {
    font-weight: 600;
}

.item-time {
    font-family: var(--font-time);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* 上一篇/下一篇按钮 */
.collection-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(192, 199, 214, 0.1);
}

.prev-article,
.next-article {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 25px;
    text-decoration: none;
    color: var(--chrome-silver);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prev-article::before,
.next-article::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.2) 0%,
        rgba(255, 0, 255, 0.1) 50%,
        rgba(0, 212, 255, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prev-article:hover,
.next-article:hover {
    color: var(--neon-accent);
    border-color: var(--neon-accent);
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.3),
        0 0 50px rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.prev-article:hover::before,
.next-article:hover::before {
    opacity: 1;
}

.nav-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-text {
    position: relative;
    z-index: 1;
}

.prev-article:hover .nav-arrow {
    transform: translateX(-5px);
    text-shadow: 0 0 15px var(--neon-accent);
}

.next-article:hover .nav-arrow {
    transform: translateX(5px);
    text-shadow: 0 0 15px var(--neon-accent);
}

/* 合集导航响应式 */
@media (max-width: 768px) {
    .collection-nav {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .collection-header {
        flex-wrap: wrap;
    }
    
    .collection-icon {
        font-size: 1.2rem;
    }
    
    .collection-name {
        font-size: 0.9rem;
        flex: 1 1 auto;
    }
    
    .collection-toggle {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .collection-item {
        padding: 12px 14px;
    }
    
    .item-title {
        font-size: 0.85rem;
    }
    
    .collection-nav-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .prev-article,
    .next-article {
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .collection-name {
        font-size: 0.85rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .collection-list.expanded {
        max-height: 350px;
        overflow-y: auto;
    }
}

/* ==========================================
   搜索功能样式
   ========================================== */

/* 搜索容器 */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 0 40px;
    position: relative;
    z-index: 100;
}

/* 搜索输入框包装器 */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(2, 3, 6, 0.9);
    border: 1px solid rgba(192, 199, 214, 0.2);
    border-radius: 30px;
    padding: 0 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow:
        0 5px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-input-wrapper:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow:
        0 5px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-container.active .search-input-wrapper {
    border-color: var(--neon-accent);
    box-shadow:
        0 5px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 212, 255, 0.2),
        inset 0 0 20px rgba(0, 212, 255, 0.03);
}

/* 搜索图标 */
.search-icon {
    font-size: 1rem;
    margin-right: 12px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.search-container.active .search-icon {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--neon-accent));
}

/* 搜索输入框 */
#search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-chinese), var(--font-display);
    font-size: 1rem;
    padding: 16px 0;
    letter-spacing: 0.5px;
}

#search-input::placeholder {
    color: var(--text-muted);
    font-family: var(--font-chinese), var(--font-display);
    letter-spacing: 1px;
}

/* 快捷键提示 */
.search-shortcut {
    font-family: var(--font-time);
    font-size: 0.7rem;
    padding: 4px 8px;
    background: rgba(192, 199, 214, 0.1);
    border: 1px solid rgba(192, 199, 214, 0.2);
    border-radius: 4px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-left: 10px;
    transition: opacity 0.3s ease;
}

.search-container.active .search-shortcut {
    opacity: 0;
    pointer-events: none;
}

/* 清除按钮 */
.search-clear {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(192, 199, 214, 0.1);
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
}

/* 搜索结果下拉面板 */
.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 40px;
    right: 40px;
    background: rgba(2, 3, 6, 0.98);
    border: 1px solid rgba(192, 199, 214, 0.15);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: searchPanelOpen 0.2s ease-out;
}

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

/* 搜索结果头部 */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(192, 199, 214, 0.1);
    background: rgba(0, 212, 255, 0.03);
}

.results-count {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--neon-accent);
    letter-spacing: 1px;
}

.search-hint {
    font-family: var(--font-time);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* 搜索结果列表 */
.search-results-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(192, 199, 214, 0.2) transparent;
}

.search-results-list::-webkit-scrollbar {
    width: 4px;
}

.search-results-list::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-list::-webkit-scrollbar-thumb {
    background: rgba(192, 199, 214, 0.2);
    border-radius: 2px;
}

/* 搜索结果项 */
.search-result-item {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(192, 199, 214, 0.05);
    position: relative;
}

.search-result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.search-result-item:hover,
.search-result-item.selected {
    background: rgba(0, 212, 255, 0.08);
    color: var(--text-primary);
}

.search-result-item:hover::before,
.search-result-item.selected::before {
    background: var(--neon-accent);
    box-shadow: 0 0 10px var(--neon-accent);
}

.search-result-item.selected {
    background: rgba(0, 212, 255, 0.12);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* 结果主体 */
.result-main {
    flex: 1;
}

.result-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.search-result-item:hover .result-title,
.search-result-item.selected .result-title {
    color: var(--chrome-silver);
}

.result-excerpt {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 结果元数据 */
.result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.result-category {
    font-family: var(--font-display);
    font-size: 0.65rem;
    padding: 3px 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    color: var(--neon-accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.result-date {
    font-family: var(--font-time);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* 搜索高亮 */
.search-highlight {
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.3) 0%,
        rgba(255, 0, 255, 0.2) 100%
    );
    color: var(--neon-accent);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
    text-shadow: 0 0 10px var(--neon-accent);
}

/* 无结果状态 */
.search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    gap: 15px;
}

.no-results-icon {
    font-size: 2.5rem;
    opacity: 0.5;
    filter: grayscale(50%);
}

.no-results-text {
    font-family: var(--font-chinese), var(--font-display);
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* 最近搜索 */
.recent-searches {
    padding: 15px 20px 20px;
}

.recent-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(192, 199, 214, 0.03);
    border: 1px solid rgba(192, 199, 214, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-chinese), var(--font-body);
    font-size: 0.85rem;
}

.recent-item:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

.recent-icon {
    font-size: 0.8rem;
    opacity: 0.5;
}

.recent-text {
    flex: 1;
}

.recent-arrow {
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.2s ease;
    color: var(--neon-accent);
}

.recent-item:hover .recent-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* 搜索加载动画 */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 10px;
}

.search-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(192, 199, 214, 0.1);
    border-top-color: var(--neon-accent);
    border-radius: 50%;
    animation: spinGlow 0.8s linear infinite;
}

.search-loading-text {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* 搜索响应式 */
@media (max-width: 768px) {
    .search-container {
        padding: 0 20px;
        margin-bottom: 30px;
    }
    
    .search-input-wrapper {
        padding: 0 15px;
    }
    
    #search-input {
        font-size: 0.9rem;
        padding: 14px 0;
    }
    
    .search-shortcut {
        display: none;
    }
    
    .search-results {
        left: 20px;
        right: 20px;
        border-radius: 12px;
    }
    
    .search-result-item {
        padding: 14px 16px;
    }
    
    .result-title {
        font-size: 0.9rem;
    }
    
    .result-excerpt {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }
    
    .search-results-list {
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .search-icon {
        font-size: 0.9rem;
        margin-right: 8px;
    }
    
    #search-input {
        font-size: 0.85rem;
    }
    
    .search-results-header {
        padding: 10px 15px;
    }
    
    .results-count {
        font-size: 0.7rem;
    }
    
    .search-hint {
        font-size: 0.6rem;
    }
    
    .result-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ==========================================
   合集展示区样式
   ========================================== */
.collections-section {
    padding: 80px 0 60px;
    display: block;
    width: 100%;
}


.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* 合集卡片 */
.collection-card {
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow:
        0 5px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--neon-accent),
        #ff00ff,
        var(--neon-accent),
        transparent
    );
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.collection-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.08) 0%,
        transparent 50%,
        rgba(255, 0, 255, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-accent);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.collection-card:hover::after {
    opacity: 1;
}

.collection-card-content {
    position: relative;
    z-index: 1;
}

.collection-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.collection-card-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    transition: transform 0.3s ease;
}

.collection-card:hover .collection-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.collection-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--chrome-silver);
    letter-spacing: 1px;
    flex: 1;
    transition: color 0.3s ease;
}

.collection-card:hover .collection-card-title {
    color: var(--neon-accent);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.collection-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.collection-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(192, 199, 214, 0.1);
}

.collection-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-time);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.collection-meta-icon {
    font-size: 0.9rem;
    opacity: 0.6;
}

.collection-card-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--neon-accent);
    opacity: 0;
    transition: all 0.3s ease;
}

.collection-card:hover .collection-card-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

/* 合集展示区响应式 */
@media (max-width: 768px) {
    .collections-section {
        padding: 50px 0 60px;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 20px;
    }
    
    .collection-card {
        padding: 20px;
    }
    
    .collection-card-icon {
        font-size: 1.6rem;
    }
    
    .collection-card-title {
        font-size: 1rem;
    }
    
    .collection-card-desc {
        font-size: 0.85rem;
    }
}

/* ==========================================
   搜索结果中的合集样式
   ========================================== */
.search-result-collection {
    background: rgba(0, 212, 255, 0.03);
}

.search-result-collection:hover,
.search-result-collection.selected {
    background: rgba(0, 212, 255, 0.1);
}

.result-collection-icon {
    margin-right: 8px;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
}

.result-collection-tag {
    background: rgba(255, 0, 255, 0.15) !important;
    border-color: rgba(255, 0, 255, 0.3) !important;
    color: #ff00ff !important;
}
