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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4b0082, #00ff7f);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

h1, h2, h3, h4 {
    font-family: 'Bodoni', serif;
    color: #ff69b4;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 2em;
    margin-top: 30px;
}

h3 {
    font-size: 1.75em;
    margin-top: 25px;
}

p {
    margin-bottom: 15px;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

a {
    color: #00ffff;
    text-decoration: none;
    position: relative;
}

a:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

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

button {
    background-color: #ff69b4;
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
}

button:hover {
    box-shadow: 0 0 10px #ff00ff;
}

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

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.section {
    margin-bottom: 40px;
}

.footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #ffffff;
}

@media (max-width: 1440px) {
    body {
        padding: 18px;
    }
    h1 {
        font-size: 2.3em;
    }
}

@media (max-width: 1200px) {
    .flex {
        flex-direction: column;
    }
    h1 {
        font-size: 2em;
    }
}

@media (max-width: 1024px) {
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    h1 {
        font-size: 1.8em;
    }
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.5em;
    }
    h3 {
        font-size: 1.3em;
    }
    button {
        width: 100%;
        padding: 12px 0;
    }
}

@media (max-width: 320px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 1.3em;
    }
    h2 {
        font-size: 1.3em;
    }
    h3 {
        font-size: 1.1em;
    }
    pre {
        padding: 10px;
    }
}

