/* =====================================
   DIGITAL STORY - 交互式简历设计系统
   设计哲学：叙事驱动的沉浸体验
   ===================================== */

/* 全局重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调系统 */
    --primary-cyan: #00d4ff;
    --primary-magenta: #ff006e;
    --primary-yellow: #ffbe0b;
    --neutral-black: #0a0a0a;
    --neutral-white: #ffffff;
    --neutral-gray-100: #f8f9fa;
    --neutral-gray-200: #e9ecef;
    --neutral-gray-300: #dee2e6;
    --neutral-gray-600: #6c757d;
    --neutral-gray-800: #343a40;
    --neutral-gray-900: #212529;
    
    /* 语义色彩 */
    --text-primary: var(--neutral-white);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --background-primary: var(--neutral-black);
    --background-secondary: rgba(255, 255, 255, 0.02);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-prominent: rgba(255, 255, 255, 0.2);
    
    /* 渐变系统 */
    --gradient-primary: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-magenta) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-magenta) 0%, var(--primary-yellow) 100%);
    --gradient-tertiary: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-cyan) 100%);
    
    /* 阴影系统 */
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-moderate: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    --shadow-prominent: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    --shadow-dramatic: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    
    /* 动画时序 */
    --timing-fast: 0.15s;
    --timing-base: 0.3s;
    --timing-slow: 0.6s;
    --timing-slower: 1.2s;
    --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --easing-entrance: cubic-bezier(0, 0, 0.2, 1);
    --easing-exit: cubic-bezier(0.4, 0, 1, 1);
    
    /* 字体系统 */
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* 尺寸系统 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    
    /* 断点系统 */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
}

/* 基础文档样式 */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: var(--font-sans);
    background: var(--background-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-magenta);
}

/* =====================================
   PROGRESS INDICATOR 进度指示器
   ===================================== */

.progress-container {
    position: fixed;
    top: var(--space-lg);
    left: var(--space-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.progress-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width var(--timing-base) var(--easing-standard);
    border-radius: 1px;
}

.progress-text {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 24px;
}

/* =====================================
   CHAPTER NAVIGATION 章节导航
   ===================================== */

.chapter-nav {
    position: fixed;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.nav-dot {
    position: relative;
    cursor: pointer;
    transition: all var(--timing-base) var(--easing-standard);
}

.nav-dot::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--border-subtle);
    border-radius: 50%;
    background: transparent;
    transition: all var(--timing-base) var(--easing-standard);
}

.nav-dot.active::before {
    background: var(--primary-cyan);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.nav-dot:hover::before {
    border-color: var(--primary-cyan);
    transform: scale(1.2);
}

.nav-label {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--timing-base) var(--easing-standard);
    pointer-events: none;
}

.nav-dot:hover .nav-label {
    opacity: 1;
}

/* =====================================
   STORY CONTAINER 故事容器
   ===================================== */

.story-container {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.chapter {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl) var(--space-lg);
}

/* =====================================
   CHAPTER 0: TERMINAL OPENING 终端开场
   ===================================== */

#chapter-0 {
    background: 
        radial-gradient(ellipse at 30% 70%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 0, 110, 0.15) 0%, transparent 50%),
        linear-gradient(45deg, rgba(139, 92, 246, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%),
        var(--background-primary);
    flex-direction: column;
    perspective: 1200px;
    position: relative;
    overflow: hidden;
}

/* 3D全息投影扫描线效果 */
#chapter-0::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 2px,
            rgba(0, 212, 255, 0.03) 4px
        );
    animation: hologramScanlines 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.terminal-container {
    max-width: 600px;
    width: 100%;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%),
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    overflow: hidden;
    backdrop-filter: blur(25px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 212, 255, 0.2);
    position: relative;
    z-index: 2;
    
    /* 3D悬浮效果 */
    transform: 
        perspective(1200px) 
        rotateX(5deg) 
        rotateY(-2deg) 
        translateZ(50px);
    animation: terminalFloat 6s ease-in-out infinite;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.terminal-container:hover {
    transform: 
        perspective(1200px) 
        rotateX(2deg) 
        rotateY(-1deg) 
        translateZ(80px) 
        scale(1.02);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.4),
        0 15px 40px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 212, 255, 0.3);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-controls {
    display: flex;
    gap: var(--space-sm);
}

