/* --- 变量定义 --- */
:root {
    --bg-color: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #a0a0b0;
    --text-highlight: #00d4ff;
    --text-accent: #7c3aed;
    --text-white: #ffffff;
    --accent-glow: rgba(0, 212, 255, 0.2);
    --accent-purple: rgba(124, 58, 237, 0.3);
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    --font-main: "Inter", system-ui, -apple-system, sans-serif;
    --font-code: "JetBrains Mono", monospace;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-color: rgba(255, 255, 255, 0.06);
    --nav-bg: rgba(10, 10, 15, 0.7);
    --nav-scrolled-bg: rgba(10, 10, 15, 0.95);
    --card-bg: rgba(31, 41, 55, 0.5);
}

/* --- 日间模式 (默认) --- */
:root.light-theme,
.light-theme {
    --bg-color: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-main: #374151;
    --text-highlight: #0e7490;
    --text-accent: #6d28d9;
    --text-white: #111827;
    --accent-glow: rgba(14, 116, 144, 0.12);
    --accent-purple: rgba(109, 40, 217, 0.15);
    --gradient-primary: linear-gradient(135deg, #0e7490 0%, #6d28d9 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f3f4f6 100%);
    --shadow-glow: 0 0 30px rgba(14, 116, 144, 0.12);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --border-color: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-scrolled-bg: rgba(255, 255, 255, 0.98);
    --card-bg: #ffffff;
}

/* 暗色模式 (显式) */
.dark-theme {
    --bg-color: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #a0a0b0;
    --text-highlight: #00d4ff;
    --text-accent: #7c3aed;
    --text-white: #ffffff;
    --accent-glow: rgba(0, 212, 255, 0.2);
    --accent-purple: rgba(124, 58, 237, 0.3);
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-color: rgba(255, 255, 255, 0.06);
    --nav-bg: rgba(10, 10, 15, 0.7);
    --nav-scrolled-bg: rgba(10, 10, 15, 0.95);
    --card-bg: rgba(31, 41, 55, 0.5);
}

/* --- 全局重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 粒子背景 --- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- 导航栏 --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--nav-scrolled-bg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo .dot {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-gh {
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--text-highlight) !important;
    background: rgba(0, 212, 255, 0.05);
    font-weight: 600;
}

.btn-gh:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--text-highlight);
    box-shadow: var(--shadow-glow);
}

.btn-gh::after {
    display: none !important;
}

/* --- 主题切换按钮 --- */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-main);
}

.theme-toggle:hover {
    border-color: var(--text-highlight);
    color: var(--text-highlight);
    background: var(--accent-glow);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

.light-theme .theme-toggle .sun-icon {
    display: block;
}

.light-theme .theme-toggle .moon-icon {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-white);
}

.mobile-menu a:hover {
    color: var(--text-highlight);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::before {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
    top: 20%;
    left: 10%;
    filter: blur(80px);
    animation: float1 15s ease-in-out infinite;
}

.hero-bg::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
    bottom: 10%;
    right: 10%;
    filter: blur(80px);
    animation: float2 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 20px) scale(0.9); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.05); }
    66% { transform: translate(30px, -20px) scale(0.95); }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-white);
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 12px;
    opacity: 0.7;
    font-weight: 300;
    letter-spacing: 2px;
}

.typewriter {
    font-family: var(--font-code);
    color: var(--text-highlight);
    min-height: 1.6em;
    margin-bottom: 48px;
    font-size: 1rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-color);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--gradient-primary);
    border-radius: 4px;
    animation: scrollDown 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 20px;
    }
}

/* --- 通用 Section --- */
.section {
    padding: 120px 0;
    position: relative;
}

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

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-white);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 4px;
}

/* --- About Section --- */
.about {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.02) 50%, transparent 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.about-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card h3 {
    color: var(--text-white);
    font-size: 1.6rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.about-card p {
    color: var(--text-main);
    line-height: 1.8;
}

.about-card strong {
    color: var(--text-highlight);
}

/* --- Projects Section --- */
.projects {
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.02) 50%, transparent 100%);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 32px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-card), 0 0 60px rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.15);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover::after {
    opacity: 1;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.project-card h3 {
    color: var(--text-white);
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.kernel {
    background: rgba(255, 99, 71, 0.12);
    color: #ff6b6b;
    border: 1px solid rgba(255, 99, 71, 0.2);
}

.tag.lang {
    background: rgba(0, 212, 255, 0.1);
    color: var(--text-highlight);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.tag.tool {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.project-card p {
    margin-bottom: 28px;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
}

.card-link {
    color: var(--text-highlight);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.card-link:hover {
    gap: 14px;
    color: var(--text-white);
}

.card-link svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

/* --- Join Section --- */
.join {
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-secondary) 50%, var(--bg-color) 100%);
    text-align: center;
}

.join::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
}

.join-content {
    position: relative;
    z-index: 1;
}

.join-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-white);
    margin-bottom: 20px;
    font-weight: 800;
}

