/* =========================================================
   QA Article List
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

body { background: #ffffff; color: #171717; font-family: "SourceHanSansCN-Regular", "PingFang SC", "Microsoft YaHei", sans-serif; }

.cont { padding-top: 0; }

/* ── Banner (M000633) ── */
.cont .page_banner { width: 100%; position: relative; overflow: hidden; }
.cont .page_banner .banner-media { width: 100%; position: relative; z-index: 1; }
.cont .page_banner .banner-media img, .cont .page_banner .banner-media video { width: 100%; display: block; object-fit: cover; }
.cont .page_banner .banner-txt { position: absolute; left: 0; right: 0; bottom: 60px; z-index: 2; }
.cont .page_banner .banner-txt .txt p { display: block; color: #fff; font-family: "SourceHanSansCN-Bold"; }
.cont .page_banner .banner-txt .txt span { display: block; color: #fff; line-height: 1.2; margin-top: 0.8vw; }
.cont .page_banner .mobile-item { display: none; }

.kal-page { padding: 40px 0 120px; background: #f8f9fa; }

.kal-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 0 28px; border-bottom: 1px solid #e5e7eb; margin-bottom: 40px; }
.kal-header-left { display: flex; align-items: center; gap: 12px; }
.kal-ic { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; }
.kal-ic svg { width: 28px; height: 28px; display: block; }
.kal-header-title { color: #3a6cf4; font-family: "SourceHanSansCN-Regular"; letter-spacing: 0.5px; }
.kal-header-right { color: #595959; display: flex; align-items: baseline; gap: 8px; }
.kal-total-num { color: #171717; font-family: "SourceHanSansCN-Bold"; font-size: 34px; line-height: 1; }
.kal-total-label { color: #595959; font-size: 14px; }

.kal-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.kal-tag { display: inline-block; padding: 10px 22px; border: 1px solid #e5e7eb; background: #ffffff; color: #595959; text-decoration: none; transition: all 0.25s ease; cursor: pointer; user-select: none; font-family: "SourceHanSansCN-Regular"; }
.kal-tag:hover { border-color: #3a6cf4; color: #3a6cf4; }
.kal-tag.on { background: #3a6cf4; border-color: #3a6cf4; color: #ffffff; }

/* ── 3列卡片网格 ── */
.kal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; background: transparent; border: none; }

.kal-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}
.kal-card:hover { border-color: #3a6cf4; box-shadow: 0 4px 20px rgba(58,108,244,0.10); }
.kal-card:hover .kal-card-title { color: #3a6cf4; }
.kal-card:hover .kal-card-arrow svg { transform: translate(4px, -4px); }
.kal-card-placeholder { padding: 0; cursor: default; pointer-events: none; background: transparent; border-color: transparent; box-shadow: none; }

/* ── 封面图 ── */
.kal-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}
.kal-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.kal-card:hover .kal-card-img img { transform: scale(1.05); }

/* ── 卡片内容区 ── */
.kal-card-body { padding: 20px 22px 18px; display: flex; flex-direction: column; flex: 1; }

.kal-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kal-card-tag { color: #3a6cf4; font-family: "SourceHanSansCN-Regular"; letter-spacing: 0.5px; }
.kal-card-time { color: #8c8c8c; display: inline-flex; align-items: center; gap: 6px; font-family: "SourceHanSansCN-Regular"; }
.kal-card-time svg { width: 14px; height: 14px; display: block; }

.kal-card-title { color: #171717; font-family: "SourceHanSansCN-Bold"; line-height: 1.4; margin: 0 0 10px; transition: color 0.25s ease; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.kal-card-subtitle { color: #595959; margin: 0 0 8px; line-height: 1.5; font-family: "SourceHanSansCN-Regular"; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.kal-card-preview { color: #8c8c8c; margin: 0 0 0; line-height: 1.5; font-family: "SourceHanSansCN-Regular"; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }

.kal-card-foot { display: flex; justify-content: flex-end; align-items: center; margin-top: auto; padding-top: 12px; }
.kal-card-arrow { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
.kal-card-arrow svg { width: 18px; height: 18px; display: block; transition: transform 0.25s ease; }

.kal-page-wrap { margin-top: 60px; }
#kalPage { display: flex; justify-content: center; }
.kal-empty { grid-column: 1 / -1; padding: 80px 0; text-align: center; color: #8c8c8c; background: #fff; }

/* ── Responsive ── */
@media (max-width: 1600px) {
    .kal-card-body { padding: 18px 20px 16px; }
}

@media (max-width: 1200px) {
    .kal-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .cont { padding-top: 0; }
    .kal-page { padding: 24px 0 80px; }
    .kal-header { flex-direction: column; gap: 16px; align-items: flex-start; padding: 16px 0 20px; }
    .kal-tags { gap: 10px; margin-bottom: 28px; }
    .kal-tag { padding: 8px 16px; font-size: 14px !important; }
    .kal-card-body { padding: 16px 16px 14px; }
}

@media (max-width: 768px) {
    .kal-list { grid-template-columns: 1fr; gap: 16px; }
    .cont .page_banner .pc-item { display: none; }
    .cont .page_banner .mobile-item { display: block; }
    .cont .page_banner .banner-txt { bottom: 16px; }
    .cont .page_banner .banner-txt .txt p { font-size: 20px; }
    .cont .page_banner .banner-txt .txt span { font-size: 12px; }
    .cont .page_banner .pic { height: 200px; }
    .cont .page_banner .pic .img, .cont .page_banner .pic .img img { height: 100%; }
    .cont .page_banner .pic .img img { object-fit: cover; }
}