
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    color: #0074D9;
    margin-bottom: 1rem;
}
p, li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}
a {
    text-decoration: none;
    color: #FFC300;
    transition: color 0.3s ease;
}
a:hover {
    color: #FF851B;
}
ul {
    list-style: none;
}
button {
    background-color: #0074D9;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover {
    background-color: #FFC300;
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}
.module {
    padding: 4rem 0;
    text-align: center;
}
.module:nth-child(even) {
    background-color: #f0f8ff;
}
.module:nth-child(odd) {
    background-color: #e6f7ff;
}
.highlight {
    background-color: #FFC300;
    color: #0074D9;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    margin: 1rem 0;
}
.grid {
    display: grid;
    gap: 1rem;
}
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
pre {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}
/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}
/* 响应式布局 */
@media (max-width: 320px) {
    h1 {
        font-size: 1.8rem;
    }
    p, li {
        font-size: 0.9rem;
    }
}
@media (min-width: 1440px) {
    .container {
        padding: 0 2rem;
    }
}

