
/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto:wght@400;700&display=swap');

/* 全局样式 */
body {
    margin: 0;
    font-family: 'Poppins', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* 标题样式 */
header {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    color: #F97316;
    margin: 0;
}

/* 卡片容器 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
}

/* 单个卡片 */
.card {
    background: #F5F5F5;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-top: 0;
    color: #1E3A8A;
}

.card-content p {
    flex: 1;
    color: #555;
}

.card-content .function-description {
    color: #6EE7B7;
    font-weight: bold;
}

.card-content .applicable-scenario {
    color: #F97316;
    margin-top: 10px;
}

/* 示例数据展示 */
.sample-data {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.sample-data h2 {
    text-align: center;
    color: #1E3A8A;
    margin-bottom: 20px;
}

.sample-data pre {
    background: #333;
    color: #F5F5F5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
}

/* 示例文章 */
.article {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.article h2, .article h3, .article h4 {
    color: #1E3A8A;
}

.article p {
    color: #444;
    margin-bottom: 15px;
}

.article pre {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
}

.article code {
    background: #eaeaea;
    padding: 2px 4px;
    border-radius: 4px;
    color: #d63384;
}

/* 提示信息 */
.notice {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding: 20px;
    background: #6EE7B7;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    font-weight: bold;
}

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

@media (max-width: 768px) {
    .card img {
        height: 150px;
    }
    
    .article, .sample-data {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    
    .card img {
        height: 120px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
}

