
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #121212, #000000);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #FFC107;
}

p, ul, table {
    font-size: 1rem;
    font-weight: 400;
    color: #e0e0e0;
}

a {
    color: #FF9800;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFC107;
}

/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background: linear-gradient(135deg, #212121, #1e1e1e);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

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

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

th {
    background-color: #1e1e1e;
    color: #FFC107;
}

td {
    background-color: #212121;
}

/* 代码块样式 */
pre {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
}

code {
    color: #FFC107;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* 按钮样式 */
button {
    background-color: #FF9800;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

button:hover {
    box-shadow: 0 0 10px #FFC107;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    pre {
        font-size: 0.8rem;
    }
}

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

    p, ul, table {
        font-size: 0.9rem;
    }
}

/* 动态粒子效果 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.1), transparent);
    animation: particleAnimation 10s infinite linear;
}

@keyframes particleAnimation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

