
/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #003366, #660099);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #ffffff;
}

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

header {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    color: #33ccff;
    margin: 0;
}

nav {
    margin-top: 10px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1em;
    transition: color 0.3s;
}

nav a:hover {
    color: #33ccff;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

section {
    margin-bottom: 40px;
}

h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: #33ccff;
}

p {
    margin: 15px 0;
}

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

code {
    color: #33ccff;
    font-family: 'Courier New', Courier, monospace;
}

button {
    background-color: #33ccff;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

button:hover {
    transform: scale(1.05);
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

button:hover::before {
    width: 200px;
    height: 200px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

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

.sample-data {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
}

.sample-data h2 {
    color: #ffcc00;
}

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
}

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

    nav a {
        margin: 0 10px;
        font-size: 0.9em;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    main {
        padding: 15px;
    }

    h2 {
        font-size: 1.8em;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    main {
        padding: 25px;
    }

    h2 {
        font-size: 2em;
    }
}

@media (min-width: 1201px) and (max-width: 1440px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    header h1 {
        font-size: 3em;
    }
}

@media (min-width: 1441px) {
    main {
        padding: 30px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    header h1 {
        font-size: 3.5em;
    }
}

