/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-blue: #00d4ff;
    --neon-purple: #8b5cf6;
    --electric-green: #00ff88;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --card-bg: rgba(15, 15, 25, 0.8);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glow-blue: 0 0 20px rgba(0, 212, 255, 0.5);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5);
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.5);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== 鼠标跟随光点效果 ===== */
.cursor-glow {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 1), rgba(139, 92, 246, 0.8), transparent);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8), 0 0 30px rgba(139, 92, 246, 0.5);
    mix-blend-mode: screen;
}

.cursor-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.4);
    animation: cursor-pulse 2s ease-in-out infinite;
}

.cursor-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.3);
    animation: cursor-pulse 2s ease-in-out infinite 0.5s;
}

@keyframes cursor-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

body:hover .cursor-glow {
    opacity: 1;
}

/* 鼠标悬停在可交互元素上时增强光点 */
a:hover ~ .cursor-glow,
button:hover ~ .cursor-glow,
.project-card:hover ~ .cursor-glow,
a:hover .cursor-glow,
button:hover .cursor-glow,
.project-card:hover .cursor-glow {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 1), 0 0 40px rgba(139, 92, 246, 0.8);
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.geometric-shape {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    animation: rotate 3s linear infinite;
}

.shape-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    top: 50%;
    transform-origin: center;
    animation: pulse 2s ease-in-out infinite;
}

.shape-line:nth-child(1) {
    transform: rotate(0deg) translateY(-50%);
    animation-delay: 0s;
}

.shape-line:nth-child(2) {
    transform: rotate(60deg) translateY(-50%);
    animation-delay: 0.3s;
}

.shape-line:nth-child(3) {
    transform: rotate(120deg) translateY(-50%);
    animation-delay: 0.6s;
}

.shape-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: var(--glow-blue);
    animation: blink 1.5s ease-in-out infinite;
}

.shape-dot:nth-child(4) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.shape-dot:nth-child(5) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.5s;
}

.shape-dot:nth-child(6) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.5); }
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-glow {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--mouse-x, 50%);
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--neon-blue);
}

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

.nav-auth {
    position: relative;
}

.auth-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.auth-btn:hover {
    background: var(--neon-blue);
    color: var(--dark-bg);
    box-shadow: var(--glow-blue);
}

.auth-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.auth-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-primary);
    padding: 0.7rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.auth-submit,
.auth-register {
    padding: 0.7rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-submit {
    position: relative;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    background-size: 200% 200%;
    color: var(--text-primary);
    overflow: hidden;
    animation: button-glow-pulse 3s ease-in-out infinite, gradient-shift 4s ease infinite;
}

.auth-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transition: width 0.4s ease, height 0.4s ease;
}

.auth-submit:hover::before {
    width: 200px;
    height: 200px;
}

.auth-submit:hover {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    animation: button-glow-pulse 1.5s ease-in-out infinite, gradient-shift 2s ease infinite;
}

.auth-register {
    position: relative;
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    overflow: hidden;
}

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

.auth-register:hover::before {
    left: 100%;
}

.auth-register:hover {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    border-color: var(--neon-blue);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neon-blue);
    transition: all 0.3s ease;
}

/* ===== 主内容区域 ===== */
.main-content {
    margin-top: 80px;
}

.section {
    min-height: 100vh;
    display: none;
    position: relative;
}

.section.active {
    display: block;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ===== Hero Section ===== */
#home {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 212, 255, 0.05) 0%,
        transparent 50%
    );
    pointer-events: none;
    transition: background 0.3s ease;
    z-index: 0;
}

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

#starfield {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0f 100%);
}

.geometric-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.2), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.3);
    animation: pulse-sphere 4s ease-in-out infinite;
    pointer-events: none;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.sphere-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.3), transparent);
    animation: rotate 20s linear infinite reverse;
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: circuit-move 10s linear infinite;
}

@keyframes pulse-sphere {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

@keyframes circuit-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--electric-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
    animation: titleGlow 3s ease-in-out infinite;
}