.terminal-controls .control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    position: relative;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.terminal-controls .control:hover {
    transform: scale(1.2);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.terminal-controls .red {
    background: radial-gradient(circle at 30% 30%, #ff8a80, #ff5f56);
    box-shadow: 
        0 0 10px rgba(255, 95, 86, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.terminal-controls .yellow {
    background: radial-gradient(circle at 30% 30%, #ffd54f, #ffbd2e);
    box-shadow: 
        0 0 10px rgba(255, 189, 46, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.terminal-controls .green {
    background: radial-gradient(circle at 30% 30%, #4caf50, #27ca3f);
    box-shadow: 
        0 0 10px rgba(39, 202, 63, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.terminal-body {
    padding: var(--space-lg);
    font-family: var(--font-mono);
    min-height: 200px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.prompt {
    color: var(--primary-cyan);
    font-weight: bold;
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.6),
        0 0 20px rgba(0, 212, 255, 0.3);
    position: relative;
}

.prompt::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    width: 4px;
    height: 4px;
    background: var(--primary-cyan);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
    animation: promptPulse 2s ease-in-out infinite;
}

.command {
    color: var(--text-primary);
    font-size: 16px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    position: relative;
}

.cursor {
    color: var(--primary-cyan);
    animation: enhancedBlink 1s infinite;
    font-weight: bold;
    text-shadow: 
        0 0 15px rgba(0, 212, 255, 0.8),
        0 0 30px rgba(0, 212, 255, 0.4);
    position: relative;
}

/* 增强的提示符脉冲 */
@keyframes promptPulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1.3);
    }
}

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

.terminal-output {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: var(--space-lg);
}

.chapter-hint {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-md) var(--space-lg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(0, 212, 255, 0.6);
    border-radius: 16px;
    margin: var(--space-md) auto 0;
    position: relative;
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 0 10px rgba(0, 212, 255, 0.1);
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: linear-gradient(to bottom, var(--primary-cyan), transparent);
    border-radius: 2px;
    animation: enhancedScrollBounce 2s infinite;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 20px;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(0, 212, 255, 0.2),
        transparent,
        rgba(255, 0, 110, 0.2),
        transparent
    );
    animation: rotate 4s linear infinite;
    z-index: -1;
}

@keyframes scroll-bounce {
    0%, 20% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
    80%, 100% { transform: translateX(-50%) translateY(0); }
}

/* 增强的滚动动画 */
@keyframes enhancedScrollBounce {
    0%, 20% { 
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateX(-50%) translateY(15px) scale(1.2);
        opacity: 0.8;
    }
    80%, 100% { 
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

/* 旋转动画 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 名字动画 */
@keyframes nameReveal {
    from {
        opacity: 0;
        transform: 
            perspective(1000px) 
            rotateX(15deg) 
            rotateY(-5deg) 
            translateY(50px) 
            translateZ(100px);
    }
    to {
        opacity: 1;
        transform: 
            perspective(1000px) 
            rotateX(5deg) 
            rotateY(-2deg) 
            translateY(0) 
            translateZ(100px);
    }
}

@keyframes nameFloat {
    0%, 100% {
        transform: 
            perspective(1000px) 
            rotateX(5deg) 
            rotateY(-2deg) 
            translateY(0) 
            translateZ(100px);
    }
    50% {
        transform: 
            perspective(1000px) 
            rotateX(7deg) 
            rotateY(-1deg) 
            translateY(-10px) 
            translateZ(120px);
    }
}

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

/* 标语动画 */
@keyframes taglineReveal {
    from {
        opacity: 0;
        transform: 
            perspective(800px) 
            rotateX(10deg) 
            translateY(30px) 
            translateZ(50px);
    }
    to {
        opacity: 1;
        transform: 
            perspective(800px) 
            rotateX(5deg) 
            translateY(0) 
            translateZ(50px);
    }
}

@keyframes taglineGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

/* 统计数据动画 */
@keyframes statGlow {
    0%, 100% {
        opacity: 0.2;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: rotate(180deg) scale(1.05);
    }
}

@keyframes numberGlow {
    0%, 100% {
        filter: brightness(1) saturate(1);
    }
    50% {
        filter: brightness(1.3) saturate(1.5);
    }
}

@keyframes numberPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes labelUnderline {
    0%, 100% {
        width: 60%;
        opacity: 0.5;
    }
    50% {
        width: 80%;
        opacity: 1;
    }
}

/* 技能宇宙动画 */
@keyframes nodeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes innerGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* 项目展示动画 */
@keyframes projectGlow {
    0%, 100% {
        opacity: 0.2;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: rotate(180deg) scale(1.02);
    }
}

/* 连接系统动画 */
@keyframes contactGlow {
    0%, 100% {
        opacity: 0.3;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: rotate(180deg) scale(1.05);
    }
}

@keyframes iconPulse {
    0%, 100% {
        filter: brightness(1) saturate(1);
        transform: translateZ(20px) scale(1);
    }
    50% {
        filter: brightness(1.3) saturate(1.5);
        transform: translateZ(25px) scale(1.05);
    }
}

@keyframes energyOrb {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
    }
}

@keyframes valueGlow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* 新的温和动画 */
@keyframes cardFloatGentle {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-3px) scale(1.005);
    }
    50% {
        transform: translateY(-5px) scale(1.01);
    }
    75% {
        transform: translateY(-3px) scale(1.005);
    }
}

@keyframes borderGlowGentle {
    0%, 100% {
        opacity: 0.1;
        background-position: 0% 50%;
    }
    25% {
        opacity: 0.3;
        background-position: 100% 50%;
    }
    50% {
        opacity: 0.5;
        background-position: 200% 50%;
    }
    75% {
        opacity: 0.3;
        background-position: 300% 50%;
    }
}

@keyframes iconBreath {
    0%, 100% {
        transform: translateZ(10px) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: translateZ(12px) scale(1.02);
        filter: brightness(1.1);
    }
}

@keyframes iconHalo {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* =====================================
   CHAPTER 1: IDENTITY REVEAL 身份揭示
   ===================================== */

#chapter-1 {
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 110, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.8) 0%, rgba(10, 25, 35, 0.9) 100%);
    position: relative;
    overflow: hidden;
    perspective: 1500px;
    transform-style: preserve-3d;
}

/* 3D空间粒子环境 */
#chapter-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            transparent 0deg,
            rgba(0, 212, 255, 0.03) 60deg,
            transparent 120deg,
            rgba(255, 0, 110, 0.03) 180deg,
            transparent 240deg,
            rgba(139, 92, 246, 0.03) 300deg,
            transparent 360deg
        );
    animation: dimensionalRotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes dimensionalRotate {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1); }
}

.identity-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.identity-content {
    position: relative;
    z-index: 2;
}

.name-reveal {
    margin-bottom: var(--space-4xl);
}

.main-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    background: 
        linear-gradient(
            45deg,
            #00d4ff 0%,
            #ff006e 25%,
            #8b5cf6 50%,
            #14b8a6 75%,
            #00d4ff 100%
        );
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: 
        perspective(1000px) 
        rotateX(15deg) 
        rotateY(-5deg) 
        translateY(50px) 
        translateZ(100px);
    
    /* 3D文字效果 */
    text-shadow: 
        0 1px 0 rgba(0, 212, 255, 0.5),
        0 2px 0 rgba(0, 212, 255, 0.4),
        0 3px 0 rgba(0, 212, 255, 0.3),
        0 4px 0 rgba(0, 212, 255, 0.2),
        0 5px 0 rgba(0, 212, 255, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.5),
        0 20px 40px rgba(0, 212, 255, 0.3);
    
    animation: 
        nameReveal 2s ease-out forwards,
        gradientShift 8s ease-in-out infinite,
        nameFloat 6s ease-in-out infinite;
    
    position: relative;
    z-index: 3;
    transform-style: preserve-3d;
}

.main-name:hover {
    transform: 
        perspective(1000px) 
        rotateX(10deg) 
        rotateY(-2deg) 
        translateY(0) 
        translateZ(150px) 
        scale(1.05);
    text-shadow: 
        0 2px 0 rgba(0, 212, 255, 0.6),
        0 4px 0 rgba(0, 212, 255, 0.5),
        0 6px 0 rgba(0, 212, 255, 0.4),
        0 8px 0 rgba(0, 212, 255, 0.3),
        0 10px 0 rgba(0, 212, 255, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.6),
        0 30px 60px rgba(0, 212, 255, 0.4);
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: 
        perspective(800px) 
        rotateX(10deg) 
        translateY(30px) 
        translateZ(50px);
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.2);
    animation: taglineReveal 2.5s ease-out 0.5s forwards;
    position: relative;
    z-index: 3;
}

