/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2D1B69;
    --secondary-color: #FF6B9D;
    --accent-color: #4ECDC4;
    --text-color: #ffffff;
    --text-secondary: #b8b8b8;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
}

/* 背景图片 */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
    transition: opacity 0.5s ease;
}

/* 侧边导航 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 80px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-logo {
    margin-bottom: 30px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-menu {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
    background: var(--gradient-primary);
    transform: translateX(5px);
}

.nav-link i {
    font-size: 20px;
}

.nav-footer {
    margin-top: auto;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--text-color);
    background: var(--bg-card);
}

/* 主内容区域 */
.main-content {
    margin-left: 80px;
}

.section {
    min-height: 100vh;
    padding: 80px 60px;
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 首页样式 */
#home {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    margin-bottom: 20px;
}

.title-main {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 107, 157, 0.8);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

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

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.section-line {
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* 关于我样式 */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-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;
}

.about-card:hover::before {
    left: 100%;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 探索与折腾样式 */
.exploration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.exploration-category {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.exploration-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.exploration-category h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--accent-color);
    text-align: center;
}

.exploration-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.exploration-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.item-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.item-icon i {
    font-size: 1.2rem;
    color: white;
}

.item-content h4 {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.item-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 社交样式 */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover::before {
    opacity: 0.1;
}

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    position: relative;
    z-index: 1;
}

.bilibili .social-icon {
    background: linear-gradient(135deg, #00A1D6, #FF6B9D);
}

.github .social-icon {
    background: linear-gradient(135deg, #333, #666);
}

.social-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.social-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.social-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-arrow {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-card:hover .social-arrow {
    transform: translateX(10px);
}
/* 联系样式 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--accent-color);
    width: 20px;
}

.email-contact {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.email-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.email-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-icon i {
    font-size: 1.5rem;
    color: white;
}

.email-details {
    text-align: left;
}

.email-details h4 {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.email-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.submit-btn, .email-btn {
    background: var(--gradient-primary);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1rem;
}

.submit-btn:hover, .email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
    color: white;
    text-decoration: none;
}

/* 页脚 */
.footer {
    margin-left: 80px;
    padding: 30px 60px;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 15px 0;
    }
    
    .avatar {
        width: 40px;
        height: 40px;
    }
    
    .nav-link {
        width: 40px;
        height: 40px;
    }
    
    .nav-link i {
        font-size: 16px;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .section {
        padding: 60px 30px;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .exploration-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer {
        margin-left: 60px;
        padding: 20px 30px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 20px;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 30px 20px;
    }
    
    .social-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