.title-line:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.cta-button {
    position: relative;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    background-size: 200% 200%;
    border: none;
    border-radius: 50px;
    color: var(--text-primary);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    animation: button-glow-pulse 3s ease-in-out infinite, gradient-shift 4s ease infinite;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: light-sweep 3s linear infinite;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.8), 0 0 80px rgba(139, 92, 246, 0.4);
    animation: button-glow-pulse 1.5s ease-in-out infinite, gradient-shift 2s ease infinite;
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.cta-button:hover .cta-glow {
    width: 300px;
    height: 300px;
    animation: ripple-expand 0.6s ease-out;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 按钮光影动画 ===== */
@keyframes button-glow-pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), 0 0 60px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6), 0 0 80px rgba(139, 92, 246, 0.3);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes light-sweep {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes ripple-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@keyframes border-glow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== Projects Section ===== */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 450px;
    transform-style: preserve-3d;
    will-change: transform;
}

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

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.project-visual {
    width: 100%;
    height: 100%;
    position: relative;
}

.neural-visual {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(139, 92, 246, 0.3));
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.5) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.5) 2px, transparent 2px);
    background-size: 30px 30px;
    animation: neural-pulse 3s ease-in-out infinite;
}

.quantum-visual {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(0, 255, 136, 0.3));
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(139, 92, 246, 0.1) 10px, rgba(139, 92, 246, 0.1) 20px);
    animation: quantum-shift 4s linear infinite;
}

.data-visual {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 212, 255, 0.3));
    background-image: 
        linear-gradient(90deg, rgba(0, 255, 136, 0.2) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 136, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: data-flow 5s linear infinite;
}

.vision-visual {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(139, 92, 246, 0.3));
    background-image: 
        linear-gradient(90deg, rgba(0, 212, 255, 0.2) 1px, transparent 1px),
        linear-gradient(rgba(0, 212, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.4) 1px, transparent 1px);
    background-size: 25px 25px, 25px 25px, 50px 50px;
    position: relative;
    animation: vision-scan 4s linear infinite;
}

.vision-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.8), transparent);
    animation: vision-scan-line 3s linear infinite;
}

.voice-visual {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(0, 255, 136, 0.3));
    position: relative;
    overflow: hidden;
}

.voice-visual::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 60%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 8%,
            rgba(139, 92, 246, 0.6) 8%,
            rgba(139, 92, 246, 0.6) 9%,
            transparent 9%
        );
    background-size: 100% 100%;
    clip-path: polygon(
        0% 100%, 
        10% 80%, 
        20% 90%, 
        30% 60%, 
        40% 85%, 
        50% 50%, 
        60% 75%, 
        70% 65%, 
        80% 70%, 
        90% 55%, 
        100% 60%, 
        100% 100%
    );
    animation: voice-wave 2s ease-in-out infinite;
}

.voice-visual::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 40%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 8%,
            rgba(0, 255, 136, 0.5) 8%,
            rgba(0, 255, 136, 0.5) 9%,
            transparent 9%
        );
    background-size: 100% 100%;
    clip-path: polygon(
        0% 100%, 
        15% 70%, 
        25% 85%, 
        35% 50%, 
        45% 75%, 
        55% 40%, 
        65% 65%, 
        75% 55%, 
        85% 60%, 
        95% 45%, 
        100% 50%, 
        100% 100%
    );
    animation: voice-wave 1.8s ease-in-out infinite reverse;
    animation-delay: 0.5s;
}

.predict-visual {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 212, 255, 0.3));
    position: relative;
    overflow: hidden;
}

.predict-visual::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        transparent 0%,
        transparent 30%,
        rgba(0, 255, 136, 0.3) 50%,
        rgba(0, 212, 255, 0.4) 70%,
        rgba(0, 255, 136, 0.3) 100%
    );
    clip-path: polygon(0 100%, 10% 80%, 20% 85%, 30% 70%, 40% 75%, 50% 60%, 60% 65%, 70% 50%, 80% 55%, 90% 40%, 100% 45%, 100% 100%);
    animation: predict-trend 4s ease-in-out infinite;
}

