/* 重置样式和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0a;
    overflow-x: hidden;
    position: relative;
}

/* 背景图片容器 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#bg1 { background-image: url('https://vip.123pan.cn/1826418022/yk6baz03t0m000d7w33gh64wzfdc047zDIYvAqFPBdavDpx2DqiO.png'); }
#bg2 { background-image: url('https://vip.123pan.cn/1826418022/ymjew503t0m000d7w32xvvi38vrzulw1DIYvAqFPBdavDpx2DqiO.png'); }
#bg3 { background-image: url('https://vip.123pan.cn/1826418022/yk6baz03t0n000d7w33hbzrm29l7r24fDIYvAqFPBdavDpx2DqiO.jpg'); }
#bg4 { background-image: url('https://vip.123pan.cn/1826418022/ymjew503t0l000d7w32xefh0hhov2m3vDIYvAqFPBdavDpx2DqiO.jpg'); }
#bg5 { background-image: url('https://vip.123pan.cn/1826418022/ymjew503t0m000d7w32xw6cwew4hhdpnDIYvAqFPBdavDpx2DqiO.png'); }
#bg6 { background-image: url('https://vip.123pan.cn/1826418022/ymjew503t0m000d7w32xw6cwew4hhdpnDIYvAqFPBdavDpx2DqiO.png'); }

.bg-image.active {
    opacity: 0.3;
}

/* 玻璃态导航栏 */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-avatar-placeholder.active {
    opacity: 1;
    transform: scale(1);
}

.nav-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-brand {
    flex: 1;
}

.nav-brand .brand-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* 玻璃态卡片样式 */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 英雄区域 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.hero-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #bdc3c7;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #95a5a6;
    line-height: 1.8;
}

.hero-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    transition: all 0.5s ease;
}

.avatar-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(102, 126, 234, 0.5);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.avatar-image:hover {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #bdc3c7;
}

/* 项目区域 */
.projects-section {
    padding: 6rem 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -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;
}

.project-card {
    text-align: center;
}

.project-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.project-desc {
    color: #bdc3c7;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* 联系方式区域 */
.contact-section {
    padding: 6rem 0;
}

.contact-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    color: #bdc3c7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-link i {
    font-size: 1.2rem;
}

/* 页脚 */
.glass-footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
}

.footer-content p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
    
    .hero-glass,
    .contact-glass {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 1.5rem;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}