
/* 全局样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', Arial, sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #000428, #004e92);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #FFD700;
}
a {
    text-decoration: none;
    color: #1E90FF;
}
a:hover {
    color: #FFD700;
    transition: color 0.3s ease-in-out;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
section {
    padding: 60px 0;
    position: relative;
}
header, footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    text-align: center;
}
header h1 {
    font-size: 2.5em;
    letter-spacing: 2px;
}
.parallax {
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}
.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.parallax h2 {
    z-index: 1;
    font-size: 3em;
    text-transform: uppercase;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.grid-item {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}
@media (max-width: 768px) {
    .parallax {
        height: 300px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}
footer p {
    font-size: 0.9em;
    opacity: 0.8;
}
/* 数据展示样式 */
.data-section {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
}
.data-section h3 {
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}
.data-section ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.data-section li {
    background: rgba(255, 215, 0, 0.2);
    padding: 15px;
    margin: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.data-section li:hover {
    background: rgba(255, 215, 0, 0.4);
}
/* 示例文章样式 */
.article-container {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 15px;
    margin-top: 40px;
}
.article-container h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}
.article-container h3 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}
.article-container p {
    font-size: 1em;
    margin-bottom: 15px;
}
.article-container pre {
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}
.article-container pre code {
    color: #00ff00;
}
.article-container ul {
    list-style: disc;
    margin-left: 20px;
}
/* 加载动画 */
.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #FFD700;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

