/* 吉林省图书馆地方文献关联数据平台 - 主样式表 */
* { 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;
}
/* 自定义列数：2列卡片布局 */
.grid-2col .card-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* 自定义列数：1列卡片布局 */
.grid-1col .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);
    }
}

/* ========== 全文检索模块样式（全局生效，主题色与全站统一） ========== */
.search-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.search-btn {
    padding: 0 24px;
    background: #003366;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #002244;
}

.result-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 12px;
}

.result-header h3 {
    font-size: 16px;
    color: #1f2328;
    margin: 0;
}

.result-header p {
    font-size: 13px;
    color: #656d76;
    margin: 0;
}

/* 数据表格通用样式（检索结果+列表页复用） */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    overflow: hidden;
    table-layout: fixed;
}

.data-table thead {
    background: #f6f8fa;
}

.data-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #1f2328;
    border-bottom: 1px solid #d0d7de;
}

.data-table td {
    padding: 10px 14px;
    font-size: 13px;
    color: #24292f;
    border-bottom: 1px solid #eaeef2;
    line-height: 1.6;
    word-break: break-all;
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: #f6f8fa;
}

.data-table a {
    color: #0969da;
    text-decoration: none;
}

.data-table a:hover {
    text-decoration: underline;
}

.empty-row td {
    text-align: center;
    color: #8c959f;
    padding: 24px;
}

.error-row td {
    text-align: center;
    color: #cf222e;
    padding: 24px;
}

/* 关键词高亮 */
.highlight-keyword {
    color: #cf222e;
    font-weight: 500;
    background: #ffebe9;
    padding: 0 2px;
    border-radius: 2px;
}

/* 命名图列 */
.graph-col {
    font-size: 12px;
    color: #656d76;
}

/* 分页控件通用样式 */
.pagination {
    margin-top: 16px;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.pagination button {
    padding: 4px 10px;
    border: 1px solid #d0d7de;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    color: #24292f;
}

.pagination button.active {
    background: #003366;
    color: #fff;
    border-color: #003366;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}