/* style.css - 二进制宇宙后花园主题 */

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

:root {
    /* 宇宙主题色 */
    --primary-bg: #0a0a1a;
    --secondary-bg: #12122e;
    --surface-bg: #1a1a3e;

    /* 霓虹色系 */
    --neon-blue: #00ffff;
    --neon-purple: #9d4edd;
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffcc;
    --neon-yellow: #ffff00;

    /* 文字颜色 */
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0ff;
    --text-muted: #666699;

    /* 特效颜色 */
    --glow-blue: rgba(0, 255, 255, 0.3);
    --glow-purple: rgba(157, 78, 221, 0.3);
    --glow-pink: rgba(255, 0, 255, 0.3);

    /* 边框阴影 */
    --border-glow: 0 0 20px var(--glow-blue);
    --card-glow: 0 0 30px rgba(0, 255, 255, 0.1);

    /* 动画 */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式 */
body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(157, 78, 221, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary-bg) 0%, #1a1a2e 100%);
}

/* 星空背景 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
}

#stars {
    background: transparent;
    animation: starsMove 100s linear infinite;
}

#stars2 {
    background: transparent;
    animation: starsMove 150s linear infinite;
}

#stars3 {
    background: transparent;
    animation: starsMove 200s linear infinite;
}

@keyframes starsMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-1000px); }
}

/* 流星雨效果 */
.meteor-shower {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.meteor {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
    border-radius: 2px;
    opacity: 0;
    animation: meteorFall 4s linear infinite;
}

.meteor::after {
    content: '';
    position: absolute;
    top: -3px;
    right: 0;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px 3px rgba(255, 255, 255, 0.6);
}

.meteor:nth-child(1) { top: -10%; left: 10%; animation-delay: 0s; }
.meteor:nth-child(2) { top: -10%; left: 30%; animation-delay: 1.2s; }
.meteor:nth-child(3) { top: -10%; left: 50%; animation-delay: 2.4s; }
.meteor:nth-child(4) { top: -10%; left: 70%; animation-delay: 3.6s; }
.meteor:nth-child(5) { top: -10%; left: 90%; animation-delay: 1.8s; }

@keyframes meteorFall {
    0% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translate(600px, 600px) rotate(45deg);
        opacity: 0;
    }
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow:
        50vw 20vh white,
        80vw 40vh white,
        20vw 60vh white,
        60vw 80vh white,
        90vw 30vh white,
        10vw 90vh white,
        40vw 10vh white,
        70vw 50vh white,
        30vw 70vh white,
        95vw 15vh white;
    border-radius: 50%;
    opacity: 0.8;
}

/* 二进制代码雨 */
.binary-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.1;
    overflow: hidden;
}

/* 主容器 */
.universe-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 导航栏 */
.nav-bar {
    background: rgba(18, 18, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 18px 28px;
    margin-bottom: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    box-shadow: var(--card-glow);
    position: relative;
    overflow: hidden;
}

.nav-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--neon-blue),
        var(--neon-purple),
        var(--neon-blue),
        transparent
    );
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-size: 20px;
    color: var(--primary-bg);
    position: relative;
    overflow: hidden;
}

.brand-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 6px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 10px;
    position: relative;
}

.nav-link:hover {
    color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--neon-blue);
    background: rgba(0, 255, 255, 0.15);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--neon-blue);
    border-radius: 1px;
    animation: pulse 2s ease-in-out infinite;
}

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

.nav-link i {
    font-size: 18px;
    margin-bottom: 4px;
}

.nav-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item i {
    color: var(--neon-cyan);
    font-size: 10px;
}

