* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00f5ff;
    --secondary: #7b2fff;
    --bg-dark: #050510;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text: #e0e0ff;
    --text-muted: #8888aa;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow-x: hidden;
}

/* ===== 星空背景 ===== */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars  { background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="800"><circle cx="100" cy="200" r="1" fill="white" opacity=".8"/><circle cx="300" cy="50" r="1" fill="white" opacity=".6"/><circle cx="500" cy="350" r="1" fill="white" opacity=".9"/><circle cx="700" cy="150" r="1" fill="white" opacity=".7"/><circle cx="200" cy="600" r="1" fill="white" opacity=".5"/><circle cx="650" cy="500" r="1" fill="white" opacity=".8"/><circle cx="400" cy="700" r="1" fill="white" opacity=".6"/><circle cx="50"  cy="400" r="1" fill="white" opacity=".9"/></svg>') repeat; animation: moveStars 80s linear infinite; }
.stars2 { background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="600"><circle cx="150" cy="100" r="1.5" fill="%2300f5ff" opacity=".5"/><circle cx="450" cy="300" r="1.5" fill="%2300f5ff" opacity=".4"/><circle cx="250" cy="500" r="1.5" fill="%2300f5ff" opacity=".6"/><circle cx="550" cy="200" r="1.5" fill="%2300f5ff" opacity=".3"/></svg>') repeat; animation: moveStars 120s linear infinite; }
.stars3 { background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><circle cx="80"  cy="80"  r="2" fill="%237b2fff" opacity=".4"/><circle cx="320" cy="160" r="2" fill="%237b2fff" opacity=".3"/><circle cx="200" cy="320" r="2" fill="%237b2fff" opacity=".5"/></svg>') repeat; animation: moveStars 160s linear infinite; }

@keyframes moveStars {
    from { background-position: 0 0; }
    to   { background-position: 1000px 1000px; }
}

/* ===== 导航栏 ===== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(ellipse at center, rgba(123, 47, 255, 0.15) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
}

/* Glitch 效果 */
.glitch {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: #fff;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.glitch::before {
    color: var(--primary);
    animation: glitch1 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: var(--secondary);
    animation: glitch2 3s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-3px, 1px); }
    94% { transform: translate(3px, -1px); }
    96% { transform: translate(-2px, 2px); }
}

@keyframes glitch2 {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(3px, -1px); }
    94% { transform: translate(-3px, 1px); }
    96% { transform: translate(2px, -2px); }
}

.subtitle {
    margin: 1.5rem 0 2.5rem;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.5);
}

/* ===== 技术板块 ===== */
.tech-section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
}

.tech-section.dark {
    background: rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 2px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ===== 卡片 ===== */
.tech-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.tech-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s;
}

.tech-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 245, 255, 0.1);
}

.tech-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tech-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.tech-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== 页脚 ===== */
footer {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 245, 255, 0.1);
    padding: 2rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.footer-content a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-content a:hover {
    opacity: 0.7;
}

/* ===== 汉堡菜单（移动端） ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(5, 5, 16, 0.97);
        border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    }

    .nav-links.open { display: flex; }

    .nav-links li a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* 导航高亮 */
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}
