
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: #f5f5f5;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 300% 300%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

header h1 {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: bold;
    font-size: 3rem;
    color: #00FFFF;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

section {
    width: 100%;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

h2 {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 20px;
}

p {
    font-size: 1rem;
    margin-bottom: 15px;
}

pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    color: #00FF00;
    font-family: 'Courier New', Courier, monospace;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
    color: #fff;
}

th {
    background-color: #333;
}

button {
    background: #FF00FF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    animation: ripple 0.5s ease-out;
}

@keyframes ripple {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(2); opacity: 0; }
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    section {
        padding: 15px;
    }

    pre {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }
}