/* 英雄区域 */
.hero-section {
    background: rgba(26, 26, 62, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    padding: 50px 40px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-glow);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(0,255,255,0.05)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 40px;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-gradient {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 300;
}

.hero-main {
    display: inline-block;
    background: linear-gradient(135deg,
        var(--neon-blue) 0%,
        var(--neon-purple) 25%,
        var(--neon-pink) 50%,
        var(--neon-cyan) 75%,
        var(--neon-blue) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 5s linear infinite;
}

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

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.cta-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cta-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.6s ease;
}

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

.cta-btn.primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: var(--primary-bg);
    box-shadow: 0 0 30px var(--glow-blue);
}

.cta-btn.primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 40px var(--glow-blue);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}

.cta-btn.secondary:hover {
    background: rgba(0, 255, 204, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.4);
}

.energy-wave {
    position: relative;
}

.energy-wave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: waveExpand 2s ease-out infinite;
    pointer-events: none;
}

@keyframes waveExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
    }
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-sphere {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
        rgba(0, 255, 255, 0.1) 0%,
        rgba(157, 78, 221, 0.1) 50%,
        transparent 70%
    );
    border-radius: 50%;
    position: relative;
    animation: sphereRotate 20s linear infinite;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow:
        0 0 60px rgba(0, 255, 255, 0.2),
        inset 0 0 60px rgba(157, 78, 221, 0.2);
}

@keyframes sphereRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sphere-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--neon-cyan);
    animation: textPulse 3s ease-in-out infinite;
}

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

.code-line {
    margin: 10px 0;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    padding-top: 30px;
}

.hero-stat {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: var(--transition);
}

.hero-stat:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.1);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--neon-blue);
    margin-bottom: 8px;
    text-shadow: 0 0 20px var(--neon-blue);
    animation: numberGlow 2s ease-in-out infinite;
}

@keyframes numberGlow {
    0%, 100% { text-shadow: 0 0 20px var(--neon-blue); }
    50% { text-shadow: 0 0 30px var(--neon-blue), 0 0 40px var(--neon-blue); }
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 工具星系 */
.galaxy-section {
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: var(--neon-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.section-header h3 i {
    font-size: 24px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

.galaxy-container {
    width: 750px;
    height: 750px;
    margin: 0 auto 40px;
    position: relative;
    animation: galaxyFloat 20s ease-in-out infinite;
}

@keyframes galaxyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.central-star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
}

.star-core {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg,
        #ffd700 0%,
        #ff9800 50%,
        #ff5722 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #000;
    animation: starPulse 2s ease-in-out infinite;
    box-shadow: 0 0 60px #ff9800;
    margin-bottom: 15px;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 60px #ff9800;
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 80px #ff9800;
    }
}

.star-info h4 {
    font-size: 18px;
    color: #ff9800;
    margin-bottom: 5px;
}

.star-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-1 {
    width: 300px;
    height: 300px;
    --radius: 150px;
}

.orbit-2 {
    width: 450px;
    height: 450px;
    --radius: 225px;
}

.orbit-3 {
    width: 600px;
    height: 600px;
    --radius: 300px;
}

.orbit-4 {
    width: 750px;
    height: 750px;
    --radius: 375px;
}

@keyframes orbitRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.planet-tool {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--radius)) rotate(calc(var(--angle) * -1));
    width: 100px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.planet-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    cursor: pointer;
    animation: planetPulse 2.4s ease-in-out infinite;
}

.planet-icon:hover {
    animation: planetSpin 0.6s ease-in-out forwards;
    box-shadow: 0 0 30px currentColor;
}

.planet-tool.no-link .planet-icon {
    cursor: default;
}

.planet-icon.electric {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    color: #fff;
}

.planet-icon.weather {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    color: #fff;
}

.planet-icon.calendar {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    color: #fff;
}

.planet-icon.food {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    color: #fff;
}

.planet-icon.poison {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    color: #fff;
}

