/* ===== 加载界面 ===== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
}

.loader-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 背景网格 */
.loader-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    perspective: 500px;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* 旋转圆环 */
.loader-rings {
    position: absolute;
    width: 300px;
    height: 300px;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    width: 300px;
    height: 300px;
    border-top-color: #00f0ff;
    border-right-color: #00f0ff;
    animation: spin 3s linear infinite;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.ring-2 {
    width: 250px;
    height: 250px;
    border-bottom-color: #ff00ff;
    border-left-color: #ff00ff;
    animation: spin 2.5s linear infinite reverse;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3), inset 0 0 20px rgba(255, 0, 255, 0.1);
}

.ring-3 {
    width: 200px;
    height: 200px;
    border-top-color: #00ff88;
    border-left-color: #00ff88;
    animation: spin 2s linear infinite;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), inset 0 0 20px rgba(0, 255, 136, 0.1);
}

.ring-4 {
    width: 150px;
    height: 150px;
    border: 2px dashed rgba(0, 240, 255, 0.3);
    animation: spin 4s linear infinite reverse;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 中心核心 */
.loader-core {
    position: absolute;
    width: 80px;
    height: 80px;
}

.core-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00f0ff, #ff00ff);
    border-radius: 50%;
    animation: corePulse 2s ease-in-out infinite;
    box-shadow: 
        0 0 30px rgba(0, 240, 255, 0.8),
        0 0 60px rgba(0, 240, 255, 0.4),
        0 0 100px rgba(255, 0, 255, 0.3);
}

.core-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #00f0ff;
    animation: pulseExpand 2s ease-out infinite;
}

