:root {
    --cap-blue: #0166b6;
    --cap-blue-dark: #00508f;
    --cap-blue-soft: #edf6fd;
    --cap-text: #1f2f3f;
    --cap-muted: #6c7d8e;
    --cap-line: #dde6ee;
    --cap-bg: #f5f7fa;
}

.kyyw-cap-page,
.kyyw-cap-page * { box-sizing: border-box; }
.kyyw-cap-page { color: var(--cap-text); background: var(--cap-bg); }
.kyyw-cap-page a { color: inherit; text-decoration: none; }
.kyyw-cap-page img { max-width: 100%; }
.kyyw-cap-page .container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

.kyyw-cap-banner { color: #fff; background: linear-gradient(120deg, #00518f, #0878c5); }
.kyyw-cap-banner__inner { min-height: 220px; display: flex; justify-content: space-between; align-items: center; gap: 50px; padding: 38px 0; }
.kyyw-cap-banner span { font-size: 13px; letter-spacing: 2px; opacity: .78; }
.kyyw-cap-banner h1 { margin: 10px 0 12px; font-size: 36px; line-height: 1.3; }
.kyyw-cap-banner p { max-width: 760px; margin: 0; font-size: 16px; line-height: 1.85; opacity: .9; }
.kyyw-cap-banner__actions { display: flex; flex: 0 0 auto; gap: 12px; }

.kyyw-cap-btn { display: inline-flex; min-height: 42px; padding: 0 20px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 5px; font-size: 14px; font-weight: 700; cursor: pointer; transition: .2s; }
.kyyw-cap-btn:hover { transform: translateY(-1px); }
.kyyw-cap-btn--primary { color: #fff !important; background: var(--cap-blue); border-color: var(--cap-blue); }
.kyyw-cap-btn--primary:hover { background: var(--cap-blue-dark); }
.kyyw-cap-btn--white { color: var(--cap-blue) !important; background: #fff; }
.kyyw-cap-btn--outline { color: #fff !important; border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.06); }
.kyyw-cap-btn--plain { color: #3b5368 !important; background: #fff; border-color: var(--cap-line); }
.kyyw-cap-btn--block { display: flex; width: 100%; margin-top: 10px; }

.kyyw-cap-main { padding-bottom: 55px; }
.kyyw-cap-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; color: #788897; font-size: 14px; }
.kyyw-cap-breadcrumb a:hover { color: var(--cap-blue); }

.kyyw-cap-filter { padding: 18px 20px; background: #fff; border: 1px solid var(--cap-line); border-radius: 8px; }
.kyyw-cap-filter__row { display: grid; grid-template-columns: 1fr 1fr 1fr 1.35fr auto; gap: 12px; align-items: end; }
.kyyw-cap-filter label { display: block; min-width: 0; }
.kyyw-cap-filter label span { display: block; margin-bottom: 6px; color: #445b70; font-size: 13px; font-weight: 700; }
.kyyw-cap-filter select,
.kyyw-cap-filter input { width: 100%; height: 42px; padding: 0 12px; color: var(--cap-text); border: 1px solid #cfdae4; background: #fff; border-radius: 4px; outline: none; }
.kyyw-cap-filter select:focus,
.kyyw-cap-filter input:focus { border-color: var(--cap-blue); box-shadow: 0 0 0 3px rgba(1,102,182,.08); }

.kyyw-cap-results { margin-top: 30px; }
.kyyw-cap-results__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.kyyw-cap-results__head h2 { margin: 0 0 6px; font-size: 25px; }
.kyyw-cap-results__head p { margin: 0; color: var(--cap-muted); font-size: 14px; }
.kyyw-cap-results__head > a { color: var(--cap-blue); font-size: 14px; }

.kyyw-cap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.kyyw-cap-item { min-width: 0; background: #fff; border: 1px solid var(--cap-line); border-radius: 8px; overflow: hidden; transition: .2s; }
.kyyw-cap-item:hover { border-color: #b9d3e8; box-shadow: 0 8px 22px rgba(35,67,93,.08); transform: translateY(-2px); }
.kyyw-cap-item__link { display: grid; grid-template-columns: 178px minmax(0, 1fr); min-height: 172px; }
.kyyw-cap-item__image { position: relative; display: flex; align-items: center; justify-content: center; min-height: 172px; padding: 10px; overflow: hidden; background: #f3f7fa; border-right: 1px solid #e7edf2; }
.kyyw-cap-item__image > span { position: absolute; color: #a0afbc; font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.kyyw-cap-item__image img { position: relative; z-index: 1; width: 100%; height: 100%; max-height: 152px; object-fit: contain; background: #fff; }
.kyyw-cap-item__body { min-width: 0; padding: 15px 17px 13px; }
.kyyw-cap-item__tags { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--cap-blue); font-size: 12px; }
.kyyw-cap-item__tags em { color: var(--cap-muted); font-style: normal; }
.kyyw-cap-item h3 { margin: 0; font-size: 18px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kyyw-cap-item__institution { margin: 6px 0 9px; color: #5b6f81; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kyyw-cap-item__device { display: flex; gap: 8px; align-items: center; min-width: 0; padding-top: 8px; border-top: 1px solid #edf1f4; font-size: 13px; }
.kyyw-cap-item__device strong { max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kyyw-cap-item__device span { min-width: 0; color: #7d8b98; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kyyw-cap-item__projects { margin: 8px 0 0; color: #566a7c; font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kyyw-cap-item__projects b { color: #3d566b; }
.kyyw-cap-item__more { display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 8px; color: var(--cap-blue); font-size: 12px; font-weight: 700; }
.kyyw-cap-item__more i { font-size: 17px; font-style: normal; }

.kyyw-cap-pagination { display: flex; justify-content: center; margin-top: 28px; }
.kyyw-cap-pagination a,
.kyyw-cap-pagination b,
.kyyw-cap-pagination span { display: inline-flex; min-width: 36px; height: 36px; margin: 0 3px; padding: 0 10px; align-items: center; justify-content: center; border: 1px solid var(--cap-line); background: #fff; border-radius: 4px; font-size: 13px; }
.kyyw-cap-pagination b,
.kyyw-cap-pagination a:hover { color: #fff; background: var(--cap-blue); border-color: var(--cap-blue); }

.kyyw-cap-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 38px; padding: 26px 30px; color: #fff; background: linear-gradient(120deg, #00518f, #0878c5); border-radius: 8px; }
.kyyw-cap-cta h2 { margin: 0 0 7px; font-size: 22px; }
.kyyw-cap-cta p { margin: 0; line-height: 1.75; opacity: .88; }

.kyyw-cap-detail { padding-bottom: 55px; }
.kyyw-cap-detail__header { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 24px 28px; background: #fff; border: 1px solid var(--cap-line); border-radius: 8px; }
.kyyw-cap-detail__labels { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.kyyw-cap-detail__labels span { padding: 4px 8px; color: var(--cap-blue); background: var(--cap-blue-soft); border-radius: 3px; font-size: 12px; }
.kyyw-cap-detail__header h1 { margin: 0; font-size: 30px; line-height: 1.4; }
.kyyw-cap-detail__header p { margin: 8px 0 0; color: #5f7283; font-size: 15px; }

.kyyw-cap-detail__overview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 20px; margin-top: 20px; }
.kyyw-cap-detail__photo { position: relative; display: flex; min-height: 380px; align-items: center; justify-content: center; padding: 18px; overflow: hidden; background: #fff; border: 1px solid var(--cap-line); border-radius: 8px; }
.kyyw-cap-detail__photo > span { position: absolute; color: #a1b1be; font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.kyyw-cap-detail__photo img { position: relative; z-index: 1; width: 100%; height: 100%; max-height: 344px; object-fit: contain; background: #fff; }
.kyyw-cap-detail__base { padding: 24px; background: #fff; border: 1px solid var(--cap-line); border-radius: 8px; }
.kyyw-cap-detail__base h2 { margin: 0 0 14px; font-size: 21px; }
.kyyw-cap-detail__base dl { margin: 0; }
.kyyw-cap-detail__base dl div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1f4; font-size: 14px; }
.kyyw-cap-detail__base dt { color: #80909e; }
.kyyw-cap-detail__base dd { margin: 0; color: #344c61; line-height: 1.65; }
.kyyw-cap-detail__contact-note { margin-top: 16px; padding: 12px 14px; color: #6c654f; background: #fffaf0; border: 1px solid #f0dfb4; border-radius: 5px; font-size: 12px; line-height: 1.7; }

.kyyw-cap-detail__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 20px; align-items: start; }
.kyyw-cap-section { margin-bottom: 16px; padding: 24px 26px; background: #fff; border: 1px solid var(--cap-line); border-radius: 8px; }
.kyyw-cap-section h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 20px; }
.kyyw-cap-section h2 span { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; color: #fff; background: var(--cap-blue); border-radius: 4px; font-size: 12px; }
.kyyw-cap-section__text { color: #42586b; font-size: 15px; line-height: 2; word-break: break-word; }
.kyyw-cap-notice { padding: 20px 24px; background: #fffaf0; border: 1px solid #f0dfb4; border-radius: 8px; }
.kyyw-cap-notice h2 { margin: 0 0 8px; font-size: 17px; }
.kyyw-cap-notice p { margin: 0; color: #6c654f; font-size: 13px; line-height: 1.8; }
.kyyw-cap-detail__aside { position: sticky; top: 20px; }
.kyyw-cap-side-card { padding: 24px; background: #fff; border: 1px solid var(--cap-line); border-top: 4px solid var(--cap-blue); border-radius: 8px; }
.kyyw-cap-side-card > span { display: inline-block; margin-bottom: 10px; padding: 4px 8px; color: var(--cap-blue); background: var(--cap-blue-soft); border-radius: 3px; font-size: 12px; font-weight: 700; }
.kyyw-cap-side-card h2 { margin: 0 0 10px; font-size: 20px; }
.kyyw-cap-side-card p { margin: 0 0 16px; color: var(--cap-muted); font-size: 13px; line-height: 1.8; }

@media (max-width: 1000px) {
    .kyyw-cap-filter__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kyyw-cap-filter__row .kyyw-cap-btn { min-height: 42px; }
    .kyyw-cap-list { grid-template-columns: 1fr; }
    .kyyw-cap-detail__overview { grid-template-columns: 1fr; }
    .kyyw-cap-detail__layout { grid-template-columns: 1fr; }
    .kyyw-cap-detail__aside { position: static; }
}

@media (max-width: 680px) {
    .kyyw-cap-page .container { width: min(100% - 24px, 1200px); }
    .kyyw-cap-banner__inner { min-height: auto; display: block; padding: 34px 0; }
    .kyyw-cap-banner h1 { font-size: 29px; }
    .kyyw-cap-banner p { font-size: 14px; }
    .kyyw-cap-banner__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
    .kyyw-cap-filter { padding: 16px; }
    .kyyw-cap-filter__row { grid-template-columns: 1fr; }
    .kyyw-cap-item__link { grid-template-columns: 132px minmax(0, 1fr); min-height: 150px; }
    .kyyw-cap-item__image { min-height: 150px; padding: 8px; }
    .kyyw-cap-item__image img { max-height: 134px; }
    .kyyw-cap-item__body { padding: 12px 13px; }
    .kyyw-cap-item h3 { font-size: 16px; }
    .kyyw-cap-item__projects { -webkit-line-clamp: 1; }
    .kyyw-cap-item__more { display: none; }
    .kyyw-cap-cta { display: block; padding: 22px 20px; }
    .kyyw-cap-cta .kyyw-cap-btn { width: 100%; margin-top: 17px; }
    .kyyw-cap-detail__header { display: block; padding: 20px; }
    .kyyw-cap-detail__header h1 { font-size: 25px; }
    .kyyw-cap-detail__header .kyyw-cap-btn { width: 100%; margin-top: 18px; }
    .kyyw-cap-detail__photo { min-height: 260px; }
    .kyyw-cap-detail__photo img { max-height: 224px; }
    .kyyw-cap-detail__base { padding: 20px; }
    .kyyw-cap-section { padding: 20px 18px; }
}

/* 2026-07-21 列表页最终修正：纯列表标签、紧凑卡片、完整显示图片 */
.kyyw-cap-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kyyw-cap-item__link {
    position: relative;
    grid-template-columns: 158px minmax(0, 1fr);
    height: 180px;
    min-height: 180px;
    overflow: hidden;
}

.kyyw-cap-item__image {
    min-height: 0;
    height: 180px;
    padding: 10px;
}

.kyyw-cap-item__image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

.kyyw-cap-item__body {
    position: relative;
    height: 180px;
    padding: 12px 16px 11px;
    overflow: hidden;
}

.kyyw-cap-item__tags {
    min-height: 18px;
    margin-bottom: 3px;
}

.kyyw-cap-item h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
    -webkit-line-clamp: 1;
}

.kyyw-cap-item__institution {
    margin: 4px 0 6px;
    font-size: 13px;
}

.kyyw-cap-item__device {
    min-height: 27px;
    padding-top: 6px;
    font-size: 12px;
}

.kyyw-cap-item__projects {
    display: flex;
    gap: 4px;
    max-height: 38px;
    margin: 6px 55px 0 0;
    overflow: hidden;
    color: #566a7c;
    font-size: 12px;
    line-height: 1.55;
}

.kyyw-cap-item__projects b {
    flex: 0 0 auto;
    color: #3d566b;
}

.kyyw-cap-item__projects-content {
    min-width: 0;
    max-height: 38px;
    overflow: hidden;
}

.kyyw-cap-item__projects-content,
.kyyw-cap-item__projects-content * {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.kyyw-cap-item__projects-content br:nth-of-type(n+3),
.kyyw-cap-item__projects-content br:nth-of-type(n+3) ~ * {
    display: none;
}

.kyyw-cap-item__more {
    position: absolute;
    right: 15px;
    bottom: 12px;
    margin: 0;
}

@media (max-width: 1000px) {
    .kyyw-cap-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .kyyw-cap-item__link {
        grid-template-columns: 122px minmax(0, 1fr);
        height: 158px;
        min-height: 158px;
    }
    .kyyw-cap-item__image { height: 158px; }
    .kyyw-cap-item__body { height: 158px; padding: 10px 12px; }
    .kyyw-cap-item h3 { font-size: 16px; }
    .kyyw-cap-item__projects { max-height: 19px; margin-right: 0; }
    .kyyw-cap-item__projects-content { max-height: 19px; white-space: nowrap; text-overflow: ellipsis; }
    .kyyw-cap-item__more { display: none; }
}


/* =========================================================
   2026-07-21-3 列表页紧凑横排修正版
   1. 列表不调用附表字段 test_items
   2. 卡片降低高度，去掉检测项目区域后的空白
   3. 左侧图片铺满，不留内边距
   4. 手机端筛选改为两列横排
   ========================================================= */

.kyyw-cap-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kyyw-cap-item__link {
    position: relative;
    grid-template-columns: 150px minmax(0, 1fr);
    height: 148px;
    min-height: 148px;
    overflow: hidden;
}

.kyyw-cap-item__image {
    width: 150px;
    height: 148px;
    min-height: 0;
    padding: 0;
    background: #eef3f7;
}

.kyyw-cap-item__image > span {
    z-index: 0;
}

.kyyw-cap-item__image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: fill;
    background: transparent;
}

.kyyw-cap-item__body {
    position: relative;
    height: 148px;
    min-width: 0;
    padding: 11px 15px 10px;
    overflow: hidden;
}

.kyyw-cap-item__tags {
    min-height: 17px;
    margin-bottom: 2px;
    line-height: 17px;
}

.kyyw-cap-item h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    -webkit-line-clamp: 1;
}

.kyyw-cap-item__institution {
    margin: 3px 0 6px;
    font-size: 13px;
    line-height: 20px;
}

.kyyw-cap-item__device {
    min-height: 27px;
    padding-top: 6px;
    padding-right: 72px;
    font-size: 12px;
    line-height: 20px;
}

.kyyw-cap-item__more {
    position: absolute;
    right: 14px;
    bottom: 10px;
    margin: 0;
}

/* 旧版检测项目区域不再使用，防止历史模板残留占位 */
.kyyw-cap-item__projects {
    display: none !important;
}

@media (max-width: 1000px) {
    .kyyw-cap-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .kyyw-cap-filter {
        padding: 13px;
    }

    .kyyw-cap-filter__row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-items: end;
    }

    .kyyw-cap-filter label,
    .kyyw-cap-filter__keyword,
    .kyyw-cap-filter__row .kyyw-cap-btn {
        min-width: 0;
        grid-column: auto;
    }

    .kyyw-cap-filter label span {
        margin-bottom: 5px;
        font-size: 12px;
        line-height: 18px;
    }

    .kyyw-cap-filter select,
    .kyyw-cap-filter input,
    .kyyw-cap-filter__row .kyyw-cap-btn {
        width: 100%;
        height: 42px;
        min-height: 42px;
        padding-left: 9px;
        padding-right: 9px;
        font-size: 13px;
    }

    .kyyw-cap-item__link {
        grid-template-columns: 116px minmax(0, 1fr);
        height: 132px;
        min-height: 132px;
    }

    .kyyw-cap-item__image {
        width: 116px;
        height: 132px;
        padding: 0;
    }

    .kyyw-cap-item__body {
        height: 132px;
        padding: 9px 11px;
    }

    .kyyw-cap-item__tags {
        min-height: 16px;
        line-height: 16px;
    }

    .kyyw-cap-item h3 {
        font-size: 15px;
        line-height: 1.35;
    }

    .kyyw-cap-item__institution {
        margin: 2px 0 4px;
        font-size: 12px;
        line-height: 18px;
    }

    .kyyw-cap-item__device {
        min-height: 24px;
        padding-top: 5px;
        padding-right: 0;
        font-size: 11px;
        line-height: 18px;
    }

    .kyyw-cap-item__more {
        display: none;
    }
}

@media (max-width: 360px) {
    .kyyw-cap-filter__row {
        gap: 8px;
    }

    .kyyw-cap-filter select,
    .kyyw-cap-filter input,
    .kyyw-cap-filter__row .kyyw-cap-btn {
        font-size: 12px;
    }
}

/* =========================================================
   2026-07-21-4 检测能力资源列表：竖向设备能力卡片
   仅调用主表字段：title、titlepic、capability_type、
   instrument_name、brand_model、institution_name、myarea
   ========================================================= */

/* 清除旧横向卡片布局影响 */
.kyyw-cap-results .kyyw-cap-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.kyyw-cap-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce6ee;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(20, 63, 96, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.kyyw-cap-card:hover {
    transform: translateY(-4px);
    border-color: #b7d5ea;
    box-shadow: 0 10px 25px rgba(20, 63, 96, .11);
}

.kyyw-cap-card__link {
    display: flex;
    height: 100%;
    min-height: 365px;
    flex-direction: column;
    color: inherit;
    background: #fff;
}

.kyyw-cap-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef7fa;
}

.kyyw-cap-card__media::after {
    position: absolute;
    inset: auto 0 0;
    height: 42px;
    content: "";
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.32));
}

.kyyw-cap-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform .28s ease;
}

.kyyw-cap-card:hover .kyyw-cap-card__media img {
    transform: scale(1.025);
}

.kyyw-cap-card__labels {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.kyyw-cap-card__field,
.kyyw-cap-card__area {
    display: inline-flex;
    min-width: 0;
    height: 28px;
    padding: 0 10px;
    align-items: center;
    overflow: hidden;
    border-radius: 4px;
    font-size: 12px;
    line-height: 28px;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-style: normal;
}

.kyyw-cap-card__field {
    max-width: 72%;
    color: #fff;
    background: rgba(0, 82, 143, .9);
}

.kyyw-cap-card__area {
    flex: 0 0 auto;
    color: #31536b;
    background: rgba(255,255,255,.92);
    box-shadow: 0 1px 5px rgba(0,0,0,.08);
}

.kyyw-cap-card__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 17px 18px 16px;
}

.kyyw-cap-card__body h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #172d40;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.kyyw-cap-card__device {
    display: flex;
    min-width: 0;
    min-height: 42px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 8px 0;
    border-top: 1px solid #edf2f5;
    border-bottom: 1px solid #edf2f5;
}

.kyyw-cap-card__device-name,
.kyyw-cap-card__model {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.kyyw-cap-card__device-name {
    color: #344f63;
    font-size: 14px;
    font-weight: 700;
}

.kyyw-cap-card__model {
    color: #748695;
    font-size: 12px;
}

.kyyw-cap-card__institution {
    min-height: 22px;
    margin: 9px 0 0;
    overflow: hidden;
    color: #657989;
    font-size: 13px;
    line-height: 22px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.kyyw-cap-card__institution span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.kyyw-cap-card__footer {
    display: flex;
    margin-top: auto;
    padding-top: 13px;
    align-items: center;
    justify-content: space-between;
    color: #0166b6;
    font-size: 13px;
    font-weight: 700;
}

.kyyw-cap-card__footer i {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #0166b6;
    border-radius: 50%;
    font-size: 15px;
    font-style: normal;
    transition: transform .2s ease, background .2s ease;
}

.kyyw-cap-card:hover .kyyw-cap-card__footer i {
    transform: translateX(2px);
    background: #00508f;
}

/* 筛选区：电脑横排，手机两列横排 */
.kyyw-cap-filter .kyyw-cap-filter__row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 1.2fr) 100px !important;
    gap: 14px !important;
    align-items: end !important;
}

.kyyw-cap-filter .kyyw-cap-filter__row > label {
    min-width: 0;
}

.kyyw-cap-filter .kyyw-cap-filter__row .kyyw-cap-btn {
    width: 100%;
    min-height: 42px;
}

@media (max-width: 1120px) {
    .kyyw-cap-results .kyyw-cap-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .kyyw-cap-filter .kyyw-cap-filter__row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .kyyw-cap-filter .kyyw-cap-filter__row .kyyw-cap-btn {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .kyyw-cap-results .kyyw-cap-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .kyyw-cap-card__link {
        min-height: 320px;
    }

    .kyyw-cap-card__body {
        padding: 13px 13px 12px;
    }

    .kyyw-cap-card__body h3 {
        min-height: 42px;
        margin-bottom: 8px;
        font-size: 16px;
    }

    .kyyw-cap-card__field,
    .kyyw-cap-card__area {
        height: 24px;
        padding: 0 7px;
        font-size: 11px;
        line-height: 24px;
    }

    .kyyw-cap-card__labels {
        top: 8px;
        right: 8px;
        left: 8px;
    }

    .kyyw-cap-card__device {
        min-height: 38px;
        padding: 6px 0;
    }

    .kyyw-cap-card__device-name {
        font-size: 13px;
    }

    .kyyw-cap-card__institution {
        margin-top: 7px;
        font-size: 12px;
    }

    .kyyw-cap-card__footer {
        padding-top: 9px;
        font-size: 12px;
    }

    .kyyw-cap-card__footer i {
        width: 25px;
        height: 25px;
        font-size: 13px;
    }

    .kyyw-cap-filter {
        padding: 14px !important;
    }

    .kyyw-cap-filter .kyyw-cap-filter__row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .kyyw-cap-filter .kyyw-cap-filter__row > label,
    .kyyw-cap-filter .kyyw-cap-filter__keyword {
        grid-column: auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .kyyw-cap-filter .kyyw-cap-filter__row > label > span {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .kyyw-cap-filter .kyyw-cap-filter__row select,
    .kyyw-cap-filter .kyyw-cap-filter__row input {
        width: 100%;
        min-width: 0;
        height: 40px;
        padding-right: 8px;
        font-size: 12px;
    }

    .kyyw-cap-filter .kyyw-cap-filter__row .kyyw-cap-btn {
        grid-column: span 2 !important;
        min-height: 40px;
    }
}

@media (max-width: 390px) {
    .kyyw-cap-results .kyyw-cap-list {
        gap: 9px !important;
    }

    .kyyw-cap-card__link {
        min-height: 300px;
    }

    .kyyw-cap-card__body {
        padding: 11px 10px;
    }

    .kyyw-cap-card__body h3 {
        font-size: 15px;
    }

    .kyyw-cap-card__field {
        max-width: 68%;
    }
}
/* =========================================================
   检测能力列表：四列竖向卡片最终版
   ========================================================= */

/* 列表网格 */
.kyyw-cap-results .kyyw-cap-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 20px !important;
    list-style: none !important;
    box-sizing: border-box;
}

/* 每张卡片 */
.kyyw-cap-results .kyyw-cap-list > .kyyw-cap-card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #d7e2ed;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 55, 90, 0.04);
    box-sizing: border-box;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.kyyw-cap-results .kyyw-cap-list > .kyyw-cap-card:hover {
    border-color: #9fc5e5;
    box-shadow: 0 10px 28px rgba(15, 75, 125, 0.11);
    transform: translateY(-3px);
}

/* 图片区域 */
.kyyw-cap-card__image {
    position: relative;
    display: block;
    width: 100%;
    height: 190px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #edf7fa 0%,
            #f5fafc 100%
        );
}

/* 图片铺满 */
.kyyw-cap-card__image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
}

/* 检测领域标签 */
.kyyw-cap-card__type {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 90px);
    min-height: 26px;
    padding: 3px 9px;
    overflow: hidden;
    border-radius: 3px;
    background: #0068b7;
    color: #ffffff;
    font-size: 12px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 地区标签 */
.kyyw-cap-card__area {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid rgba(0, 74, 130, 0.12);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.94);
    color: #31556f;
    font-size: 12px;
    line-height: 20px;
}

/* 正文区域 */
.kyyw-cap-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 17px 16px 15px;
    box-sizing: border-box;
}

/* 标题 */
.kyyw-cap-card__title {
    min-height: 51px;
    margin: 0 0 12px;
    padding: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.kyyw-cap-card__title a {
    display: -webkit-box;
    overflow: hidden;
    color: #102a43;
    text-decoration: none;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.kyyw-cap-card__title a:hover {
    color: #0068b7;
}

/* 仪器和型号信息 */
.kyyw-cap-card__info {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    padding: 8px 0;
    border-top: 1px solid #e8eef4;
    font-size: 13px;
    line-height: 1.6;
}

.kyyw-cap-card__info > span {
    flex: 0 0 62px;
    color: #7b8da0;
}

.kyyw-cap-card__info > strong {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #243f57;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 所属机构 */
.kyyw-cap-card__institution {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    padding: 8px 0;
    border-top: 1px solid #e8eef4;
    font-size: 13px;
    line-height: 1.6;
}

.kyyw-cap-card__institution > span {
    flex: 0 0 62px;
    color: #7b8da0;
}

.kyyw-cap-card__institution > strong {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #243f57;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 查看详情 */
.kyyw-cap-card__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid #e8eef4;
    color: #0068b7;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.kyyw-cap-card__more i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0068b7;
    color: #ffffff;
    font-size: 14px;
    font-style: normal;
    transition: transform 0.2s ease;
}

.kyyw-cap-card__more:hover i {
    transform: translateX(3px);
}

/* =========================================================
   大屏电脑：四列
   ========================================================= */

@media (min-width: 1181px) {

    .kyyw-cap-results .kyyw-cap-list {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }

}

/* =========================================================
   中等电脑：三列
   ========================================================= */

@media (min-width: 901px) and (max-width: 1180px) {

    .kyyw-cap-results .kyyw-cap-list {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

}

/* =========================================================
   平板：两列
   ========================================================= */

@media (min-width: 601px) and (max-width: 900px) {

    .kyyw-cap-results .kyyw-cap-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

}

/* =========================================================
   手机：两列
   ========================================================= */

@media (max-width: 600px) {

    .kyyw-cap-results .kyyw-cap-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .kyyw-cap-card__image {
        height: 126px;
    }

    .kyyw-cap-card__type {
        top: 7px;
        left: 7px;
        max-width: calc(100% - 70px);
        min-height: 22px;
        padding: 1px 6px;
        font-size: 10px;
        line-height: 20px;
    }

    .kyyw-cap-card__area {
        top: 7px;
        right: 7px;
        min-height: 22px;
        padding: 1px 5px;
        font-size: 10px;
        line-height: 20px;
    }

    .kyyw-cap-card__body {
        padding: 12px 10px 11px;
    }

    .kyyw-cap-card__title {
        min-height: 42px;
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 1.5;
    }

    .kyyw-cap-card__info,
    .kyyw-cap-card__institution {
        display: block;
        padding: 6px 0;
        font-size: 11px;
    }

    .kyyw-cap-card__info > span,
    .kyyw-cap-card__institution > span {
        display: none;
    }

    .kyyw-cap-card__info > strong,
    .kyyw-cap-card__institution > strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .kyyw-cap-card__more {
        padding-top: 9px;
        font-size: 11px;
    }

    .kyyw-cap-card__more i {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

}

/* 特别窄的手机：单列 */
@media (max-width: 360px) {

    .kyyw-cap-results .kyyw-cap-list {
        grid-template-columns: 1fr !important;
    }

    .kyyw-cap-card__image {
        height: 185px;
    }

}