
/* 全局样式定义 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    text-align: center;
    margin-top: 30px;
}

h1 {
    font-size: 36px;
    background: linear-gradient(90deg, #39ff14, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.module {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
}

code {
    display: block;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    overflow-x: auto;
    white-space: pre-wrap;
}

pre {
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

th {
    background: linear-gradient(90deg, #39ff14, #00ffff);
    color: #000;
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.icon {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #39ff14, #000000);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    margin: 0 auto 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.image-grid img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
    
    .container {
        grid-template-columns: 1fr;
    }
    
    code {
        font-size: 12px;
    }
}

