
/* 基础样式定义 */
:root {
    --primary-color: #003f5c;
    --secondary-color: #ff7c43;
    --background-color: #2f4b5e;
    --text-color: #ffffff;
    --code-background: #1e2a38;
    --code-text: #d6d6d6;
    --hover-color: #ff9a6b;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: radial-gradient(circle, var(--primary-color), var(--background-color));
    color: var(--text-color);
    animation: aurora-move 15s linear infinite;
}

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

h1, h2, h3, h4 {
    font-weight: bold;
    text-align: center;
    margin-top: 2rem;
}

p {
    font-size: 1rem;
    padding: 0 1rem;
    text-align: justify;
}

section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    section {
        height: auto;
        padding: 20px;
    }
}

button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--hover-color);
    transform: scale(1.1);
}

pre {
    background: var(--code-background);
    color: var(--code-text);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    max-width: 90%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.content-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

.tip {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-align: center;
    margin: 1rem 0;
}

