
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0D47A1 70%, #FF9800 25%, #00BCD4 5%);
    color: #333333;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(13, 71, 161, 0.95); /* 深蓝色半透明背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar a {
    color: #FFFFFF;
    margin: 0 20px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #FF9800; /* 点缀色悬停效果 */
}

.language-switcher {
    background: none;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switcher:hover {
    background-color: #FFFFFF;
    color: #0D47A1;
}

/* 头部区域样式 */
.header {
    margin-top: 80px; /* 留出导航栏空间 */
    background: linear-gradient(135deg, #0D47A1, rgba(13, 71, 161, 0.9));
    color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.header p {
    font-size: 1.2em;
    line-height: 1.6;
}

/* 主内容区域样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    padding: 60px 20px;
}

/* 文章板块样式 */
.article-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-section:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* 标题样式 */
h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #0D47A1;
}

p, li {
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    font-size: 16px;
    line-height: 1.8;
}

/* 图片样式 */
.article-section img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-section img:hover {
    transform: scale(1.05);
}

/* 代码块样式 */
pre {
    background: #F5F5F5;
    padding: 20px;
    border-radius: 10px;
    overflow: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 20px 0;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #0D47A1;
}

pre code::before {
    content: "代码示例";
    display: block;
    font-family: 'Montserrat', sans-serif;
    color: #FF9800;
    margin-bottom: 10px;
    font-weight: bold;
}

/* 交互动效 */
.button {
    background-color: #FF9800;
    border: none;
    padding: 10px 25px;
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #E68900;
    transform: scale(1.05);
}

/* 音频播放器样式 */
.audio-player {
    width: 100%;
    margin: 20px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar a {
        margin: 10px 0;
    }
    .container {
        grid-template-columns: 1fr;
    }
}

