/* =========================================================
 * Newsroom 列表页 + News 详情页
 * 数据结构对齐 hikvision.com/en/newsroom/archive
 * ========================================================= */

/* =========================================================
 * 一、顶部筛选栏
 * ========================================================= */
.newsroom-filter-bar-wrapper {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
    margin-top: 64px;
}

.newsroom-filter-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.newsroom-filter-title {
    text-decoration: none;
    color: inherit;
}

.newsroom-title {
    margin: 0;
    font-family: "OpenSansSemiBold", "OpenSans", "Microsoft YaHei", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #333;
}

.newsroom-filter-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.newsroom-dropdown-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* =========================================================
 * 二、下拉
 * ========================================================= */
.newsroom-group {
    position: relative;
}

.newsroom-dropdown-item {
    position: relative;
}

.newsroom-dropdown-type {
    position: relative;
    padding-right: 18px;
    font-family: "OpenSans", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #333;
    cursor: pointer;
    transition: color .2s;
    user-select: none;
}

.newsroom-dropdown-type:hover {
    color: #d7150e;
}

.newsroom-dropdown-type::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 1.5px solid #666;
    border-bottom: 1.5px solid #666;
    transform: rotate(45deg);
    transition: transform .2s;
}

.newsroom-group.open .newsroom-dropdown-type::after {
    transform: rotate(-135deg);
    margin-top: -2px;
}

.newsroom-dropdown-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 180px;
    max-height: 340px;
    overflow-y: auto;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    z-index: 99;
}

.newsroom-dropdown-primary {
    padding: 9px 20px;
    font-family: "OpenSans", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #333;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.newsroom-dropdown-primary:hover {
    color: #d7150e;
    background: #f7f7f7;
}

.newsroom-dropdown-primary.active {
    color: #d7150e;
    font-weight: 600;
}

/* =========================================================
 * 三、Reset
 * ========================================================= */
.newsroom-reset-btn {
    font-family: "OpenSans", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #333;
    cursor: pointer;
    transition: color .2s;
}

.newsroom-reset-btn:hover {
    color: #d7150e;
}

/* =========================================================
 * 四、搜索框
 * ========================================================= */
.newsroom-search-container {
    position: relative;
    min-width: 220px;
}

.newsroom-search-form {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    transition: border-color .2s;
}

.newsroom-search-form:hover {
    border-color: #bbb;
}

.newsroom-search-form:focus-within {
    border-color: #bbb;
}

.newsroom-search-btn {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    background: url("../images/icon-filter-search.png") center/contain no-repeat;
    cursor: pointer;
}

.newsroom-search {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-family: "OpenSans", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #333;
}

.newsroom-search::placeholder {
    color: #999;
}

.newsroom-search-clear-btn {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    cursor: pointer;
    background: url("../images/icon-close-gray.svg") center/contain no-repeat;
}

/* =========================================================
 * 五、新闻列表
 * ========================================================= */
.newsroom-archive-list-wrapper {
    padding: 24px 0 60px;
    background: #fff;
}

.newsroom-archive-list-container {
    display: block;
    min-height: 400px;
}

.newsroom-archive-item {
    display: flex;
    align-items: flex-start;
    padding: 28px 0;
    box-sizing: border-box;
    border-bottom: 1px solid #f2f2f2;
    text-decoration: none;
    color: inherit;
    transition: opacity .2s;
}

.newsroom-archive-item:hover {
    opacity: .92;
}

.newsroom-archive-item:last-child {
    border-bottom: none;
}

/* 列表项 hover 不要下划线、不要变蓝 */
.newsroom-archive-list-wrapper .newsroom-archive-item,
.newsroom-archive-list-wrapper .newsroom-archive-item:hover,
.newsroom-archive-list-wrapper .newsroom-archive-item:focus,
.newsroom-archive-list-wrapper .newsroom-archive-item:visited {
    color: #333;
    text-decoration: none;
}

/* ---------- 封面图 ---------- */
.newsroom-archive-img-container {
    flex: 0 0 auto;
    width: 320px;
    height: 180px;
    margin-right: 32px;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
}

.newsroom-archive-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    transition: transform .4s;
}

.newsroom-archive-item:hover .newsroom-archive-img {
    transform: scale(1.03);
}

/* ---------- 右侧内容 ---------- */
.newsroom-archive-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* 板块标签：Latest News / Blog / Success Stories 等 */
.newsroom-archive-type {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 0;
    margin-bottom: 12px;
    font-family: "OpenSans", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    color: #666;
    border-radius: 2px;
}

.newsroom-archive-title {
    margin: 0;
    font-family: "OpenSansSemiBold", "OpenSans", "Microsoft YaHei", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color .2s;
}

/* ---------- 日期 / Topic 行 ---------- */
.newsroom-archive-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.newsroom-archive-desc {
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #666;
}

.newsroom-archive-desc.active {
    display: inline-flex;
    align-items: center;
}

.newsroom-archive-flag {
    color: #999;
    margin-right: 2px;
}

