
/* 全局样式与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #0A2540, #6C5CE7);
    color: #fff;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
h1, h2, h3, h4 {
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700;
}
p, li {
    color: #f0f0f0;
    font-size: 1rem;
}
a {
    color: #38B69A;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #FF9F1C;
}
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
header {
    text-align: center;
    margin-bottom: 40px;
}
header h1 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #FFD700, #FF9F1C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
section {
    background: rgba(10, 37, 64, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
pre {
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9rem;
    color: #FFD700;
}
code {
    font-family: 'Courier New', monospace;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
}
th {
    background: #6C5CE7;
    color: #fff;
}
td {
    background: #0A2540;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}
button {
    background: #FF9F1C;
    color: #0A2540;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
button:hover {
    transform: scale(1.1);
}
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .container {
        grid-template-columns: 1fr;
    }
    pre {
        font-size: 0.8rem;
    }
}

