/* 文件名: style.css */
/* 全局样式 */
:root {
    --space-black: #00010c;
    --nebula-blue: #0a1a2d;
    --plasma-blue: #00f7ff;
    --star-gold: #ffd700;
    --galaxy-purple: #7d3cff;
    --jupiter-orange: #d97c2b;
    --saturn-gold: #f5f5dc;
    --nebulae-pink: #ff6bff;
    --future-silver: #a0b2c6;
    --card-bg: rgba(10, 26, 45, 0.7); /* 增加透明度 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

body {
    background: var(--space-black);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

/* 更细腻的星空背景 */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3; /* 确保在最底层 */
}

.star {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: twinkle var(--duration, 8s) infinite var(--delay, 0s);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* 太空背景容器 */
#space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* 在星空之上 */
    pointer-events: none;
}

/* 导航栏 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 26, 45, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 247, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo-symbol {
    width: 60px;
    height: 60px;
    position: relative;
}

.logo-symbol svg {
    width: 100%;
    height: 100%;
}

/* 优化字体 - 确保O字母清晰 */
.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
}

.nav-links a:hover {
    color: var(--plasma-blue);
    background: rgba(0, 247, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.nav-links a.active {
    color: var(--plasma-blue);
    border: 1px solid var(--plasma-blue);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.7);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: rgba(10, 26, 45, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 80px 20px 20px;
    transition: right 0.4s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 247, 255, 0.3);
    font-family: 'Montserrat', sans-serif;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--plasma-blue);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主横幅 */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 0 10%;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 247, 255, 0.7);
    font-family: 'Orbitron', sans-serif;
    line-height: 1.2;
}

.hero h1 span {
    display: block;
    font-size: 5rem;
    margin-top: 0.5rem;
    background: linear-gradient(45deg, var(--plasma-blue), var(--galaxy-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Montserrat', sans-serif;
}

.cta-button {
    background: transparent;
    border: 2px solid var(--plasma-blue);
    color: var(--plasma-blue);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Orbitron', sans-serif;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 247, 255, 0.2));
    transition: all 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button:hover {
    box-shadow: 0 0 25px rgba(0, 247, 255, 0.5), 0 0 40px rgba(125, 60, 255, 0.3);
    transform: translateY(-3px);
}

/* 内容部分 */
.section {
    min-height: 100vh;
    padding: 120px 10% 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

/* 标题下方蓝色线条动画 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--plasma-blue);
    animation: line-expand 1.5s infinite alternate;
}

@keyframes line-expand {
    0% { width: 100px; }
    100% { width: 150px; }
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 247, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--plasma-blue);
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.2), 
                0 0 20px rgba(0, 247, 255, 0.3),
                0 0 30px rgba(125, 60, 255, 0.2);
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--plasma-blue);
}

.card p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Montserrat', sans-serif;
}

/* 移除蓝色遮罩背景 */
.mission-control, 
.launch-services, 
.spacecraft, 
.technology, 
.about {
    background: transparent;
}

.dashboard-content {
    display: none;
    background: var(--card-bg);
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

.dashboard-content.active {
    display: block;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mission-card {
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid rgba(0, 247, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.mission-card:hover {
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.3), 0 0 25px rgba(125, 60, 255, 0.2);
    transform: scale(1.03);
}

.mission-card h4 {
    color: var(--plasma-blue);
    margin-bottom: 15px;
}

.mission-data {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
}

.mission-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--plasma-blue);
    width: 0%;
    transition: width 1s ease;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 2px solid var(--plasma-blue);
    transition: all 0.3s ease;
}

.team-member:hover .member-photo {
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
    transform: scale(1.05);
}

footer {
    background: transparent; /* 移除黑色遮罩 */
    padding: 60px 10% 30px;
    text-align: center;
    border-top: 1px solid rgba(0, 247, 255, 0.1);
    position: relative;
}

.footer-logo {
    font-size: 2.5rem;
    margin: 50px 0 20px;
    font-weight: 800;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    color: white;
    text-shadow: 0 0 15px rgba(0, 247, 255, 0.7);
}

.footer-slogan {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 30px;
    font-size: 0.9rem;
}

/* 返回顶部按钮 */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(10, 26, 45, 0.7);
    border: 1px solid var(--plasma-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#scroll-to-top:hover {
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
    transform: scale(1.1);
}

#scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: var(--plasma-blue);
    stroke-width: 2;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h1 span {
        font-size: 3.8rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .nav-links {
        gap: 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h1 span {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .section {
        padding: 100px 5% 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* 未来感元素 */
.futuristic-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--plasma-blue), transparent);
    margin: 40px 0;
    border: none;
}

.glowing-text {
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.7);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 247, 255, 0.1);
    border: 1px solid var(--plasma-blue);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tech-badge:hover {
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
    transform: scale(1.05);
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid rgba(0, 247, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.tab-button:hover {
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
    transform: scale(1.05);
}

.tab-button.active {
    background: rgba(0, 247, 255, 0.2);
    color: var(--plasma-blue);
    border-color: var(--plasma-blue);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
}

.policy-content {
    display: none;
    background: var(--card-bg);
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    text-align: left;
}

.policy-content.active {
    display: block;
}

.jupiter-mission-details {
    background: var(--card-bg);
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    text-align: left;
}

.card-content {
    display: none;
    padding: 20px;
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 10px;
    margin-top: 15px;
    text-align: left;
}

.card-content.active {
    display: block;
}

/* 木星任务时间线 */
.timeline-item {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--plasma-blue);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.timeline-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 3px;
    font-style: italic;
}

/* 站点地图样式 */
#sitemap ul {
    list-style-type: none;
    padding-left: 20px;
}

#sitemap ul li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

#sitemap ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--plasma-blue);
    font-size: 1.2rem;
    line-height: 1;
}

/* 分隔线 */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--plasma-blue), transparent);
    margin: 60px 0;
    border: none;
}