/**
 * HomeFacialPro 新闻中心页面样式。
 * 页面按设计稿还原顶部横向导航、两列新闻卡片和单行标题截断效果，
 * 同时在窄屏下改为单列并允许导航横向滚动，保证无需 JavaScript 也可使用。
 */
@font-face {
    font-family: "MizukiMing-Regular";
    src: url("https://cdn.hfbeta.com/font/MizukiMing-Regular.ttf") format("truetype");
    /* font-display: swap; */
}

:root {
    --news-ink: #141414;
    --news-ink-soft: #55554f;
    --news-paper: #f4f3ed;
    --news-line: #141414;
    --news-muted-line: #cfcec6;
    --news-max: calc(100% - 100px);
    --news-gutter: 50px;
    --news-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
    font-family: "MizukiMing-Regular";
}

.ls1 {
    letter-spacing: 1px;
}

body.news-center-page {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    /* 顶部固定导航高度留白，避免正文被遮挡 */
    padding: 50px 0 0;
    color: var(--news-ink);
    background: var(--news-paper);
    font-family: var(--news-sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.news-center-page img {
    display: block;
    max-width: 100%;
}

body.news-center-page a {
    color: var(--news-ink);
    text-decoration: none;
}

body.news-center-page :focus-visible {
    outline: 2px solid var(--news-ink);
    outline-offset: 4px;
}

/* 键盘用户可通过跳转链接直接进入新闻列表，默认隐藏在视口之外。 */
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 8px 12px;
    color: #fff;
    background: var(--news-ink);
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* 读屏与搜索引擎可读取，但不影响设计稿中的首屏留白。 */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 顶部导航：结构与样式对齐 hfp-index.html（以 hfp-index 为标准）。
   hfp-index 中该导航尺寸基于 1920 设计稿的 rem（root = vw / 19.2），
   此处等价换算为 vw，避免为新闻页额外引入根字号脚本。 */
.hfp-fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    background-color: #F4F3ED;
    z-index: 20;
    overflow: hidden;
    border-bottom: 1px solid #141414;
}

.hfp-flex {
    display: flex;
}

.hfp-flex-sb {
    justify-content: space-between;
}

.hfp-flex-ai {
    align-items: center;
    padding: 0 min(4.6875vw, 90px);
}

.hfp-nav-logo {
    display: block;
    flex: 0 0 auto;
}

.hfp-top-logo {
    width: 58px;
}

.hfp-nav-a {
    position: relative;
    height: 100%;
    width: min(43.75vw, 840px);
}

.hfp-nav-a .a-jump {
    line-height: 50px;
    position: relative;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    font-size: 14px;
    color: #141414;
    cursor: pointer;
    transition: all 0.3s;
}

.hfp-nav-a .a-jump > span {
    position: absolute;
    right: 50%;
    bottom: 0;
    height: 10px;
    width: 1px;
    font-weight: 400;
    background-color: #141414;
}

.hfp-fixed-nav .nav-active-color  {
    color: #EF3E08;
}
/* 新闻页为独立页面，橙色指示条固定在当前页「新闻中心」（第 6 项）正下方。 */
.hfp-fixed-nav .nav-active {
    position: absolute;
    left: 91.6667%;
    bottom: 0;
    width: 2px;
    height: 14px;
    transform: translateX(-50%);
    background-color: #EF3E08;
}

/* 新闻列表：设计稿为两列等宽卡片，列间距明显大于行间距。 */
.news-main {
    padding: 30px 0 30px;
}

.news-container {
    width: min(calc(100% - (var(--news-gutter) * 2)), var(--news-max));
    margin: 0 auto;
}

.news-center-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    /* display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 100px;
    row-gap: 62px; */
}

.news-center-card {
    min-width: 0;
}

.news-center-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #d9d8d1;
}

.news-center-media img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s var(--news-ease);
}

.news-center-card:hover .news-center-media img {
    transform: scale(1.025);
}

.news-center-body {
    padding: 22px 10px 0 10px;
}

.news-center-date {
    display: block;
    color: var(--news-line);
    font-size: 12px;
    line-height: 1.4;
}