.chat-visual {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(139, 92, 246, 0.3));
    position: relative;
    overflow: hidden;
}

.chat-visual::before,
.chat-visual::after {
    content: '';
    position: absolute;
    background: rgba(0, 212, 255, 0.4);
    border-radius: 15px 15px 15px 0;
    animation: chat-bubble 2s ease-in-out infinite;
}

.chat-visual::before {
    width: 60%;
    height: 30%;
    bottom: 30%;
    left: 10%;
    animation-delay: 0s;
}

.chat-visual::after {
    width: 50%;
    height: 25%;
    bottom: 10%;
    right: 10%;
    border-radius: 15px 15px 0 15px;
    animation-delay: 1s;
}

.automl-visual {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(0, 255, 136, 0.3));
    position: relative;
    overflow: hidden;
}

.automl-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 3px solid rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    border-top-color: transparent;
    border-right-color: transparent;
    animation: automl-rotate 3s linear infinite;
}

.automl-visual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    border: 2px solid rgba(0, 255, 136, 0.5);
    border-radius: 50%;
    border-bottom-color: transparent;
    border-left-color: transparent;
    animation: automl-rotate 2s linear infinite reverse;
}

@keyframes neural-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes quantum-shift {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

@keyframes data-flow {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

@keyframes vision-scan {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

@keyframes vision-scan-line {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes voice-wave {
    0%, 100% { 
        transform: scaleY(0.5);
        opacity: 0.5;
    }
    50% { 
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes predict-trend {
    0%, 100% { 
        transform: translateX(0);
        opacity: 0.7;
    }
    50% { 
        transform: translateX(5px);
        opacity: 1;
    }
}

@keyframes chat-bubble {
    0%, 100% { 
        transform: scale(1) translateY(0);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.05) translateY(-5px);
        opacity: 1;
    }
}

@keyframes automl-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.project-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.project-btn {
    position: relative;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
}

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

.project-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--electric-green), var(--neon-blue));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: border-glow 3s linear infinite;
}

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

.project-btn:hover {
    background: var(--neon-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.3);
    border-color: var(--neon-blue);
}

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

.project-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    padding: 2rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: all 0.3s ease;
    z-index: 10;
}

.project-details.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.details-content h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.details-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 20px;
    color: var(--neon-blue);
    font-size: 0.9rem;
}

.use-cases h5 {
    color: var(--neon-purple);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.use-cases ul {
    list-style: none;
    padding-left: 0;
}

.use-cases li {
    color: var(--text-secondary);
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.use-cases li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--electric-green);
}

.close-details {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    color: var(--neon-blue);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-details:hover {
    background: var(--neon-blue);
    color: var(--dark-bg);
    transform: rotate(90deg);
}

/* ===== About Section ===== */
#about {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.particle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

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

.about-story {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-story h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
}

.about-story p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.core-values h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--neon-purple);
    text-align: center;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.value-item h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-secondary);
}

/* ===== Contact Section ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: var(--dark-bg);
    padding: 0 0.5rem;
    color: var(--neon-blue);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    opacity: 1;
}

.form-submit {
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    background-size: 200% 200%;
    border: none;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    animation: button-glow-pulse 3s ease-in-out infinite, gradient-shift 4s ease infinite;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: light-sweep 3s linear infinite;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.7), 0 0 60px rgba(139, 92, 246, 0.3);
    animation: button-glow-pulse 1.5s ease-in-out infinite, gradient-shift 2s ease infinite;
}

.submit-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.form-submit:hover .submit-glow {
    width: 300px;
    height: 300px;
    animation: ripple-expand 0.6s ease-out;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
}

.info-icon {
    font-size: 2.5rem;
}

.info-content h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.info-content a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--neon-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

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

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    background: var(--neon-blue);
    color: var(--dark-bg);
    box-shadow: var(--glow-blue);
    transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon-blue);
}

.footer-logo-pulse {
    width: 20px;
    height: 20px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: var(--glow-blue);
    animation: pulse 2s ease-in-out infinite;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.footer-links span {
    color: var(--text-secondary);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(0, 212, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

