/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background: #0a0a20;
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 背景分层效果 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('image/dragon_bg.jpg'),        
        url('image/clouds.png'),           
        url('image/particles.png');        
    background-size: 
        cover,                            
        1500px auto,                     
        800px auto;                      
    background-position: 
        center,                          
        center 40%,                      
        right 10% bottom 20%;            
    background-repeat: 
        no-repeat,                       
        repeat-x,                        
        no-repeat;                       
    z-index: -3;                        
    opacity: 0.8;                       
}

/* 云雾动画 */
body::before {
    animation: cloudMove 60s linear infinite;
}

@keyframes cloudMove {
    0% { background-position: center 40%, -1500px 40%, right 10% bottom 20%; }
    100% { background-position: center 40%, 1500px 40%, right 10% bottom 20%; }
}

/* 粒子动态效果 */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(230, 57, 70, 0.15) 0%, transparent 20%),
                radial-gradient(circle at 80% 70%, rgba(70, 130, 180, 0.1) 0%, transparent 15%);
    background-size: 600px 600px, 800px 800px;
    background-position: -200px -100px, 600px 400px;
    animation: particleMove 45s linear infinite;
    z-index: -2;
}

@keyframes particleMove {
    0% { background-position: -200px -100px, 600px 400px; }
    100% { background-position: 800px 500px, 1400px 1000px; }
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* 左侧导航栏样式 */
.nav-container {
    width: 200px;
    background-color: rgba(10, 10, 30, 0.9);
    position: fixed;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    z-index: 100;
    border-right: 1px solid rgba(230, 57, 70, 0.3);
}

.nav-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e63946;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 15px rgba(230, 57, 70, 0.6);
    position: relative;
    padding-bottom: 10px;
}

.nav-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 30%;
    width: 40%;
    height: 2px;
    background: linear-gradient(to right, transparent, #e63946, transparent);
}

.nav-button {
    width: 160px;
    height: 50px;
    margin: 10px 0;
    background-color: rgba(30, 30, 60, 0.7);
    color: #f0f0f0;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.nav-button:hover {
    background-color: rgba(230, 57, 70, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.6);
}

.nav-button.active {
    background-color: rgba(230, 57, 70, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.6);
    position: relative;
    overflow: hidden;
}

.nav-button.active::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: glow 2s infinite;
}

@keyframes glow {
    0% { top: -50px; left: -50px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100px; left: 100px; opacity: 0; }
}

/* 主要内容区域样式 */
.content-container {
    flex: 1;
    margin-left: 200px;
    padding: 60px 60px 100px;
    position: relative;
    z-index: 2;
}

.section {
    min-height: 100vh;
    padding: 20px 0;
    position: relative;
}

.section-header {
    font-size: 2.8rem;
    font-weight: bold;
    color: #e63946;
    margin-bottom: 50px;
    text-align: center;
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.7);
    position: relative;
    display: inline-block;
}

.section-header::before, .section-header::after {
    content: "❖";
    color: #457b9d;
    margin: 0 20px;
    font-size: 1.5rem;
}

.section-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.text-panel {
    flex: 1 1 500px;
    background-color: rgba(10, 10, 30, 0.7);
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(230, 57, 70, 0.3);
    position: relative;
}

.text-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #e63946, #457b9d);
}

.text-panel h3 {
    color: #457b9d;
    margin-bottom: 25px;
    font-size: 2rem;
    border-bottom: 2px solid #457b9d;
    padding-bottom: 15px;
    display: inline-block;
}

.text-panel p {
    margin-bottom: 25px;
    font-size: 1.25rem;
    line-height: 1.9;
}

.image-panel {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: rgba(10, 10, 30, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(70, 130, 180, 0.4);
}

.image-panel img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 6px;
}

.image-panel img:hover {
    transform: scale(1.02);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 40px;
    background-color: rgba(10, 10, 30, 0.9);
    color: #f0f0f0;
    position: relative;
    margin-left: 200px;
    border-top: 1px solid rgba(230, 57, 70, 0.2);
    z-index: 1;
}

footer p {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .section-content {
        flex-direction: column;
    }
    
    .text-panel, .image-panel {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .nav-container {
        width: 100%;
        height: auto;
        flex-direction: row;
        position: static;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
        padding: 15px 0;
    }
    
    .nav-title {
        margin-bottom: 0;
        font-size: 1.6rem;
        padding-bottom: 8px;
    }
    
    .nav-title::after {
        left: 20%;
        width: 60%;
    }
    
    .nav-button {
        width: auto;
        height: 45px;
        padding: 0 12px;
        font-size: 0.9rem;
        margin: 0 5px;
    }
    
    .content-container, footer {
        margin-left: 0;
        padding: 40px 25px 80px;
    }
    
    .section {
        min-height: auto;
        padding: 30px 0;
    }
    
    .section-header {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }
    
    .section-header::before, .section-header::after {
        margin: 0 10px;
        font-size: 1.2rem;
    }
    
    .text-panel, .image-panel {
        padding: 30px;
    }
    
    .text-panel h3 {
        font-size: 1.7rem;
    }
    
    .text-panel p {
        font-size: 1.15rem;
        margin-bottom: 20px;
    }
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}