
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #333333 70%, #E1F5FE 25%, #34C759 5%);
    color: #333333;
    line-height: 1.6;
}

/* 容器设置 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 20px 0;
}

/* 标题样式 */
h2, h3, h4 {
    color: #0B4F6C;
    margin-bottom: 15px;
}

h2 {
    font-size: 2em;
    grid-column: span 12;
    text-align: center;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/* 段落样式 */
p {
    font-size: 16px;
    color: #333333;
    grid-column: span 12;
}

/* 代码块样式 */
pre {
    background: #F5F5F5;
    padding: 15px;
    border-radius: 8px;
    overflow: auto;
    grid-column: span 12;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #D32F2F;
    position: relative;
    padding-left: 20px;
}

/* 代码块前置内容 */
pre code::before {
    content: '代码示例';
    position: absolute;
    left: 10px;
    top: 10px;
    background: #FFC107;
    color: #000;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

/* 链接样式 */
a {
    color: #0B4F6C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #34C759;
}

/* 图片样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 模块样式 */
.module {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    grid-column: span 12;
}

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

/* 按钮样式 */
.button {
    background: #34C759;
    border: none;
    border-radius: 5px;
    color: #FFFFFF;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: #28A745;
    transform: scale(1.05);
}

/* 加载动画样式 */
.loader {
    border: 8px solid #F3F3F3;
    border-top: 8px solid #0B4F6C;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin: 100px auto;
}

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

/* 导航栏样式 */
.navbar {
    width: 100%;
    background-color: #0B4F6C;
    color: #FFFFFF;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
}

.navbar a:hover {
    color: #34C759;
}

/* 提示文字样式 */
.notice {
    background-color: #FFF3CD;
    color: #856404;
    border: 1px solid #FFECB5;
    padding: 15px;
    border-radius: 5px;
    grid-column: span 12;
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}

/* 文章区域 */
article {
    grid-column: span 12;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(6, 1fr);
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.3em;
    }

    h4 {
        font-size: 1.1em;
    }

    p, .module, pre {
        grid-column: span 6;
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1em;
    }

    h4 {
        font-size: 0.9em;
    }

    p, .module, pre {
        grid-column: span 2;
    }
}

