/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #ffffff;
    --accent-color: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --bg-tertiary: #000000;
    --border-color: rgba(255, 255, 255, 0.4);
    --shadow-color: rgba(255, 255, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, #ffffff, #000000);
    --gradient-secondary: linear-gradient(135deg, #ffffff, #000000);
    --font-primary: 'Space Grotesk', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

body {
    font-family: var(--font-primary);
    background: #050505; /* Fallback */
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 300;
}

/* ===== 宇宙背景 ===== */
#canvas-container, #canvas-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #050505;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Premium Loading System ===== */
.loading-container {
    text-align: center;
    padding: 60px 0;
}

.loading-text {
    margin-top: 20px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.digital-pulse {
    display: inline-block;
    width: 50px;
    height: 50px;
    position: relative;
    vertical-align: middle;
}

.digital-pulse div {
    position: absolute;
    border: 2px solid #fff;
    opacity: 1;
    border-radius: 50%;
    animation: digital-pulse-ani 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.digital-pulse div:nth-child(2) {
    animation-delay: -0.7s;
}

@keyframes digital-pulse-ani {
    0% {
        top: 25px;
        left: 25px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 50px;
        height: 50px;
        opacity: 0;
    }
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skeleton-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    height: 240px;
    position: relative;
    overflow: hidden;
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: skeleton-shimmer-ani 2s infinite;
}

@keyframes skeleton-shimmer-ani {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-title { width: 60%; height: 24px; margin-bottom: 18px; }
.skeleton-line { width: 100%; height: 12px; }
.skeleton-line.short { width: 40%; }

/* ===== 导航栏 ===== */
/* ===== 导航栏 (Silicon Valley Designer Style) ===== */
.header {
    position: fixed;
    top: 50%;
    right: 2rem;
    left: auto;
    width: auto;
    z-index: 1000;
    transform: translateY(-50%);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    background: transparent !important;
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align items to the right */
    background: transparent;
    padding: 0;
    width: auto;
    height: auto;
    overflow: visible;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Disable hover expansion logic */
.nav:hover {
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    border: none;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
    margin-bottom: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* Ensure no underline for link */
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    filter: grayscale(1);
    transition: all 0.5s ease;
}

.logo:hover .logo-img {
    filter: grayscale(0);
    transform: rotate(90deg) scale(1.1);
    border-color: #fff;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    height: auto;
    transform: none;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.logo:hover .logo-text {
    color: #fff;
    opacity: 1;
    letter-spacing: 6px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1.5rem;
    width: 100%;
    opacity: 1;
    transform: none;
    align-items: flex-end;
}

.nav:hover .nav-links {
    opacity: 1;
    transform: none;
}

.nav-link {
    font-family: var(--font-display); /* Using Orbitron for tech feel */
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    padding: 0.4rem 0;
    text-align: right;
    display: block;
    /* Glitch-like digital shadow */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0);
}

.nav-link:hover {
    color: #ffffff;
    letter-spacing: 6px;
    padding-right: 20px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.2);
}

/* Digital Scanline Effect on hover */
.nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #fff;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    width: 0;
    height: 1px;
    background: #fff;
    transition: all 0.4s ease;
    opacity: 0;
}

.nav-link:hover::before {
    width: 12px;
    opacity: 1;
}

/* Mobile Toggle - Hidden on desktop */
.nav-toggle {
    display: none;
}

/* ===== 英雄区域 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: center;
}

/* Hero Greeting Bubble */
.hero-greeting {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 40px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
}

.hero-greeting.show {
    opacity: 1;
    transform: translate(-50%, -120%) scale(1);
}

.hero-content {
    max-width: 500px;
}

.hero-badge {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: 10px;
}

.title-word {
    display: block;
    animation: titleReveal 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.title-word:nth-child(1) {
    animation-delay: 0.2s;
}

.title-word:nth-child(2) {
    animation-delay: 0.4s;
}

.title-word:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.6;
    letter-spacing: 2px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    border-radius: 0; /* Boxy sci-fi look from snippet (snippet didn't specify radius but implied void style usually is sharp, snippet had no radius) - actually snippet default is 0 for buttons usually unless user agent. Snippet didn't have border-radius. */
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.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 ease;
}

.btn:hover::before {
    left: 100%;
}



.btn-secondary {
    /* Inherits base btn styles */
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ===== 宇宙球体 ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== Quantum Singularity Orb ===== */
.quantum-singularity {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: rotateX(60deg) rotateZ(-20deg);
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 10;
}

/* Accretion Disk */
.accretion-disk {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: diskSpin 20s linear infinite;
}

.disk-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.ring-1 {
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    filter: blur(0.5px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.ring-2 {
    width: 280px;
    height: 280px;
    border: 8px solid rgba(255, 255, 255, 0.05);
    border-left: 8px solid rgba(255, 255, 255, 0.3);
    border-right: 8px solid rgba(255, 255, 255, 0.3);
    filter: blur(4px);
    animation: pulseRing 6s ease-in-out infinite alternate;
}

.ring-3 {
    width: 200px;
    height: 200px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    animation: spinReverse 20s linear infinite;
}

@keyframes diskSpin {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(360deg);
    }
}

@keyframes spinReverse {
    0% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }
}

@keyframes pulseRing {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Event Horizon */
.event-horizon {
    position: absolute;
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
    transform: rotateX(-60deg);
    /* Counteract container rotation to face viewer */
    z-index: 10;
}

.singularity-core {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 50%;
    box-shadow:
        0 0 20px #000,
        0 0 40px rgba(255, 255, 255, 0.1),
        0 0 80px rgba(255, 255, 255, 0.1);
}

.photon-ring {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 15px #fff, 0 0 30px rgba(255, 255, 255, 0.3);
    opacity: 0.9;
    animation: photonPulse 3s ease-in-out infinite;
}

@keyframes photonPulse {

    100% {
        box-shadow: 0 0 15px #fff, 0 0 30px rgba(255, 255, 255, 0.3);
        opacity: 0.9;
    }

    50% {
        box-shadow: 0 0 20px #fff, 0 0 40px rgba(255, 255, 255, 0.5);
        opacity: 1;
    }
}

/* Energy Jets */
.energy-jets {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.jet {
    position: absolute;
    left: 50%;
    width: 4px;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    filter: blur(2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform-origin: bottom center;
}

.jet-top {
    bottom: 50%;
    transform: translateX(-50%) rotateX(-90deg);
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
}

.jet-bottom {
    top: 50%;
    transform: translateX(-50%) rotateX(90deg);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
}

/* 3D Particles */
.particles-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: particleCloudSpin 30s linear infinite;
}

.p3d {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff;
}

.p1 {
    top: 20%;
    left: 20%;
    transform: translateZ(50px);
}

.p2 {
    top: 80%;
    left: 80%;
    transform: translateZ(-50px);
}

.p3 {
    top: 20%;
    left: 80%;
    transform: translateZ(20px);
}

.p4 {
    top: 80%;
    left: 20%;
    transform: translateZ(-20px);
}

@keyframes particleCloudSpin {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(360deg);
    }
}

/* ===== 通用容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== 章节样式 ===== */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== 关于区域 (Redesigned: High-End HUD Style) ===== */
.about {
    padding: 10rem 0;
    overflow: hidden;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6rem;
    position: relative;
}

/* 装饰性背景光晕 - 代替方框 */
.about-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: auraPulse 8s ease-in-out infinite alternate;
}

@keyframes auraPulse {
    from { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.about-text-wrapper {
    max-width: 900px;
    text-align: center;
    position: relative;
    cursor: default;
    z-index: 1;
}

.about-paragraph {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.2) 50%, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 12s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.about-text-wrapper:hover .about-paragraph {
    color: #fff;
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}

.about-sub-paragraph {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.6s ease;
    filter: blur(0.5px);
}

.about-text-wrapper:hover .about-sub-paragraph {
    color: rgba(255, 255, 255, 0.8);
    filter: blur(0);
}

/* 数据展示 - 悬浮式 constellations */
.about-stats {
    display: flex;
    justify-content: center;
    gap: 10rem;
    padding-top: 4rem;
    width: 100%;
    position: relative;
}

/* 使用极细线条作为装饰，而非方框 */
.about-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon-wrapper {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon-wrapper {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.stat-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    color: rgba(255, 255, 255, 0.4);
}

/* 响应式适配 */
@media (max-width: 992px) {
    .about-stats {
        gap: 4rem;
        flex-wrap: wrap;
    }
    .about-paragraph {
        font-size: 1.8rem;
    }
}

/* ===== AI Lab (Redesigned: Floating HUD Style) ===== */
.projects {
    padding: 10rem 0;
}

/* ===== AI Lab Header (HUD Redesign) ===== */
.lab-header {
    position: relative;
    text-align: center;
    margin-bottom: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.lab-title-bg {
    position: absolute;
    font-family: var(--font-display);
    font-size: 8rem; /* Reduced from 12rem */
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    letter-spacing: 1.5rem; /* Reduced from 2rem */
    z-index: 0;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.lab-header:hover .lab-title-bg {
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: 2.5rem; /* Adjusted expansion */
    transform: scale(1.05); /* Reduced scale */
    filter: blur(2px);
}

.lab-title-wrapper {
    position: relative;
    z-index: 1;
    transition: transform 0.6s ease;
}

.lab-header:hover .lab-title-wrapper {
    transform: translateY(-5px);
}

.lab-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4); /* Matches about-paragraph dormant state */
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* Liquid Shine Effect */
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.2) 50%, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 12s linear infinite;
}

.lab-header:hover .lab-title {
    color: #fff;
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    letter-spacing: 0.8rem;
}

.lab-line-decoder {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: all 0.6s ease;
}

.lab-header:hover .lab-line-decoder {
    width: 200px;
    background: #fff;
    box-shadow: 0 0 15px #fff;
}

.lab-line-decoder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: decoderSweep 3s infinite;
}

@keyframes decoderSweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.projects-grid {
    display: flex;
    justify-content: center;
    gap: 8rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.project-card {
    position: relative;
    width: 280px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    background: none; /* Remove Box */
    border: none;
    border-radius: 0;
}

/* 核心视觉：悬浮球 */
.project-visual {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 3rem;
    transition: all 0.6s ease;
}

.project-orb {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: orbFloat 4s ease-in-out infinite alternate;
}

/* 球体内部的“核心” */
.project-orb::after {
    content: '';
    width: 30%;
    height: 30%;
    background: #fff;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.5;
    transition: all 0.5s ease;
}

@keyframes orbFloat {
    from { transform: translateY(0) scale(1.0); }
    to { transform: translateY(-15px) scale(1.05); }
}

.project-card:hover .project-orb {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.project-card:hover .project-orb::after {
    opacity: 1;
    width: 50%;
    height: 50%;
    filter: blur(12px);
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.2rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    transition: all 0.5s ease;
    text-align: center;
}

.project-card:hover h3 {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: translateY(10px);
}

/* 项目编号或装饰性线条 */
.project-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.project-card:hover::before {
    width: 100px;
    background: rgba(255, 255, 255, 0.8);
}

.more-projects {
    text-align: center;
    margin-top: 2rem;
}

/* ===== 联系区域 (Redesigned: Nexus Style) ===== */
.contact {
    padding: 10rem 0;
}

.contact-nexus {
    display: flex;
    justify-content: center;
    gap: 8rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.contact-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    padding: 2rem;
    min-width: 200px;
}

.node-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    filter: none; /* Removed grayscale and opacity */
    opacity: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2); /* Added default glow */
}

.contact-node:hover .node-icon {
    transform: scale(1.15) translateY(-10px);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
}

.node-content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.node-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.contact-node:hover .node-content h3 {
    color: #fff;
    letter-spacing: 0.5rem;
}

.contact-node:hover .node-content p {
    color: rgba(255, 255, 255, 0.8);
}

/* 装饰性底座背景 (Hidden by default, reveals on hover) */
.contact-node::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transition: all 0.6s ease;
}

.contact-node:hover::after {
    transform: translateX(-50%) scaleX(2.5);
    box-shadow: 0 0 20px #fff;
}

/* 特殊效果：探索节点 (SE) */
.node--explore {
    position: relative;
}

.node--explore::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: all 0.6s ease;
}

.node--explore:hover::before {
    opacity: 1;
    animation: explorePulse 2s infinite;
}

@keyframes explorePulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.2; }
}

/* ===== 页脚 ===== */
.footer {
    background: rgba(10, 10, 10, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    /* 重置 Header 位置为顶部全宽 */
    .header {
        position: fixed; /* Explicitly reset */
        top: 0;
        left: 0;
        right: 0; /* Align to both edges */
        width: 100%;
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(20px);
    }

    /* 重置 Nav 容器为常规 Flex 布局 */
    .nav {
        display: flex;
        flex-direction: row; /* Reset to Row for Mobile */
        width: 100%;
        height: auto;
        min-height: 60px; /* Ensure minimum click area */
        max-height: none; /* Disable vertical transition limit */
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible; /* Restore overflow */
        padding: 0.5rem 1.5rem;
        justify-content: space-between; /* Space out Logo and Toggle */
        align-items: center;
        transition: none; /* Disable desktop transitions */
    }
    
    .logo {
        flex-direction: row; /* Valid logo direction */
        width: auto; /* Reset width */
        margin-bottom: 0;
    }

    /* 禁用 Hover 效果 */
    .nav:hover {
        background: transparent;
        box-shadow: none;
        padding: 0.5rem 1.5rem; /* Maintain original padding */
        width: 100%; /* Keep width full */
        height: auto;
    }
    
    .nav:hover .logo-text {
        /* Disable hover text reveal on mobile (since there's no hover) 
           But actually, .logo-text is forced visible below anyway 
        */
        font-size: 1.2rem;
        margin: 0 0 0 0.5rem;
        transform: none;
    }

    /* Logo 文字始终显示 */
    .logo-text {
        font-size: 1.2rem;
        opacity: 1;
        width: auto;
        height: auto;
        margin-left: 0.5rem;
        transform: none;
        display: block;
    }

    .nav-links {
        display: none;
    }

    /* 移动端菜单展开样式 */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 1rem 0;
        gap: 0;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links.open .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
        font-size: 1.1rem;
    }

    .nav-links.open .nav-link:last-child {
        border-bottom: none;
    }

    .nav-links.open .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
        color: var(--primary-color);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    #hero-3d-container {
        min-height: 300px;
        margin-top: -2rem;
    }

    /* About Section Mobile Fixes */
    .about-text-wrapper {
        text-align: center;
        padding: 0 1rem;
    }

    .about-paragraph {
        font-size: 1.5rem;
        letter-spacing: 0.2rem;
        line-height: 1.6;
    }

    .about-sub-paragraph {
        font-size: 0.9rem;
        letter-spacing: 0.1rem;
    }

    .about-aura {
        width: 250px;
        height: 250px;
        top: 50%;
        left: 50%;
    }

    /* AI Lab & Contact Mobile HUD Titles */
    .lab-title-bg {
        font-size: 4rem;
        letter-spacing: 0.5rem;
        opacity: 0.05;
    }

    .lab-title {
        font-size: 2rem;
        letter-spacing: 0.5rem;
    }

    .lab-title-bg:hover {
        letter-spacing: 0.8rem;
    }

    .contact-nexus {
        flex-direction: column;
        gap: 3rem;
        padding: 2rem 1rem;
    }

    .contact-node {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Projects Grid Mobile Tweak */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 1rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    /* Hero Greeting Mobile Position */
    .hero-greeting.show {
        transform: translate(-50%, -100%) scale(0.9);
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }
}