/* ===== 基础设置 ===== */
:root {
    --primary: #00f5ff;
    --secondary: #ff00ff;
    --accent: #ffff00;
    --dark: #0a0a0f;
    --darker: #050508;
    --light: #ffffff;
    --gray: #888888;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --glow-primary: 0 0 20px rgba(0, 245, 255, 0.5);
    --glow-secondary: 0 0 20px rgba(255, 0, 255, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== 粒子背景 ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--darker);
}

/* ===== 扫描线效果 ===== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.3;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.nav-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.music-toggle {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.music-toggle:hover {
    background: rgba(0, 245, 255, 0.2);
    box-shadow: var(--glow-primary);
}

.music-toggle.playing {
    background: rgba(0, 245, 255, 0.3);
    box-shadow: var(--glow-primary);
}

.admin-link {
    color: var(--secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary);
    border-radius: 20px;
    transition: all 0.3s;
}

.admin-link:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: var(--glow-secondary);
}

/* ===== Hero 区域 ===== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    z-index: 1;
}

.avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.avatar-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.avatar-ring-2 {
    border-color: var(--secondary);
    animation-direction: reverse;
    animation-duration: 15s;
}

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

.avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--glow-primary);
}

.avatar-text {
    font-size: 5rem;
    font-weight: 900;
    color: var(--dark);
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-title .name {
    display: block;
    font-size: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.5rem;
}

.typing-container {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    height: 2rem;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

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

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.8rem;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
    0%, 100% { top: 5px; opacity: 1; }
    50% { top: 15px; opacity: 0.3; }
}

/* ===== Glitch 效果 ===== */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    5% { clip: rect(80px, 9999px, 30px, 0); }
    10% { clip: rect(15px, 9999px, 50px, 0); }
    15% { clip: rect(60px, 9999px, 20px, 0); }
    20% { clip: rect(25px, 9999px, 70px, 0); }
    25% { clip: rect(90px, 9999px, 40px, 0); }
    30% { clip: rect(35px, 9999px, 15px, 0); }
    35% { clip: rect(70px, 9999px, 55px, 0); }
    40% { clip: rect(45px, 9999px, 25px, 0); }
    45% { clip: rect(10px, 9999px, 65px, 0); }
    50% { clip: rect(85px, 9999px, 35px, 0); }
    55% { clip: rect(20px, 9999px, 75px, 0); }
    60% { clip: rect(55px, 9999px, 5px, 0); }
    65% { clip: rect(40px, 9999px, 85px, 0); }
    70% { clip: rect(75px, 9999px, 50px, 0); }
    75% { clip: rect(5px, 9999px, 60px, 0); }
    80% { clip: rect(65px, 9999px, 90px, 0); }
    85% { clip: rect(50px, 9999px, 45px, 0); }
    90% { clip: rect(15px, 9999px, 70px, 0); }
    95% { clip: rect(95px, 9999px, 25px, 0); }
    100% { clip: rect(60px, 9999px, 80px, 0); }
}

/* ===== Section 通用样式 ===== */
.section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.title-cn {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.title-en {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: var(--gray);
    letter-spacing: 0.5rem;
}

/* ===== 关于我 ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead-text {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text .about-description {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.info-item:hover {
    background: rgba(0, 245, 255, 0.1);
    box-shadow: var(--glow-primary);
    transform: translateY(-5px);
}

.info-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.info-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--light);
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
}

.timeline-item {
    position: relative;
    padding: 1.5rem;
    padding-left: 2rem;
    margin-bottom: 2rem;
    background: rgba(0, 245, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 2rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
}

.timeline-item:hover {
    background: rgba(0, 245, 255, 0.08);
    transform: translateX(10px);
}

.timeline-date {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== 技能 ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: rgba(0, 245, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.skill-card:hover {
    background: rgba(0, 245, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-level {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 4px;
    background: rgba(0, 245, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 1s ease;
}

/* ===== 荣誉 ===== */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.award-card {
    background: rgba(255, 0, 255, 0.03);
    border: 1px solid rgba(255, 0, 255, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.award-card:hover {
    background: rgba(255, 0, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: var(--glow-secondary);
}

.award-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--secondary);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.award-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.award-org {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===== 联系 ===== */
.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 10px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(0, 245, 255, 0.1);
    box-shadow: var(--glow-primary);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.5rem;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: rgba(0, 245, 255, 0.1);
    border: 2px dashed var(--primary);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gray);
}

.qr-image {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}

.qr-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

/* ===== 页脚 ===== */
.footer {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 245, 255, 0.2);
}

.footer p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.heart {
    color: var(--secondary);
    animation: heartbeat 1s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== 音乐播放器 ===== */
.music-player {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 15px;
    padding: 1rem;
    z-index: 99;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 280px;
}

.player-info {
    text-align: center;
}

.player-title {
    font-size: 0.8rem;
    color: var(--gray);
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.player-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.player-btn:hover {
    background: rgba(0, 245, 255, 0.2);
}

.play-btn {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border: none;
    color: var(--dark);
    font-size: 1rem;
}

.play-btn:hover {
    box-shadow: var(--glow-primary);
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray);
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 245, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-icon {
    font-size: 0.9rem;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    background: rgba(0, 245, 255, 0.2);
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

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

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

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

    .hero-stats {
        gap: 1.5rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .music-player {
        left: 1rem;
        right: 1rem;
        min-width: auto;
    }
}
