:root {
    --bg-color: #050505;
    --bg-card: rgba(20, 25, 35, 0.6);
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.4);
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --font-sans: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* --- 背景 --- */
/* --- 极客背景 --- */
.grid-overlay {
    display: none; /* 1. 隐藏网格 */
}

#canvas-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    /* 加深背景，营造深空感 */
    background: radial-gradient(circle at 50% 50%, #0b101a 0%, #000000 100%);
}

/* --- 导航栏 --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 3%; /* 左右留白很少，铺开 */
    height: 80px;
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo-link { display: block; }
.logo-container svg { height: 38px; }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-item {
    color: var(--text-dim); text-decoration: none; font-family: var(--font-code);
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
    position: relative; padding: 5px 0;
}
.nav-item:hover, .nav-item.active { color: var(--accent); text-shadow: 0 0 8px var(--accent-glow); }
.nav-item.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px;
    background: var(--accent); box-shadow: 0 0 10px var(--accent);
}

.lang-switch {
    background: transparent; border: 1px solid var(--text-dim); color: var(--text-main);
    padding: 6px 16px; font-family: var(--font-code); cursor: pointer; font-size: 0.8rem; transition: 0.3s;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

/* 移动端菜单 */
.mobile-menu-btn { display: none; font-size: 1.5rem; color: #fff; cursor: pointer; }
.mobile-menu-overlay {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100%;
    background: #000; z-index: 2000; transition: 0.4s;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
}
.mobile-menu-overlay.active { right: 0; }
.mobile-menu-overlay a { color: #fff; font-size: 1.5rem; text-decoration: none; font-family: var(--font-code); text-transform: uppercase; }
.close-btn { position: absolute; top: 2rem; right: 2rem; font-size: 2rem; cursor: pointer; }

/* --- 主容器 --- */
main { flex: 1; padding-top: 80px; display: flex; flex-direction: column; }

/* --- 核心布局修改：全屏流式 --- */
section {
    padding: 6rem 0; /* 上下间距 */
    width: 94%;      /* 占据屏幕 94% 的宽度 */
    max-width: none; /* 取消最大宽度限制！ */
    margin: 0 auto;
    position: relative; z-index: 10;
}

.page-header { margin-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
.section-label { font-family: var(--font-code); color: var(--accent); font-size: 1rem; display: block; margin-bottom: 0.5rem; }
.section-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; }

/* --- Performance Page (图表放大) --- */
.chart-wrapper {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
    padding: 20px; border-radius: 6px; margin-bottom: 3rem; position: relative;
    /* 关键：高度自适应屏幕，非常巨大 */
    height: 70vh; 
    min-height: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat-card { background: var(--bg-card); padding: 2.5rem; border-left: 3px solid var(--accent); }
.stat-card h3 { font-family: var(--font-code); color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem; }
.stat-card .value { font-size: 3.5rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 0.5rem; }
.stat-card .desc { font-size: 0.9rem; color: #666; }

/* --- Hero (Index) --- */
.hero { min-height: 85vh; display: flex; align-items: center; }
.hero-content { width: 100%; }
.system-status { font-family: var(--font-code); color: #22c55e; font-size: 0.9rem; margin-bottom: 2rem; display: flex; align-items: center; gap: 10px; }
.status-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 10px #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%{opacity:1} 50%{opacity:0.3} 100%{opacity:1} }

h1 { font-size: 5.5rem; line-height: 1.05; margin-bottom: 2rem; max-width: 1400px; }
.highlight { color: transparent; -webkit-text-fill-color: transparent; background: linear-gradient(90deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; }
.hero-subtitle { font-family: var(--font-code); color: var(--text-dim); margin-bottom: 3rem; border-left: 3px solid var(--accent); padding-left: 1.5rem; font-size: 1.2rem; line-height: 1.8; max-width: 800px; }
.hero-btns { display: flex; gap: 1.5rem; }
.cta-btn {
    padding: 1.2rem 3rem; border: 1px solid var(--accent); color: var(--accent); text-decoration: none;
    font-family: var(--font-code); font-weight: bold; transition: 0.3s; font-size: 1rem; cursor: pointer; text-transform: uppercase;
}
.cta-btn.primary { background: var(--accent-glow); color: #fff; border-color: var(--accent); }
.cta-btn:hover { box-shadow: 0 0 25px var(--accent-glow); transform: translateY(-3px); }

/* --- Technology & Team & Careers --- */
.tech-grid, .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; }

.tech-item { background: var(--bg-card); padding: 3rem; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.tech-item:hover { border-color: var(--accent); box-shadow: 0 0 30px rgba(6, 182, 212, 0.1); }
.tech-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 1.5rem; }
.tech-item h4 { margin-bottom: 1rem; font-size: 1.5rem; }
.tech-item p { color: var(--text-dim); font-size: 1.1rem; line-height: 1.7; }

.team-card { background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%); border: 1px solid rgba(255,255,255,0.1); padding: 2.5rem; position: relative; }
.team-card::before { content: "[ NODE ]"; position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-code); font-size: 0.7rem; color: var(--accent); opacity: 0.7; }
.team-role { font-size: 1.5rem; font-weight: bold; color: #fff; margin-bottom: 0.5rem; }
.team-edu { font-family: var(--font-code); color: var(--accent); font-size: 0.9rem; margin-bottom: 1.5rem; }
.team-exp { color: var(--text-dim); font-size: 1rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1rem; }

.careers-list { display: flex; flex-direction: column; gap: 1.5rem; }
.job-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); padding: 2.5rem; text-decoration: none; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; border-left: 3px solid transparent; }
.job-item:hover { border-color: var(--accent); transform: translateX(10px); background: rgba(20, 25, 35, 0.9); }
.job-title { color: #fff; font-weight: bold; font-size: 1.4rem; display: block; margin-bottom: 0.5rem; }
.job-meta { color: var(--text-dim); font-family: var(--font-code); font-size: 0.9rem; }
.job-arrow { color: var(--accent); font-family: var(--font-code); font-size: 1.5rem; }

/* --- Footer --- */
footer { padding: 3rem 5%; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); margin-top: auto; background: rgba(0,0,0,0.5); }
.footer-content { color: var(--text-dim); font-size: 0.9rem; font-family: var(--font-code); }
footer a { color: var(--accent); text-decoration: none; }

/* --- Mobile --- */
@media (max-width: 768px) {
    nav { padding: 0 5%; }
    .desktop-only { display: none; }
    .mobile-menu-btn { display: block; }
    section { width: 92%; padding: 3rem 0; }
    h1 { font-size: 3rem; }
    .section-title { font-size: 2.5rem; }
    .stats-grid, .tech-grid, .team-grid { grid-template-columns: 1fr; }
    .chart-wrapper { height: 400px; padding: 10px; }
    .job-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .job-arrow { align-self: flex-end; }
}