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

body, html {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #002f5d, #4c2882);
    min-height: 100vh;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-weight: bold;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: #00ccff;
}

a:hover {
    color: #ffcc00;
}

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

.section {
    padding: 60px 20px;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.module {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00ccff;
    color: #fff;
    border-radius: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    color: #ffcc00;
}

.code-block {
    background: #1e1e1e;
    color: #00ccff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
}

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

table th, table td {
    padding: 10px;
    border: 1px solid #333;
    text-align: left;
}

table th {
    background: #002f5d;
    color: #ffffff;
}

table tr:nth-child(even) {
    background: #1a1a1a;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 10px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.module {
    animation: fadeIn 1s ease-in-out;
}

