﻿/*
 * 全站内容筛选与列表公共样式
 *
 * 适用页面：
 * - 产品中心
 * - 解决方案
 * - 应用案例
 * - 方案视频
 *
 * 页面只需要组合 content-* 公共类和各自业务类。
 * 卡片内容仍由业务页面自己的 CSS 控制。
 */

.content-list-page {
    padding: 32px 0 80px;
    background: #f7f7f7;
    color: #202124;
}

/*
 * 与首页主内容区保持同一固定宽度。
 * 产品、方案、案例、视频统一使用 1200px 内容宽度，
 * 小屏幕保留左右 24px 安全边距。
 */
.site-container,
.content-shell,
.product-page .site-container,
.solution-page .solution-shell {
    width: calc(100% - 48px);
    max-width: 1200px;
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
}

.content-filter,
.content-results {
    box-sizing: border-box;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
}

.content-filter {
    padding: 0 32px;
}

.content-filter__header {
    min-height: 102px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: 0;
    border-bottom: 1px solid #ededed;
}

.content-filter__title {
    flex: 0 0 auto;
    padding-top: 7px;
}

.content-filter__title .eyebrow,
.content-filter__title .solution-eyebrow {
    display: block;
    margin: 0 0 18px;
    color: #d71920;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .18em;
}

.content-filter__title h1,
.content-filter__title h2 {
    margin: 0;
    color: #202124;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 900;
}

.content-filter__selected {
    min-height: 40px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 25px;
}

.content-filter__chip {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid #d8dadd;
    border-radius: 3px;
    background: #f7f8f9;
    color: #333;
    font-size: 12px;
    line-height: 30px;
}

.content-filter__chip > span {
    padding: 0 10px;
}

.content-filter__chip > a {
    width: 28px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-left: 1px solid #d8dadd;
    color: #666;
    font-size: 18px;
    line-height: 1;
}

.content-filter__chip > a:hover {
    background: #2f3338;
    color: #fff;
}

.content-filter__clear {
    margin-left: 4px;
    color: #d71920;
    font-size: 13px;
    line-height: 30px;
    font-weight: 800;
}

.content-filter__rows {
    width: 100%;
}

.content-filter__row {
    min-height: 58px;
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr) 58px;
    gap: 18px;
    align-items: start;
    padding: 11px 0;
    border-bottom: 1px solid #f0f0f0;
}

.content-filter__row:last-child {
    border-bottom: 0;
}

.content-filter__row > strong {
    padding-top: 7px;
    color: #202124;
    font-size: 16px;
    line-height: 30px;
    font-weight: 900;
}

.content-filter__options {
    display: flex;
    align-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0 14px;
    overflow: hidden;
    line-height: 30px;
}

.content-filter__options--collapsed {
    max-height: 34px;
}

.content-filter__options--collapsed.is-expanded,
.content-filter__options.is-expanded {
    max-height: none;
    overflow: visible;
}

.content-filter__options a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 7px;
    border: 0;
    border-radius: 3px;
    color: #202124;
    font-size: 14px;
    line-height: 30px;
    white-space: nowrap;
}

.content-filter__options a:hover {
    background: #fff1f2;
    color: #d71920;
}

.content-filter__options a.is-active {
    background: #e61c27;
    color: #fff;
}

.content-filter__options a span {
    color: #737982;
    font-size: 13px;
    font-weight: 700;
    opacity: 1;
}

.content-filter__options a.is-active span {
    color: #fff;
}

.content-filter__more {
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1267a6;
    font-size: 13px;
    line-height: 30px;
    cursor: pointer;
}

.content-filter__more:hover {
    color: #d71920;
}

.content-results {
    margin-top: 32px;
    padding: 34px 32px;
}

.content-results__header {
    min-height: 104px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin: 0 0 28px;
    padding: 0 0 25px;
    border-bottom: 1px solid #ededed;
}

.content-results__header h1,
.content-results__header h2 {
    margin: 0;
    color: #202124;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 900;
}

.content-results__header p {
    margin: 10px 0 0;
    color: #747a82;
    font-size: 14px;
}

.content-results__header p strong,
.content-results__header p em {
    color: #d71920;
    font-style: normal;
    font-weight: 900;
}

.content-results__tools {
    width: min(715px, 52%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.content-results__search {
    width: min(715px, 100%);
    height: 48px;
    display: flex;
    overflow: hidden;
    border: 1px solid #c8ccd1;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
}

.content-results__search:focus-within {
    border-color: #8c939a;
    box-shadow: 0 0 0 3px rgba(47, 51, 56, .08);
}

.content-results__search input {
    min-width: 0;
    height: 100%;
    flex: 1;
    padding: 0 20px;
    border: 0;
    outline: 0;
    background: #fff;
    color: #333;
    font-size: 15px;
    line-height: normal;
}

.content-results__search input::placeholder {
    color: #a2a8af;
}

.content-results__search button {
    width: 118px;
    height: 100%;
    flex: 0 0 auto;
    border: 0;
    border-left: 1px solid #c8ccd1;
    background: #2f3338;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.content-results__search button:hover {
    background: #15181c;
}

.content-results__page-info {
    color: #999;
    font-size: 13px;
}

.content-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 34px;
}

.content-pagination a {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    background: #fff;
    color: #555;
    font-size: 13px;
}

.content-pagination a:hover,
.content-pagination a.is-active {
    border-color: #d71920;
    background: #d71920;
    color: #fff;
}

@media (max-width: 1000px) {
    .content-filter__header,
    .content-results__header {
        flex-direction: column;
        align-items: stretch;
    }

    .content-filter__selected {
        justify-content: flex-start;
        padding-top: 0;
        padding-bottom: 20px;
    }

    .content-results__tools {
        width: 100%;
        align-items: stretch;
    }

    .content-results__search {
        width: 100%;
    }

    .content-results__page-info {
        text-align: right;
    }
}

@media (max-width: 720px) {
    .content-list-page {
        padding-top: 20px;
    }

    .content-shell {
        width: calc(100% - 28px);
        max-width: 1200px;
    }

    .content-filter,
    .content-results {
        padding-right: 18px;
        padding-left: 18px;
    }

    .content-filter__header {
        min-height: auto;
        padding: 22px 0;
    }

    .content-filter__title {
        padding-top: 0;
    }

    .content-filter__title h1,
    .content-filter__title h2,
    .content-results__header h1,
    .content-results__header h2 {
        font-size: 26px;
    }

    .content-filter__row {
        grid-template-columns: 1fr 54px;
        gap: 8px;
    }

    .content-filter__row > strong {
        grid-column: 1 / -1;
    }

    .content-results {
        padding-top: 26px;
    }

    .content-results__header {
        min-height: auto;
    }

    .content-results__search {
        height: 44px;
    }

    .content-results__search input {
        height: 100%;
        padding: 0 14px;
        font-size: 14px;
    }

    .content-results__search button {
        width: 100px;
        height: 100%;
        font-size: 14px;
    }
}