/* 日期 / Topic 之间的竖线 */
.newsroom-archive-wrapper .newsroom-archive-desc + .newsroom-archive-desc {
    position: relative;
    margin-left: 16px;
    padding-left: 16px;
}

.newsroom-archive-wrapper .newsroom-archive-desc + .newsroom-archive-desc::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: #ddd;
}

/* ---------- Topic 分类名（可点击） ---------- */
.newsroom-archive-tip {
    position: relative;
    z-index: 2;
    color: #094f9c;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s;
}

.newsroom-archive-tip:hover {
    color: #094f9c;
    text-decoration: none;
}

/* 覆盖全局 a:hover 的下划线 */
.newsroom-archive-wrapper .newsroom-archive-tip:hover {
    text-decoration: none;
}

.newsroom-archive-tip-comma {
    color: #ccc;
    margin: 0 2px;
}

/* =========================================================
 * 六、分页
 * ========================================================= */
.newsroom-archive-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0 10px;
    box-sizing: border-box;
}

.newsroom-archive-pagination .pagination-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.newsroom-archive-pagination .pagination-section a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    margin: 0 4px;
    box-sizing: border-box;
    font-family: "OpenSans", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: color .2s, background-color .2s;
}

.newsroom-archive-pagination .pagination-section a:hover {
    color: #d7150e;
    background: #f7f7f7;
}

.newsroom-archive-pagination .pagination-section a.jp-current {
    color: #d7150e;
    font-weight: 700;
    cursor: default;
}

.newsroom-archive-pagination .pagination-section a.jp-disabled {
    color: #ccc;
    cursor: default;
}

.newsroom-archive-pagination .pagination-section a.jp-previous,
.newsroom-archive-pagination .pagination-section a.jp-next {
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 0;
    position: relative;
}

.newsroom-archive-pagination .pagination-section a.jp-previous::before,
.newsroom-archive-pagination .pagination-section a.jp-next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}

.newsroom-archive-pagination .pagination-section a.jp-previous::before {
    transform: translate(-30%, -50%) rotate(135deg);
}

.newsroom-archive-pagination .pagination-section a.jp-next::before {
    transform: translate(-70%, -50%) rotate(-45deg);
}

.newsroom-archive-pagination .jp-hidden {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 4px;
    color: #999;
    font-size: 14px;
}

/* 每页数量 */
.newsroom-archive-pagination .item-num-for-page {
    flex: 0 0 auto;
    margin-left: 20px;
}

.newsroom-archive-pagination .item-num-for-page select {
    height: 32px;
    padding: 0 24px 0 10px;
    border: 0.8px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-family: "OpenSans", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%23333' stroke-width='1.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
}

/* =========================================================
 * 七、空状态
 * ========================================================= */
.newsroom-card-blank-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0;
    text-align: center;
}

.newsroom-card-blank-img {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
    background: url("../images/icon-no-result.png") center/contain no-repeat;
    opacity: .8;
}

.newsroom-card-title {
    font-family: "OpenSans", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    color: #666;
}

/* =========================================================
 * 八、View more（保留结构，暂时隐藏）
 * ========================================================= */
.newsroom-archive-view-more {
    display: none;
    padding: 30px 0;
    text-align: center;
}

.newsroom-archive-view-more .view-more-content {
    display: inline-block;
    padding: 8px 28px;
    font-family: "OpenSans", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.newsroom-archive-view-more .view-more-content:hover {
    color: #d7150e;
    border-color: #d7150e;
}

/* =========================================================
 * 九、News 详情页
 * ========================================================= */
.news-detail-wrapper {
    max-width: calc(1310px * 6 / 12 + 60px);
    margin: 0 auto;
    padding: 120px 30px 80px;
    box-sizing: border-box;
}

.news-detail-title {
    margin: 0 0 24px;
    font-family: "OpenSansBold", "OpenSans", "Microsoft YaHei", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.news-detail-content {
    font-family: "OpenSans", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-detail-content p {
    margin: 0 0 20px;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
 * 十、响应式
 * ========================================================= */
@media (max-width: 991px) {

    /* ---------- 筛选栏 ---------- */
    .newsroom-filter-bar-wrapper {
        padding: 24px 0 16px;
        margin-top: 48px;
    }

    .newsroom-filter-bar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .newsroom-title {
        font-size: 28px;
    }

    .newsroom-filter-container {
        width: 100%;
        flex-wrap: wrap;
        gap: 16px;
    }

    /* ---------- 列表 ---------- */
    .newsroom-archive-item {
        flex-direction: column;
        padding: 20px 0;
    }

    .newsroom-archive-img-container {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 16px;
    }

    .newsroom-archive-title {
        font-size: 16px;
        line-height: 24px;
    }

    /* ---------- 分页 ---------- */
    .newsroom-archive-pagination {
        flex-direction: column;
        gap: 16px;
    }

    .newsroom-archive-pagination .item-num-for-page {
        margin-left: 0;
    }

    /* ---------- 详情页 ---------- */
    .news-detail-wrapper {
        padding: 60px 16px 40px;
    }

    .news-detail-title {
        font-size: 22px;
        line-height: 1.4;
        margin-bottom: 16px;
    }
}