.tagline::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 212, 255, 0.1),
        transparent,
        rgba(255, 0, 110, 0.1),
        transparent
    );
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    animation: taglineGlow 3s ease-in-out 1s infinite;
}

.identity-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-4xl);
    flex-wrap: wrap;
    perspective: 1200px;
    transform-style: preserve-3d;
    margin-top: var(--space-4xl);
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: 
        perspective(800px) 
        rotateX(20deg) 
        rotateY(-10deg) 
        translateY(40px) 
        translateZ(0);
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%),
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: var(--space-xl) var(--space-lg);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
    min-width: 150px;
}

.stat-item:hover {
    transform: 
        perspective(800px) 
        rotateX(15deg) 
        rotateY(-5deg) 
        translateY(0) 
        translateZ(30px) 
        scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 10px 25px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(
        from 0deg,
        rgba(0, 212, 255, 0.3),
        rgba(255, 0, 110, 0.3),
        rgba(139, 92, 246, 0.3),
        rgba(20, 184, 166, 0.3),
        rgba(0, 212, 255, 0.3)
    );
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    animation: statGlow 4s ease-in-out infinite;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(
        45deg,
        #00d4ff 0%,
        #ff006e 50%,
        #8b5cf6 100%
    );
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: var(--space-sm);
    text-shadow: 
        0 0 30px rgba(0, 212, 255, 0.5),
        0 0 60px rgba(0, 212, 255, 0.3);
    animation: 
        numberGlow 3s ease-in-out infinite,
        gradientShift 6s ease-in-out infinite;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(
        circle,
        rgba(0, 212, 255, 0.2) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    animation: numberPulse 2s ease-in-out infinite;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
}

.stat-label::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 255, 0.5),
        transparent
    );
    animation: labelUnderline 3s ease-in-out infinite;
}

/* =====================================
   CHAPTER 2: SKILLS UNIVERSE 技能宇宙
   ===================================== */

#chapter-2 {
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 0, 110, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(139, 92, 246, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 10% 90%, rgba(20, 184, 166, 0.1) 0%, transparent 60%),
        linear-gradient(135deg, rgba(5, 10, 20, 0.9) 0%, rgba(15, 5, 25, 0.95) 100%);
    flex-direction: column;
    padding-top: var(--space-4xl);
    min-height: 120vh;
    perspective: 2000px;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

/* 宇宙背景星场效果 */
#chapter-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 212, 255, 0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 0, 110, 0.4), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.6), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: starsFloat 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes starsFloat {
    from { transform: translateY(0px) rotate(0deg); }
    to { transform: translateY(-100px) rotate(360deg); }
}

.skills-container {
    width: 100%;
    max-width: 1400px;
    position: relative;
}

.chapter-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    text-align: center;
    background: var(--gradient-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-4xl);
}

.skills-universe {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: var(--space-4xl);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 30px;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 0, 110, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 212, 255, 0.3);
    animation: 
        skillsUniverseGlow 4s ease-in-out infinite,
        universePerspective 12s ease-in-out infinite;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    z-index: 2;
}

.skills-universe:hover {
    transform: 
        perspective(1500px) 
        rotateX(2deg) 
        rotateY(-1deg) 
        translateZ(20px);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.4),
        0 15px 40px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.6);
}

@keyframes universePerspective {
    0%, 100% {
        transform: 
            perspective(1500px) 
            rotateX(0deg) 
            rotateY(0deg) 
            translateZ(0);
    }
    33% {
        transform: 
            perspective(1500px) 
            rotateX(1deg) 
            rotateY(-0.5deg) 
            translateZ(10px);
    }
    66% {
        transform: 
            perspective(1500px) 
            rotateX(-1deg) 
            rotateY(0.5deg) 
            translateZ(5px);
    }
}

/* 技能节点基础样式 - 清理冲突的transform */
.skill-node {
    position: absolute;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
    z-index: 10; /* 确保技能节点在连线上方 */
    user-select: none; /* 防止拖拽时选中文本 */
    /* 移除冲突的默认样式，让data-level控制 */
}

/* 拖拽时的样式 */
.skill-node:active,
.skill-node.dragging {
    cursor: grabbing;
    z-index: 20; /* 拖拽时提升层级 */
    transition: none; /* 拖拽时禁用过渡动画 */
}

/* 核心技能 - 最大最亮 */
.skill-node[data-level="core"] {
    width: 160px;
    height: 160px;
    border: 3px solid rgba(255, 0, 110, 0.6);
    background: 
        linear-gradient(135deg, rgba(255, 0, 110, 0.15) 0%, rgba(255, 0, 110, 0.05) 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 0, 110, 0.2) 0%, transparent 70%);
    box-shadow: 
        0 15px 40px rgba(255, 0, 110, 0.3),
        0 0 50px rgba(255, 0, 110, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    /* 初始状态：隐藏，小尺寸 */
    opacity: 0;
    transform: translateX(-50%) translateY(-50%) scale(0.3) rotateZ(-20deg);
    /* 动画：延迟出现，带旋转 */
    animation: coreSkillAppear 1.2s ease-out 0.3s forwards;
}

/* 主要技能 - 中等大小 */
.skill-node[data-level="major"] {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%),
        radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    box-shadow: 
        0 10px 30px rgba(0, 212, 255, 0.2),
        0 0 40px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /* 初始状态：隐藏，小尺寸 */
    opacity: 0;
    transform: translateX(-50%) translateY(-50%) scale(0.2) rotateZ(15deg);
    /* 动画：错开出现 */
    animation: majorSkillAppear 1.0s ease-out forwards;
}

