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

body {
    font-family: 'Roboto', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: linear-gradient(135deg, #0A2647, #2C3E50);
    color: #ffffff;
    overflow-x: hidden;
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* 头部样式 */
header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

header h1 {
    font-size: 3rem;
    color: #00FF7F;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1.2rem;
    color: #AED6F1;
}

/* 导航栏 */
nav {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00FF7F;
}

/* 主要内容区域 */
main {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 20px;
}

/* 文章内容 */
.article {
    grid-column: 1 / 8;
    background: rgba(44, 62, 80, 0.8);
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.article h2 {
    font-size: 2rem;
    color: #00FF7F;
    margin-bottom: 20px;
    border-bottom: 2px solid #00FF7F;
    padding-bottom: 10px;
}

.article h3 {
    font-size: 1.5rem;
    color: #AED6F1;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article p {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.article pre {
    background: #1abc9c;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article code {
    font-family: 'Courier New', Courier, monospace;
    color: #2c3e50;
}

/* 示例数据模块 */
.modules {
    grid-column: 9 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
}

.module {
    background: rgba(52, 73, 94, 0.9);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.module h4 {
    font-size: 1.2rem;
    color: #00FF7F;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.module p {
    font-size: 0.95rem;
    color: #bdc3c7;
    margin-bottom: 10px;
}

.module ul {
    list-style: none;
    padding-left: 0;
}

.module ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.module ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00FF7F;
}

/* 代码示例 */
.code-example {
    grid-column: 1 / -1;
    background: rgba(44, 62, 80, 0.85);
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.code-example h3 {
    font-size: 1.5rem;
    color: #00FF7F;
    margin-bottom: 15px;
    border-bottom: 2px solid #00FF7F;
    padding-bottom: 5px;
}

.code-example pre {
    background: #2c3e50;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    color: #ecf0f1;
}

.code-example code {
    font-family: 'Courier New', Courier, monospace;
}

/* 提示信息 */
.notice {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1rem;
    color: #ffffff;
    margin-top: 40px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5rem;
    }
    .article {
        grid-column: 1 / -1;
    }
    .modules {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1200px) {
    .article {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .modules {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    nav a {
        margin: 10px 0;
    }
    .article, .modules {
        grid-column: 1 / -1;
    }
    header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    .module h4 {
        font-size: 1rem;
    }
    .article h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 10px;
    }
    header h1 {
        font-size: 1.2rem;
    }
    nav a {
        font-size: 0.9rem;
    }
    .article h2 {
        font-size: 1.5rem;
    }
    .module h4 {
        font-size: 0.9rem;
    }
    .notice {
        font-size: 0.9rem;
    }
}

