
/* 全局样式与背景设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #121212, #222222);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(90deg, #000000, #1e1e1e);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 2.5rem;
    letter-spacing: 2px;
    color: #00ff9f;
    text-transform: uppercase;
    margin: 0;
}

header p {
    font-size: 1.2rem;
    color: #ffffff;
    margin-top: 10px;
}

/* 卡片式布局设计 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 255, 159, 0.3);
}

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

.card h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #00ff9f;
    margin-bottom: 10px;
}

.card p {
    font-family: 'Montserrat', sans-serif;
    color: #dcdcdc;
    font-size: 0.9rem;
}

/* 数据可视化样式 */
.chart-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.chart {
    flex: 1;
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.chart h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.chart canvas {
    max-width: 100%;
    height: auto;
}

/* 动态粒子背景 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    animation: moveParticles 10s infinite linear;
}

@keyframes moveParticles {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}

/* 示例文章样式 */
.article-container {
    background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.article-container h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #00ff9f;
    text-align: center;
    margin-bottom: 20px;
}

.article-container p {
    font-family: 'Montserrat', sans-serif;
    color: #dcdcdc;
    font-size: 1rem;
    line-height: 1.8;
    text-indent: 2em;
}

.article-container pre {
    background: #121212;
    color: #00ff9f;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

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

.article-container th, .article-container td {
    border: 1px solid #333333;
    padding: 10px;
    text-align: center;
    color: #ffffff;
}

.article-container th {
    background-color: #00ff9f;
    color: #121212;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .chart-container {
        flex-direction: column;
    }

    .article-container pre {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    header p {
        font-size: 0.9rem;
    }

    .article-container h2 {
        font-size: 1.5rem;
    }

    .article-container p {
        font-size: 0.9rem;
    }
}