/* 辅助技能 - 较小 */
.skill-node[data-level="support"] {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(128, 255, 128, 0.4);
    background: 
        linear-gradient(135deg, rgba(128, 255, 128, 0.1) 0%, rgba(128, 255, 128, 0.02) 100%),
        radial-gradient(circle at 30% 30%, rgba(128, 255, 128, 0.1) 0%, transparent 70%);
    box-shadow: 
        0 8px 25px rgba(128, 255, 128, 0.15),
        0 0 35px rgba(128, 255, 128, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /* 初始状态：隐藏，小尺寸 */
    opacity: 0;
    transform: translateX(-50%) translateY(-50%) scale(0.1) rotateZ(-10deg);
    /* 动画：最后出现 */
    animation: supportSkillAppear 0.8s ease-out forwards;
}

/* 技能连线基础样式 */
.skill-connection {
    pointer-events: none;
    border-radius: 1px;
    z-index: 1; /* 确保在技能节点（z-index: 10）下方 */
    position: absolute;
}

/* 主要连线：核心技能向外辐射 */
.skill-connection-primary {
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.8) 0%,     /* 金色起点 */
        rgba(255, 140, 0, 0.6) 50%,    /* 橙金中间 */
        rgba(255, 0, 110, 0.4) 100%    /* 粉色终点 */
    );
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 140, 0, 0.2);
    filter: blur(0.3px);
    animation: primaryConnectionPulse 2.5s ease-in-out infinite;
}

/* 次要连线：支撑技能连回核心 */
.skill-connection-secondary {
    background: linear-gradient(90deg, 
        rgba(192, 192, 192, 0.6) 0%,   /* 银色起点 */
        rgba(128, 255, 255, 0.4) 50%,  /* 青色中间 */
        rgba(255, 215, 0, 0.3) 100%    /* 金色终点（连接核心） */
    );
    box-shadow: 
        0 0 8px rgba(192, 192, 192, 0.3),
        0 0 16px rgba(128, 255, 255, 0.2);
    filter: blur(0.4px);
    border-style: dashed;
    border-top: 1px dashed rgba(192, 192, 192, 0.5);
    background: none; /* 虚线效果 */
    animation: secondaryConnectionPulse 3.5s ease-in-out infinite;
}

/* 主要连线动画：金色能量流 */
@keyframes primaryConnectionPulse {
    0% {
        opacity: 0.6;
        box-shadow: 
            0 0 10px rgba(255, 215, 0, 0.3),
            0 0 20px rgba(255, 140, 0, 0.1);
        filter: blur(0.3px) brightness(1);
    }
    50% {
        opacity: 1;
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 140, 0, 0.3),
            0 0 60px rgba(255, 0, 110, 0.2);
        filter: blur(0.1px) brightness(1.2);
    }
    100% {
        opacity: 0.6;
        box-shadow: 
            0 0 10px rgba(255, 215, 0, 0.3),
            0 0 20px rgba(255, 140, 0, 0.1);
        filter: blur(0.3px) brightness(1);
    }
}

/* 次要连线动画：银色微光 */
@keyframes secondaryConnectionPulse {
    0% {
        opacity: 0.4;
        box-shadow: 
            0 0 6px rgba(192, 192, 192, 0.2),
            0 0 12px rgba(128, 255, 255, 0.1);
        filter: blur(0.4px);
    }
    33% {
        opacity: 0.7;
        box-shadow: 
            0 0 10px rgba(192, 192, 192, 0.4),
            0 0 20px rgba(128, 255, 255, 0.2);
        filter: blur(0.2px);
    }
    66% {
        opacity: 0.5;
        box-shadow: 
            0 0 8px rgba(128, 255, 255, 0.3),
            0 0 16px rgba(255, 215, 0, 0.1);
        filter: blur(0.3px);
    }
    100% {
        opacity: 0.4;
        box-shadow: 
            0 0 6px rgba(192, 192, 192, 0.2),
            0 0 12px rgba(128, 255, 255, 0.1);
        filter: blur(0.4px);
    }
}

/* 技能节点出现动画 */
@keyframes coreSkillAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50%) scale(0.3) rotateZ(-20deg);
    }
    60% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(-50%) scale(1.1) rotateZ(5deg);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(-50%) scale(1) rotateZ(0deg);
    }
}

@keyframes majorSkillAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50%) scale(0.2) rotateZ(15deg);
    }
    70% {
        opacity: 0.9;
        transform: translateX(-50%) translateY(-50%) scale(1.05) rotateZ(-3deg);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(-50%) scale(1) rotateZ(0deg);
    }
}

@keyframes supportSkillAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50%) scale(0.1) rotateZ(-10deg);
    }
    80% {
        opacity: 0.85;
        transform: translateX(-50%) translateY(-50%) scale(1.02) rotateZ(2deg);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(-50%) scale(1) rotateZ(0deg);
    }
}

/* 3D多面体边缘效果 */
.skill-node::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: conic-gradient(
        from 45deg,
        rgba(0, 212, 255, 0.3),
        rgba(255, 0, 110, 0.3),
        rgba(139, 92, 246, 0.3),
        rgba(20, 184, 166, 0.3),
        rgba(0, 212, 255, 0.3)
    );
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    animation: nodeRotate 6s linear infinite;
}

/* 内部光球 */
.skill-node::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40%;
    height: 40%;
    background: radial-gradient(
        circle,
        rgba(0, 212, 255, 0.3) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: innerGlow 3s ease-in-out infinite;
}

.skill-node:hover {
    transform: 
        perspective(1000px) 
        rotateX(5deg) 
        rotateY(5deg) 
        translateZ(30px) 
        scale(1.15);
    border-color: rgba(0, 212, 255, 0.8);
    background: 
        linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.05) 100%),
        radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 212, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 212, 255, 0.3),
        0 0 0 4px rgba(0, 212, 255, 0.15);
}

.skill-node:hover::before {
    opacity: 0.8;
    animation: nodeRotate 2s linear infinite;
}

.skill-node:hover::after {
    background: radial-gradient(
        circle,
        rgba(0, 212, 255, 0.6) 0%,
        transparent 70%
    );
    animation: innerGlow 1s ease-in-out infinite;
}

.skill-node.active {
    transform: 
        perspective(1000px) 
        rotateX(0deg) 
        rotateY(0deg) 
        translateZ(50px) 
        scale(1.25);
    border-color: rgba(255, 0, 110, 0.9);
    background: 
        linear-gradient(135deg, rgba(255, 0, 110, 0.25) 0%, rgba(255, 0, 110, 0.08) 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 0, 110, 0.2) 0%, transparent 70%);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 15px 40px rgba(255, 0, 110, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(255, 0, 110, 0.4),
        0 0 0 6px rgba(255, 0, 110, 0.2);
}

