/* Newsroom 列表页；Banner：page-banner-standard.css */

/* 正文里 strong/b 也不加粗（仅新闻主内容区与黄条模块） */
body.newsroom-page .newsroom-main strong,
body.newsroom-page .newsroom-main b,
body.newsroom-page .newsroom-brand-cta strong,
body.newsroom-page .newsroom-brand-cta b {
    font-weight: 400;
}

.newsroom-main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    background: #fff;
    box-sizing: border-box;
}

/* Tab 锚点滚动时预留顶栏高度（按实际导航高度可改） */
#newsroom-latest-section,
#newsroom-archive-section {
    scroll-margin-top: 80px;
}

.newsroom-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
}

/* 类型按钮插入顶栏：不占独立盒子，与「资讯中心」同一行 */
.newsroom-type-filters {
    display: contents;
}

.newsroom-tab {
    min-width: 0;
    padding: 1.1rem;
    margin: 0.55rem 0;
    font-size: calc(0.95rem - 2px);
    cursor: pointer;
    border: 1px solid #0f172a;
    background: #fff;
    color: #0f172a;
    transition: background 0.2s, color 0.2s;
    border-radius: 2px;
    flex: 0 0 auto;
    width: auto;
    min-width: 5.5rem;
    box-sizing: border-box;
    line-height: 1.25;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.newsroom-tab.is-active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
    z-index: 1;
    position: relative;
}

.newsroom-tab:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.newsroom-panel.is-hidden {
    display: none !important;
}

.newsroom-archive-hint {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* 三列均分：左右留白与容器 padding 一致，避免左贴右空 */
.newsroom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    --newsroom-row-gap: 10rem;
    gap: var(--newsroom-row-gap) 1.5rem;
    justify-content: stretch;
    align-items: start;
    width: 100%;
    margin: 0 0 var(--newsroom-row-gap);
    box-sizing: border-box;
}

.newsroom-card {
    text-align: left;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.newsroom-card-media {
    display: block;
    text-decoration: none;
    color: inherit;
}

.newsroom-card-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 460 / 260;
    overflow: hidden;
    background: #e2e8f0;
}

.newsroom-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsroom-card-img--placeholder {
    min-height: 200px;
    background: linear-gradient(135deg, #cbd5e1 0%, #e2e8f0 100%);
}

.newsroom-card-tag {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    background: #0ea5e9;
    color: #fff;
    line-height: 1.2;
}

.newsroom-card-tag--dark {
    background: #1e3a5f;
    color: #fff;
}

.newsroom-card-date {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* 标题用 <p>，并禁止合成粗体：微软雅黑在大字号下易被浏览器描粗 */
body.newsroom-page #newsroomGrid .newsroom-card-title,
body.newsroom-page #newsroomGrid .newsroom-card-title a {
    font-weight: 400 !important;
    font-synthesis: none;
}

.newsroom-card-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.45;
    color: #0f172a;
    font-weight: 400;
    font-synthesis: none;
}

.newsroom-card-title a {
    color: inherit;
    text-decoration: none;
}

.newsroom-card-title a:hover {
    text-decoration: underline;
}

.newsroom-empty,
.newsroom-error {
    text-align: center;
    color: #64748b;
    padding: 2rem;
}

/* 列表无数据时留出区块感，避免误以为页面到此结束 */
.newsroom-empty--block {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    min-height: 7rem;
    padding: 2.5rem 1.25rem 3rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.newsroom-empty--block strong {
    color: #334155;
    font-weight: 400;
}

.newsroom-empty__jump {
    color: #0ea5e9;
    font-weight: 400;
    text-decoration: underline;
    margin: 0 0.15rem;
}

.newsroom-empty__jump:hover {
    color: #0284c7;
}

.newsroom-error {
    color: #b91c1c;
}

.newsroom-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.newsroom-pager-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    border-radius: 2px;
}

.newsroom-pager-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.newsroom-page-info {
    font-size: 0.9rem;
    color: #475569;
}

/* ========== 品牌手册 CTA（#DBF93A）==========
 * 整行铺满视口：父级 .newsroom-main 有 max-width，仅用负 margin 无法抵消两侧留白，
 * 使用 100vw + calc(50% - 50vw) 做 full-bleed（文案仍在 __inner 内居中） */
body.newsroom-page .newsroom-brand-cta {
    background-color: #dbf93a;
    padding: 3.5rem 1.5rem;
    width: 100vw;
    max-width: 100vw;
    margin-top: 2.5rem;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    box-sizing: border-box;
    position: relative;
}

.newsroom-brand-cta__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* 区块主标题默认；黄条「品牌手册」与「资讯中心」共用下面一套（对齐 calibration-m1-title） */
.newsroom-section-heading {
    margin: 0 0 2rem;
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: #0f172a;
    line-height: 1.25;
}

/* 品牌手册 + 资讯中心 主标题：同 calibration-service.htm .calibration-m1-title */
body.newsroom-page .newsroom-brand-cta .newsroom-brand-cta__title.newsroom-section-heading,
body.newsroom-page .newsroom-archive-section .newsroom-archive-section__title.newsroom-section-heading {
    font-size: 42px;
    font-family: "HarmonyOS Sans SC Light";
    font-weight: normal;
    color: #132a3e;
    margin: 0 0 20px;
    line-height: 1.2;
}

/* 描述：相对原 1rem 加大 2.5px；行高、颜色与校准页 .calibration-m1-text p 一致 */
body.newsroom-page .newsroom-brand-cta .newsroom-brand-cta__desc {
    margin: 0 0 1.75rem;
    font-size: calc(1rem + 2.5px);
    line-height: 1.8;
    color: #132a3e;
}