.join-content > p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 48px;
    color: var(--text-main);
    line-height: 1.8;
}

.join-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-qq {
    background: linear-gradient(135deg, #12b7f5 0%, #0984e3 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(18, 183, 245, 0.3);
}

.btn-qq:hover {
    background: linear-gradient(135deg, #0ea0d8 0%, #0770c2 100%);
    box-shadow: 0 8px 30px rgba(18, 183, 245, 0.4);
    transform: translateY(-2px);
}

.btn-gh-dark {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-gh-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* --- Footer --- */
footer {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-main);
    opacity: 0.8;
}

.footer-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-links a {
    color: var(--text-main);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-highlight);
}

.footer-links .separator {
    opacity: 0.4;
}

.footer-note {
    margin-top: 12px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    opacity: 0.6;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- 动画类 (JS 触发) --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* --- 统计数字动画 --- */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-top: 8px;
    display: block;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .about-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .about-card,
    .project-card {
        padding: 30px 24px;
    }

    .join-actions {
        flex-direction: column;
        padding: 0 20px;
    }

    .stats-section {
        gap: 40px;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .join-content h2 {
        font-size: 2rem;
    }
}

/* --- 选中文本样式 --- */
::selection {
    background: var(--accent-glow);
    color: var(--text-white);
}

/* --- 滚动条样式 --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.5);
}

/* 日间模式滚动条 */
.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* --- 页面内容布局 --- */
.page-content {
    padding-top: 80px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-white);
    font-weight: 800;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-main);
    opacity: 0.8;
}

/* 导航激活状态 */
.nav-links a.active {
    color: var(--text-highlight);
}

.nav-links a.active::after {
    width: 100%;
}

/* --- 首页预览卡片 --- */
.preview-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.02) 50%, transparent 100%);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.preview-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: block;
    position: relative;
    overflow: hidden;
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.preview-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.preview-card:hover::before {
    opacity: 1;
}

.preview-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.preview-card h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.preview-card p {
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.6;
}

.preview-link {
    color: var(--text-highlight);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.preview-card:hover .preview-link {
    gap: 14px;
}

/* --- 关于页面图标 --- */
.about-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

/* --- 时间线样式 --- */
.timeline-section {
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.02) 50%, transparent 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--text-highlight), var(--text-accent));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -48px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.timeline-content {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateX(8px);
}

.timeline-date {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-highlight);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.timeline-content h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-main);
    font-size: 0.95rem;
}

/* --- 项目详情页 --- */
.project-showcase {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.project-detail {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.project-detail:hover {
    border-color: rgba(0, 212, 255, 0.15);
    box-shadow: var(--shadow-card), 0 0 60px rgba(0, 212, 255, 0.1);
}

.project-detail-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.project-icon-large {
    font-size: 4rem;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.4));
}

.project-meta h2 {
    color: var(--text-white);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.project-license {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-accent);
    background: rgba(124, 58, 237, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.project-detail-body {
    padding: 40px;
}

.project-description {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.project-features {
    margin-bottom: 32px;
}

.project-features h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.project-features ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.project-features li {
    color: var(--text-main);
    padding-left: 24px;
    position: relative;
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--text-highlight);
    font-weight: 700;
}

.project-tech {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.project-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.project-stats .stat-item {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-main);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-main);
}

/* --- 加入页面角色卡片 --- */
.join-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.join-intro p {
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.8;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.role-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.role-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.role-card:hover::before {
    opacity: 1;
}

.role-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.role-card h3 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.role-card p {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.role-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-skills li {
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 6px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-highlight);
}

/* --- 加入 CTA --- */
.join-cta {
    text-align: center;
    padding: 60px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.join-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
}

.join-cta h2 {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 12px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.join-cta > p {
    color: var(--text-main);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.join-cta .join-actions {
    position: relative;
    z-index: 1;
}

/* --- 响应式扩展 --- */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -38px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 20px 24px;
    }

    .project-detail-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px;
    }

    .project-detail-body {
        padding: 30px 24px;
    }

    .project-features ul {
        grid-template-columns: 1fr;
    }

    .join-cta {
        padding: 40px 24px;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 成员页面 --- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.member-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.member-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.member-card:hover::before {
    opacity: 1;
}

.member-avatar {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    transition: var(--transition);
}

.member-card:hover .avatar-img {
    border-color: var(--text-highlight);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

.member-info {
    padding: 24px 32px 32px;
    text-align: center;
}

.member-info h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.member-handle {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-highlight);
    display: block;
    margin-bottom: 16px;
}

.member-bio {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.member-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.member-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: var(--transition);
}

.member-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--text-highlight);
}

.member-link svg {
    opacity: 0.7;
}

.member-link:hover svg {
    opacity: 1;
}

/* --- 成员页面响应式 --- */
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
    }

    .member-info {
        padding: 20px 24px 28px;
    }

    .member-links {
        flex-direction: column;
        align-items: center;
    }

    .member-link {
        width: 100%;
        justify-content: center;
    }
}