.skill-node.active::before {
    opacity: 1;
    animation: nodeRotate 1s linear infinite;
    background: conic-gradient(
        from 45deg,
        rgba(255, 0, 110, 0.5),
        rgba(139, 92, 246, 0.5),
        rgba(0, 212, 255, 0.5),
        rgba(20, 184, 166, 0.5),
        rgba(255, 0, 110, 0.5)
    );
}

.skill-node.active::after {
    background: radial-gradient(
        circle,
        rgba(255, 0, 110, 0.8) 0%,
        transparent 70%
    );
    animation: innerGlow 0.8s ease-in-out infinite;
}

.skill-icon {
    font-size: 36px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--text-primary);
}

/* 不同级别技能的图标大小 */
.skill-node[data-level="core"] .skill-icon {
    font-size: 48px;
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
}

.skill-node[data-level="major"] .skill-icon {
    font-size: 36px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.skill-node[data-level="support"] .skill-icon {
    font-size: 28px;
    text-shadow: 0 0 12px rgba(128, 255, 128, 0.4);
}

.skill-node:hover .skill-icon {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transform: rotate(10deg) scale(1.1);
}

.skill-node.active .skill-icon {
    color: var(--primary-magenta);
    text-shadow: 0 0 15px rgba(255, 0, 110, 0.6);
    transform: rotate(-5deg) scale(1.2);
    animation: colorShift 3s ease-in-out infinite;
}

.skill-label {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.skill-node:hover .skill-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.skill-node.active .skill-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    color: var(--primary-magenta);
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.3);
}

