:root {
    --bg-color: #020205; /* 极深的蓝黑背景 */
    --glass-bg: rgba(0, 50, 150, 0.05);
    --glass-border: rgba(0, 100, 255, 0.1);
    
    /* 核心修改：统一为深蓝色 */
    --accent: #0040ff;      /* 深蓝 */
    --accent-light: #0077ff; /* 亮蓝（用于高光）*/
    
    --text-main: #ffffff;
    --text-sec: #88aaff;    /* 文字也带一点蓝调 */
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- 画布 --- */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
}

/* --- 控制台 --- */
.controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    background: rgba(0, 20, 50, 0.8); /* 蓝底 */
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.controls label {
    font-size: 0.7rem;
    color: var(--accent-light);
    letter-spacing: 1px;
    font-weight: 700;
}

.controls select {
    background: transparent;
    border: 1px solid rgba(0, 60, 200, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.controls select:hover {
    border-color: var(--accent-light);
    box-shadow: 0 0 10px var(--accent);
}

/* --- 导航栏 --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 2, 5, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 100, 255, 0.05);
    display: flex;
    justify-content: center;
}

.nav-links {
    position: relative;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li { padding: 1.2rem 1.5rem; z-index: 2; }

nav a {
    color: var(--text-sec);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--text-main);
    text-shadow: 0 0 15px var(--accent);
}

.nav-marker {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-light);
    box-shadow: 0 0 20px var(--accent);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    width: 0;
    border-radius: 2px 2px 0 0;
}

/* --- 布局与卡片 --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9); /* 加强阴影以在亮粒子前看清字 */
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

.highlight {
    color: var(--accent-light);
    text-shadow: 0 0 20px rgba(0, 80, 255, 0.6);
}

.subtitle {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-sec);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:not(.outline) {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 40, 255, 0.4);
}

.btn.outline { border: 1px solid rgba(100,150,255,0.3); color: #fff; }

.btn:hover { transform: translateY(-3px); box-shadow: 0 0 30px var(--accent); }

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(0, 60, 255, 0.1);
    border-color: var(--accent-light);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.grid-item {
    height: 200px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.3);
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(0, 80, 255, 0.2);
    color: var(--accent-light);
    margin-right: 5px;
    font-family: 'JetBrains Mono', monospace;
}