
/* 
整体页面样式设计
以下样式基于现代Web技术，旨在打造一个融合未来感与高级质感的图文并茂页面。页面采用响应式设计，确保在各种设备上都具有良好的展示效果。
*/

/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0D47A1 70%, #F5F5F5 25%, #FF9800 5%);
    color: #333333;
    transition: background 0.5s ease;
}

/* 容器设置，确保内容居中且有适当的边距 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(13, 71, 161, 0.9);
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
    text-decoration: none;
}

.navbar .menu {
    display: flex;
    gap: 20px;
}

.navbar .menu a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar .menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #FF9800;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

.navbar .menu a:hover::after {
    width: 100%;
}

.navbar .menu a:hover {
    color: #FF9800;
}

/* 面包屑导航样式 */
.breadcrumb {
    margin: 20px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #0D47A1;
    text-decoration: none;
    margin-right: 5px;
}

.breadcrumb a::after {
    content: ">";
    margin-left: 5px;
    color: #888888;
}

.breadcrumb a:last-child::after {
    content: "";
}

/* 主要内容区域样式 */
.article {
    background-color: rgba(245, 245, 245, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* 标题样式 */
.article h2, .article h3 {
    color: #0D47A1;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article h2 {
    font-size: 28px;
    font-weight: 700;
}

.article h3 {
    font-size: 22px;
    font-weight: 700;
}

/* 正文段落样式 */
.article p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333333;
}

/* 强调文本颜色 */
.article p span {
    color: #0D47A1;
    font-weight: 500;
}

/* 按钮样式 */
.button {
    background-color: #FF9800;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

/* 图片样式 */
.article img {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 20px 0;
}

.article img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* 代码块样式 */
.code-block {
    background-color: #272822;
    color: #F8F8F2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 0;
}

.code-block code {
    display: block;
    white-space: pre;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #FF9800;
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.collapsible:hover {
    background-color: #e68900;
}

.content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(245, 245, 245, 0.8);
    border-radius: 0 0 10px 10px;
}

.active + .content {
    max-height: 500px; /* 根据内容调整 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .menu {
        display: none;
        flex-direction: column;
        background-color: rgba(13, 71, 161, 0.9);
        position: absolute;
        top: 60px;
        right: 30px;
        width: 150px;
        border-radius: 5px;
    }

    .navbar .menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .article img {
        max-width: 100%;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 加载动画样式 */
.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #FF9800;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 图表容器样式 */
.chart-container {
    position: relative;
    height: 400px;
    margin: 40px 0;
}

/* 仪表盘模块样式 */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.module {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}