.skill-detail {
    background: var(--background-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: var(--space-2xl);
    min-height: 200px;
    backdrop-filter: blur(20px);
}

.skill-info h3 {
    font-size: 1.5rem;
    color: var(--primary-cyan);
    margin-bottom: var(--space-md);
}

.skill-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.skill-projects {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.skill-project-tag {
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-magenta);
}

/* =====================================
   CHAPTER 3: PROJECTS 作品展示
   ===================================== */

#chapter-3 {
    background: 
        radial-gradient(circle at 15% 25%, rgba(255, 190, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        conic-gradient(
            from 180deg at 50% 50%,
            rgba(20, 25, 35, 0.95) 0deg,
            rgba(25, 15, 40, 0.98) 120deg,
            rgba(15, 25, 35, 0.95) 240deg,
            rgba(20, 25, 35, 0.95) 360deg
        );
    flex-direction: column;
    min-height: 120vh;
    padding-top: var(--space-4xl);
    perspective: 2500px;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

/* 全息投影环境 */
#chapter-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 190, 11, 0.03) 25%,
            rgba(0, 212, 255, 0.03) 50%,
            rgba(255, 190, 11, 0.03) 75%,
            transparent 100%
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.01) 100px,
            rgba(255, 255, 255, 0.01) 102px
        );
    animation: hologramGrid 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes hologramGrid {
    0% { 
        transform: translateX(-100px) translateY(-100px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% { 
        transform: translateX(100px) translateY(100px) rotate(360deg);
        opacity: 0.3;
    }
}

.projects-container {
    width: 100%;
    max-width: 1400px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--space-4xl);
    margin-top: var(--space-4xl);
}

.project-card {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
        radial-gradient(circle at 20% 20%, rgba(255, 190, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    border: 1px solid rgba(255, 190, 11, 0.3);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(25px);
    transform: 
        perspective(1200px) 
        rotateX(5deg) 
        rotateY(-3deg) 
        translateZ(0);
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(255, 190, 11, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 190, 11, 0.2);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(
        from 45deg,
        rgba(255, 190, 11, 0.4),
        rgba(0, 212, 255, 0.4),
        rgba(139, 92, 246, 0.4),
        rgba(255, 0, 110, 0.4),
        rgba(255, 190, 11, 0.4)
    );
    border-radius: 27px;
    z-index: -1;
    opacity: 0;
    animation: projectGlow 8s ease-in-out infinite;
}

.project-card:hover {
    transform: 
        perspective(1200px) 
        rotateX(2deg) 
        rotateY(-1deg) 
        translateZ(40px) 
        scale(1.02);
    border-color: rgba(255, 190, 11, 0.6);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.4),
        0 15px 40px rgba(255, 190, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 190, 11, 0.3),
        0 0 0 4px rgba(255, 190, 11, 0.1);
}

.project-card:hover::before {
    opacity: 0.8;
    animation: projectGlow 2s ease-in-out infinite;
}

.project-preview {
    padding: var(--space-2xl) var(--space-2xl) 0;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.phone-mockup, .browser-mockup {
    position: relative;
    background: 
        linear-gradient(135deg, rgba(30, 35, 50, 0.95) 0%, rgba(20, 25, 40, 0.98) 100%);
    border-radius: 20px;
    padding: var(--space-md);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 8px 20px rgba(255, 190, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 190, 11, 0.2);
    border: 1px solid rgba(255, 190, 11, 0.3);
    transform: 
        perspective(800px) 
        rotateX(5deg) 
        rotateY(-2deg) 
        translateZ(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.phone-mockup {
    width: 250px;
    height: 400px;
}

.phone-mockup:hover {
    transform: 
        perspective(800px) 
        rotateX(2deg) 
        rotateY(-1deg) 
        translateZ(30px) 
        scale(1.05);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 12px 30px rgba(255, 190, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 190, 11, 0.3);
}

.browser-mockup {
    width: 100%;
    max-width: 400px;
    height: 250px;
    border-radius: 12px;
}

.browser-mockup:hover {
    transform: 
        perspective(800px) 
        rotateX(2deg) 
        rotateY(1deg) 
        translateZ(25px) 
        scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 10px 25px rgba(255, 190, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 190, 11, 0.3);
}

.phone-screen, .browser-content {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 248, 255, 0.98) 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    /* 移除可能导致模糊的backdrop-filter */
}

/* 移除可能影响清晰度的扫描线效果 */
.phone-screen::before, .browser-content::before {
    display: none;
}

@keyframes screenRefresh {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.browser-header {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: 
        linear-gradient(135deg, rgba(220, 225, 235, 0.95) 0%, rgba(200, 210, 225, 0.98) 100%);
    border-bottom: 1px solid rgba(180, 190, 210, 0.8);
    gap: var(--space-md);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.browser-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 190, 11, 0.05),
        transparent,
        rgba(0, 212, 255, 0.05)
    );
    pointer-events: none;
    animation: headerGlow 4s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.browser-controls {
    display: flex;
    gap: var(--space-xs);
}

.browser-controls .control {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.address-bar {
    flex: 1;
    background: var(--neutral-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    font-size: 10px;
    color: var(--neutral-gray-600);
}

.wechat-interface {
    background: #f7f7f7;
    height: 100%;
    padding: var(--space-md);
}

.wechat-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid #e0e0e0;
}

.avatar-mini {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.account-info h4 {
    font-size: 12px;
    color: #333;
    margin: 0;
}

.followers {
    font-size: 10px;
    color: #666;
}

.articles-feed {
    margin-top: var(--space-md);
    max-height: 200px;
    overflow-y: auto;
}

.article-item {
    background: white;
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.article-title {
    font-size: 10px;
    color: #333;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.article-excerpt {
    font-size: 8px;
    color: #666;
    line-height: 1.4;
}

/* 真实公众号截图样式 */
.wechat-real-screenshot {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.wechat-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: all 0.3s ease;
    cursor: pointer;
    
    /* 保持图片原始清晰度 */
    image-rendering: auto;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    
    /* 硬件加速，避免模糊 */
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.wechat-screenshot:hover {
    transform: scale(1.02);
}

/* 备用：真实公众号样式 */
.wechat-stats {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: var(--space-sm);
}

.original-count {
    font-size: 9px;
    color: #888;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xs);
}

.article-cover {
    width: 20px;
    height: 20px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    flex-shrink: 0;
    margin-left: var(--space-xs);
    background-color: #f0f0f0;
}

.article-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 7px;
    color: #999;
}

.article-engagement {
    display: flex;
    gap: 8px;
}

.article-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.article-item:hover {
    background-color: rgba(0, 212, 255, 0.05);
    transform: translateX(2px);
}

/* 网站预览样式 */
.website-preview-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.website-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.website-preview:hover {
    transform: scale(1.02);
}

.website-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.fallback-content h2 {
    font-size: 16px;
    margin-bottom: 8px;
    color: white;
}

.fallback-content p {
    font-size: 10px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.fallback-features {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.feature {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 7px;
    backdrop-filter: blur(5px);
}

.loading-indicator {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.loading-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingPulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.website-preview {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

.project-info {
    padding: var(--space-2xl);
    position: relative;
    z-index: 2;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(5px);
}

.project-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 190, 11, 0.5),
        transparent
    );
    animation: infoGlow 3s ease-in-out infinite;
}

.project-info h3 {
    font-size: 1.5rem;
    background: linear-gradient(
        45deg,
        rgba(255, 190, 11, 0.9) 0%,
        rgba(0, 212, 255, 0.8) 50%,
        rgba(255, 190, 11, 0.9) 100%
    );
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-md);
    animation: titleShimmer 4s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 190, 11, 0.3);
}

@keyframes infoGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

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

.project-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.project-tags {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.tag {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 190, 11, 0.1);
    border: 1px solid rgba(255, 190, 11, 0.3);
    border-radius: 12px;
    font-size: 12px;
    color: var(--primary-yellow);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--gradient-tertiary);
    color: var(--neutral-black);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--timing-base) var(--easing-standard);
}

.project-link:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-moderate);
}

.arrow {
    transition: transform var(--timing-base) var(--easing-standard);
}

.project-link:hover .arrow {
    transform: translateX(3px);
}

/* 网站预览模拟器 */
.website-mockup {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.url-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 10px;
    color: #00ffc8;
    font-family: 'Courier New', monospace;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.protocol {
    color: #888;
}

.domain {
    color: #00ffc8;
    font-weight: 500;
}

.lock {
    margin-left: auto;
}

.site-preview {
    flex: 1;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 100%);
    padding: 12px;
    overflow-y: auto;
    font-size: 8px;
}

.site-header {
    margin-bottom: 12px;
}

.site-nav {
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: #00ffc8;
    font-weight: bold;
    font-size: 9px;
}

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

.nav-links span {
    color: #888;
    font-size: 7px;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-links span:hover {
    color: #00ffc8;
    background: rgba(0, 255, 200, 0.1);
}

.site-hero {
    text-align: center;
    margin-bottom: 12px;
    padding: 12px;
    background: radial-gradient(circle at center, rgba(0, 255, 200, 0.1) 0%, transparent 70%);
    border-radius: 8px;
}

.hero-title {
    color: #00ffc8;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.5);
}

.hero-desc {
    color: #888;
    font-size: 8px;
    margin-bottom: 8px;
}

.feature-pills {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.pill {
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.2) 0%, rgba(0, 200, 255, 0.2) 100%);
    border: 1px solid rgba(0, 255, 200, 0.3);
    color: #00ffc8;
    font-size: 6px;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.site-demo {
    margin-bottom: 12px;
}

.demo-section {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 8px;
}

.demo-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 6px;
    overflow: hidden;
    min-height: 45px;
}

.demo-header {
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.2) 0%, rgba(0, 200, 255, 0.2) 100%);
    color: #00ffc8;
    font-size: 7px;
    font-weight: bold;
    padding: 4px 6px;
    text-align: center;
}

.demo-content {
    padding: 6px;
    height: calc(100% - 20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area {
    background: rgba(0, 255, 200, 0.05);
    border: 1px dashed rgba(0, 255, 200, 0.3);
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    color: #888;
    font-size: 6px;
    width: 100%;
}

.parsing-status {
    width: 100%;
}

.status-item {
    color: #888;
    font-size: 6px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.output-preview {
    width: 100%;
    display: flex;
    justify-content: center;
}

.mini-site {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 3px;
    width: 40px;
    height: 30px;
    padding: 2px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mini-header {
    background: rgba(0, 255, 200, 0.3);
    height: 4px;
    border-radius: 1px;
}

.mini-question {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.q-text {
    background: rgba(255, 255, 255, 0.1);
    height: 3px;
    border-radius: 1px;
}

.q-options {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.option {
    background: rgba(0, 255, 200, 0.2);
    height: 2px;
    border-radius: 1px;
}

.mini-footer {
    background: rgba(255, 255, 255, 0.1);
    height: 2px;
    border-radius: 1px;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffc8;
    font-size: 10px;
    font-weight: bold;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

.site-stats {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.stat-item {
    text-align: center;
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 6px;
    padding: 6px 8px;
    flex: 1;
}

.stat-value {
    color: #00ffc8;
    font-size: 9px;
    font-weight: bold;
    margin-bottom: 2px;
    text-shadow: 0 0 5px rgba(0, 255, 200, 0.5);
}

.stat-label {
    color: #888;
    font-size: 6px;
}

/* =====================================
   CHAPTER 4: CONNECTION 连接邀请
   ===================================== */

#chapter-4 {
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 0, 110, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(0, 212, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(10, 5, 25, 0.95) 0%, rgba(5, 15, 30, 0.98) 100%);
    position: relative;
    overflow: hidden;
    perspective: 2000px;
    transform-style: preserve-3d;
}

/* 能量网络背景 */
#chapter-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 0, 110, 0.4) 0%, transparent 2px),
        radial-gradient(circle at 75% 25%, rgba(0, 212, 255, 0.4) 0%, transparent 2px),
        radial-gradient(circle at 25% 75%, rgba(139, 92, 246, 0.4) 0%, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(20, 184, 166, 0.4) 0%, transparent 2px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6) 0%, transparent 1px);
    background-size: 200px 200px, 180px 180px, 220px 220px, 160px 160px, 100px 100px;
    animation: energyNetwork 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* 连接线网络 */
#chapter-4::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 49%, rgba(255, 0, 110, 0.1) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(0, 212, 255, 0.1) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(139, 92, 246, 0.05) 50%, transparent 51%),
        linear-gradient(90deg, transparent 49%, rgba(20, 184, 166, 0.05) 50%, transparent 51%);
    background-size: 300px 300px, 250px 250px, 400px 400px, 350px 350px;
    animation: connectionGrid 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes energyNetwork {
    0% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: translate(-50px, -50px) rotate(360deg);
        opacity: 0.6;
    }
}

@keyframes connectionGrid {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, -25px) scale(1.05); }
    100% { transform: translate(-50px, -50px) scale(1); }
}

.connection-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    text-align: center;
    z-index: 2;
}

.connection-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-lg);
}

.connection-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4xl);
    margin-bottom: var(--space-4xl);
    perspective: 1500px;
    transform-style: preserve-3d;
}