@keyframes corePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pulseExpand {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Logo 动画 */
.loader-logo {
    position: absolute;
    top: calc(50% + 200px);
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    display: flex;
    gap: 0.5rem;
}

.logo-char {
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
    animation: charFloat 0.6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes charFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 进度条 */
.loader-progress {
    position: absolute;
    bottom: 150px;
    width: 400px;
}

.progress-bar {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f0ff, #ff00ff, #00ff88);
    background-size: 200% 100%;
    animation: gradientShift 2s linear infinite;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.progress-glow {
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    bottom: -10px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.5), transparent);
    animation: glowMove 2s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes glowMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.progress-label {
    color: rgba(255, 255, 255, 0.6);
    animation: textFlicker 3s linear infinite;
}

.progress-percent {
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.3; }
    94% { opacity: 1; }
    95% { opacity: 0.5; }
    96% { opacity: 1; }
}

/* 状态信息 */
.loader-status {
    position: absolute;
    bottom: 80px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #00ff88;
    text-align: center;
    min-height: 24px;
}

.status-line {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.status-line.active {
    opacity: 1;
    transform: translateY(0);
}

/* 装饰线条 */
.loader-decor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decor-line {
    position: absolute;
    background: linear-gradient(90deg, #00f0ff, transparent);
    height: 1px;
    animation: decorExpand 1s ease-out forwards;
}

.decor-top-left {
    top: 50px;
    left: 50px;
    width: 0;
    animation-delay: 0.2s;
}

.decor-top-right {
    top: 50px;
    right: 50px;
    width: 0;
    background: linear-gradient(270deg, #ff00ff, transparent);
    animation-delay: 0.4s;
}

.decor-bottom-left {
    bottom: 50px;
    left: 50px;
    width: 0;
    background: linear-gradient(90deg, #00ff88, transparent);
    animation-delay: 0.6s;
}

.decor-bottom-right {
    bottom: 50px;
    right: 50px;
    width: 0;
    background: linear-gradient(270deg, #00f0ff, transparent);
    animation-delay: 0.8s;
}

@keyframes decorExpand {
    0% { width: 0; }
    100% { width: 150px; }
}

/* 浮动粒子 */
.loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 4px;
    height: 4px;
    background: #00f0ff;
    border-radius: 50%;
    animation: particleFloat var(--d) ease-in-out infinite;
    box-shadow: 0 0 10px #00f0ff;
}

.particle:nth-child(even) {
    background: #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 1;
    }
}

/* 数据流 */
.data-stream {
    position: absolute;
    width: 1px;
    height: 100%;
    overflow: hidden;
}

.data-stream-left {
    left: 100px;
}

.data-stream-right {
    right: 100px;
}

.data-stream::before {
    content: '01001010110100101010110010101001101010010101';
    position: absolute;
    top: 0;
    left: 0;
    font-family: monospace;
    font-size: 10px;
    color: rgba(0, 240, 255, 0.3);
    writing-mode: vertical-rl;
    white-space: nowrap;
    animation: dataFlow 10s linear infinite;
}

.data-stream-right::before {
    animation-delay: -5s;
    color: rgba(255, 0, 255, 0.3);
}

@keyframes dataFlow {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* 跳过按钮 */
.skip-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skip-btn:hover {
    border-color: #00f0ff;
    color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.skip-key {
    opacity: 0.5;
    font-size: 0.625rem;
}

/* 加载完成动画 */
.loader-overlay.complete .loader-rings {
    animation: ringsComplete 0.8s ease forwards;
}

.loader-overlay.complete .loader-core {
    animation: coreComplete 0.8s ease forwards;
}

@keyframes ringsComplete {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes coreComplete {
    0% { transform: scale(1); }
    50% { transform: scale(3); }
    100% { transform: scale(50); opacity: 0; }
}

/* ===== 基础设置 ===== */
:root {
    --primary: #00f0ff;
    --primary-dark: #00a8b3;
    --secondary: #ff00ff;
    --accent: #f0ff00;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #0d0d15;
    --text-primary: #ffffff;
    --text-secondary: #8888aa;
    --border-color: #1a1a2e;
    --glow-primary: 0 0 20px rgba(0, 240, 255, 0.5);
    --glow-secondary: 0 0 20px rgba(255, 0, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== 粒子背景 ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== 扫描线效果 ===== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-bracket {
    color: var(--primary);
    text-shadow: var(--glow-primary);
}

.logo-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: var(--glow-primary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: var(--glow-primary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ===== 主横幅 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 2rem;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    color: var(--text-primary);
    position: relative;
    text-shadow: var(--glow-primary);
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--primary);
    animation: glitch-effect 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-3px, 0);
}

.glitch::after {
    color: var(--secondary);
    animation: glitch-effect 2s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(3px, 0);
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(-1deg); }
    20% { transform: skew(0deg); }
    30% { transform: skew(1deg); }
    40% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-weight: 300;
    letter-spacing: 4px;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    text-shadow: var(--glow-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-button {
    display: inline-block;
    margin-top: 3rem;
    padding: 1rem 3rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: var(--glow-primary);
}

.cta-button:hover::before {
    left: 100%;
}

.hero-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    pointer-events: none;
    z-index: 1;
}

.hex-grid {
    position: relative;
    width: 100%;
    height: 100%;
    animation: rotate 60s linear infinite;
}

.hex {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex:nth-child(1) { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1); }
.hex:nth-child(2) { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.5); }
.hex:nth-child(3) { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(2); }
.hex:nth-child(4) { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(2.5); }
.hex:nth-child(5) { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(3); }
.hex:nth-child(6) { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(3.5); }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== 文章区域 ===== */
.posts-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    white-space: nowrap;
}

.title-prefix,
.title-suffix {
    color: var(--primary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== 文章卡片 ===== */
.post-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.post-card:hover .card-glow {
    opacity: 1;
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.post-card:hover .card-border {
    border-color: var(--primary);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.post-card.featured .card-border {
    border-color: var(--secondary);
}

.post-card.featured:hover .card-border {
    border-color: var(--secondary);
    box-shadow: inset 0 0 20px rgba(255, 0, 255, 0.1);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    color: var(--bg-dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-category {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-shadow: var(--glow-primary);
}

.post-card[data-category="ai"] .card-category { color: var(--secondary); text-shadow: var(--glow-secondary); }
.post-card[data-category="space"] .card-category { color: #00ff88; text-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }
.post-card[data-category="cyber"] .card-category { color: var(--accent); text-shadow: 0 0 20px rgba(240, 255, 0, 0.5); }
.post-card[data-category="bio"] .card-category { color: #ff6b6b; text-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }

.card-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.card-image {
    position: relative;
    height: 180px;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 2px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.03) 2px,
        rgba(0, 240, 255, 0.03) 4px
    );
    animation: hologram 2s linear infinite;
}

@keyframes hologram {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

.image-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    text-shadow: var(--glow-primary);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-card:hover .card-title {
    color: var(--primary);
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.read-more {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.read-more:hover {
    text-shadow: var(--glow-primary);
}

/* ===== 加载更多 ===== */
.load-more {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.load-more-btn {
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.load-more-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--glow-primary);
}

.btn-loading {
    display: none;
    gap: 0.25rem;
}

.loading-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: loading 1s ease-in-out infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== 订阅区域 ===== */
.subscribe-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
}

.subscribe-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.subscribe-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.subscribe-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.subscribe-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.bracket {
    color: var(--primary);
    text-shadow: var(--glow-primary);
}

.subscribe-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.email-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: var(--text-secondary);
}

.email-input:focus {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.subscribe-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary);
    border: none;
    color: var(--bg-dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    background: var(--text-primary);
    box-shadow: var(--glow-primary);
}

.btn-arrow {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* ===== 页脚 ===== */
.footer {
    padding: 3rem 2rem 2rem;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--glow-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.system-id {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary) !important;
    opacity: 0.5;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-status {
        display: none;
    }
    
    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .subscribe-container {
        padding: 2rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .input-wrapper {
        max-width: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== 选中文本样式 ===== */
::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

/* ===== 音频控制 ===== */
.audio-control {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.audio-btn:hover,
.audio-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--glow-primary);
}

.audio-btn.active .audio-icon {
    animation: pulse 1s ease-in-out infinite;
}

#audioVisualizer {
    width: 100px;
    height: 40px;
    opacity: 0.8;
}

/* ===== 终端控制台 ===== */
.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terminal-overlay.active {
    display: flex;
    opacity: 1;
}

.terminal-window {
    width: 90%;
    max-width: 800px;
    height: 500px;
    background: var(--bg-darker);
    border: 1px solid var(--primary);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.3);
    display: flex;
    flex-direction: column;
    animation: terminalOpen 0.3s ease;
}

@keyframes terminalOpen {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: var(--bg-dark);
}

.terminal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
}

.terminal-close {
    background: none;
    border: none;
    color: var(--bg-dark);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.terminal-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.terminal-output {
    color: var(--primary);
}

.terminal-line {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.terminal-line.error {
    color: #ff6b6b;
}

.terminal-line.success {
    color: #00ff88;
}

.terminal-line.warning {
    color: var(--accent);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.terminal-prompt {
    color: #00ff88;
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
    outline: none;
    caret-color: var(--primary);
}

/* ===== 黑客模式 ===== */
.matrix-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.matrix-overlay.active {
    opacity: 1;
}

#matrixCanvas {
    width: 100%;
    height: 100%;
}

/* ===== 彩蛋覆盖层 ===== */
.easter-egg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 300;
    display: none;
    justify-content: center;
    align-items: center;
}

.easter-egg-overlay.active {
    display: flex;
}

.easter-egg-content {
    text-align: center;
    animation: easterEggPop 0.5s ease;
}

@keyframes easterEggPop {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.ee-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(240, 255, 0, 0.8);
    margin-bottom: 1rem;
    animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
    0% { color: #ff0000; text-shadow: 0 0 30px #ff0000; }
    17% { color: #ff8800; text-shadow: 0 0 30px #ff8800; }
    33% { color: #ffff00; text-shadow: 0 0 30px #ffff00; }
    50% { color: #00ff00; text-shadow: 0 0 30px #00ff00; }
    67% { color: #00ffff; text-shadow: 0 0 30px #00ffff; }
    83% { color: #ff00ff; text-shadow: 0 0 30px #ff00ff; }
    100% { color: #ff0000; text-shadow: 0 0 30px #ff0000; }
}

.ee-text {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ee-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    letter-spacing: 8px;
    margin-bottom: 2rem;
}

.ee-close {
    padding: 1rem 3rem;
    background: var(--accent);
    border: none;
    color: var(--bg-dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ee-close:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(240, 255, 0, 0.5);
}

/* ===== 赛博时钟 ===== */
.cyber-clock {
    position: fixed;
    top: 5rem;
    right: 2rem;
    z-index: 90;
    text-align: right;
    font-family: 'Orbitron', sans-serif;
}

.clock-time {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: var(--glow-primary);
    letter-spacing: 2px;
}

.clock-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* ===== 鼠标光标效果 ===== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 5;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    pointer-events: none;
    z-index: 1001;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
    opacity: 0.6;
}

.cursor-trail.clicking {
    width: 40px;
    height: 40px;
    opacity: 1;
    border-color: var(--secondary);
}

/* ===== 快捷键提示 ===== */
.shortcuts-hint {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.shortcuts-hint.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hint-content {
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.hint-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hint-content ul {
    list-style: none;
    margin-bottom: 1rem;
}

.hint-content li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hint-content kbd {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    min-width: 28px;
    text-align: center;
}

.hint-secret {
    font-size: 0.75rem;
    color: var(--secondary);
    font-style: italic;
}

/* ===== 亮色主题 ===== */
body.light-theme {
    --bg-dark: #f0f0f5;
    --bg-darker: #e0e0e8;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #666688;
    --border-color: #ccccdd;
}

body.light-theme .scanlines {
    opacity: 0.02;
}

body.light-theme #particles {
    opacity: 0.3;
}

/* ===== 慢动作模式 ===== */
body.slow-motion * {
    animation-duration: 10s !important;
    transition-duration: 1s !important;
}

/* ===== 抖动效果 ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* ===== Hello World 彩蛋 ===== */
.hello-world-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 50000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.hello-world-overlay.active {
    display: flex;
}

#helloWorldCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hello-world-text {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0);
}

.hello-world-text.show {
    animation: helloWorldAppear 2s ease-out forwards;
}

@keyframes helloWorldAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(10deg);
    }
    70% {
        transform: scale(0.9) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.hw-char {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 
        0 0 20px #00f0ff,
        0 0 40px #00f0ff,
        0 0 60px #00f0ff,
        0 0 80px #ff00ff,
        0 0 100px #ff00ff;
    animation: charGlow 2s ease-in-out infinite;
    display: inline-block;
}

.hw-char:nth-child(odd) {
    animation-delay: 0.1s;
}

.hw-char:nth-child(even) {
    animation-delay: 0.2s;
    color: #00f0ff;
}

.hw-char:nth-child(7),
.hw-char:nth-child(8),
.hw-char:nth-child(9),
.hw-char:nth-child(10),
.hw-char:nth-child(11) {
    color: #ff00ff;
    text-shadow: 
        0 0 20px #ff00ff,
        0 0 40px #ff00ff,
        0 0 60px #ff00ff,
        0 0 80px #00f0ff,
        0 0 100px #00f0ff;
}

.hw-space {
    width: 2rem;
}

@keyframes charGlow {
    0%, 100% { 
        filter: brightness(1);
        transform: translateY(0);
    }
    50% { 
        filter: brightness(1.3);
        transform: translateY(-10px);
    }
}

.hw-subtitle {
    position: relative;
    z-index: 10;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 8px;
    margin-top: 2rem;
    opacity: 0;
    text-transform: uppercase;
}

.hw-subtitle.show {
    animation: subtitleAppear 1s ease-out 1.5s forwards;
}

@keyframes subtitleAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.7;
        transform: translateY(0);
    }
}

.hw-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.hw-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: hwParticleFloat 3s ease-in-out infinite;
}

@keyframes hwParticleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50px) scale(1.5);
        opacity: 1;
    }
}

/* 网页崩塌效果 */
.page-collapse {
    animation: pageCollapse 2s ease-in forwards;
}

@keyframes pageCollapse {
    0% {
        transform: perspective(1000px) rotateX(0) scale(1);
        filter: none;
        opacity: 1;
    }
    30% {
        transform: perspective(1000px) rotateX(20deg) scale(0.95);
        filter: blur(2px) brightness(1.5);
    }
    50% {
        transform: perspective(1000px) rotateX(-10deg) scale(0.9) translateY(50px);
        filter: blur(5px) brightness(0.5) saturate(2);
    }
    70% {
        transform: perspective(1000px) rotateX(40deg) scale(0.7) translateY(200px);
        filter: blur(10px) brightness(0.3) hue-rotate(180deg);
        opacity: 0.5;
    }
    100% {
        transform: perspective(1000px) rotateX(90deg) scale(0) translateY(500px);
        filter: blur(20px) brightness(0);
        opacity: 0;
    }
}

/* 特殊光标样式 */
body.hello-world-cursor {
    cursor: none !important;
}

body.hello-world-cursor * {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 100000;
    mix-blend-mode: difference;
}

.cursor-core {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00f0ff, #ff00ff);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 20px #00f0ff,
        0 0 40px #ff00ff;
}

.cursor-ring {
    width: 50px;
    height: 50px;
    border: 2px solid #00f0ff;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    animation: cursorRingPulse 2s ease-in-out infinite;
}

.cursor-ring-2 {
    width: 35px;
    height: 35px;
    border-color: #ff00ff;
    animation-delay: 0.5s;
    animation-direction: reverse;
}

@keyframes cursorRingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.5; }
}

.cursor-trail {
    width: 8px;
    height: 8px;
    background: #00f0ff;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    transition: all 0.1s ease;
}

/* ===== 赛博贪吃蛇游戏 ===== */
.snake-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 16000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.snake-overlay.active {
    display: flex;
    opacity: 1;
}

.snake-container {
    position: relative;
    background: linear-gradient(135deg, #0a0a15 0%, #1a0a20 100%);
    border: 2px solid #00f0ff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 
        0 0 50px rgba(0, 240, 255, 0.3),
        inset 0 0 50px rgba(0, 240, 255, 0.05);
}

.snake-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
}

.snake-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #00f0ff;
    text-shadow: 
        0 0 10px #00f0ff,
        0 0 20px #00f0ff;
    letter-spacing: 4px;
    margin: 0;
}

.snake-close {
    width: 35px;
    height: 35px;
    background: transparent;
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.snake-close:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.snake-game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.snake-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

#snakeCanvas {
    border: 2px solid #00f0ff;
    border-radius: 5px;
    box-shadow: 
        0 0 30px rgba(0, 240, 255, 0.3),
        inset 0 0 30px rgba(0, 240, 255, 0.1);
    background: #050510;
}

.snake-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (max-width: 600px) {
    .snake-controls {
        display: flex;
    }
}

.control-row {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid #00f0ff;
    color: #00f0ff;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.control-btn:active {
    background: rgba(0, 240, 255, 0.3);
    transform: scale(0.95);
}

.snake-info {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 240, 255, 0.3);
}

.snake-info p {
    margin: 0.3rem 0;
    font-size: 0.8rem;
    color: #888;
}

.snake-info .key {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    background: rgba(0, 240, 255, 0.2);
    border: 1px solid #00f0ff;
    border-radius: 3px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: #00f0ff;
}

/* 游戏状态覆盖层 */
.snake-state-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    z-index: 10;
}

.snake-state-overlay.hidden {
    display: none;
}

.state-content {
    text-align: center;
}

.state-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #00f0ff;
    text-shadow: 0 0 20px #00f0ff;
    margin-bottom: 1rem;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 20px #00f0ff; }
    50% { text-shadow: 0 0 40px #00f0ff, 0 0 60px #ff00ff; }
}

.state-content p {
    color: #fff;
    font-size: 1rem;
}

.state-content .final-score {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #ff00ff;
    text-shadow: 0 0 30px #ff00ff;
    margin: 1rem 0;
}

.state-content .new-record {
    color: #f0ff00;
    font-size: 0.9rem;
    animation: recordBlink 0.5s infinite;
}

@keyframes recordBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== AI 引导师 ===== */
.guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 15000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.guide-overlay.active {
    display: flex;
    opacity: 1;
}

.guide-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    padding: 2rem;
    position: relative;
}

/* AI 头像 */
.guide-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.avatar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px solid #00f0ff;
    border-radius: 50%;
    animation: avatarRingSpin 8s linear infinite;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.avatar-ring::before,
.avatar-ring::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f0ff;
}

.avatar-ring::before {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.avatar-ring::after {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.avatar-ring-2 {
    width: 120px;
    height: 120px;
    border-color: #ff00ff;
    animation: avatarRingSpin 6s linear infinite reverse;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.avatar-ring-2::before,
.avatar-ring-2::after {
    background: #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
}

@keyframes avatarRingSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.avatar-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 100%);
    border-radius: 50%;
    border: 2px solid #00f0ff;
    box-shadow: 
        0 0 30px rgba(0, 240, 255, 0.5),
        inset 0 0 30px rgba(0, 240, 255, 0.2);
    overflow: hidden;
}

.avatar-face {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.eye {
    width: 12px;
    height: 12px;
    background: #00f0ff;
    border-radius: 50%;
    position: absolute;
    top: 28px;
    box-shadow: 0 0 15px #00f0ff;
    animation: eyeBlink 4s ease-in-out infinite;
}

.left-eye { left: 18px; }
.right-eye { right: 18px; }

@keyframes eyeBlink {
    0%, 45%, 55%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

.mouth {
    position: absolute;
    bottom: 20px;
    width: 30px;
    height: 8px;
    border: 2px solid #00f0ff;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* 说话时的表情 */
.avatar-face.talking .mouth {
    animation: mouthTalk 0.3s ease-in-out infinite;
}

@keyframes mouthTalk {
    0%, 100% { height: 8px; border-radius: 0 0 15px 15px; }
    50% { height: 15px; border-radius: 50%; }
}

/* 开心表情 */
.avatar-face.happy .eye {
    height: 6px;
    border-radius: 6px 6px 0 0;
}

.avatar-face.happy .mouth {
    height: 15px;
    border-radius: 0 0 20px 20px;
}

/* 思考表情 */
.avatar-face.thinking .eye {
    animation: eyeThink 2s ease-in-out infinite;
}

@keyframes eyeThink {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

.avatar-face.thinking .mouth {
    width: 15px;
    height: 15px;
    border: 2px solid #00f0ff;
    border-radius: 50%;
    bottom: 18px;
}

/* 头像粒子 */
.avatar-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00f0ff;
    border-radius: 50%;
    animation: avatarParticle 3s ease-in-out infinite;
}

.avatar-particles span:nth-child(1) { top: 0; left: 50%; animation-delay: 0s; }
.avatar-particles span:nth-child(2) { top: 20%; right: 0; animation-delay: 0.4s; }
.avatar-particles span:nth-child(3) { bottom: 20%; right: 0; animation-delay: 0.8s; }
.avatar-particles span:nth-child(4) { bottom: 0; left: 50%; animation-delay: 1.2s; }
.avatar-particles span:nth-child(5) { bottom: 20%; left: 0; animation-delay: 1.6s; }
.avatar-particles span:nth-child(6) { top: 20%; left: 0; animation-delay: 2s; }
.avatar-particles span:nth-child(7) { top: 35%; right: 10%; animation-delay: 2.4s; background: #ff00ff; }
.avatar-particles span:nth-child(8) { bottom: 35%; left: 10%; animation-delay: 2.8s; background: #ff00ff; }

@keyframes avatarParticle {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* 对话框 */
.guide-dialog {
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid #00f0ff;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 500px;
    position: relative;
    box-shadow: 
        0 0 30px rgba(0, 240, 255, 0.2),
        inset 0 0 30px rgba(0, 240, 255, 0.05);
}

.guide-dialog::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-right-color: #00f0ff;
}

.guide-dialog::after {
    content: '';
    position: absolute;
    left: -17px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-right-color: rgba(10, 10, 20, 0.95);
}

.dialog-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
}

.guide-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.guide-title {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 1px;
}

.dialog-content {
    min-height: 80px;
    margin-bottom: 1rem;
}

.guide-text {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.guide-text .highlight {
    color: #00f0ff;
    font-weight: 600;
}

.guide-text .key {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background: rgba(0, 240, 255, 0.2);
    border: 1px solid #00f0ff;
    border-radius: 3px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: #00f0ff;
    margin: 0 0.2rem;
}

/* 选项按钮 */
.dialog-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.guide-option {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #00f0ff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.guide-option:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

.guide-option.primary {
    background: rgba(0, 240, 255, 0.2);
    border-color: #00f0ff;
}

.guide-option.secondary {
    border-color: rgba(255, 0, 255, 0.5);
    color: #ff00ff;
}

.guide-option.secondary:hover {
    background: rgba(255, 0, 255, 0.2);
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

/* 关闭按钮 */
.guide-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-close:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

/* 进度指示 */
.guide-progress {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.progress-dots {
    display: flex;
    gap: 0.5rem;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #00f0ff;
    border-color: #00f0ff;
    box-shadow: 0 0 10px #00f0ff;
}

.progress-dot.completed {
    background: #00ff88;
    border-color: #00ff88;
}

/* 高亮遮罩 */
.guide-highlight {
    position: fixed;
    pointer-events: none;
    border: 2px solid #00f0ff;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    z-index: 14999;
    display: none;
    animation: highlightPulse 2s ease-in-out infinite;
}

.guide-highlight.active {
    display: block;
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.5); }
    50% { box-shadow: 0 0 50px rgba(0, 240, 255, 0.8); }
}

/* 打字光标 */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #00f0ff;
    margin-left: 2px;
    animation: typingCursorBlink 0.8s infinite;
}

@keyframes typingCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== 黑客入侵效果 ===== */
.hacked-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hacked-overlay.active {
    display: flex;
}

.hacked-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 0, 0, 0.03) 2px,
        rgba(255, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    animation: hackedScanlines 0.1s linear infinite;
}

@keyframes hackedScanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.hacked-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: hackedGlitch 0.3s infinite;
    pointer-events: none;
}

@keyframes hackedGlitch {
    0% { 
        box-shadow: inset 0 0 100px rgba(255, 0, 0, 0.3);
        transform: translate(0);
    }
    20% { 
        box-shadow: inset -5px 0 100px rgba(0, 255, 0, 0.2);
        transform: translate(-2px, 1px);
    }
    40% { 
        box-shadow: inset 5px 0 100px rgba(255, 0, 0, 0.3);
        transform: translate(2px, -1px);
    }
    60% { 
        box-shadow: inset 0 5px 100px rgba(0, 0, 255, 0.2);
        transform: translate(-1px, 2px);
    }
    80% { 
        box-shadow: inset 0 -5px 100px rgba(255, 0, 0, 0.3);
        transform: translate(1px, -2px);
    }
    100% { 
        box-shadow: inset 0 0 100px rgba(255, 0, 0, 0.3);
        transform: translate(0);
    }
}

.hacked-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.skull-ascii {
    font-family: monospace;
    font-size: 10px;
    line-height: 1.1;
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
    white-space: pre;
    margin-bottom: 2rem;
    animation: skullPulse 0.5s ease-in-out infinite;
}

@keyframes skullPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.hacked-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #ff0000;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        0 0 80px #ff0000;
    animation: hackedTitleGlitch 0.1s infinite;
    margin-bottom: 2rem;
    letter-spacing: 8px;
}

@keyframes hackedTitleGlitch {
    0% { transform: translate(0); }
    25% { transform: translate(-3px, 2px) skew(-1deg); }
    50% { transform: translate(3px, -2px) skew(1deg); }
    75% { transform: translate(-2px, -1px); }
    100% { transform: translate(0); }
}

.hacked-messages {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #00ff00;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff00;
    min-height: 150px;
    text-shadow: 0 0 5px #00ff00;
}

.hacked-messages p {
    margin: 0.3rem 0;
    opacity: 0;
    animation: messageAppear 0.1s forwards;
}

@keyframes messageAppear {
    to { opacity: 1; }
}

.hacked-progress {
    width: 400px;
    height: 20px;
    background: #111;
    border: 2px solid #ff0000;
    margin: 1rem auto;
    overflow: hidden;
}

.hacked-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ff6600, #ff0000);
    background-size: 200% 100%;
    animation: progressGradient 0.5s linear infinite;
    transition: width 0.1s linear;
    box-shadow: 0 0 20px #ff0000;
}

@keyframes progressGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.hacked-warning {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #ff0000;
    animation: warningBlink 0.3s infinite;
    letter-spacing: 4px;
}

@keyframes warningBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hacked-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    animation: noiseAnim 0.2s steps(10) infinite;
}

@keyframes noiseAnim {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(5%, 5%); }
    30% { transform: translate(-5%, 5%); }
    40% { transform: translate(5%, -5%); }
    50% { transform: translate(-5%, 0); }
    60% { transform: translate(5%, 0); }
    70% { transform: translate(0, 5%); }
    80% { transform: translate(0, -5%); }
    90% { transform: translate(5%, 5%); }
    100% { transform: translate(0, 0); }
}

/* 崩溃效果 */
.crash-effect {
    animation: crashScreen 0.5s forwards;
}

@keyframes crashScreen {
    0% { 
        filter: none;
        transform: scale(1);
    }
    20% { 
        filter: brightness(5) saturate(0);
        transform: scale(1.1);
    }
    40% {
        filter: brightness(0.1) contrast(5);
        transform: scale(0.9) rotate(2deg);
    }
    60% {
        filter: brightness(3) hue-rotate(180deg);
        transform: scale(1.05) rotate(-1deg);
    }
    80% {
        filter: brightness(0) saturate(0);
        transform: scale(0.95);
    }
    100% {
        filter: brightness(0);
        transform: scale(1);
    }
}

/* 蓝屏效果 */
.bsod-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0000aa;
    z-index: 30000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Courier New', monospace;
    color: #fff;
    padding: 2rem;
}

.bsod-overlay.active {
    display: flex;
}

.bsod-title {
    background: #aaaaaa;
    color: #0000aa;
    padding: 0.25rem 1rem;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.bsod-text {
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 800px;
}

.bsod-text p {
    margin: 1rem 0;
}

.bsod-recovery {
    margin-top: 2rem;
    font-size: 0.9rem;
    animation: bsodBlink 1s infinite;
}

@keyframes bsodBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== 赛博朋克音乐播放器 ===== */
.music-player {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.98) 0%, rgba(20, 10, 30, 0.98) 100%);
    border: 1px solid var(--primary);
    border-radius: 12px;
    box-shadow: 
        0 0 30px rgba(0, 240, 255, 0.3),
        inset 0 0 30px rgba(0, 240, 255, 0.05);
    z-index: 9000;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.music-player.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.music-player.maximized {
    width: 450px;
    bottom: 50px;
    right: 50px;
}

.music-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 40%, 
        rgba(0, 240, 255, 0.03) 50%, 
        transparent 60%);
    animation: playerShine 3s linear infinite;
    pointer-events: none;
}

@keyframes playerShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 播放器头部 - Mac风格窗口控制 */
.player-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 35, 0.9) 100%);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    cursor: move;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.window-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.window-btn:hover::after {
    opacity: 1;
}

.close-btn {
    background: linear-gradient(135deg, #ff5f56 0%, #ff3b30 100%);
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.5);
}

.close-btn:hover {
    background: linear-gradient(135deg, #ff7b73 0%, #ff5147 100%);
    box-shadow: 0 0 15px rgba(255, 95, 86, 0.8);
}

.close-btn::after {
    content: '×';
    color: #4a0000;
}

.minimize-btn {
    background: linear-gradient(135deg, #ffbd2e 0%, #ff9500 100%);
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.5);
}

.minimize-btn:hover {
    background: linear-gradient(135deg, #ffc94d 0%, #ffab2e 100%);
    box-shadow: 0 0 15px rgba(255, 189, 46, 0.8);
}

.minimize-btn::after {
    content: '−';
    color: #4a3000;
}

.maximize-btn {
    background: linear-gradient(135deg, #28c940 0%, #28a745 100%);
    box-shadow: 0 0 8px rgba(40, 201, 64, 0.5);
}

.maximize-btn:hover {
    background: linear-gradient(135deg, #5cd66e 0%, #34ce57 100%);
    box-shadow: 0 0 15px rgba(40, 201, 64, 0.8);
}

.maximize-btn::after {
    content: '+';
    color: #004a0a;
}

.player-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    flex: 1;
    text-align: center;
}

.player-drag-area {
    flex: 1;
}

/* 播放器主体 */
.player-body {
    padding: 15px;
}

/* 封面区域 */
.cover-section {
    position: relative;
    margin-bottom: 15px;
}

.cover-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    perspective: 1000px;
}

.cover-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
    filter: blur(20px);
    animation: coverGlowPulse 3s ease-in-out infinite;
}

@keyframes coverGlowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.cover-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.4),
        inset 0 0 20px rgba(0, 240, 255, 0.1);
    position: relative;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 100%);
}

.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cover-icon {
    font-size: 3rem;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
    animation: coverIconFloat 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes coverIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.cover-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.cover-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--primary);
    opacity: 0.3;
    animation: coverRingExpand 3s ease-out infinite;
}

