
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 颜色变量定义 */
:root {
    --primary-color: #0074D9; /* 深蓝色 */
    --secondary-color: #FF851B; /* 橙色 */
    --background-color: #FFFFFF; /* 白色背景 */
    --accent-color-green: #2ECC40; /* 绿色辅助色 */
    --accent-color-orange: #FFDC00; /* 明亮橙色辅助色 */
    --text-color: #333333; /* 主文本颜色 */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* 全局背景与字体颜色 */
body {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 段落样式 */
p {
    margin-bottom: 15px;
    font-size: 1rem;
}

/* 强调样式 */
b {
    color: var(--secondary-color);
}

/* 链接样式 */
a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 模块化网格系统 */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.module {
    background-color: var(--background-color);
    color: var(--text-color);
    width: calc(50% - 20px);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 图片样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 代码块样式 */
pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

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

/* 列表样式 */
ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--accent-color-orange);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .module {
        width: calc(50% - 20px);
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }

    .module {
        width: calc(50% - 15px);
    }
}

@media (max-width: 1024px) {
    .module {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .module {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1rem;
    }

    h3 {
        font-size: 0.9rem;
    }

    p {
        font-size: 0.8rem;
    }
}

/* 动画效果 */
@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-background {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
}

/* 提示样式 */
.notice {
    background-color: var(--accent-color-green);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/* 示例展示样式 */
.sample-article {
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 30px;
    border-radius: 5px;
}

.sample-article h2 {
    color: var(--primary-color);
}

.sample-article pre {
    background-color: #eaeaea;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

.sample-article code {
    color: #c7254e;
    background-color: #f9f2f4;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 图文并茂布局 */
.image-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.image-text img {
    width: 50%;
    margin-right: 20px;
}

.image-text div {
    width: 50%;
}

@media (max-width: 768px) {
    .image-text {
        flex-direction: column;
    }

    .image-text img, .image-text div {
        width: 100%;
        margin-right: 0;
    }
}

/* 提示语 */
.reference-note {
    font-size: 1rem;
    color: var(--accent-color-green);
    text-align: center;
    margin-top: 20px;
}