.contact-card {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 0, 110, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: 25px;
    padding: var(--space-2xl);
    text-align: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    backdrop-filter: blur(25px);
    transform: translateY(0) scale(1);
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 4px 15px rgba(255, 0, 110, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: cardFloatGentle 8s ease-in-out infinite;
}

/* 为每个卡片设置不同的动画延迟 */
.contact-card:nth-child(1) {
    animation-delay: 0s;
}
.contact-card:nth-child(2) {
    animation-delay: 2s;
}
.contact-card:nth-child(3) {
    animation-delay: 4s;
}
.contact-card:nth-child(4) {
    animation-delay: 6s;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(255, 0, 110, 0.2),
        rgba(139, 92, 246, 0.2),
        rgba(0, 212, 255, 0.2),
        rgba(20, 184, 166, 0.2)
    );
    background-size: 300% 300%;
    border-radius: 27px;
    z-index: -1;
    opacity: 0;
    animation: borderGlowGentle 12s ease-in-out infinite;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 0, 110, 0.5);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.25),
        0 8px 25px rgba(255, 0, 110, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(255, 0, 110, 0.2);
    animation-play-state: paused;
}

.contact-card:hover::before {
    opacity: 0.6;
    animation: borderGlowGentle 3s ease-in-out infinite;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
    background: linear-gradient(
        45deg,
        rgba(255, 0, 110, 0.9) 0%,
        rgba(0, 212, 255, 0.9) 50%,
        rgba(139, 92, 246, 0.9) 100%
    );
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: 
        iconBreath 4s ease-in-out infinite,
        gradientShift 8s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 130%;
    background: radial-gradient(
        circle,
        rgba(255, 0, 110, 0.15) 0%,
        rgba(0, 212, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    animation: iconHalo 6s ease-in-out infinite;
}

.contact-card:hover .contact-icon {
    transform: translateZ(15px) scale(1.05);
    text-shadow: 0 0 25px rgba(255, 0, 110, 0.6);
    animation: 
        iconBreath 2s ease-in-out infinite,
        gradientShift 4s ease-in-out infinite;
}

.contact-card:hover .contact-icon::before {
    animation: iconHalo 3s ease-in-out infinite;
}

.contact-card h3 {
    font-size: 1.2rem;
    background: linear-gradient(
        45deg,
        rgba(255, 0, 110, 0.9) 0%,
        rgba(139, 92, 246, 0.8) 50%,
        rgba(0, 212, 255, 0.9) 100%
    );
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-sm);
    animation: gradientShift 5s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(255, 0, 110, 0.3);
    transform: translateZ(10px);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transform: translateZ(5px);
}

.contact-value {
    font-family: var(--font-mono);
    background: 
        linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(255, 0, 110, 0.1) 100%);
    color: rgba(0, 212, 255, 0.9);
    padding: var(--space-sm) var(--space-md);
    border-radius: 12px;
    margin: var(--space-md) 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transform: translateZ(15px);
    position: relative;
}

.contact-value::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(
        45deg,
        rgba(0, 212, 255, 0.3),
        rgba(255, 0, 110, 0.3),
        rgba(139, 92, 246, 0.3),
        rgba(0, 212, 255, 0.3)
    );
    border-radius: 13px;
    z-index: -1;
    opacity: 0;
    animation: valueGlow 4s ease-in-out infinite;
}

.contact-card:hover .contact-value {
    transform: translateZ(25px) scale(1.02);
    color: rgba(0, 212, 255, 1);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
    border-color: rgba(0, 212, 255, 0.6);
}

.contact-card:hover .contact-value::before {
    opacity: 0.8;
    animation: valueGlow 2s ease-in-out infinite;
}

.contact-value.hidden {
    opacity: 0;
    transform: scale(0.8);
}

.contact-value a {
    color: inherit;
    text-decoration: none;
}

.reveal-btn {
    background: var(--gradient-primary);
    color: var(--neutral-black);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--timing-base) var(--easing-standard);
}

.reveal-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-moderate);
}

.reveal-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.qr-btn {
    background: var(--gradient-secondary);
    color: var(--neutral-black);
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--timing-base) var(--easing-standard);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.qr-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-moderate);
}

.qr-btn::before {
    content: '📱';
    font-size: 14px;
}

.connection-footer {
    margin-top: var(--space-4xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-subtle);
}

