
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: backgroundMove 15s linear infinite;
}

@keyframes backgroundMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 2em;
    font-family: 'Roboto', sans-serif;
}

nav {
    margin-top: 10px;
}

nav a {
    color: #ff9800;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #e68c00;
}

.main {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.content, .sidebar {
    box-sizing: border-box;
    padding: 20px;
}

.content {
    flex: 3;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sidebar h2 {
    font-family: 'Roboto', sans-serif;
    border-bottom: 2px solid #ff9800;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #ff9800;
}

.footer {
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
}

.button {
    background-color: #ff9800;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.button:hover {
    background-color: #e68c00;
}

.button:active {
    transform: scale(0.95);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

.article {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.article h2, .article h3 {
    font-family: 'Roboto', sans-serif;
}

.article pre {
    background: #2a5298;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article code {
    color: #ffea00;
    font-family: 'Courier New', Courier, monospace;
}

.table-responsive {
    overflow-x: auto;
}

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

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

@media (max-width: 768px) {
    .main {
        flex-direction: column;
    }
    nav a {
        display: block;
        margin: 10px 0;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    .button {
        width: 100%;
        padding: 15px;
    }
}

