
/* 全局样式重置，确保不同浏览器下的一致性 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置页面的字体和背景渐变 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1E3A8A, #7C3AED);
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* 容器样式，确保内容在大屏幕和小屏幕上的良好展示 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 提示文字样式，放置在页面显著位置 */
.notice {
    text-align: center;
    font-size: 1.5em;
    color: #FF7800;
    font-weight: bold;
    margin-bottom: 30px;
}

/* 文章标题样式 */
h2, h3, h4 {
    color: #1E3A8A;
    margin-bottom: 20px;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/* 段落样式，确保良好的可读性和视觉间隔 */
p {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

/* 代码块样式，区别于正文内容 */
pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

code {
    color: #d63384;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
}

/* 图片样式，添加圆角、阴影和悬停效果 */
img.decorative {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 布局模块，确保每个板块的最小宽度 */
.module {
    min-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 使用CSS Grid布局模块化内容 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

/* 按钮样式，若需要 */
.btn {
    background-color: #FF7800;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #e06b00;
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
}

/* 响应式设计，确保在不同设备上的良好展示 */
@media (max-width: 1200px) {
    .container {
        padding: 30px;
    }
}

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

    img.decorative {
        width: 100%;
        height: auto;
    }

    .notice {
        font-size: 1.2em;
    }

    h2 {
        font-size: 1.75em;
    }

    h3 {
        font-size: 1.5em;
    }

    p {
        font-size: 15px;
    }

    code {
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* 链接样式，避免使用特定词汇 */
a {
    color: #7C3AED;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #1E3A8A;
}

/* 特定样式以确保提示文字突出 */
.notice {
    background: linear-gradient(90deg, rgba(255, 120, 0, 0.1), rgba(124, 58, 237, 0.1));
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