.cover-ring:nth-child(1) { animation-delay: 0s; }
.cover-ring:nth-child(2) { animation-delay: 1s; }
.cover-ring:nth-child(3) { animation-delay: 2s; }

@keyframes coverRingExpand {
    0% { width: 20%; height: 20%; opacity: 0.5; }
    100% { width: 100%; height: 100%; opacity: 0; }
}

.cover-reflection {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.1) 0%, transparent 100%);
    transform: scaleY(-1);
    filter: blur(5px);
    opacity: 0.3;
}

/* 播放器内的音频可视化 */
.player-visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    opacity: 0.8;
}

/* 音乐播放时封面旋转 */
.music-player.playing .cover-image {
    animation: coverSpin 20s linear infinite;
}

@keyframes coverSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 歌曲信息 */
.track-info {
    text-align: center;
    margin-bottom: 12px;
}

.track-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.track-artist {
    font-size: 0.75rem;
    color: var(--primary);
    margin: 0;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* 进度条 */
.progress-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.time-current,
.time-total {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--text-secondary);
    min-width: 35px;
}

.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: visible;
}

#playerProgressFill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--primary);
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-track:hover .progress-handle {
    opacity: 1;
}

/* 控制按钮 */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.player-controls .control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-controls .control-btn svg {
    width: 16px;
    height: 16px;
}

