/* 
 * 个人展示网站样式表 - 暗色主题
 * 
 * 颜色变量说明：
 * --primary-color: 主色调，用于重点突出的元素
 * --secondary-color: 辅助色调，用于次要元素
 * --accent-color: 强调色，用于按钮、链接等交互元素
 * --text-color: 主要文本颜色
 * --light-color: 浅色文本和背景
 * --dark-color: 深色文本和背景
 * --bg-color: 页面背景色
 * --border-color: 边框颜色
 * 
 * 如需修改网站配色方案，只需更改下方变量值即可
 */

:root {
    /* 颜色变量 - 可根据需要修改 */
    --primary-color: #3a6cf4;
    --secondary-color: #5e60ce;
    --accent-color: #64dfdf;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --bg-color: rgba(249, 249, 249, 0.8);
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* 尺寸和间距 */
    --border-radius: 8px;
    --section-padding: 80px 0;
    --container-padding: 0 15px;
    
    /* 阴影效果 */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    
    /* 过渡效果 */
    --transition: all 0.3s ease;
    
    /* 字体 */
    --font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 暗色主题变量 - 增加透明度 */
.dark-theme {
    --primary-color: #4e7bff;
    --secondary-color: #7678ed;
    --accent-color: #64dfdf;
    --text-color: #e0e0e0;
    --light-color: #f8f9fa;
    --dark-color: rgba(12, 12, 12, 0.25); /* 统一透明度为0.25 */
    --bg-color: rgba(18, 18, 18, 0.25); /* 统一透明度为0.25 */
    --border-color: rgba(51, 51, 51, 0.25); /* 统一透明度为0.25 */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* 背景GIF样式 - 改进融合效果 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-gif {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 覆盖整个容器 */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1; /* 提高不透明度，使背景更加突出 */
    filter: brightness(1.2) contrast(1.1) saturate(1.2); /* 增强视觉效果 */
    will-change: transform;
    transform: translateZ(0);
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* 背景样式 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.25); /* 统一透明度为0.25 */
    padding: 15px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

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

.nav-links li {
    margin-left: 20px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: #4e7bff;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.25); /* 进一步增加透明度，从0.3改为0.25 */
    border-radius: 10px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.hero-image img {
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(78, 123, 255, 0.3);
}

.hero-text {
    flex: 2;
    padding: 20px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.highlight {
    color: #4e7bff;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ccc;
}

/* 区域通用样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #4e7bff;
}

/* 关于我样式 */
    .about-content {
    background-color: rgba(0, 0, 0, 0.25); /* 进一步增加透明度，从0.3改为0.25 */
    border-radius: 10px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 联系我样式 */
    .contact-content {
    background-color: rgba(0, 0, 0, 0.25); /* 进一步增加透明度，从0.3改为0.25 */
    border-radius: 10px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #4e7bff;
    width: 40px;
    height: 40px;
    background-color: rgba(78, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* 音乐控制样式 */
.music-control {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(78, 123, 255, 0.75); /* 统一透明度，但保持较高以确保可见性 */
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
    background-color: rgba(78, 123, 255, 0.85); /* 悬停时稍微不透明一些 */
}

/* 页脚样式 */
.footer {
    background-color: rgba(0, 0, 0, 0.25); /* 统一透明度为0.25 */
    padding: 20px 0;
    text-align: center;
    backdrop-filter: blur(10px);
}

.copyright {
    font-size: 0.9rem;
    color: #999;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .hero-content {
    flex-direction: column;
    }
    
    .hero-image, .hero-text {
        flex: 1 1 100%;
    }
    
    .hero-title {
    font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* 军旅照片样式 */
.timeline-image {
    margin-bottom: 15px;
    text-align: center;
}

.military-photo {
    max-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.military-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.timeline-text {
    padding: 0 10px;
}

@media (min-width: 768px) {
    .timeline-content {
        display: flex;
        align-items: center;
    }
    
    .timeline-image {
        flex: 0 0 200px;
        margin-right: 20px;
        margin-bottom: 0;
    }
    
    .timeline-text {
        flex: 1;
    }
}

/* 社交媒体链接样式 */
.social-link {
    color: #4e7bff;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

/* 自定义社交媒体图标 */
.custom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 15px;
    border-radius: 50%;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
}

.custom-icon svg {
    width: 24px;
    height: 24px;
}

.bilibili-icon {
    background: linear-gradient(135deg, #23ADE5, #7D67EE);
}

.douyin-icon {
    background: linear-gradient(135deg, #FF004F, #000000);
}

