
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, rgba(15, 76, 117, 1) 0%, rgba(15, 76, 117, 0) 70%);
    color: #FFFFFF;
    line-height: 1.6;
    transition: background 0.5s ease;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #32CD32;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header h1 {
    margin: 0;
    font-size: 24px;
    color: #FFFFFF;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FFA500;
}

.main {
    padding-top: 80px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.module {
    background: rgba(50, 205, 50, 0.8);
    padding: 20px;
    border-radius: 8px;
    grid-column: span 4;
    transition: transform 0.3s ease, background 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
    background: rgba(50, 205, 50, 1);
}

button {
    background-color: #FFA500;
    border: none;
    padding: 10px 20px;
    color: #FFFFFF;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

footer {
    background-color: #32CD32;
    padding: 20px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
    color: #FFFFFF;
}

img.decorative {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.code-block {
    background: #1E1E1E;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-block code {
    color: #00FF00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

button.toggle-theme {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFA500;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.toggle-theme:hover {
    background-color: #FF8C00;
}

.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1440px) {
    header h1 {
        font-size: 22px;
    }
    nav ul li a {
        font-size: 15px;
    }
}

@media (max-width: 1200px) {
    .module {
        grid-column: span 6;
    }
}

@media (max-width: 1024px) {
    .module {
        grid-column: span 6;
    }
    nav ul {
        flex-direction: column;
        background-color: #32CD32;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        display: none;
    }
    nav ul.active {
        display: flex;
    }
}

@media (max-width: 768px) {
    .module {
        grid-column: span 12;
    }
    header .container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }
    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 18px;
    }
    button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: radial-gradient(circle, rgba(15, 76, 117, 1) 0%, rgba(15, 76, 117, 0) 70%);
        color: #FFFFFF;
    }
    header, footer {
        background-color: #32CD32;
    }
    .module {
        background: rgba(50, 205, 50, 0.8);
    }
}

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

a.internal-link {
    color: #FFA500;
    text-decoration: none;
}

a.internal-link:hover {
    text-decoration: underline;
}

