
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #00b894, #2c3e50);
    color: #2c3e50;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header {
    background: rgba(44, 62, 80, 0.8);
    padding: 20px;
    text-align: center;
    color: #fff;
}
header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    margin: 0;
}
nav {
    margin: 20px 0;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
    transition: color 0.3s;
}
nav a:hover {
    color: #00b894;
}
main {
    flex: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
}
section {
    margin-bottom: 40px;
}
h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
}
h2 {
    font-size: 2em;
    margin-bottom: 10px;
}
h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}
h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
}
p {
    margin-bottom: 15px;
}
pre {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    font-family: 'Courier New', Courier, monospace;
    color: #e74c3c;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
table, th, td {
    border: 1px solid #bdc3c7;
}
th, td {
    padding: 10px;
    text-align: left;
}
ul {
    list-style-type: disc;
    padding-left: 20px;
}
button, .button {
    background-color: #00b894;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.3s;
}
button:hover, .button:hover {
    transform: scale(1.1);
    background-color: #019874;
}
.footer {
    background: rgba(44, 62, 80, 0.8);
    color: #fff;
    text-align: center;
    padding: 10px;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.grid-item {
    flex: 1 1 calc(33.33% - 20px);
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s;
}
.grid-item:hover {
    transform: translateY(-10px);
}
@media (max-width: 1440px) {
    .grid-item {
        flex: 1 1 calc(33% - 20px);
    }
}
@media (max-width: 1200px) {
    .grid-item {
        flex: 1 1 calc(50% - 20px);
    }
}
@media (max-width: 1024px) {
    .grid-item {
        flex: 1 1 calc(50% - 20px);
    }
}
@media (max-width: 768px) {
    .grid-item {
        flex: 1 1 100%;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }
    nav a {
        margin: 0 10px;
        font-size: 1em;
    }
}
@media (max-width: 320px) {
    header h1 {
        font-size: 1.5em;
    }
    nav a {
        margin: 0 5px;
        font-size: 0.9em;
    }
}
/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.gradient-background {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

