
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a2a, #000000);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #ff6f61;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
p {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}
a {
    color: #8a2be2;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
a:hover {
    color: #ff6f61;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}
.header {
    background: linear-gradient(135deg, #1c1c3d, #0a0a2a);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 111, 97, 0.2), transparent);
    animation: moveGradient 10s linear infinite;
    z-index: 1;
}
@keyframes moveGradient {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}
.section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}
.section:nth-child(even) {
    background: linear-gradient(135deg, #0a0a2a, #1c1c3d);
}
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    position: relative;
    z-index: 1;
}
.parallax::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.content {
    position: relative;
    z-index: 3;
    padding: 20px;
}
.article {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}
.article pre {
    background: #1c1c3d;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    color: #ff6f61;
    font-size: 0.9rem;
}
.article code {
    font-family: 'Courier New', Courier, monospace;
}
.table-container {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #444;
    background: #1c1c3d;
    color: #ffffff;
}
th {
    background: #ff6f61;
    color: #000000;
}
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    .parallax {
        height: 300px;
    }
    .article pre {
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    .parallax {
        height: 200px;
    }
    .article pre {
        font-size: 0.7rem;
    }
}

