
/* 全局样式定义 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #121212, #1e1e1e);
    color: #e0e0e0;
    line-height: 1.6;
    letter-spacing: 0.5px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 16px;
    margin-bottom: 15px;
}

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

a:hover {
    color: #0074d9;
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1e1e1e, #121212);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
}

.navbar {
    display: flex;
    gap: 20px;
}

.navbar a {
    color: #ffffff;
    font-size: 14px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #0074d9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
}

@media (min-width: 768px) {
    .main-content {
        grid-template-columns: 300px 1fr;
    }
}

.sidebar {
    background: linear-gradient(135deg, #1e1e1e, #121212);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.article {
    background: linear-gradient(135deg, #1e1e1e, #121212);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article pre {
    background: #000000;
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

.article th {
    background: linear-gradient(135deg, #4b0082, #6a0dad);
    color: #ffffff;
}

.article tr:nth-child(even) {
    background: #121212;
}

.footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #1e1e1e, #121212);
    color: #ffffff;
    font-size: 14px;
}

.gradient-button {
    background: linear-gradient(135deg, #0000ff, #6a0dad);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gradient-button:hover {
    background: linear-gradient(135deg, #6a0dad, #0000ff);
}

.hover-effect {
    transition: transform 0.2s ease;
}

.hover-effect:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .main-content {
        grid-template-columns: 1fr;
    }
}

