/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff6b35;
    --accent-color: #7c3aed;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --light-text: #ffffff;
    --gray-text: #a0a0a0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --nuclear-glow: #00ff88;
    --radiation-yellow: #ffdd00;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-nuclear: 0 0 30px rgba(0, 255, 136, 0.4);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body {
    font-family: var(--font-main);
    background: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 原子核背景动画 */
.atom-background {
    position: fixed;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--nuclear-glow), var(--primary-color));
    border-radius: 50%;
    box-shadow: var(--shadow-nuclear);
    animation: pulse 2s ease-in-out infinite;
}

.electron-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
}

.orbit-1 {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    animation: rotate 3s linear infinite;
}

.orbit-2 {
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    animation: rotate 5s linear infinite reverse;
}

.orbit-3 {
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    animation: rotate 7s linear infinite;
}

.electron {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--secondary-color);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
    animation: rotate 10s linear infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主页面 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--nuclear-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--nuclear-glow));
    color: var(--dark-bg);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* 核反应堆可视化 */
.nuclear-reactor {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.reactor-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--nuclear-glow), var(--primary-color));
    border-radius: 50%;
    box-shadow: 
        0 0 40px var(--nuclear-glow),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    animation: reactorPulse 3s ease-in-out infinite;
}

.control-rods {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rod {
    position: absolute;
    width: 4px;
    height: 80px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--warning-color));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--secondary-color);
}

.rod:nth-child(1) {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: rodMovement 4s ease-in-out infinite;
}

.rod:nth-child(2) {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: rodMovement 4s ease-in-out infinite 0.5s;
}

.rod:nth-child(3) {
    top: 50%;
    left: 20px;
    transform: translateY(-50%) rotate(90deg);
    animation: rodMovement 4s ease-in-out infinite 1s;
}

.rod:nth-child(4) {
    top: 50%;
    right: 20px;
    transform: translateY(-50%) rotate(90deg);
    animation: rodMovement 4s ease-in-out infinite 1.5s;
}

.cooling-pipes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pipe {
    position: absolute;
    width: 200px;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 3px;
    opacity: 0.6;
}

.pipe-1 {
    top: 40%;
    left: 50%;
    transform: translateX(-50%) rotate(30deg);
    animation: coolantFlow 2s linear infinite;
}

.pipe-2 {
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%) rotate(-30deg);
    animation: coolantFlow 2s linear infinite 1s;
}

@keyframes reactorPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 40px var(--nuclear-glow), inset 0 0 20px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 60px var(--nuclear-glow), inset 0 0 30px rgba(0, 0, 0, 0.2);
    }
}

@keyframes rodMovement {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.7; transform: translateX(-50%) translateY(10px); }
}

@keyframes coolantFlow {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* 通用容器和节段 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--light-text);
}

/* 功能模块 */
.features-section {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--nuclear-glow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--nuclear-glow));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--dark-bg);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.feature-card p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    color: var(--gray-text);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '→';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 工作空间预览 */
.workspace-section {
    background: var(--dark-bg);
}

.workspace-preview {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.workspace-mockup {
    background: var(--darker-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.toolbar-top {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.toolbar-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
}

.workspace-main {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    height: 500px;
}

.sidebar-left,
.sidebar-right {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-right: 1px solid rgba(0, 212, 255, 0.2);
}

.sidebar-right {
    border-right: none;
    border-left: 1px solid rgba(0, 212, 255, 0.2);
}

.panel-group {
    margin-bottom: 2rem;
}

.panel-group h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.panel-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
}

.viewport {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.scene-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-placeholder {
    text-align: center;
    color: var(--gray-text);
}

.model-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.coordinate-system {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
}

.axis {
    position: absolute;
    width: 40px;
    height: 2px;
    transform-origin: left center;
}

.x-axis {
    background: #ff4444;
    transform: rotate(0deg);
}

.y-axis {
    background: #44ff44;
    transform: rotate(90deg);
}

.z-axis {
    background: #4444ff;
    transform: rotate(45deg);
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.info-item label {
    color: var(--gray-text);
}

.info-item span {
    color: var(--primary-color);
    font-weight: 600;
}

.property-grid {
    display: grid;
    gap: 0.5rem;
}

.property-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
}

.property-row label {
    font-size: 0.8rem;
    color: var(--gray-text);
}

.property-row input {
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    color: var(--light-text);
    font-size: 0.8rem;
}

.workspace-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* 关于我们 */
.about-section {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.team-features {
    margin-top: 2rem;
}

.team-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.team-feature i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.team-feature h4 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.team-feature p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

.team-logo {
    text-align: center;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--nuclear-glow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: var(--dark-bg);
    box-shadow: var(--shadow-glow);
    animation: float 3s ease-in-out infinite;
}

.team-logo h3 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.team-logo p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 页脚 */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--gray-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section i {
    color: var(--primary-color);
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-text);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .workspace-main {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .sidebar-left,
    .sidebar-right {
        border: none;
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .workspace-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--nuclear-glow);
}

/* 选择样式 */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--light-text);
}

/* 焦点样式 */
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
