
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0000FF, #8A2BE2, #FFD700);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #ffffff;
    line-height: 1.6;
}

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

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

header h1 {
    font-family: 'Futura', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
    padding: 40px 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: -1;
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    font-family: 'Futura', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 1rem;
}

pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Roboto Mono', monospace;
    margin: 20px 0;
}

code {
    color: #FFD700;
}

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

table, th, td {
    border: 1px solid #ffffff;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(255, 215, 0, 0.7);
    color: #000;
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    font-size: 1rem;
}

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

    .container {
        grid-template-columns: 1fr;
    }

    pre {
        font-size: 0.9rem;
    }
}

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

    .card h3 {
        font-size: 1.3rem;
    }

    table, th, td {
        font-size: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 60px 40px;
    }

    header h1 {
        font-size: 3.5rem;
    }

    .card h3 {
        font-size: 1.6rem;
    }
}

@media (min-width: 1440px) {
    body {
        background-size: 600% 600%;
    }

    header h1 {
        font-size: 4rem;
    }

    .card h3 {
        font-size: 1.8rem;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #FFD700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8A2BE2, #FFD700);
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

