
/* 全局样式定义 */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #001f3f, #ffffff);
    color: #333333;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #0074d9;
    margin-top: 2rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

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

.module {
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    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.15);
}

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

code {
    display: block;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    font-family: Consolas, monospace;
    font-size: 0.9rem;
    margin: 15px 0;
    overflow-x: auto;
}

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

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

th {
    background-color: #0074d9;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.button {
    background: #0074d9;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background: #ff851b;
    transform: scale(1.05);
}

@keyframes particles {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ff851b;
    border-radius: 50%;
    animation: particles 5s infinite;
    top: 50%;
    left: 50%;
}

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

    code {
        font-size: 0.8rem;
    }
}

