
/* 全局样式与背景渐变设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0000FF, #8A2BE2, #FFA500);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: -1;
}
h1, h2, h3 {
    font-weight: bold;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
h1 {
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(90deg, #FFA500, #8A2BE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.module {
    background: linear-gradient(to bottom, #ffffff1a, #e0e0e01a);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
pre {
    background: #0000004d;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    color: #ff0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: linear-gradient(to right, #ffffff1a, #e0e0e01a);
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ffffff4d;
}
th {
    background: linear-gradient(to right, #8A2BE2, #FFA500);
    color: #fff;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
button {
    background: linear-gradient(to right, #0000FF, #FFA500);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.5s ease;
}
button:hover {
    background: linear-gradient(to right, #FFA500, #0000FF);
}
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .container {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 1.8rem;
    }
    pre {
        font-size: 0.8em;
    }
}

