
/* 全局样式设置，包括字体、颜色和布局 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif; /* 使用Open Sans作为正文字体 */
    background: linear-gradient(135deg, #0D47A1 70%, #ECEFF1 25%, #FF9800 5%);
    color: #FFFFFF;
    line-height: 1.6;
}
/* 容器设置，使用响应式网格系统 */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}
/* 模块样式，每个模块至少500px宽 */
.module {
    flex: 1 1 calc(33.333% - 40px);
    min-width: 500px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.module:hover {
    transform: translateY(-10px);
}
/* 标题样式 */
h2, h3, h4 {
    font-family: 'Roboto', sans-serif; /* 使用Roboto作为标题字体 */
}
h2 {
    font-size: 24px;
    margin-bottom: 10px;
}
h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
h4 {
    font-size: 18px;
    margin-bottom: 6px;
}
/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
table th, table td {
    border: 1px solid #FFFFFF;
    padding: 10px;
    text-align: left;
}
table th {
    background: rgba(255, 255, 255, 0.3);
}
/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
    position: relative;
}
pre::before {
    content: "代码示例";
    color: #FF9800;
    font-weight: bold;
    position: absolute;
    top: -20px;
    left: 0;
}
/* 图片样式，确保美观呈现 */
img.decorative {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
img.decorative:hover {
    transform: scale(1.05);
}
/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 71, 161, 0.5);
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
    z-index: 1000;
    padding: 15px 20px;
}
.navbar.scrolled {
    background: rgba(13, 71, 161, 0.8);
}
.nav-links {
    display: flex;
    gap: 15px;
}
.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    position: relative;
}
.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #FF9800;
    transition: width 0.3s;
}
.nav-links a:hover::after {
    width: 100%;
}
/* 手风琴效果样式 */
.accordion {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    outline: none;
    width: 100%;
    text-align: left;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 5px;
    margin-bottom: 10px;
}
.accordion.active, .accordion:hover {
    background: rgba(255, 255, 255, 0.4);
}
.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: rgba(255, 255, 255, 0.1);
    padding: 0 15px;
    border-radius: 5px;
}
.panel p {
    padding: 10px 0;
}
/* 关键帧动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}
/* 响应式调整 */
@media (max-width: 768px) {
    .module {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .navbar {
        padding: 10px 15px;
    }
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
}