.news-center-title {
    margin: 7px 0 0;
    overflow: hidden;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-center-title a {
    color: var(--news-ink);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-center-summary {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-center-more {
    position: relative;
    display: inline-block;
    margin-top: 26px;
    padding-bottom: 15px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--news-line);
}

.news-center-more::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 80px;
    height: 1px;
    background: currentColor;
}

.news-center-more::before {
    content: "";
    position: absolute;
    right: -36px;
    bottom: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    box-sizing: border-box;
    border: 1px solid #141414;
    clip-path: polygon(0% 100%, 50% 100%, 0% 45%, -100% 100%);
}

/* 分页位于新闻列表之后，使用顶部细线和右对齐页码延续原设计稿。 */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.2vw, 34px);
    min-height: 52px;
    margin-top: 72px;
    padding-top: 8px;
    overflow-x: auto;
    border-top: 1px solid var(--news-line);
}

.news-pagination[hidden] {
    display: none;
}

.news-pagination a {
    flex: 0 0 auto;
    min-width: 24px;
    padding: 4px 0;
    color: var(--news-line);
    font-size: 16px;
    line-height: 1;
    text-align: center;
}

.news-pagination a:hover,
.news-pagination a[aria-current="page"] {
    font-weight: 600;
}

.news-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 48px 0;
    color: var(--news-ink-soft);
    text-align: center;
}

/* 新闻详情：标题居中，正文使用较窄阅读宽度，图片与段落按数据顺序排列。 */
.news-detail-main {
    padding: 50px 0 80px;
}

.news-detail {
    width: calc(100% - (180px * 2));
    margin: 0 auto;
}

.news-detail-header {
    text-align: center;
}

.news-detail-title {
    margin: 0;
    font-size: clamp(28px, 2.6vw, 38px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
}

.news-detail-date {
    margin: 24px 0 34px;
    font-size: 16px;
    line-height: 1.6;
}

.news-detail-date time {
    margin-left: 8px;
}

.news-detail-figure {
    margin: 0;
    overflow: hidden;
    background: #d9d8d1;
}

.news-detail-figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.news-detail-paragraph {
    margin: 30px 0 0;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    word-break: break-word;
}

.news-detail-paragraph + .news-detail-figure {
    margin-top: 58px;
}

/* 新闻详情：分类、标签、正文层级与来源说明。 */
.news-detail-category {
    margin: 0 0 14px;
    color: #e83b08;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.2em;
}

.news-detail-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.news-detail-tags li {
    padding: 3px 10px 4px;
    border: 1px solid #c8c7bf;
    color: var(--news-ink-soft);
    font-size: 11px;
    line-height: 1.4;
}

.news-detail-cover {
    margin-top: 52px;
}

.news-detail-content {
    margin-top: 48px;
    font-size: clamp(15px, 0.94vw, 18px);
    line-height: 1.9;
    letter-spacing: 0.01em;
}

.news-detail-content p {
    margin: 0;
    word-break: break-word;
}

.news-detail-content p + p {
    margin-top: 24px;
}

.news-detail-content h2 {
    margin: 64px 0 22px;
    font-size: clamp(23px, 1.65vw, 31px);
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: 0;
}

.news-detail-content h2 + p {
    margin-top: 0;
}

.news-detail-content strong {
    font-weight: 600;
}

.news-detail-source {
    margin-top: 58px;
    padding-top: 22px;
    border-top: 1px solid var(--news-muted-line);
    color: var(--news-ink-soft);
    font-size: 14px;
    line-height: 1.8;
}

.news-detail-source p {
    margin: 0;
}

.news-detail-source p + p {
    margin-top: 8px;
}

.news-detail-source a {
    color: var(--news-ink-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-detail-back {
    margin: 42px 0 0;
    text-align: left;
}

.news-detail-back a {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
}

/* 页脚采用深色通栏：上层集中展示联系与备案信息，下层提供品牌及商城入口。 */

.news-footer {
    margin-top: calc(100vh - 700px);
    color: rgba(255, 255, 255, 0.32);
    background: #141414;
    font-size: 14px;
}

.news-footer-meta {
    padding: 16px 0 10px;
    line-height: 18px;
    text-align: center;
}

.news-footer-meta p {
    margin: 0;
}

.news-footer-meta p + p {
    margin-top: 1px;
}

.news-footer-meta a {
    color: rgba(255, 255, 255, 0.32) !important;
    transition: color 0.2s ease;
}

.news-footer-meta a:hover {
    color: rgba(255, 255, 255, 0.62);
}

body.news-center-page .news-footer-meta img {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin: 0 3px;
    vertical-align: -11px;
}

.news-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - (var(--news-gutter) * 2)), var(--news-max));
    min-height: 50px;
    margin: 0 auto;
    gap: 20px;
}

