/* ============================================================
   /contact/ 复用旧版首页「新闻资讯」模块样式
   —— 逐字提取自 .workbuddy// 内联 <style>（新闻资讯段）
      仅对选择器加 .cxn-news 前缀做隔离（因 site-ui.css 存在同名 .news-* 规则），
      所有属性声明与数值保持原样，未重写样式。
   依赖变量（--white/--t-title/--brand/--brand-2/--t-body/--t-muted/--font-num）
   由 /contact/ 已加载的 page-about.css :root 提供。
   ============================================================ */

  /* ==================== 新闻资讯（Figma 1:2643 非对称布局） ==================== */
  .cxn-news .news { background: var(--white); padding: 140px 0; }
  .cxn-news .news-wrap { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
  .cxn-news .news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; min-height: 151px; }
  .cxn-news .news-head > div:first-child { align-self: flex-start; }
  .cxn-news .news-head .eyebrow { color: var(--t-body); }
  .cxn-news .news-head h2 { font-size: 38px; line-height: 53.2px; font-weight: 500; letter-spacing: .025em; margin-top: 14px; color: var(--t-title); }
  .cxn-news .news-head-right { display: flex; align-items: center; gap: 40px; }
  /* 标签栏：纯文本 + 选中项蓝色下划线 */
  .cxn-news .news-tabs { display: flex; align-items: center; }
  .cxn-news .news-tab { position: relative; display: inline-flex; align-items: center; height: 50px; padding: 0 26px;
    border: 0; background: none; font-family: inherit; cursor: pointer;   /* 元素是 <button>：去掉原生外观 */
    font-size: 14px; font-weight: 500; color: var(--t-muted); transition: color 200ms ease-out; }
  .cxn-news .news-tab:hover { color: var(--t-title); }
  .cxn-news .news-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; transition: background 200ms ease-out; }
  .cxn-news .news-tab.active { font-size: 16px; font-weight: 700; color: var(--brand); }
  .cxn-news .news-tab.active::after { background: var(--brand); }
  /* 空分类兜底：只在某分类 0 条时出现，不影响正常视觉 */
  .cxn-news .news-grid.is-empty { display: none; }
  .cxn-news .news-empty { padding: 64px 0 88px; text-align: center; font-size: 15px; line-height: 26px; color: var(--t-muted); }
  .cxn-news .news-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--brand-2);
    cursor: pointer; transition: color 200ms ease-out; }
  .cxn-news .news-more:hover { color: var(--brand); }
  .cxn-news .ico-arrow { width: 13px; height: 13px; flex: none; }

  /* 左右非对称：左头条 628 / 右栏 852，间距 52（比例取自原稿） */
  .cxn-news .news-grid { display: grid; grid-template-columns: 628fr 852fr; gap: 52px; margin-top: 27px;
    transition: opacity 200ms ease-out; }
  .cxn-news .news-grid.is-fading { opacity: 0; }

  /* 左：头条大图 + 左下角文字 + 底部深色渐变 */
  .cxn-news .news-hero { position: relative; display: block; border-radius: 8px; overflow: hidden; min-height: 556px; cursor: pointer; }
  .cxn-news .news-hero > .img-reveal { position: absolute; inset: 0; }
  /* --sc 既是 overscan（1.1 倍留边），也包含 hover 微放大：hover 抬到 1.1×1.03（视觉 scale 1.03） */
  .cxn-news .news-hero .img-reveal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    --sc: 1.1; transition: all 200ms ease-out; cursor: pointer; }
  .cxn-news .news-hero:hover .img-reveal img { --sc: 1.133; }
  .cxn-news .news-hero::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,12,24,.16) 0%, rgba(6,12,24,.34) 24%, rgba(6,12,24,.62) 62%, rgba(6,12,24,.92) 100%); }
  .cxn-news .news-hero-in { position: absolute; z-index: 2; left: 33px; right: 33px; top: 153px; bottom: 55px; display: flex; flex-direction: column; align-items: flex-start; }
  .cxn-news .news-hero h3 { font-size: 24px; line-height: 36px; font-weight: 500; color: var(--white);
    transition: all 200ms ease-out; }
  .cxn-news .news-hero:hover h3 { color: var(--brand); }
  .cxn-news .news-hero p { font-size: 24px; line-height: 36px; font-weight: 500; color: var(--white); margin-top: 16px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .cxn-news .news-hero-foot { display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .36); width: 100%; }
  .cxn-news .news-hero-foot .date { font-size: 13px; color: rgba(255, 255, 255, .72); font-family: var(--font-num); }
  .cxn-news .news-detail { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--white); transition: opacity 200ms ease-out; }
  .cxn-news .news-hero:hover .news-detail, .cxn-news .news-mini:hover .news-detail { opacity: .78; }

  /* 右上：两条并排小图新闻 */
  .cxn-news .news-right { display: grid; grid-template-rows: 283px 1fr; }
  .cxn-news .news-mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  .cxn-news .news-mini { position: relative; display: block; border-radius: 6px; overflow: hidden; cursor: pointer; }
  .cxn-news .news-mini > .img-reveal { position: absolute; inset: 0; }
  .cxn-news .news-mini .img-reveal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    --sc: 1.1; transition: all 200ms ease-out; cursor: pointer; }
  .cxn-news .news-mini:hover .img-reveal img { --sc: 1.133; }
  .cxn-news .news-mini::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,12,24,.26) 0%, rgba(6,12,24,.56) 46%, rgba(6,12,24,.90) 100%); }
  .cxn-news .news-mini-in { position: absolute; z-index: 2; left: 22px; right: 22px; top: 44px; bottom: 20px; display: flex; flex-direction: column; }
  .cxn-news .news-mini h4 { font-size: 19px; line-height: 28px; font-weight: 500; color: var(--white);
    /* 真实标题普遍长于原占位文案，限 2 行，避免压到下方摘要与日期 */
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    transition: all 200ms ease-out; }
  .cxn-news .news-mini:hover h4 { color: var(--brand); }
  .cxn-news .news-mini p { font-size: 13px; line-height: 22px; color: rgba(255, 255, 255, .82); margin-top: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cxn-news .news-mini-foot { display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .36); }
  .cxn-news .news-mini-foot .date { font-size: 12px; color: rgba(255, 255, 255, .72); font-family: var(--font-num); }
  .cxn-news .news-mini .news-detail { font-size: 13px; gap: 4px; }
  .cxn-news .news-mini .ico-arrow { width: 11px; height: 11px; }

  /* 右下：纯文本新闻列表，标题左 / 日期右 / 细灰线分隔 */
  .cxn-news .news-list { margin-top: 105px; list-style: none; }
  .cxn-news .news-list li { border-bottom: 1px solid #EEF1F3; }
  .cxn-news .news-list li:first-child { border-top: 1px solid #EEF1F3; }
  .cxn-news .news-list a { display: flex; align-items: center; justify-content: space-between; gap: 32px; width: 100%; height: auto; padding: 14px 0;
    cursor: pointer; }
  .cxn-news .news-list .t { font-size: 14px; line-height: 22px; color: #0B52D1;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: all 200ms ease-out; }
  .cxn-news .news-list .d { font-size: 14px; line-height: 22px; color: #0B52D1; white-space: nowrap; font-family: var(--font-num); }
  .cxn-news .news-list a:hover .t { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

  /* ---- 真实数据下的版面自适应 ----
     某个分类真实资讯不足 3 条时整块切成单列大卡（右栏隐藏），
     不出现「左边一张图、右边一片空」的失衡版面 */
  .cxn-news .news-grid.is-single { grid-template-columns: 1fr; }
  .cxn-news .news-grid.is-single .news-right { display: none; }
  .cxn-news .news-grid.is-single .news-hero { min-height: 560px; }
  /* 单列大卡更宽：文案贴着底部压暗区排布，并限制行长，避免浮在亮图上不好读 */
  .cxn-news .news-grid.is-single .news-hero-in { top: auto; right: auto; max-width: 780px; }
  /* 元素自带 display 会盖掉 [hidden] 的 UA 样式，这里显式声明 */
  .cxn-news .news-mini[hidden], .cxn-news .news-list li[hidden] { display: none; }
  .cxn-news .news-note { margin-top: 30px; font-size: 14px; line-height: 22px; color: var(--t-muted); }
  .cxn-news .news-note[hidden] { display: none; }


@media (max-width: 1280px) {
  .cxn-news .news-wrap { padding: 0 40px; }
  .cxn-news .news-grid { gap: 32px; }
  .cxn-news .news-hero { min-height: 470px; }
  .cxn-news .news-hero h3 { font-size: 20px; line-height: 30px; }
  .cxn-news .news-hero p { font-size: 14px; line-height: 24px; }
  .cxn-news .news-right { grid-template-rows: 240px 1fr; }
  .cxn-news .news-mini-in { left: 18px; right: 18px; }
  .cxn-news .news-mini h4 { font-size: 16px; line-height: 24px; }
  .cxn-news .news-mini p { font-size: 12px; line-height: 20px; }
  .cxn-news .news-list { margin-top: 52px; }
}
@media (max-width: 992px) {
  .cxn-news .news-grid { grid-template-columns: 1fr; }
  .cxn-news .news-wrap { padding: 0 24px; }
  .cxn-news .news-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cxn-news .news-tab { padding: 0 14px; }
  .cxn-news .news-hero { min-height: 360px; }
  .cxn-news .news-hero-in { left: 20px; right: 20px; bottom: 20px; }
  .cxn-news .news-right { grid-template-rows: 240px auto; }
  .cxn-news .news-mini-row { gap: 10px; }
  .cxn-news .news-list { margin-top: 36px; }
  .cxn-news .news-list a { gap: 16px; padding: 14px 0; }
  .cxn-news .news-list .t { white-space: normal; }
}
/* 窄屏：小图卡纵向堆叠、标题行上下排（沿用站点既有断点行为） */
@media (max-width: 767px) {
  .cxn-news .news-mini-row { grid-template-columns: 1fr; }
  .cxn-news .news-head { flex-direction: column; align-items: flex-start; }
}
