
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #c7e9b0, #f7f4d9);
    color: #333;
    line-height: 1.6;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(247, 244, 217, 1));
    border-bottom: 2px solid #e0e0e0;
}

header h1 {
    font-family: 'HandwritingFont', cursive;
    font-size: 48px;
    color: #6b8e23;
    margin-bottom: 10px;
}

header p {
    font-size: 18px;
    color: #555;
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #6b8e23;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff9900;
}

/* 主内容 */
main {
    padding: 40px 0;
}

/* 标题样式 */
h2, h3, h4 {
    color: #6b8e23;
    margin-top: 40px;
}

h2 {
    font-size: 36px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 22px;
}

/* 段落样式 */
p {
    font-size: 16px;
    color: #444;
    margin: 20px 0;
}

/* 代码块 */
pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
}

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

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

table th, table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

table th {
    background-color: #f2f2f2;
    color: #333;
}

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

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* 模块化矩阵 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.grid-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

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

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

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

    nav a {
        margin: 0 10px;
        font-size: 14px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 18px;
    }

    p, code {
        font-size: 14px;
    }
}

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

    nav {
        flex-direction: column;
    }

    nav a {
        margin: 5px 0;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}