.planet-icon.love {
    background: linear-gradient(135deg, #ec4899, #db2777);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
    color: #fff;
}

.planet-icon.secret {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 0 20px rgba(100, 116, 139, 0.5);
    color: #fff;
}

.planet-icon.future {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    color: #fff;
}

.planet-icon.shenlun {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
    color: #fff;
}

.planet-icon.housing {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
    color: #fff;
}

.planet-icon.more {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    box-shadow: 0 0 20px rgba(149, 165, 166, 0.5);
    color: #fff;
}

.planet-info {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 100px;
    white-space: nowrap;
}

.planet-info h5 {
    font-size: 14px;
    color: white;
    margin-bottom: 4px;
}

.planet-info p {
    font-size: 10px;
    color: var(--text-muted);
}

@keyframes planetPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes planetSpin {
    0%   { transform: scale(1)    rotate(0deg); }
    100% { transform: scale(1.25) rotate(360deg); }
}

.galaxy-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.galaxy-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 50%;
    color: var(--neon-blue);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.galaxy-btn:hover {
    background: var(--neon-blue);
    color: var(--primary-bg);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--neon-blue);
}

.galaxy-btn.auto-rotate {
    animation: rotate 2s linear infinite;
}

.galaxy-btn.auto-rotate.paused {
    animation-play-state: paused;
    opacity: 0.55;
    border-color: var(--text-muted);
    color: var(--text-muted);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 功能模块 */
.modules-section {
    background: rgba(18, 18, 46, 0.6);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 50px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.module-card {
    background: rgba(26, 26, 62, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 204, 0.2);
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        var(--neon-blue),
        var(--neon-purple),
        var(--neon-pink)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.module-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.module-icon.binary {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(157, 78, 221, 0.2));
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
}

.module-icon.data {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
}

.module-icon.ai {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    color: #f59e0b;
    border: 2px solid #f59e0b;
}

.module-icon.community {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.2));
    color: var(--neon-purple);
    border: 2px solid var(--neon-purple);
}

.module-card h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.module-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 80px;
}

.module-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 系统状态 */
.status-section {
    margin-bottom: 50px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.status-card {
    background: rgba(26, 26, 62, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    transition: var(--transition);
}

.status-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.status-header i {
    font-size: 24px;
    color: var(--neon-blue);
}

.status-header h4 {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
}

.status-meter {
    width: 100%;
}

.meter-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 5px;
    position: relative;
    animation: fillWidth 2s ease-out;
}

@keyframes fillWidth {
    from { width: 0; }
    to { width: var(--target-width); }
}

.meter-label {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shield-icon {
    font-size: 40px;
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.security-level {
    font-size: 18px;
    font-weight: 700;
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
}

.connection-indicator {
    display: flex;
    align-items: center;
    gap: 20px;
}

.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
}

.bar {
    width: 6px;
    background: var(--text-muted);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.bar.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.bar:nth-child(1) { height: 8px; }
.bar:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.bar:nth-child(3) { height: 16px; animation-delay: 0.4s; }
.bar:nth-child(4) { height: 20px; animation-delay: 0.6s; }
.bar:nth-child(5) { height: 24px; animation-delay: 0.8s; }

.bar.active {
    animation: barPulse 1.5s ease-in-out infinite;
}

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

.ping-time {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--neon-blue);
}

.update-time {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: var(--neon-purple);
    text-align: center;
    padding: 20px 0;
    border: 2px solid rgba(157, 78, 221, 0.3);
    border-radius: 10px;
    background: rgba(157, 78, 221, 0.1);
}

/* 宇宙日志 */
.log-section {
    background: rgba(10, 10, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 50px;
    overflow: hidden;
}

.log-container {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.log-container::-webkit-scrollbar {
    width: 6px;
}

.log-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.log-container::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'JetBrains Mono', monospace;
    animation: logEntry 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

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

.log-entry:nth-child(1) { animation-delay: 0.1s; }
.log-entry:nth-child(2) { animation-delay: 0.3s; }
.log-entry:nth-child(3) { animation-delay: 0.5s; }
.log-entry:nth-child(4) { animation-delay: 0.7s; }

.log-time {
    color: var(--neon-cyan);
    font-size: 12px;
    min-width: 80px;
}

.log-content {
    color: var(--text-secondary);
    font-size: 14px;
    flex: 1;
}

/* 页脚 */
.universe-footer {
    background: rgba(10, 10, 26, 0.9);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 40px 0 20px;
    border-radius: 25px 25px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.binary-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-size: 16px;
    color: var(--primary-bg);
}

.footer-text h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: var(--neon-blue);
    margin-bottom: 5px;
}

.footer-text p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.footer-link:hover {
    color: var(--neon-blue);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--neon-blue);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-stat i {
    color: var(--neon-cyan);
    font-size: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-quote {
    font-style: italic;
    color: var(--neon-purple);
    font-size: 12px;
}

.footer-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    margin-top: 20px;
}

.decoration-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--neon-blue),
        transparent
    );
}