.newsroom-brand-cta__btn {
    display: inline-block;
    padding: 0.75rem 1.85rem;
    background: #0f172a;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.newsroom-brand-cta__btn:hover {
    background: #020617;
    color: #fff !important;
}

/* ========== 资讯中心（筛选/列表/分页内文字仍 +3px）========== */
.newsroom-archive-section {
    padding: 3rem 0 4rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0;
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.newsroom-archive-section .newsroom-pager-btn {
    font-size: calc(1rem + 3px);
}

.newsroom-archive-section .newsroom-page-info {
    font-size: calc(0.9rem + 3px);
}

.newsroom-archive-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 1rem;
    align-items: start;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.newsroom-archive-filter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
}

.newsroom-archive-filter__label {
    font-size: calc(0.8rem + 3px);
    font-weight: 400;
    color: #475569;
    letter-spacing: 0.02em;
}

.newsroom-archive-filter__select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.55rem 2rem 0.55rem 0.65rem;
    font-size: calc(0.95rem + 3px);
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
}

.newsroom-archive-list {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.newsroom-archive-list-empty {
    text-align: center;
    color: #64748b;
    padding: 2rem;
    font-size: calc(0.95rem + 3px);
}

/* 档案列表：加载更多区域（显隐由 JS 设置 display + 去掉 [hidden]；勿单独依赖 [hidden] 与行内 display 混用） */
.newsroom-archive-more-wrap {
    text-align: center;
    margin-top: 2rem;
}

.newsroom-archive-more-btn {
    padding: 0.65rem 2.25rem;
    font-size: calc(0.95rem + 3px);
    font-weight: 400;
    color: #0f172a;
    background: #fff;
    border: 1px solid #0f172a;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.newsroom-archive-more-btn:hover:not(:disabled) {
    background: #f8fafc;
}

.newsroom-archive-more-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.newsroom-archive-item {
    padding: 3.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

/* 标题用 <p>，避免 h3 默认粗体；禁止合成粗体（微软雅黑等） */
body.newsroom-page .newsroom-archive-item__title,
body.newsroom-page .newsroom-archive-item__title a {
    font-weight: 400 !important;
    font-synthesis: none;
}

.newsroom-archive-item__title {
    margin: 0 0 2rem;
    font-size: calc(1.1rem + 3px);
    line-height: 1.4;
}

.newsroom-archive-item__title a {
    color: #0f172a;
    text-decoration: none;
}

.newsroom-archive-item__title a:hover {
    text-decoration: underline;
}

.newsroom-archive-item__row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem 2rem;
}

.newsroom-archive-item__thumb {
    flex: 0 0 220px;
    width: 220px;
    height: 124px;
    max-width: 220px;
    line-height: 0;
    border-radius: 2px;
    overflow: hidden;
    background: #e2e8f0;
}

.newsroom-archive-item__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.newsroom-archive-item__thumb-ph {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #cbd5e1 0%, #e2e8f0 100%);
}

.newsroom-archive-item__body {
    flex: 1;
    min-width: 0;
    padding-top: 0.1rem;
}

.newsroom-archive-item__meta {
    margin: 0 0 0.5rem;
    font-size: calc(0.8rem + 3px);
    color: #94a3b8;
    letter-spacing: 0.03em;
}

.newsroom-archive-item__meta-type,
.newsroom-archive-item__meta-sep,
.newsroom-archive-item__meta-date {
    font-size: inherit;
    color: inherit;
    letter-spacing: inherit;
}

.newsroom-archive-item__sum {
    margin: 0;
    font-size: calc(0.95rem + 3px);
    line-height: 1.65;
    color: #1e293b;
    font-weight: 700;
}

/* 五档：Phone≤767 | Small 768–1024 | Mid 1025–1439 | Large 1440–1679 | XLarge≥1680 */

@media screen and (max-width: 1679px) {
    body.newsroom-page .newsroom-brand-cta .newsroom-brand-cta__title.newsroom-section-heading,
    body.newsroom-page .newsroom-archive-section .newsroom-archive-section__title.newsroom-section-heading {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(32px * var(--kyd-text-scale, 1)));
    }
    .newsroom-card-title {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(22px * var(--kyd-text-scale, 1)));
    }
    .newsroom-brand-cta__btn,
    .newsroom-empty--block {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(0.95rem * var(--kyd-text-scale, 1)));
    }
    .newsroom-archive-hint,
    .newsroom-page-info {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(0.9rem * var(--kyd-text-scale, 1)));
    }
    .newsroom-card-date {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(0.875rem * var(--kyd-text-scale, 1)));
    }
    .newsroom-card-tag {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(0.75rem * var(--kyd-text-scale, 1)));
    }
    .newsroom-tab {
        font-size: max(var(--kyd-text-sm-min, 14px), calc((0.95rem - 2px) * var(--kyd-text-scale, 1)));
    }
}

@media screen and (min-width: 1440px) and (max-width: 1679px) {
    .newsroom-main {
        padding-left: 36px;
        padding-right: 36px;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1439px) {
    .newsroom-main {
        padding-left: 28px;
        padding-right: 28px;
    }
    .newsroom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .newsroom-main {
        padding-left: 24px;
        padding-right: 24px;
    }
    .newsroom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        --newsroom-row-gap: 4rem;
    }
    .newsroom-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    .newsroom-archive-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .newsroom-main {
        padding: 1.5rem 16px 2.5rem;
    }
    .newsroom-grid {
        grid-template-columns: 1fr;
        --newsroom-row-gap: 3rem;
    }
    .newsroom-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    .newsroom-archive-filters {
        grid-template-columns: 1fr;
    }
    .newsroom-archive-item__row {
        flex-direction: column;
        gap: 1rem;
    }
    .newsroom-archive-item__thumb {
        flex-basis: auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
