/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --neon-blue: #00f0ff;
    --neon-pink: #ff00aa;
    --dark-bg: #080b13;
    --card-bg: #101624;
    --text-color: #e8e8e8;
    --shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

body {
    font-family: "Segoe UI", sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.sec-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    letter-spacing: 4px;
}

.sec-title::after {
    content: "";
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    border-radius: 2px;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: transparent;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    background: rgba(8, 11, 19, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--neon-blue);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-item {
    font-size: 1.05rem;
    transition: 0.3s ease;
    position: relative;
}

.nav-item.active,
.nav-item:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
}

.menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
}

/* 音乐播放器 */
.music-box {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9998;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--neon-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--neon-blue);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.music-btn.play {
    animation: musicRotate 4s linear infinite;
}

@keyframes musicRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-btn:hover {
    background: var(--neon-blue);
    color: #000;
}

/* 图片预览层 */
.img-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.img-preview.show {
    display: flex;
}

#previewImg {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-preview {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.close-preview:hover {
    color: var(--neon-pink);
    transform: rotate(90deg);
}

/* 首页全屏区域 */
.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://picsum.photos/1920/1080") center/cover no-repeat;
    filter: brightness(0.25);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.avatar-box {
    margin-bottom: 25px;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
    object-fit: cover;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px var(--neon-blue); }
    50% { box-shadow: 0 0 35px var(--neon-blue), 0 0 50px var(--neon-pink); }
}

.hero-title {
    font-size: 3rem;
    letter-spacing: 5px;
    margin-bottom: 15px;
}

.hero-title span {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.glow-btn {
    padding: 14px 40px;
    background: transparent;
    border: 2px solid var(--neon-blue);
    border-radius: 40px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.glow-btn:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 25px var(--neon-blue);
    transform: translateY(-4px);
}

/* 简介卡片 */
.about-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 45px;
    border-radius: 16px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: var(--shadow);
}

.about-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
}

.tag-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tag {
    padding: 7px 20px;
    border: 1px solid var(--neon-pink);
    border-radius: 25px;
    color: var(--neon-pink);
    transition: 0.3s;
}

.tag:hover {
    background: var(--neon-pink);
    color: #000;
    box-shadow: 0 0 10px var(--neon-pink);
}

/* 相册区域 */
.gallery-wrap {
    background: #0a0f1b;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.gallery-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: var(--shadow);
    transition: 0.4s ease;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card img:hover {
    transform: scale(1.12);
}

/* 联系方式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    background: var(--card-bg);
    padding: 35px 20px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(0, 240, 255, 0.2);
    transition: 0.3s;
}

.contact-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.contact-item i {
    font-size: 2.6rem;
    color: var(--neon-blue);
    margin-bottom: 18px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.social-link {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-link a {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid var(--neon-blue);
    transition: 0.3s;
}

.social-link a:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 15px var(--neon-blue);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 25px 0;
    background: #05070c;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    position: relative;
    z-index: 2;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--dark-bg);
        width: 100%;
        height: calc(100vh - 70px);
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
    }
    .nav.show {
        left: 0;
    }
    .hero-title {
        font-size: 2rem;
    }
    .sec-title {
        font-size: 1.8rem;
    }
    .about-card {
        padding: 25px;
    }
    .close-preview {
        right: 20px;
        font-size: 2rem;
    }
    .music-box {
        right: 20px;
        bottom: 20px;
    }
}