.player-controls .control-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.player-controls .control-btn.active {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.play-btn {
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    border: none !important;
    color: var(--bg-dark) !important;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 0 30px rgba(0, 240, 255, 0.6),
        0 0 60px rgba(255, 0, 255, 0.3) !important;
}

.play-btn svg {
    width: 20px !important;
    height: 20px !important;
    fill: var(--bg-dark);
    stroke: var(--bg-dark);
}

.play-btn .pause-icon {
    display: none;
}

.music-player.playing .play-btn .play-icon {
    display: none;
}

.music-player.playing .play-btn .pause-icon {
    display: block;
}

/* 音量控制 */
.volume-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.volume-btn {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-btn svg {
    width: 18px;
    height: 18px;
}

.volume-btn:hover {
    color: var(--primary);
}

.volume-btn .volume-icon-off {
    display: none;
}

.volume-btn.muted .volume-icon-on {
    display: none;
}

.volume-btn.muted .volume-icon-off {
    display: block;
}

.volume-slider-container {
    flex: 1;
}

.volume-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    width: 70%;
    background: linear-gradient(90deg, var(--primary), #00ff88);
    border-radius: 2px;
    transition: width 0.1s;
}

.volume-handle {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.volume-track:hover .volume-handle {
    opacity: 1;
}

/* 播放列表切换按钮 */
.playlist-toggle {
    width: 100%;
    padding: 10px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.playlist-toggle svg {
    width: 16px;
    height: 16px;
}

.playlist-toggle:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.playlist-toggle.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* 播放列表面板 */
.playlist-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.playlist-panel.expanded {
    max-height: 250px;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.playlist-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.playlist-count {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.playlist-items {
    max-height: 200px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.playlist-item:hover {
    background: rgba(0, 240, 255, 0.1);
}

.playlist-item.active {
    background: rgba(0, 240, 255, 0.15);
    border-left: 3px solid var(--primary);
}

.playlist-item-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: linear-gradient(135deg, #1a1a3a 0%, #0a0a1a 100%);
    border: 1px solid rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.playlist-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-item-cover-icon {
    color: var(--primary);
    font-size: 1rem;
}

.playlist-item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item-title {
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.playlist-item-duration {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.playlist-item-playing {
    width: 20px;
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 15px;
}

.playlist-item-playing span {
    width: 3px;
    background: var(--primary);
    animation: playingBars 0.8s ease-in-out infinite;
}

.playlist-item-playing span:nth-child(1) { animation-delay: 0s; height: 30%; }
.playlist-item-playing span:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.playlist-item-playing span:nth-child(3) { animation-delay: 0.4s; height: 100%; }

@keyframes playingBars {
    0%, 100% { height: 30%; }
    50% { height: 100%; }
}

.playlist-item:not(.active) .playlist-item-playing {
    display: none;
}

/* 迷你播放器 */
.mini-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 280px;
    height: 60px;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.98) 0%, rgba(20, 10, 30, 0.98) 100%);
    border: 1px solid var(--primary);
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    z-index: 9000;
    display: none;
    align-items: center;
    padding: 8px 15px;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-player.visible {
    display: flex;
}

.mini-player:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.mini-cover {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a3a 0%, #0a0a1a 100%);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-cover-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

.mini-player.playing .mini-cover {
    animation: miniCoverSpin 10s linear infinite;
}

@keyframes miniCoverSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mini-info {
    flex: 1;
    min-width: 0;
}

.mini-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 4px;
}

.mini-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.1s linear;
}

.mini-controls {
    display: flex;
    gap: 5px;
}

.mini-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.mini-play-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: var(--bg-dark);
}

.mini-player.playing .mini-play-btn::after {
    content: '⏸';
}

.mini-player:not(.playing) .mini-play-btn::after {
    content: '▶';
}

.mini-play-btn {
    font-size: 0;
}

.mini-play-btn::after {
    font-size: 0.8rem;
}

/* 播放列表滚动条 */
.playlist-items::-webkit-scrollbar {
    width: 4px;
}

.playlist-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.playlist-items::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .music-player {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 80px;
    }
    
    .music-player.maximized {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 30px;
    }
    
    .mini-player {
        width: calc(100% - 40px);
        right: 20px;
    }
}

/* ===== 用户位置信息小组件 ===== */
.user-location-widget {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 220px;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95) 0%, rgba(20, 10, 30, 0.95) 100%);
    border: 1px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    z-index: 90;
    overflow: hidden;
    transition: all 0.4s ease;
}

.user-location-widget.collapsed {
    height: 40px;
}

.user-location-widget.collapsed .location-content,
.user-location-widget.collapsed .location-map {
    display: none;
}

.user-location-widget.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 35, 0.9) 100%);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.location-icon {
    color: var(--primary);
    animation: locationPulse 2s ease-in-out infinite;
}

@keyframes locationPulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--primary); }
    50% { opacity: 0.5; text-shadow: 0 0 20px var(--primary); }
}

