
/* CSS 样式 */

/* 颜色变量 */
:root {
    --primary-color: #0074D9; /* 主色调 - 蓝色 */
    --secondary-color: #FF851B; /* 辅助色调 - 橙色 */
    --background-gradient: radial-gradient(circle, rgba(255, 87, 34, 0.3), transparent);
    --text-color: #333333; /* 文字颜色 */
    --header-bg: #283c86; /* 头部背景色 */
    --footer-bg: #45a247; /* 页脚背景色 */
    --button-bg: #FF851B; /* 按钮背景色 */
    --button-hover-bg: #e67e22; /* 按钮悬停背景色 */
    --link-color: #0074D9; /* 链接颜色 */
    --link-hover-color: #e67e22; /* 链接悬停颜色 */
    --code-bg: #f5f5f5; /* 代码块背景色 */
    --code-text: #d63384; /* 代码块文字颜色 */
    --animation-duration: 15s; /* 动画时长 */
    --font-family: 'Roboto', sans-serif; /* 字体 */
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--background-gradient);
    animation: aurora-move var(--animation-duration) linear infinite;
    line-height: 1.6;
    padding: 20px;
}

/* 头部样式 */
header {
    background-color: var(--header-bg);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* 导航栏样式 */
nav {
    text-align: center;
    margin-bottom: 30px;
}

nav a {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--link-hover-color);
}

/* 容器样式 */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 单个模块样式 */
.section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    width: 30%;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
}

.section img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section p {
    font-size: 1em;
    margin-bottom: 10px;
}

/* 按钮样式 */
.button {
    background-color: var(--button-bg);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
}

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

/* 页脚样式 */
.footer {
    background-color: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .section {
        width: 45%;
    }
}

@media (max-width: 1200px) {
    .section {
        width: 45%;
    }
}

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

@media (max-width: 768px) {
    nav a {
        display: block;
        margin: 10px 0;
    }
    .section {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }
    .button {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5em;
    }
}

/* 代码块样式 */
pre {
    background-color: var(--code-bg);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    color: var(--code-text);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: var(--primary-color);
    color: white;
}

.icon-coin::before {
    content: "\1F4B0"; /* 金币图标 */
    margin-right: 5px;
}

.icon-home::before {
    content: "\1F3E0"; /* 家庭图标 */
    margin-right: 5px;
}

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

/* 代码预览样式 */
.code-preview {
    background-color: var(--code-bg);
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    color: var(--code-text);
    overflow-x: auto;
    margin-bottom: 20px;
}

/* 表单及其他元素样式禁止使用 */

/* 进一步的样式补充 */
.article-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.article-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.article-section h3 {
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-section ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.article-section li {
    margin-bottom: 10px;
}

