
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #F5F5F5;
    color: #2F3542;
    line-height: 1.6;
}

/* 头部样式 */
header {
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle, #0074D9, transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    animation: aurora-move 15s linear infinite;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 71, 161, 0.7);
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    z-index: 1;
}

/* 主要内容区 */
main {
    padding: 50px 20px;
}

/* 模块样式 */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #4CAF50, #FFC107);
    margin-bottom: 50px;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.section:hover {
    transform: scale(1.02);
}

.section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 示例展示 */
.example {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 50px;
}

.example h2 {
    color: #0D47A1;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
}

.example pre {
    background-color: #2F3542;
    color: #F1F2F6;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

.example code {
    font-size: 0.9em;
}

/* 按钮样式 */
.button {
    background-color: #0074D9;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #005bb5;
}

/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 1200px) {
    .section {
        padding: 30px;
    }
}

@media (max-width: 1024px) {
    .section h3 {
        font-size: 1.5em;
    }
}

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

    .section {
        padding: 20px;
    }
}

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

    .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    .section {
        padding: 10px;
    }

    .example pre {
        font-size: 0.8em;
    }
}

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

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

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

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

th {
    background-color: #0074D9;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* 提示信息 */
.notice {
    text-align: center;
    margin-top: 40px;
    font-size: 1.2em;
    color: #FF5722;
}

/* 代码示例 */
.code-example {
    background-color: #272822;
    color: #F8F8F2;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin-top: 20px;
}

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