.location-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.location-content {
    padding: 10px 12px;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.location-item:last-child {
    border-bottom: none;
}

.location-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.location-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--primary);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-map {
    height: 60px;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.location-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--secondary);
}

.map-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: mapPulse 2s ease-out infinite;
}

@keyframes mapPulse {
    0% { width: 10px; height: 10px; opacity: 1; }
    100% { width: 50px; height: 50px; opacity: 0; }
}

.location-toggle {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.6rem;
    transition: all 0.3s;
}

.location-toggle:hover {
    color: var(--primary);
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s;
}

/* ===== 订阅状态 ===== */
.subscribe-status {
    margin-top: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    text-align: center;
    min-height: 20px;
}

.subscribe-status.success {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.subscribe-status.error {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.subscribe-btn .btn-loading {
    display: none;
    gap: 4px;
}

.subscribe-btn.loading .btn-text,
.subscribe-btn.loading .btn-arrow {
    display: none;
}

.subscribe-btn.loading .btn-loading {
    display: flex;
}

/* ===== 联系我们弹窗 ===== */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 15000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-overlay.active {
    display: flex;
    opacity: 1;
}

.contact-modal {
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.98) 0%, rgba(20, 10, 30, 0.98) 100%);
    border: 1px solid var(--primary);
    border-radius: 12px;
    box-shadow: 
        0 0 50px rgba(0, 240, 255, 0.3),
        inset 0 0 30px rgba(0, 240, 255, 0.05);
    overflow: hidden;
    animation: modalOpen 0.4s ease;
}

