/* ============================================
   量子科技网站 - 优化改进版样式
   ============================================ */

:root {
    /* 更鲜艳的配色方案 */
    --primary-color: #00d4ff;
    --secondary-color: #ff00ff;
    --accent-color: #ffaa00;
    --neon-blue: #00ffff;
    --neon-purple: #ff00ff;
    --neon-green: #00ff88;
    --neon-yellow: #ffff00;
    --neon-orange: #ff6600;
    --neon-pink: #ff0080;
    
    --dark-bg: #000000;
    --darker-bg: #0a0a0a;
    --light-text: #ffffff;
    --gray-text: #b0b0b0;
    --border-color: #333333;
    
    /* 渐变色 */
    --gradient-rainbow: linear-gradient(135deg, #ff0080, #ff00ff, #00ffff, #00ff88, #ffff00, #ff6600);
    --gradient-neon: linear-gradient(135deg, #00d4ff 0%, #ff00ff 25%, #00ff88 50%, #ffaa00 75%, #ff0080 100%);
    --gradient-cosmic: radial-gradient(circle at center, #ff00ff 0%, #00ffff 25%, #0000ff 50%, #000033 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 100, 255, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 100, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 60% 10%, rgba(0, 255, 150, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at center, rgba(5, 5, 30, 0.95) 0%, rgba(0, 0, 0, 1) 70%);
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   彩色太阳系动画
   ============================================ */
.solar-system {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -10;
    background: radial-gradient(ellipse at center, #000033 0%, #000000 100%);
    overflow: hidden;
}

.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #ffff00 0%, #ff9900 50%, #ff6600 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 60px #ffaa00,
        0 0 100px #ff9900,
        0 0 150px #ff6600,
        inset 0 0 30px #ffffff;
    animation: sunPulse 4s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 
            0 0 60px #ffaa00,
            0 0 100px #ff9900,
            0 0 150px #ff6600,
            inset 0 0 30px #ffffff;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 
            0 0 80px #ffaa00,
            0 0 120px #ff9900,
            0 0 200px #ff6600,
            inset 0 0 40px #ffffff;
    }
}

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

.orbit-1 { width: 200px; height: 200px; animation: rotate 20s linear infinite; }
.orbit-2 { width: 300px; height: 300px; animation: rotate 35s linear infinite; }
.orbit-3 { width: 400px; height: 400px; animation: rotate 50s linear infinite; }
.orbit-4 { width: 500px; height: 500px; animation: rotate 70s linear infinite; }
.orbit-5 { width: 600px; height: 600px; animation: rotate 90s linear infinite; }

.planet {
    position: absolute;
    border-radius: 50%;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.planet-mercury {
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #ff9966 0%, #ff5533 100%);
    box-shadow: 0 0 20px #ff6644;
}

.planet-venus {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #ffdd66 0%, #ffaa33 100%);
    box-shadow: 0 0 30px #ffbb44;
}

.planet-earth {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #0099ff 0%, #0066cc 50%, #003366 100%);
    box-shadow: 0 0 40px #0099ff;
}

.planet-mars {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ff6644 0%, #cc3322 100%);
    box-shadow: 0 0 25px #ff4433;
}

.planet-jupiter {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 40% 40%, #ffaa66 0%, #cc7744 30%, #996644 60%, #664422 100%);
    box-shadow: 0 0 50px #cc8855;
}

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

/* ============================================
   动态K线图
   ============================================ */
.dynamic-kline {
    position: fixed;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 150px;
    z-index: 1;
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.kline-bar {
    position: absolute;
    bottom: 20px;
    width: 8px;
    background: linear-gradient(to top, #00ff88, #00ffff);
    border-radius: 2px;
    animation: klineAnimation 3s ease-in-out infinite;
}

.kline-bar:nth-child(1) { left: 20px; height: 40px; animation-delay: 0s; }
.kline-bar:nth-child(2) { left: 40px; height: 60px; animation-delay: 0.2s; }
.kline-bar:nth-child(3) { left: 60px; height: 45px; animation-delay: 0.4s; }
.kline-bar:nth-child(4) { left: 80px; height: 70px; animation-delay: 0.6s; }
.kline-bar:nth-child(5) { left: 100px; height: 55px; animation-delay: 0.8s; }
.kline-bar:nth-child(6) { left: 120px; height: 80px; animation-delay: 1s; }
.kline-bar:nth-child(7) { left: 140px; height: 65px; animation-delay: 1.2s; }
.kline-bar:nth-child(8) { left: 160px; height: 50px; animation-delay: 1.4s; }
.kline-bar:nth-child(9) { left: 180px; height: 75px; animation-delay: 1.6s; }
.kline-bar:nth-child(10) { left: 200px; height: 60px; animation-delay: 1.8s; }

@keyframes klineAnimation {
    0%, 100% { 
        transform: scaleY(1);
        opacity: 0.8;
        background: linear-gradient(to top, #00ff88, #00ffff);
    }
    50% { 
        transform: scaleY(1.3);
        opacity: 1;
        background: linear-gradient(to top, #ff00ff, #00ffff);
    }
}

.kline-title {
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 12px;
    color: #00ffff;
    font-weight: bold;
    text-shadow: 0 0 10px #00ffff;
}

.kline-value {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 14px;
    color: #00ff88;
    font-weight: bold;
    animation: valueFlash 1s ease-in-out infinite;
}

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

/* ============================================
   动态数学公式
   ============================================ */
.animated-formulas {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.formula-item {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    background: transparent;
    border: 1px solid;
    animation: formulaFloat 10s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.formula-1 {
    top: 20%;
    left: 5%;
    color: #00ffff;
    border-color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
    animation-delay: 0s;
}

.formula-2 {
    top: 35%;
    right: 8%;
    color: #ff00ff;
    border-color: #ff00ff;
    text-shadow: 0 0 15px #ff00ff;
    animation-delay: 2s;
}

.formula-3 {
    bottom: 35%;
    left: 15%;
    color: #00ff88;
    border-color: #00ff88;
    text-shadow: 0 0 15px #00ff88;
    animation-delay: 4s;
}

.formula-4 {
    bottom: 15%;
    right: 30%;
    color: #ffaa00;
    border-color: #ffaa00;
    text-shadow: 0 0 15px #ffaa00;
    animation-delay: 6s;
}

@keyframes formulaFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-20px) rotate(5deg) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(10px) rotate(-5deg) scale(1.05);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-10px) rotate(3deg) scale(1.08);
        opacity: 1;
    }
}

/* ============================================
   星空效果
   ============================================ */
.starfield {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -9;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star.small {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px white;
}

.star.medium {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px white;
}

.star.large {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 8px white;
}

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

/* 神经网络连接线已移除，保持简洁 */

/* ============================================
   主要内容区域优化
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 2px 20px rgba(0, 255, 255, 0.2);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: transparent;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.product-card {
    background: transparent;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #00ffff;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.3);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    animation: none; /* 禁用动画 */
}

@keyframes cardGlow {
    0%, 100% { opacity: 0; transform: rotate(0deg); }
    50% { opacity: 1; transform: rotate(0deg); }
}

/* ============================================
   响应式优化
   ============================================ */
@media (max-width: 768px) {
    .solar-system {
        transform: scale(0.6);
    }
    
    .dynamic-kline {
        width: 200px;
        height: 100px;
        top: auto;
        bottom: 10px;
        right: 10px;
    }
    
    .formula-item {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* 移动端公式重新定位 */
    .formula-1 { top: 15%; left: 2%; }
    .formula-2 { top: 25%; right: 2%; }
    .formula-3 { bottom: 25%; left: 2%; }
    .formula-4 { bottom: 15%; right: 2%; }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #ff00ff);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff00ff, #00ffff);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

/* ============================================
   加载动画
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

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

.loader-circle {
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top-color: #00ffff;
    border-right-color: #ff00ff;
    border-bottom-color: #00ff88;
    border-left-color: #ffaa00;
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
}

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

/* 确保所有元素的层级正确 */
section {
    position: relative;
    z-index: 10;
    background: transparent;
}

.container {
    position: relative;
    z-index: 11;
}