.connection-footer p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.restart-btn {
    background: transparent;
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
    padding: var(--space-md) var(--space-lg);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--timing-base) var(--easing-standard);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.restart-btn:hover {
    background: var(--primary-cyan);
    color: var(--neutral-black);
    transform: translateY(-2px);
}

.connection-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* =====================================
   AUDIO CONTROL 音效控制
   ===================================== */

.audio-control {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
}

.audio-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--background-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--timing-base) var(--easing-standard);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    transform: scale(1.1);
}

.audio-icon {
    font-size: 16px;
}

/* =====================================
   RESPONSIVE DESIGN 响应式设计
   ===================================== */

@media (max-width: 768px) {
    .progress-container {
        top: var(--space-md);
        left: var(--space-md);
        gap: var(--space-sm);
    }
    
    .progress-bar {
        width: 80px;
    }
    
    .chapter-nav {
        right: var(--space-md);
        gap: var(--space-md);
    }
    
    .chapter {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .terminal-container {
        margin: 0 var(--space-md);
    }
    
    .identity-stats {
        gap: var(--space-2xl);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .project-preview {
        height: 250px;
    }
    
    .phone-mockup {
        width: 150px;
        height: 260px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .audio-control {
        bottom: var(--space-md);
        right: var(--space-md);
    }
}

@media (max-width: 480px) {
    .nav-label {
        display: none;
    }
    
    .terminal-body {
        padding: var(--space-md);
    }
    
    .skills-universe {
        height: 400px;
    }
    
    .skill-detail {
        padding: var(--space-lg);
    }
    
    .project-info {
        padding: var(--space-lg);
    }
    
    .contact-card {
        padding: var(--space-lg);
    }
}

/* =====================================
   UTILITY CLASSES 工具类
   ===================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn var(--timing-slow) var(--easing-entrance) forwards;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp var(--timing-slow) var(--easing-entrance) forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft var(--timing-slow) var(--easing-entrance) forwards;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn var(--timing-slow) var(--easing-entrance) forwards;
}

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

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 技能节点渐进出现动画 */
@keyframes skillNodeFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    60% {
        opacity: 0.8;
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* 技能宇宙背景动画 */
@keyframes skillsUniverseGlow {
    0%, 100% {
        background: rgba(255, 255, 255, 0.02);
        border-color: var(--border-subtle);
    }
    50% {
        background: rgba(0, 212, 255, 0.05);
        border-color: rgba(0, 212, 255, 0.3);
    }
}

/* 颜色波动动画 */
@keyframes colorShift {
    0%, 100% {
        filter: hue-rotate(0deg) saturate(1);
    }
    25% {
        filter: hue-rotate(90deg) saturate(1.2);
    }
    50% {
        filter: hue-rotate(180deg) saturate(0.8);
    }
    75% {
        filter: hue-rotate(270deg) saturate(1.1);
    }
}

/* 全息扫描线动画 */
@keyframes hologramScanlines {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* 终端悬浮动画 */
@keyframes terminalFloat {
    0%, 100% {
        transform: 
            perspective(1200px) 
            rotateX(5deg) 
            rotateY(-2deg) 
            translateZ(50px) 
            translateY(0);
    }
    50% {
        transform: 
            perspective(1200px) 
            rotateX(7deg) 
            rotateY(-1deg) 
            translateZ(60px) 
            translateY(-10px);
    }
}

/* 终端打字粒子爆炸效果 */
@keyframes typeParticleExplosion {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.5) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* 字符闪烁效果增强 */
@keyframes enhancedBlink {
    0%, 50% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
    }
    51%, 100% {
        opacity: 0;
        text-shadow: none;
    }
}

/* 隐藏类 */
.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0.8) !important;
}

/* 无选择类 */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 指针事件类 */
.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

/* =====================================
   QRCODE MODAL 二维码弹窗
   ===================================== */

.qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qrcode-modal.show {
    opacity: 1;
    visibility: visible;
}

.qrcode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.qrcode-container {
    position: relative;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.98) 100%);
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.qrcode-modal.show .qrcode-container {
    transform: scale(1);
}

.qrcode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    background: 
        linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 0, 110, 0.02) 100%);
}

.qrcode-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qrcode-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.qrcode-close:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-cyan);
    transform: rotate(90deg);
}

.qrcode-content {
    padding: var(--space-xl);
    text-align: center;
}

.qrcode-image {
    margin-bottom: var(--space-lg);
    position: relative;
}

.qrcode-image img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 4px 15px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    transform: rotate(0deg) scale(1); /* 确保图片不旋转 */
}

.qrcode-image img:hover {
    transform: rotate(0deg) scale(1.05); /* 悬停时只缩放，不旋转 */
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 212, 255, 0.3);
}

.qrcode-fallback {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.fallback-qr {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 0, 110, 0.05) 100%);
    border: 3px dashed rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.qr-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.qr-placeholder p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.qrcode-info h4 {
    margin: 0 0 var(--space-sm) 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-gray-800);
}

.qrcode-info p {
    margin: 0 0 var(--space-lg) 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.qrcode-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.qrcode-stats span {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-cyan);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.qrcode-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: rgba(255, 190, 11, 0.1);
    color: var(--primary-yellow);
    padding: var(--space-md);
    border-radius: 12px;
    border: 1px solid rgba(255, 190, 11, 0.2);
    font-size: 14px;
    font-weight: 500;
}

.tip-icon {
    font-size: 18px;
}

/* 响应式适配 */
@media (max-width: 480px) {
    .qrcode-container {
        margin: var(--space-md);
        width: calc(100% - 2 * var(--space-md));
    }
    
    .qrcode-header {
        padding: var(--space-md) var(--space-lg);
    }
    
    .qrcode-content {
        padding: var(--space-lg);
    }
    
    .qrcode-image img,
    .qrcode-fallback {
        width: 160px;
        height: 160px;
    }
    
    .qrcode-image img {
        margin: 0 auto;
        display: block;
        transform: rotate(0deg) scale(1); /* 移动端也确保不旋转 */
    }
    
    .qrcode-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* 增强鼠标交互提示 */
button, .nav-dot, .contact-card, .project-card, .skill-node {
    cursor: pointer !important;
}

button:hover, .nav-dot:hover, .contact-card:hover, .project-card:hover {
    cursor: pointer !important;
}

/* 为终端添加文本选择功能 */
.terminal-body, .terminal-output {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    cursor: text;
}

/* 链接样式 */
a {
    cursor: pointer !important;
}

a:hover {
    cursor: pointer !important;
}