@keyframes modalOpen {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.contact-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(180deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 35, 0.9) 100%);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.contact-title {
    flex: 1;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.contact-body {
    padding: 25px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 25px;
}

.contact-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    animation: avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.contact-intro h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-intro p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.form-group textarea {
    resize: none;
    min-height: 100px;
}

.contact-submit {
    padding: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 6px;
    color: var(--bg-dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.contact-submit .btn-loading {
    display: none;
    gap: 4px;
}

.contact-submit.loading .btn-text {
    display: none;
}

.contact-submit.loading .btn-loading {
    display: flex;
}

.contact-status {
    margin-top: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    text-align: center;
    min-height: 20px;
}

.contact-status.success {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.contact-status.error {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    .user-location-widget {
        top: auto;
        bottom: 20px;
        left: 20px;
        width: 180px;
    }
    
    .contact-modal {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ===== 网站被黑/腐化效果 ===== */

/* 全局腐化状态 - 给body添加抖动和扭曲 */
body.corrupted {
    animation: bodyCorrupt 0.1s infinite;
}

@keyframes bodyCorrupt {
    0% { 
        transform: translate(0, 0) skew(0deg);
        filter: hue-rotate(0deg);
    }
    20% { 
        transform: translate(-3px, 2px) skew(-0.5deg);
        filter: hue-rotate(90deg) saturate(2);
    }
    40% { 
        transform: translate(3px, -2px) skew(0.5deg);
        filter: hue-rotate(180deg) brightness(1.2);
    }
    60% { 
        transform: translate(-2px, -1px) skew(-0.3deg);
        filter: hue-rotate(270deg) contrast(1.5);
    }
    80% { 
        transform: translate(2px, 1px) skew(0.3deg);
        filter: hue-rotate(45deg) saturate(0.5);
    }
    100% { 
        transform: translate(0, 0) skew(0deg);
        filter: hue-rotate(0deg);
    }
}

/* 腐化覆盖层 */
.corruption-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.corruption-overlay.active {
    opacity: 1;
}

/* 扫描线 */
.corruption-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(255, 0, 0, 0.03) 2px,
        rgba(255, 0, 0, 0.03) 4px
    );
    animation: corruptScanlines 0.08s steps(8) infinite;
}

@keyframes corruptScanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* 故障块容器 */
.corruption-glitch-blocks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.glitch-block {
    position: absolute;
    opacity: 0.8;
    mix-blend-mode: screen;
    animation: glitchBlockAnim 0.2s steps(2) forwards;
}

@keyframes glitchBlockAnim {
    0% { 
        opacity: 0.8;
        transform: translateX(0);
    }
    50% { 
        opacity: 0.6;
        transform: translateX(10px);
    }
    100% { 
        opacity: 0;
        transform: translateX(-10px);
    }
}

/* RGB 分离效果 */
.corruption-rgb-split {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rgbSplit 0.15s infinite;
    pointer-events: none;
}

@keyframes rgbSplit {
    0% {
        box-shadow: 
            -5px 0 0 rgba(255, 0, 0, 0.3),
            5px 0 0 rgba(0, 255, 255, 0.3);
    }
    25% {
        box-shadow: 
            5px 0 0 rgba(255, 0, 0, 0.5),
            -5px 0 0 rgba(0, 255, 255, 0.5);
    }
    50% {
        box-shadow: 
            -3px 2px 0 rgba(255, 0, 0, 0.4),
            3px -2px 0 rgba(0, 255, 255, 0.4);
    }
    75% {
        box-shadow: 
            3px -2px 0 rgba(255, 0, 0, 0.5),
            -3px 2px 0 rgba(0, 255, 255, 0.5);
    }
    100% {
        box-shadow: 
            -5px 0 0 rgba(255, 0, 0, 0.3),
            5px 0 0 rgba(0, 255, 255, 0.3);
    }
}

/* 噪点效果 */
.corruption-noise {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.08;
    animation: corruptNoise 0.1s steps(5) infinite;
}

@keyframes corruptNoise {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-5%, -5%); }
    40% { transform: translate(5%, 5%); }
    60% { transform: translate(-5%, 5%); }
    80% { transform: translate(5%, -5%); }
    100% { transform: translate(0, 0); }
}

/* 警告弹窗 */
.corruption-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 25000;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.corruption-warning.active {
    opacity: 1;
}

.corruption-warning-content {
    text-align: center;
    animation: warningShake 0.1s infinite;
}

@keyframes warningShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-2px, 1px) rotate(-0.5deg); }
    50% { transform: translate(2px, -1px) rotate(0.5deg); }
    75% { transform: translate(-1px, -1px) rotate(-0.3deg); }
}

