/* ===== 技术中心列表页专属样式 ===== */

/* Banner 背景图 */
.page-banner {
    position: relative;
    margin-top: 80px;
    padding: 120px 0;
    text-align: center;
    color: white;
    background-image: url("img/banner 2.jpg");
    background-size: cover;
    background-position: 0 60%;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}


/* 分类筛选栏 */
.tech-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 40px;
}
.tech-filter button {
    padding: 8px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    background: #f3f4f6;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.tech-filter button:hover {
    background: #e5e7eb;
    color: #1f2937;
}
.tech-filter button.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* 文章列表网格 - 3×2 纯文本卡片 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.tech-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #eef2f6;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 180px;
    justify-content: center;
}
.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.tech-tag {
    display: inline-block;
    padding: 1px 14px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
    background: #eff6ff;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.tech-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}
.tech-card h3 a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s;
}
.tech-card h3 a:hover {
    color: var(--primary);
}

.tech-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片底部：日期 + 阅读全文按钮 */
.tech-card .meta {
    font-size: 0.7rem;
    color: #b0b8c4;
    margin-top: 10px;
    border-top: 1px solid #f0f2f5;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
.read-more-btn:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* 无文章提示 */
.no-articles {
    text-align: center;
    padding: 60px 0;
    color: var(--gray);
    font-size: 1.1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding-bottom: 20px;
}
.pagination button {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
    background: #f3f4f6;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
    min-width: 44px;
}
.pagination button:hover:not(:disabled) {
    background: #e5e7eb;
    color: #1f2937;
}
.pagination button.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination .page-jump {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}
.pagination .page-jump input {
    width: 48px;
    padding: 6px 6px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 30px;
    font-size: 0.85rem;
    outline: none;
    transition: border 0.2s;
}
.pagination .page-jump input:focus {
    border-color: var(--primary);
}
.pagination .page-jump button {
    padding: 6px 14px;
    font-size: 0.8rem;
    min-width: auto;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
    .tech-card {
        height: auto;
        min-height: 150px;
        padding: 16px 18px;
    }
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    .pagination .page-jump {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}