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

:root {
    /* 赛博朋克配色 */
    --primary-bg: #0a0a0a;
    --secondary-bg: #111111;
    --card-bg: rgba(20, 20, 20, 0.8);
    --glass-bg: rgba(10, 10, 10, 0.7);
    
    /* 霓虹色彩 */
    --neon-blue: #00f5ff;
    --neon-purple: #b224ef;
    --neon-pink: #ff006e;
    --neon-green: #00ff41;
    
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #606060;
    
    /* 字体 */
    --font-primary: 'Orbitron', 'Noto Sans SC', sans-serif;
    --font-secondary: 'Noto Sans SC', sans-serif;
    
    /* 间距 */
    --container-max-width: 1200px;
    --section-padding: 100px 0;
}

body {
    font-family: var(--font-secondary);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.3);
    transition: all 0.3s ease;
    max-width: 100vw;
}

.navbar-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 10px var(--neon-blue));
}

.brand-text {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero区域 */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hologram-planet {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.2), transparent);
    border: 2px solid var(--neon-blue);
    animation: hologramFloat 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
}

.title-line {
    display: block;
    margin-bottom: 10px;
}

.highlight {
    color: var(--neon-blue);
    text-shadow: 0 0 30px var(--neon-blue);
}

.code-text {
    color: var(--neon-green);
    text-shadow: 0 0 30px var(--neon-green);
    font-family: 'Courier New', monospace;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

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

.cta-primary,
.cta-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 40px rgba(0, 245, 255, 0.7);
}

.cta-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--neon-blue);
}

.cta-secondary:hover {
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--neon-blue);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-blue);
    animation: scrollDot 2s infinite;
}

/* 内容区域 */
.content-section {
    padding: var(--section-padding);
}

.dark-section {
    background: var(--secondary-bg);
}

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

.section-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    margin: 0 auto 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 关于游戏区域 */
.game-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-intro {
    font-size: 1.3rem;
    color: var(--neon-blue);
    margin-bottom: 30px;
}

.story-choice {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--neon-green);
    backdrop-filter: blur(10px);
}

.story-choice p {
    margin-bottom: 10px;
    font-style: italic;
}

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

.zone-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.zone-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--neon-blue);
}

.zone-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.icon-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    opacity: 0.2;
}

.zone-letter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
}

.zone-card h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.zone-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

/* 时间轴样式 */
.workflow-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.workflow-timeline {
    position: relative;
}

.workflow-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
}

.timeline-content h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--neon-blue);
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.timeline-tech {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--neon-blue);
}

.current-progress {
    position: sticky;
    top: 100px;
}

.progress-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 245, 255, 0.3);
    backdrop-filter: blur(10px);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-status {
    color: var(--neon-green);
    font-weight: 600;
}

.progress-countdown {
    color: var(--neon-pink);
    font-weight: 600;
}

.progress-card h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
    border-radius: 4px;
    transition: width 1s ease;
}

/* 团队区域 */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.team-section h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--neon-blue);
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
}

.tech-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-bg);
}

.tech-icon.python { background: linear-gradient(135deg, #3776ab, #ffd43b); }
.tech-icon.ai { background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink)); }
.tech-icon.mobile { background: linear-gradient(135deg, var(--neon-blue), var(--neon-green)); }
.tech-icon.web { background: linear-gradient(135deg, #e34f26, #f7df1e); }

.tech-icon::after {
    content: attr(data-icon);
    font-size: 1.2rem;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

.qpython-info {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--neon-blue);
}

.qpython-info h4 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--neon-blue);
}

.qpython-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 20px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-group h4 {
    font-family: var(--font-primary);
    margin-bottom: 20px;
    color: var(--neon-blue);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

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

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--neon-blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.5);
}

.back-to-top span {
    color: var(--primary-bg);
    font-size: 1.5rem;
    font-weight: bold;
}

/* 动画关键帧 */
@keyframes hologramFloat {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-60%) rotate(180deg); }
}

@keyframes scrollDot {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}