/* 吉林省图书馆地方文献关联数据平台 - 主样式表 */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    background: #f5f7fa;
    color: #1f2937;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 顶部品牌栏 */
.site-header {
    background: #003366;
    color: #fff;
    padding: 16px 0;
}
.header-title {
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
}
.header-nav {
    float: right;
}
.header-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 24px;
    opacity: 0.9;
}
.header-nav a:hover { opacity: 1; }

/* 导语区 */
.intro-section {
    background: linear-gradient(135deg, #003366 0%, #1e40af 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 48px;
}
.main-title {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}
.intro-desc {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 资源分类区块 */
.resource-category {
    margin-bottom: 48px;
}
.category-header {
    margin-bottom: 20px;
    border-left: 4px solid #003366;
    padding-left: 16px;
}
.category-title {
    font-size: 22px;
    color: #003366;
    margin-bottom: 6px;
    font-weight: 600;
}
.category-desc {
    color: #6b7280;
    font-size: 14px;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.resource-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px 20px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s;
}
.resource-card:hover {
    border-color: #003366;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.1);
    transform: translateY(-2px);
}
.resource-card h3 {
    font-size: 18px;
    color: #003366;
    margin-bottom: 8px;
    font-weight: 600;
}
.resource-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* 第三、四类卡片数量少，调整列数更协调 */
.resource-category:nth-child(3) .card-grid {
    grid-template-columns: repeat(2, 1fr);
}
.resource-category:nth-child(4) .card-grid {
    grid-template-columns: repeat(1, 1fr);
    max-width: 280px;
}

/* 数据统计区 */
.stats-section {
    background: #fff;
    border-radius: 8px;
    padding: 36px 24px;
    margin: 48px 0;
    border: 1px solid #e5e7eb;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stats-num {
    font-size: 28px;
    font-weight: 600;
    color: #003366;
    margin-bottom: 6px;
}
.stats-label {
    color: #6b7280;
    font-size: 14px;
}

/* 底部 */
.site-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 60px;
}
.footer-tech {
    font-size: 13px;
    margin-top: 6px;
    opacity: 0.8;
}

/* 响应式适配 */
@media (max-width: 900px) {
    .card-grid, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}