.warning-skull {
    margin-bottom: 20px;
}

.warning-skull pre {
    font-family: monospace;
    font-size: 12px;
    line-height: 1.1;
    color: #ff0000;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 30px #ff0000;
    animation: skullGlitch 0.2s infinite;
}

@keyframes skullGlitch {
    0%, 100% { 
        opacity: 1;
        transform: scale(1) translateX(0);
    }
    25% { 
        opacity: 0.8;
        transform: scale(1.02) translateX(-3px);
    }
    50% { 
        opacity: 0.9;
        transform: scale(0.98) translateX(3px);
    }
    75% { 
        opacity: 0.85;
        transform: scale(1.01) translateX(-2px);
    }
}

.warning-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #ff0000;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        0 0 80px #ff0000,
        3px 0 0 #00ffff,
        -3px 0 0 #ff00ff;
    animation: titleGlitch 0.15s infinite;
}

@keyframes titleGlitch {
    0%, 100% { 
        transform: translate(0, 0) skew(0deg);
        text-shadow: 
            0 0 10px #ff0000,
            0 0 20px #ff0000,
            3px 0 0 #00ffff,
            -3px 0 0 #ff00ff;
    }
    20% { 
        transform: translate(-3px, 1px) skew(-2deg);
        text-shadow: 
            0 0 20px #ff0000,
            0 0 40px #ff0000,
            6px 0 0 #00ffff,
            -2px 0 0 #ff00ff;
    }
    40% { 
        transform: translate(3px, -1px) skew(2deg);
        text-shadow: 
            0 0 15px #ff0000,
            0 0 30px #ff0000,
            2px 0 0 #00ffff,
            -6px 0 0 #ff00ff;
    }
    60% { 
        transform: translate(-2px, 0) skew(-1deg);
    }
    80% { 
        transform: translate(2px, 1px) skew(1deg);
    }
}

.warning-messages {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #00ff00;
    text-align: left;
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    box-shadow: 
        0 0 10px rgba(0, 255, 0, 0.5),
        inset 0 0 30px rgba(0, 255, 0, 0.1);
}

.warning-messages p {
    margin: 8px 0;
    animation: messageType 0.5s ease forwards;
    opacity: 0;
    text-shadow: 0 0 5px #00ff00;
}

.warning-messages p:nth-child(1) { animation-delay: 0.2s; }
.warning-messages p:nth-child(2) { animation-delay: 0.5s; }
.warning-messages p:nth-child(3) { animation-delay: 0.8s; }
.warning-messages p:nth-child(4) { animation-delay: 1.1s; }

@keyframes messageType {
    0% { 
        opacity: 0;
        transform: translateX(-20px);
    }
    100% { 
        opacity: 1;
        transform: translateX(0);
    }
}

.warning-progress {
    width: 400px;
    max-width: 90%;
    height: 25px;
    background: #111;
    border: 2px solid #00ff00;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.warning-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, 
        #00ff00, 
        #00ff88, 
        #00ffff, 
        #00ff88, 
        #00ff00);
    background-size: 200% 100%;
    animation: progressFlow 0.5s linear infinite;
    transition: width 0.1s linear;
    box-shadow: 0 0 20px #00ff00;
}

@keyframes progressFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.warning-status {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #ff0000;
    letter-spacing: 3px;
    animation: statusBlink 0.3s infinite;
}

