
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #34005A, #00FFFF);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: center;
    background: rgba(52, 0, 90, 0.9);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar ul li a {
    text-decoration: none;
    color: #00FFFF;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #FF8C00;
}

/* 主内容区域 */
.container {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section {
    padding: 20px;
    background: rgba(52, 0, 90, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.section h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00FF00;
    animation: fadeInText 1s ease-in-out;
}

.section p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.section img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: #ffffff20;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    background: #ffffff30;
}

.card h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: #FF8C00;
    margin-bottom: 10px;
}

.card p {
    color: #FFFFFF;
}

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

/* 示例数据展示 */
.sample-article {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.sample-article h2, .sample-article h3, .sample-article h4 {
    color: #00FF00;
}

.sample-article pre {
    background: #333;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

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

/* 提示信息 */
.reference-note {
    text-align: center;
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-top: 40px;
}

/* 动画效果 */
@keyframes fadeInText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .navbar ul li a {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 10px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 1024px) {
    .section {
        padding: 15px;
    }

    .navbar ul {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .navbar ul li a {
        font-size: 0.9rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

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

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .section h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    .section h2 {
        font-size: 1.2rem;
    }
}

