
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #ecf0f1;
    text-align: center;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    color: #bdc3c7;
    text-align: justify;
}

a {
    color: #1abc9c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.section:nth-child(odd) {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    color: #2c3e50;
}

.button {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    margin: 10px;
}

.button:hover {
    background-color: #16a085;
}

pre {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.4;
}

code {
    color: #f1c40f;
    font-family: Consolas, monospace;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #ecf0f1;
    color: #2c3e50;
}

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

th {
    background-color: #3498db;
    color: white;
}

ul, ol {
    padding-left: 20px;
}

li {
    margin: 5px 0;
}

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

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

    h2 {
        font-size: 24px;
    }

    p, li {
        font-size: 14px;
    }

    .section {
        padding: 20px;
    }
}

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

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

