
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background: radial-gradient(circle, #EAE7DC, #4A6B5E, #0C2436);
    color: #0C2436;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

a {
    color: #FF9F1C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFC107;
}

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

header {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px 30px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #4A6B5E;
}

nav {
    margin-top: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    font-size: 16px;
}

.main-content {
    grid-column: 1 / -1;
    padding: 100px 30px 30px 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    font-family: 'Montserrat', sans-serif;
    color: #3CB371;
    margin-bottom: 20px;
}

.section p {
    margin-bottom: 15px;
}

.section pre {
    background: #F5F5F5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.section code {
    font-family: 'Courier New', Courier, monospace;
    color: #D35400;
}

.button {
    background-color: #FF9F1C;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
}

.button:hover {
    background-color: #FFC107;
    transform: scale(1.05);
}

footer {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 30px;
    text-align: center;
    font-size: 14px;
    color: #4A6B5E;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

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

.header-background {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@media (max-width: 1440px) {
    .container {
        padding: 20px;
    }
}

@media (max-width: 1200px) {
    header .logo {
        font-size: 20px;
    }
    nav ul li a {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .section h2 {
        font-size: 20px;
    }
    .button {
        padding: 8px 16px;
    }
}

@media (max-width: 320px) {
    header .logo {
        font-size: 18px;
    }
    .section h2 {
        font-size: 18px;
    }
}