.decoration-star {
    margin: 0 20px;
    font-size: 20px;
    color: var(--neon-blue);
    animation: starTwinkle 3s ease-in-out infinite;
}

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

/* 悬浮控制面板 */
.floating-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.float-btn {
    width: 50px;
    height: 50px;
    background: rgba(26, 26, 62, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-blue);
    border-radius: 50%;
    color: var(--neon-blue);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.float-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(0, 255, 255, 0.2),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.float-btn:hover::before {
    transform: translateX(100%);
}

.float-btn:hover {
    background: var(--neon-blue);
    color: var(--primary-bg);
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 0 30px var(--neon-blue);
}

/* 系统通知 */
.system-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(26, 26, 62, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-blue);
    border-radius: 15px;
    padding: 20px 25px;
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 1001;
    animation: slideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    max-width: 350px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    color: var(--neon-blue);
    font-size: 20px;
}

.notification-content span {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 30px;
    }
}

@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .universe-container {
        padding: 10px;
    }

    .hero-section {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 数字星河氛围装饰（量子纠缠 / 雷达扫描 / 量子云 / 星空轨道环 / 全息时钟） =====
   页面背景层，固定在视口四边，位于内容（.universe-container z-index:1）之后，不遮挡文字。 */
.amb {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes orbitQ {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    50%      { transform: rotate(180deg) translateX(var(--orbit-r, 60px)); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 18px var(--glow-blue); }
    50%      { box-shadow: 0 0 36px var(--neon-blue), 0 0 54px var(--neon-purple); }
}

/* 全息时钟（左上） */
.amb-clock {
    top: 120px; left: 22px; width: 120px; height: 120px; opacity: .95;
}
.amb-clock .e13 {
    width: 100%; height: 100%; border-radius: 50%; position: relative;
    animation: spin 60s linear infinite;
    border: 3px solid var(--neon-purple);
    box-shadow: 0 0 26px var(--glow-purple), inset 0 0 26px var(--glow-purple);
}
.amb-clock .e13 .mk {
    position: absolute; top: 50%; left: 50%; width: 2px; height: 10px; margin: -5px;
    background: var(--neon-cyan);
}
.amb-clock .e13 .hand {
    position: absolute; top: 50%; left: 50%; transform-origin: bottom center; border-radius: 2px;
}
.amb-clock .e13 .hand.s {
    width: 2px; height: 46px; margin: -46px 0 0 -1px; background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue); animation: spin 4s linear infinite;
}
.amb-clock .e13 .hand.m {
    width: 3px; height: 34px; margin: -34px 0 0 -1.5px; background: var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink); animation: spin 24s linear infinite;
}