.news-footer-lab {
    color: #fff;
    font-family: var(--news-sans);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.news-footer-tmall {
    display: block;
    flex: 0 0 auto;
    width: 160px;
}

.news-footer-tmall img {
    width: 100%;
    height: auto;
}

.news-footer a:focus-visible {
    outline-color: #fff;
}

/* 样式 */
.hfp-footer-top-l {
    width: 70px;
}

/* 详情 */
.news-footer-pages-detail {
    margin-top: 0;
}

@media (max-width: 940px) {
    :root {
        --news-gutter: 32px;
    }

    .hfp-flex-ai {
        padding: 0 24px;
    }

    .hfp-nav-a {
        flex: 1 1 auto;
        width: auto;
        margin-left: 32px;
    }

    .news-center-grid {
        column-gap: 62px;
    }
}

@media (max-width: 760px) {
    :root {
        --news-gutter: 16px;
    }

    .hfp-flex-ai {
        padding: 0 16px;
    }

    .hfp-nav-a {
        margin-left: 16px;
    }

    .hfp-nav-a .a-jump {
        font-size: 12px;
    }

    .news-main {
        padding-top: 20px;
    }

    .news-center-grid {
        grid-template-columns: 1fr;
        row-gap: 52px;
    }

    .news-center-body {
        padding-top: 28px;
    }

    .news-center-title {
        font-size: 22px;
    }

    .news-center-more {
        margin-top: 18px;
    }

    .news-pagination {
        justify-content: center;
        gap: 22px;
        margin-top: 38px;
    }

    .news-detail-main {
        padding: 38px 0 60px;
    }

    .news-detail {
        width: calc(100% - (var(--news-gutter) * 2));
    }

    .news-detail-title {
        font-size: 26px;
    }

    .news-detail-date {
        margin: 18px 0 28px;
        font-size: 14px;
    }

    .news-detail-paragraph {
        font-size: 15px;
        line-height: 1.8;
    }

    .news-detail-paragraph + .news-detail-figure {
        margin-top: 42px;
    }

    .news-footer-meta {
        padding: 14px 16px 10px;
        font-size: 11px;
    }

    body.news-center-page .news-footer-meta img {
        width: 22px;
        height: 22px;
        margin: 0 1px;
        vertical-align: -7px;
    }

    .news-footer-inner {
        width: auto;
        min-height: 54px;
        margin: 0 16px;
        gap: 12px;
    }

    .news-footer-lab {
        font-size: 18px;
    }

    .news-footer-tmall {
        width: 140px;
    }
}

/* 小屏：压缩固定导航高度与字号，保证 6 个入口在窄屏仍可点选。 */
@media (max-width: 560px) {
    .hfp-fixed-nav {
        height: 46px;
    }

    body.news-center-page {
        padding-top: 46px;
    }

    .hfp-flex-ai {
        padding: 0 10px;
    }

    .hfp-top-logo {
        width: 42px;
    }

    .hfp-nav-a {
        margin-left: 10px;
        overflow-x: auto;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    .hfp-nav-a::-webkit-scrollbar {
        display: none;
    }

    .hfp-nav-a .a-jump {
        line-height: 46px;
        font-size: 11px;
    }

    .hfp-nav-a .a-jump > span {
        height: 8px;
    }

    .hfp-fixed-nav .nav-active {
        height: 12px;
    }
}

@media (max-width: 760px) {
    .news-detail-category {
        margin-bottom: 12px;
        letter-spacing: 0.14em;
    }

    .news-detail-date {
        margin: 18px 0 0;
    }

    .news-detail-tags {
        gap: 6px;
        margin-top: 18px;
    }

    .news-detail-cover {
        margin-top: 34px;
    }

    .news-detail-content {
        margin-top: 38px;
        font-size: 15px;
        line-height: 1.85;
    }

    .news-detail-content p + p {
        margin-top: 20px;
    }

    .news-detail-content h2 {
        margin: 48px 0 18px;
        font-size: 22px;
    }

    .news-detail-source {
        margin-top: 44px;
        font-size: 13px;
    }

    .news-detail-back {
        margin-top: 34px;
    }
}
