
/* 全局样式与配色 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a237e, #6200ea);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    transition: background 0.5s ease;
}

h1, h2, h3 {
    font-weight: bold;
    color: #ffeb3b;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    margin-top: 40px;
}

h3 {
    font-size: 1.5rem;
    margin-top: 30px;
}

p {
    font-size: 1rem;
    color: #e0e0e0;
    margin: 15px 0;
}

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

li {
    margin: 10px 0;
    color: #bbdefb;
}

pre {
    background-color: #2c3e50;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    color: #ecf0f1;
}

code {
    background-color: #34495e;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.module {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.module img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.button-ripple {
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.button-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

.footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #bbdefb;
}

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

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 0.9rem;
    }

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