* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00d4ff;
    --secondary: #ff1493;
    --dark-bg: #0f172a;
    --light-text: #e2e8f0;
    --gray-text: #94a3b8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f35 100%);
    color: var(--light-text);
    line-height: 1.6;
}

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

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-logo h1 {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* Hero 部分 */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-text);
    margin-bottom: 8px;
}

.hero-description {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 20px;
}

.hero-cta {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Hero 视觉 */
.hero-visual {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-content: flex-start;
}

.floating-card {
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    animation: float 3s ease-in-out infinite;
    white-space: nowrap;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 0.3s;
}

.card-3 {
    animation-delay: 0.6s;
}

.card-4 {
    animation-delay: 0.9s;
}

.card-5 {
    animation-delay: 1.2s;
}

.card-6 {
    animation-delay: 1.5s;
}

.card-7 {
    animation-delay: 1.8s;
}

.card-4 {
    top: 160px;
    left: 80px;
    animation-delay: 1.5s;
}

.card-5 {
    bottom: 20px;
    right: 60px;
    animation-delay: 2s;
}

.card-6 {
    top: 80px;
    right: 10px;
    animation-delay: 0.3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* 关于部分 */
.about-section {
    padding: 20px 0;
}

.about-section h2 {
    font-size: 20px;
    margin-bottom: 12px;
    text-align: center;
}

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

.about-text p {
    font-size: 13px;
    color: var(--gray-text);
    margin-bottom: 4px;
    line-height: 1.6;
}

/* 技能部分 */
.skills-section {
    display: none;
}

/* 联系部分 */
.contact-section {
    padding: 50px 0;
    text-align: center;
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-subtitle {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 30px;
}

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

.contact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 16px;
}

/* 页脚 */
.footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--gray-text);
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 0;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-visual {
        display: none;
    }

    .nav-links {
        gap: 20px;
        font-size: 13px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-links {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-section h2,
    .contact-section h2 {
        font-size: 26px;
    }
}