/* --- 爱发电按钮 --- */
.btn-afdian {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3);
}

.btn-afdian:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.4);
    transform: translateY(-2px);
}

/* --- 日间模式额外优化 --- */
.light-theme .about-card,
.light-theme .project-card,
.light-theme .role-card,
.light-theme .member-card,
.light-theme .timeline-content,
.light-theme .project-detail {
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

.light-theme .project-card::before {
    height: 4px;
}

.light-theme .tag.kernel {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

.light-theme .tag.lang {
    background: rgba(14, 116, 144, 0.1);
    color: #0e7490;
    border-color: rgba(14, 116, 144, 0.2);
}

.light-theme .tag.tool {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.2);
}

.light-theme .tech-tag {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .member-link {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .member-link:hover {
    background: rgba(14, 116, 144, 0.08);
    border-color: rgba(14, 116, 144, 0.3);
}

.light-theme .role-skills li {
    background: rgba(14, 116, 144, 0.08);
    border-color: rgba(14, 116, 144, 0.2);
}

.light-theme .project-stats .stat-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-theme .btn-gh {
    background: rgba(14, 116, 144, 0.05);
    border-color: rgba(14, 116, 144, 0.3);
}

.light-theme .btn-gh:hover {
    background: rgba(14, 116, 144, 0.1);
}

.light-theme .btn-outline {
    border-color: rgba(0, 0, 0, 0.15);
}

.light-theme .btn-outline:hover {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.03);
}

.light-theme .project-license {
    background: rgba(109, 40, 217, 0.08);
    border-color: rgba(109, 40, 217, 0.2);
}

.light-theme .avatar-img {
    border-color: rgba(14, 116, 144, 0.3);
    box-shadow: 0 0 20px rgba(14, 116, 144, 0.15);
}

.light-theme .timeline-marker {
    box-shadow: 0 0 15px rgba(14, 116, 144, 0.4);
}

/* 日间模式下降低粒子效果不透明度 */
.light-theme #particles-canvas {
    opacity: 0.4;
}

/* 日间模式下鼠标光效调整 */
.light-theme .cursor-glow {
    background: radial-gradient(circle, rgba(14, 116, 144, 0.03) 0%, transparent 70%);
}

/* --- 首页统计卡片 --- */
.stats-section-home {
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--text-highlight);
}

.stat-card .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

/* --- 技术栈区域 --- */
.tech-section {
    background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 50%, transparent 100%);
    position: relative;
}

.section-desc {
    color: var(--text-main);
    margin-top: 12px;
    font-size: 1rem;
}

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

.tech-item {
    text-align: center;
    padding: 32px 16px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-6px);
    border-color: var(--text-highlight);
    box-shadow: var(--shadow-glow);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.tech-item h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tech-item p {
    color: var(--text-main);
    font-size: 0.85rem;
}

/* --- CTA 区域 --- */
.cta-section {
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    padding: 60px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 16px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.cta-content > p {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* --- 装饰性网格背景 --- */
.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

/* --- 响应式更新 --- */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-card {
        padding: 30px 16px;
    }
    
    .stat-card .stat-number {
        font-size: 2.5rem;
    }
    
    .cta-content {
        padding: 40px 24px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 装饰性分隔线 --- */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 0;
}

/* --- 浮动装饰元素 --- */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.floating-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: 10%;
    left: -5%;
    animation: float1 20s ease-in-out infinite;
}

.floating-shapes .shape-2 {
    width: 200px;
    height: 200px;
    background: var(--text-accent);
    bottom: 20%;
    right: -3%;
    animation: float2 25s ease-in-out infinite;
}

/* --- 核心价值区域 --- */
.values-section {
    background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 50%, transparent 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-item {
    text-align: center;
    padding: 40px 24px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-8px);
    border-color: var(--text-highlight);
    box-shadow: var(--shadow-glow);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.value-item h4 {
    color: var(--text-white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.value-item p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}