/* 雷达扫描（右上） */
.amb-radar {
    top: 120px; right: 22px; width: 120px; height: 120px; opacity: .95;
}
.amb-radar .e7 {
    width: 100%; height: 100%; border-radius: 50%; position: relative; overflow: hidden;
    animation: spin 56s linear infinite;
    border: 3px solid var(--neon-blue); box-shadow: 0 0 28px var(--glow-blue);
}
.amb-radar .e7 .ring {
    position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(0, 255, 255, .25);
}
.amb-radar .e7 .ring:nth-child(2) { width: 66%; height: 66%; }
.amb-radar .e7 .ring:nth-child(3) { width: 33%; height: 33%; }
.amb-radar .e7::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 50%; height: 2px; margin-top: -1px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    box-shadow: 0 0 12px var(--neon-cyan);
    transform-origin: left center; animation: spin 3s linear infinite;
}

/* 量子纠缠（左侧中部） */
.amb-entangle {
    top: 42%; left: 22px; width: 130px; height: 130px; opacity: .95;
}
.amb-entangle .e4 {
    width: 100%; height: 100%; position: relative; animation: spin 52s linear infinite;
}
.amb-entangle .e4 .q {
    position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--neon-cyan)); box-shadow: 0 0 20px var(--neon-cyan);
}
.amb-entangle .e4 .q.a { --orbit-r: 52px; animation: orbitQ 5s ease-in-out infinite; }
.amb-entangle .e4 .q.b {
    --orbit-r: 52px; animation: orbitQ 5s ease-in-out infinite 2.5s;
    background: radial-gradient(circle at 35% 30%, #fff, var(--neon-pink)); box-shadow: 0 0 20px var(--neon-pink);
}

/* 星空轨道环（右侧下部） */
.amb-orbit {
    top: 62%; right: 22px; width: 130px; height: 130px; opacity: .95;
}
.amb-orbit .e20 {
    width: 100%; height: 100%; position: relative; animation: spin 52s linear infinite;
}
.amb-orbit .e20 .ring {
    position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px dashed rgba(0, 255, 255, .35);
}
.amb-orbit .e20 .ring:nth-child(2) { width: 62%; height: 62%; }
.amb-orbit .e20 .ring:nth-child(3) { width: 28%; height: 28%; }
.amb-orbit .e20 .p {
    position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--neon-cyan)); box-shadow: 0 0 14px var(--neon-cyan);
}
.amb-orbit .e20 .p.pink {
    background: radial-gradient(circle at 35% 30%, #fff, var(--neon-pink)); box-shadow: 0 0 14px var(--neon-pink);
}
.amb-orbit .e20 .star {
    position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--neon-yellow), #ff9800 40%, var(--neon-purple));
    box-shadow: 0 0 32px var(--neon-yellow);
}

/* 量子云（左下） */
.amb-cloud {
    bottom: 40px; left: 22px; width: 120px; height: 120px; opacity: .95;
}
.amb-cloud .e17 {
    width: 100%; height: 100%; position: relative; animation: spin 56s linear infinite;
}
.amb-cloud .e17 .qm {
    position: absolute; top: 50%; left: 50%; border-radius: 50%;
    background: radial-gradient(circle, var(--neon-cyan), transparent);
}
.amb-cloud .e17 .qm:nth-child(1) { width: 60px; height: 60px; margin: -30px; opacity: .5; animation: pulseGlow 3s ease-in-out infinite; }
.amb-cloud .e17 .qm:nth-child(2) { width: 40px; height: 40px; margin: -20px; opacity: .6; animation: pulseGlow 2.4s ease-in-out infinite .6s; background: radial-gradient(circle, var(--neon-pink), transparent); }
.amb-cloud .e17 .qm:nth-child(3) { width: 26px; height: 26px; margin: -13px; opacity: .7; background: radial-gradient(circle, var(--neon-purple), transparent); }

@media (max-width: 900px) {
    .amb { display: none; }
}

/* 导航栏保持单行（不换行） */
.nav-bar { flex-wrap: nowrap; }
.nav-menu { flex-wrap: nowrap; gap: 4px; }
.nav-link { padding: 6px 10px; }

@media (max-width: 1024px) {
    .nav-bar { flex-wrap: wrap; }
    .nav-menu { flex-wrap: wrap; }
}