/* 新闻中心（中英文）：排版、结构和入场动效沿用官网新闻页，
   只把配色、字体、字号换成首页设计语言。叠加在 medgpt.css 页尾样式之上。
   01 首屏 / 02 头条 / 03 列表 / 04 加载更多 / 05 入场动效 / 06 响应式。 */
.news-page { background: var(--background); }
.news-page main { overflow: clip; }

/* ===== 01 · 首屏：官网为居中标题 + 分类，改为首页深色与品牌绿 ===== */
.news-banner { position: relative; overflow: hidden; padding: calc(var(--site-header-height) + 76px) 0 168px; color: #f5f5f6; background: var(--dark); text-align: center; }
.news-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(48% 90% at 50% 0%, #0d3a25 0%, #08160f 48%, transparent 78%); pointer-events: none; }
.news-banner > * { position: relative; }
.news-banner h1 { margin: 0; font-size: clamp(40px, 4.4vw, 64px); font-weight: 600; line-height: 1.25; letter-spacing: -.045em; }
.news-category { display: flex; justify-content: center; margin-top: 40px; }
.news-category-item { width: 112px; padding: 0; border: 0; border-right: 1px solid #ffffff2e; color: #c3cec7; background: transparent; font: inherit; font-size: 15px; line-height: 1.5; }
.news-category-item:last-child { border-right: 0; }
.news-category-text { max-width: 640px; margin: 40px auto 0; color: #aeb1b7; font-size: 16px; line-height: 1.8; }

/* ===== 02 · 头条：白卡片、左侧标签、底部进度条，位置与官网一致 ===== */
.news-list-container { position: relative; z-index: 1; margin-top: -112px; padding-bottom: 120px; }
.news-hot { position: relative; width: min(1382px, calc(100% - 128px)); margin: 0 auto; overflow: hidden; border: 1px solid #dfe6e1; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px #080a0d1f; }
.news-hot::before,
.news-hot::after { content: ""; position: absolute; bottom: 0; left: 0; height: 4px; border-radius: 20px; }
.news-hot::before { width: 100%; background: #e6ece8; }
.news-hot::after { width: 322px; background: var(--brand); }
.news-hot-item { position: relative; display: flex; justify-content: space-between; gap: 120px; padding: 40px; }
.news-hot-tag { position: absolute; top: 10px; left: -1px; display: flex; align-items: center; justify-content: center; min-width: 115px; height: 38px; padding: 0 24px; border-radius: 0 20px 20px 0; color: #fff; background: var(--brand); font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.news-hot-content { flex: 1; min-width: 0; padding-top: 38px; }
.news-hot-title { color: var(--foreground); font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.45; letter-spacing: -.02em; transition: color .3s ease-in-out; }
.news-hot-title:hover { color: var(--brand); }
.news-hot-meta { margin: 12px 0; color: var(--muted-foreground); font-size: 14px; line-height: 1.2; }
.news-hot-desc { min-height: 100px; color: var(--muted-foreground); font-size: 14px; line-height: 1.4; }
.news-hot-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--brand); font-size: 15px; line-height: 1.4; transition: gap .3s ease-in-out, color .3s ease-in-out; }
.news-hot-more:hover { gap: 12px; color: #07844f; }
.news-hot-thumb { flex-shrink: 0; width: 506px; height: 298px; overflow: hidden; border-radius: 10px; background: var(--muted); }
.news-hot-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== 03 · 列表：日期 | 标题 | 配图，与官网同一网格 ===== */
.news-list { width: min(1300px, calc(100% - 128px)); margin: 0 auto; padding-top: 50px; }
.news-item { display: flex; justify-content: space-between; padding-bottom: 48px; border-bottom: 1px solid var(--line); color: var(--foreground); }
.news-date { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; flex-shrink: 0; width: 122px; height: 91px; margin: 36px 40px 0 0; border-right: 1px solid var(--line); }
.news-date-day { color: var(--foreground); font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -.04em; transition: color .3s ease-in-out; }
.news-date-month { color: var(--muted-foreground); font-size: 15px; line-height: 1; letter-spacing: .02em; }
.news-content { flex: 1; min-width: 0; padding-top: 44px; padding-right: 40px; }
.news-title { color: var(--foreground); font-size: 20px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; transition: color .3s ease-in-out; }
.news-item:hover .news-title,
.news-item:hover .news-date-day { color: var(--brand); }
.news-img { flex-shrink: 0; width: 387px; height: 180px; margin-top: 36px; overflow: hidden; border-radius: 10px; background: var(--muted); }
.news-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== 04 · 加载更多：跳转官网下一页 ===== */
.news-load-more { display: flex; justify-content: center; align-items: center; margin: 40px auto 0; }
.news-load-more a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 28px; border: 1px solid var(--brand); border-radius: 30px; color: var(--brand); font-size: 15px; line-height: 1.4; transition: color .3s ease-in-out, background .3s ease-in-out; }
.news-load-more a:hover { color: #fff; background: var(--brand); }

/* ===== 05 · 入场动效：沿用官网 fadeInUp 的时长与延迟（data-reveal-*） ===== */
@keyframes news-fade-in-up { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.news-page.has-reveal [data-reveal] { visibility: hidden; }
.news-page.has-reveal [data-reveal].is-revealed { visibility: visible; animation: news-fade-in-up var(--reveal-duration, 1s) both var(--reveal-delay, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .news-page.has-reveal [data-reveal] { visibility: visible; }
  .news-page.has-reveal [data-reveal].is-revealed { animation: none; }
}

/* ===== 06 · 响应式：手机沿用官网（头条图在上、列表缩略图在右） ===== */
@media (max-width: 1240px) {
  .news-hot-item { gap: 48px; }
  .news-hot-thumb { width: 42%; height: auto; aspect-ratio: 506 / 298; }
  .news-img { width: 32%; height: auto; aspect-ratio: 387 / 180; }
}
@media (max-width: 760px) {
  .news-banner { padding: 116px 0 104px; }
  .news-banner h1 { font-size: clamp(30px, 8vw, 44px); }
  .news-category { margin-top: 20px; }
  .news-category-item { display: block; width: auto; border: 0; color: #c3cec7; font-size: 15px; }
  .news-category-text { margin-top: 18px; padding-inline: 24px; font-size: 14px; }
  .news-list-container { margin-top: -65px; padding-bottom: 70px; }
  .news-hot { width: calc(100% - 32px); border-radius: 12px; box-shadow: 0 14px 40px #080a0d1a; }
  .news-hot::before,
  .news-hot::after { display: none; }
  .news-hot-item { flex-direction: column-reverse; gap: 0; padding: 0; }
  .news-hot-tag { top: 10px; left: -1px; min-width: 60px; height: 22px; padding: 0 12px; font-size: 11px; z-index: 1; }
  .news-hot-content { padding: 16px 16px 18px; }
  .news-hot-title { font-size: 17px; }
  .news-hot-meta { margin: 8px 0 0; font-size: 12px; }
  .news-hot-desc,
  .news-hot-more { display: none; }
  .news-hot-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
  .news-list { display: flex; flex-direction: column; gap: 16px; width: calc(100% - 32px); padding-top: 18px; }
  .news-item { gap: 14px; padding: 0 0 12px 4px; }
  .news-date { justify-content: flex-start; gap: 6px; width: auto; height: auto; margin: 4px 0 0; border: 0; }
  .news-date-day { font-size: 24px; }
  .news-date-month { font-size: 11px; }
  .news-content { padding: 0; }
  .news-title { font-size: 14px; line-height: 1.55; }
  .news-img { width: 140px; height: 80px; margin-top: 0; aspect-ratio: auto; border-radius: 6px; }
  .news-load-more { margin-top: 36px; }
  .news-load-more a { min-height: 44px; padding: 10px 36px; font-size: 14px; }
}
.news-detail { width: min(860px, calc(100% - 64px)); margin: 0 auto; padding: calc(var(--site-header-height) + 48px) 0 96px; }
.news-detail-title { margin: 0; color: var(--foreground); font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.35; letter-spacing: -.03em; }
.news-detail-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 32px; color: var(--muted-foreground); font-size: 14px; }
.news-detail-meta a { color: var(--brand); }
.news-detail-content { color: #2c3831; font-size: 16px; line-height: 1.9; }
.news-detail-content img { max-width: 100%; height: auto; border-radius: 12px; }
.news-detail-content p { margin: 0 0 16px; }
.news-detail-pagination { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.news-detail-pagination-item { display: inline-flex; align-items: center; gap: 8px; max-width: 46%; color: var(--foreground); font-size: 14px; line-height: 1.5; }
.news-detail-pagination-item.is-disabled { color: #9aa39d; }
@media (max-width: 760px) {
  .news-detail { width: calc(100% - 40px); padding-top: 108px; }
  .news-detail-pagination { flex-direction: column; }
  .news-detail-pagination-item { max-width: none; }
}
@media print {
  .news-banner { background: #fff; color: #111; }
  .news-page.has-reveal [data-reveal] { visibility: visible; animation: none; }
}