.warning-status span {
    color: #ffff00;
    font-weight: bold;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 淡入淡出动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

/* 页面崩溃动画 (用于 Hello World 彩蛋) */
@keyframes pageCollapse {
    0% {
        transform: perspective(1000px) rotateX(0deg) translateY(0);
        filter: none;
        opacity: 1;
    }
    30% {
        transform: perspective(1000px) rotateX(10deg) translateY(50px);
        filter: blur(2px);
    }
    60% {
        transform: perspective(1000px) rotateX(30deg) translateY(200px);
        filter: blur(5px) brightness(0.5);
        opacity: 0.5;
    }
    100% {
        transform: perspective(1000px) rotateX(90deg) translateY(500px);
        filter: blur(10px) brightness(0);
        opacity: 0;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .warning-title {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }
    
    .warning-skull pre {
        font-size: 8px;
    }
    
    .warning-messages {
        font-size: 0.85rem;
        padding: 15px;
    }
    
    .warning-progress {
        width: 90%;
        height: 20px;
    }
}

/* ===== AI 聊天助手样式 ===== */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9500;
    font-family: 'Rajdhani', sans-serif;
}

/* 聊天开关按钮 */
.ai-chat-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95) 0%, rgba(30, 10, 40, 0.95) 100%);
    border: 2px solid var(--primary);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.3),
        inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.ai-chat-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 30px rgba(0, 240, 255, 0.5),
        inset 0 0 30px rgba(0, 240, 255, 0.1);
    border-color: var(--secondary);
}

.ai-chat-widget.open .ai-chat-toggle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.toggle-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-avatar .avatar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: toggleRingPulse 2s ease-in-out infinite;
}

@keyframes toggleRingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

.toggle-avatar .avatar-icon {
    font-size: 1.5rem;
    animation: avatarBounce 2s ease-in-out infinite;
}

@keyframes avatarBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.toggle-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.toggle-status {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: statusPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px #00ff88;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 聊天窗口 */
.ai-chat-window {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 380px;
    max-height: 550px;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.98) 0%, rgba(20, 10, 30, 0.98) 100%);
    border: 1px solid var(--primary);
    border-radius: 16px;
    box-shadow: 
        0 0 40px rgba(0, 240, 255, 0.3),
        inset 0 0 40px rgba(0, 240, 255, 0.02);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.ai-chat-widget.open .ai-chat-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* 聊天头部 */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 35, 0.9) 100%);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-avatar .avatar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: avatarPulseAnim 2s ease-out infinite;
}

@keyframes avatarPulseAnim {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.chat-info {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.chat-status {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.chat-header-right {
    display: flex;
    gap: 8px;
}

.chat-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.chat-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* 消息区域 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 300px;
    max-height: 350px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.5);
}

/* 欢迎界面 */
.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.welcome-avatar {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: welcomeFloat 3s ease-in-out infinite;
}

@keyframes welcomeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chat-welcome h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.chat-welcome p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.welcome-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.suggestion-btn {
    padding: 8px 15px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

/* 消息样式 */
.chat-message {
    display: flex;
    gap: 10px;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #000;
    border-bottom-right-radius: 4px;
}

.ai-message .message-content {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.ai-message.error .message-content {
    border-color: rgba(255, 68, 68, 0.5);
    background: rgba(255, 68, 68, 0.1);
}

.message-content p {
    margin: 0;
}

.message-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* 输入区域 */
.chat-input-area {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.chat-input-area .input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

#chatInput {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

#chatInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

#chatInput::placeholder {
    color: var(--text-secondary);
}

#chatInput:disabled {
    opacity: 0.5;
}

.send-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.send-btn svg {
    width: 20px;
    height: 20px;
    stroke: #000;
}

.input-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 5px;
    color: var(--secondary);
}

.typing-indicator.visible {
    display: flex;
}

.typing-indicator span:not(:last-child) {
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ai-chat-widget {
        bottom: 20px;
        left: 20px;
    }
    
    .ai-chat-window {
        width: calc(100vw - 40px);
        max-width: 380px;
        bottom: 60px;
    }
    
    .chat-messages {
        min-height: 250px;
        max-height: 300px;
    }
    
    .ai-chat-toggle {
        padding: 10px 15px;
    }
    
    .toggle-text {
        display: none;
    }
}

/* ===== 加密器工具样式 ===== */
.crypto-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Rajdhani', sans-serif;
}

.crypto-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--primary);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.crypto-toggle:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.crypto-icon {
    font-size: 1.2rem;
}

.crypto-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 400px;
    background: rgba(5, 5, 15, 0.98);
    border: 1px solid var(--primary);
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 240, 255, 0.3),
                inset 0 0 50px rgba(0, 240, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.crypto-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.crypto-widget.active .crypto-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.crypto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 240, 255, 0.05);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.crypto-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-icon-lg {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--primary));
}

.crypto-title h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.crypto-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.crypto-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 100, 100, 0.5);
    border-radius: 50%;
    color: #ff6464;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crypto-close:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: #ff6464;
    transform: rotate(90deg);
}

.crypto-tabs {
    display: flex;
    padding: 10px 15px;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.crypto-tab {
    flex: 1;
    padding: 10px 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crypto-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.crypto-tab.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 0, 255, 0.1));
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.crypto-body {
    padding: 15px 20px;
    position: relative;
}

.crypto-pane {
    display: none;
}

.crypto-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.crypto-input-group {
    margin-bottom: 15px;
    position: relative;
}

.crypto-input-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.crypto-input-group textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    padding-right: 45px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    resize: none;
    transition: all 0.3s ease;
}

.crypto-input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.crypto-input-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.crypto-input-group textarea[readonly] {
    background: rgba(0, 240, 255, 0.05);
    cursor: default;
}

.copy-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.copy-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--primary);
    transform: scale(1.1);
}

.copy-hint {
    font-size: 0.7rem;
    color: var(--success);
    animation: fadeIn 0.3s ease;
}

.crypto-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.crypto-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.crypto-btn:hover::before {
    left: 100%;
}

.crypto-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

.crypto-btn:active {
    transform: translateY(0);
}

.crypto-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.crypto-btn .btn-icon {
    font-size: 1.2rem;
}

.crypto-footer {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.info-icon {
    font-size: 1rem;
}

/* 加密器动画 */
@keyframes cryptoProcess {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.crypto-btn.processing {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: cryptoProcess 1s ease infinite;
}

/* Punycode 特有样式 */
.punycode-mode-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.puny-mode {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.puny-mode:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.puny-mode.active {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(0, 240, 255, 0.1));
    border-color: var(--secondary);
    color: var(--secondary);
}

.punycode-examples {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.example-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.example-btn {
    padding: 5px 10px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 15px;
    color: var(--primary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: scale(1.05);
}

/* 加密器移动端适配 */
@media (max-width: 768px) {
    .crypto-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .crypto-panel {
        width: calc(100vw - 40px);
        max-width: 360px;
        right: 0;
        bottom: 55px;
    }
    
    .crypto-toggle {
        padding: 10px 15px;
    }
    
    .crypto-label {
        display: none;
    }
    
    .crypto-input-group textarea {
        height: 80px;
    }
    
    .crypto-tab {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}
