/* MedGPT 内容页（中英文）：排版、尺寸和滚动淡入动效沿用官网 medgpt 页，
   只把配色、字体、字号换成首页设计语言。入场动效复用 news.css / news.js 的 data-reveal。
   01 首屏 / 02 快慢双系统 / 03 临床试验与双飞轮 / 04 诊断测评 / 05 英文 / 06 响应式。 */
.mg-page { background: var(--background); color: var(--foreground); }
.mg-mobile-only { display: none; }
.mg-section { display: flex; flex-direction: column; align-items: center; background: var(--background); }
.mg-section.is-white { background: #fff; }
.mg-title { max-width: calc(100% - 64px); margin: 0 auto; color: var(--brand); font-size: clamp(26px, 2.3vw, 40px); font-weight: 600; line-height: 1.4; letter-spacing: -.03em; text-align: center; text-wrap: balance; }
/* 官网尺寸按 1920 宽设计、随视口等比缩放；这里用 vw 保持同样比例。 */
.mg-figure { width: min(1271px, 66.2vw); max-width: calc(100% - 64px); }
.mg-figure img { display: block; width: 100%; height: auto; }

/* ===== 01 · 首屏：Logo、标语、人物，居中排列；改为首页深色 ===== */
.mg-banner { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: max(588px, min(794px, 41.4vw + 60px)); padding: calc(var(--site-header-height) + 42px) 32px 0; color: #f5f5f6; background: var(--dark); text-align: center; }
.mg-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(52% 80% at 50% 100%, #0d3a25 0%, #08160f 50%, transparent 80%); pointer-events: none; }
.mg-banner > * { position: relative; }
.mg-logo { width: min(451px, 23.5vw); max-width: 100%; height: auto; filter: brightness(0) invert(1); }
.mg-banner-header { width: min(710px, 41vw); max-width: 100%; }
.mg-banner h1 { margin: clamp(20px, 1.6vw, 30px) 0; color: var(--brand-light); font-size: clamp(20px, 1.5vw, 26px); font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
.mg-banner-desc { color: #aeb1b7; font-size: clamp(15px, 1.1vw, 19px); line-height: 1.6; letter-spacing: .02em; }
.mg-banner-image { width: min(390px, 22.6vw); aspect-ratio: 1; margin-top: clamp(20px, 1.6vw, 30px); }
.mg-banner-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== 02 · 快慢双系统：标题、引号包围的说明、脉动箭头与原图 ===== */
.mg-solution { padding: clamp(64px, 5.2vw, 100px) 0 clamp(72px, 6.2vw, 120px); }
.mg-solution-desc { position: relative; width: min(1051px, 61vw); max-width: calc(100% - 260px); margin: clamp(100px, 7.8vw, 150px) auto 0; color: #3e4943; font-size: clamp(16px, 1.25vw, 22px); line-height: 1.8; text-align: justify; }
.mg-solution-desc p { margin: 0 0 10px; }
.mg-solution-desc p:last-child { margin-bottom: 0; }
.mg-quote { position: absolute; width: clamp(56px, 4.3vw, 83px); height: auto; aspect-ratio: 83 / 66; color: var(--brand); }
.mg-quote.is-open { top: clamp(-76px, -4vw, -52px); left: clamp(-106px, -5.5vw, -72px); }
.mg-quote.is-close { right: clamp(-106px, -5.5vw, -72px); bottom: clamp(-76px, -4vw, -52px); transform: rotate(180deg); }
.mg-solution-media { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 32px; }
.mg-arrow { width: clamp(40px, 3.2vw, 61px); height: clamp(40px, 3.2vw, 61px); color: var(--muted-foreground); }
.mg-arrow svg { display: block; width: 100%; height: 100%; }
/* 官网 animate__pulse：2 秒、放大到 1.05 后复原，随所在区块进入视口播放一次。 */
@keyframes mg-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.mg-solution-media.is-revealed .mg-arrow { animation: mg-pulse 2s ease-in-out both; }
.mg-solution-media .mg-figure { width: min(1124px, 58.5vw); margin-top: 24px; }

/* ===== 03 · 临床试验、双飞轮、完整闭环 ===== */
.mg-clinical,
.mg-loop { justify-content: center; gap: clamp(48px, 3.9vw, 75px); min-height: min(952px, 49.6vw); padding: 80px 0; }
.mg-loop { min-height: min(993px, 51.7vw); }
.mg-wordmark { display: block; width: min(217px, 11.3vw); height: auto; margin: 0 auto clamp(26px, 2.1vw, 40px); }
.mg-loop2 { justify-content: flex-end; gap: clamp(52px, 4.2vw, 80px); padding: clamp(64px, 5.2vw, 100px) 0; }
.mg-loop2 .mg-figure { width: min(976px, 50.8vw); }

/* ===== 04 · 诊断测评 ===== */
.mg-benchmark { min-height: min(842px, 43.9vw); padding: clamp(56px, 4.2vw, 80px) 0 clamp(64px, 5.2vw, 100px); }
.mg-benchmark-content { width: min(1270px, 66.2vw); max-width: calc(100% - 64px); padding-top: clamp(46px, 3.7vw, 71px); }
.mg-benchmark-title { margin: 0 0 12px; color: var(--brand); font-size: clamp(20px, 1.7vw, 30px); font-weight: 600; line-height: 1.4; letter-spacing: .01em; text-align: left; }
.mg-benchmark-content .mg-figure { width: 100%; max-width: none; }

/* ===== 05 · 英文：官网英文版的字号与宽度 ===== */
.mg-page.is-en .mg-banner-header { width: min(1160px, 67vw); }
.mg-page.is-en .mg-banner h1 { font-size: clamp(18px, 1.3vw, 23px); line-height: 1.45; }
.mg-page.is-en .mg-banner-desc { max-width: min(826px, 48vw); margin: 0 auto; font-size: clamp(14px, 1vw, 16px); line-height: 1.5; }
.mg-page.is-en .mg-solution-desc { font-size: clamp(14px, 1vw, 18px); line-height: 1.6; }
.mg-page.is-en .mg-clinical .mg-title { max-width: min(950px, 55vw); }
.mg-page.is-en .mg-loop .mg-title { width: min(822px, 47.6vw); font-size: clamp(16px, 1.25vw, 22px); line-height: 1.35; letter-spacing: -.01em; }

/* ===== 06 · 响应式：手机沿用官网（全宽图片、引号贴边、标题缩小） ===== */
@media (max-width: 1000px) {
  .mg-solution-desc { width: auto; max-width: calc(100% - 180px); }
  .mg-figure,
  .mg-solution-media .mg-figure,
  .mg-loop2 .mg-figure,
  .mg-benchmark-content { width: calc(100% - 64px); }
  .mg-banner-header { width: min(710px, 70vw); }
  .mg-banner-image { width: min(390px, 34vw); }
  .mg-logo { width: min(451px, 40vw); }
}
@media (max-width: 760px) {
  .mg-title { max-width: calc(100% - 46px); font-size: 21px; }
  .mg-figure { max-width: calc(100% - 46px); }
  .mg-banner { justify-content: flex-start; min-height: 0; padding: 122px 28px 0; }
  .mg-banner-header,
  .mg-page.is-en .mg-banner-header { width: 100%; }
  .mg-page.is-en .mg-banner-desc { max-width: none; }
  .mg-logo { width: 235px; }
  .mg-banner h1 { margin: 26px 0 16px; font-size: 15px; }
  .mg-banner-desc { font-size: 12px; }
  .mg-banner-image { width: 203px; margin-top: 30px; }
  .mg-solution { padding: 31px 0 40px; }
  .mg-solution-desc { width: auto; max-width: none; margin: 100px 24px 0; font-size: 14px; text-align: left; }
  .mg-figure,
  .mg-solution-media .mg-figure,
  .mg-loop2 .mg-figure,
  .mg-benchmark-content { width: 100%; }
  .mg-page.is-en .mg-clinical .mg-title { max-width: calc(100% - 46px); }
  .mg-solution-desc p { margin-bottom: 0; }
  .mg-quote { width: 43px; height: 34px; }
  .mg-quote.is-open { top: -60px; left: 0; }
  .mg-quote.is-close { right: 0; bottom: -60px; }
  .mg-solution-media { margin-top: 60px; }
  .mg-arrow { width: 32px; height: 32px; }
  .mg-solution-media .mg-figure { margin-top: 40px; }
  .mg-clinical { gap: 36px; padding: 31px 0 40px; }
  .mg-loop { gap: 24px; padding: 40px 0; }
  .mg-wordmark { width: 124px; margin-bottom: 20px; }
  .mg-loop2 { gap: 32px; padding: 40px 0; }
  .mg-benchmark { padding: 40px 0; }
  .mg-benchmark-content { max-width: calc(100% - 46px); padding-top: 32px; }
  .mg-benchmark-title { margin-bottom: 6px; font-size: 15px; text-align: center; }
  .mg-page.is-en .mg-banner h1 { font-size: 14.5px; }
  .mg-page.is-en .mg-banner-desc { font-size: 11.5px; }
  .mg-page.is-en .mg-solution-desc { font-size: 12px; }
  .mg-page.is-en .mg-loop .mg-title { width: auto; font-size: 13px; }
  .mg-page.is-en .mg-loop2 .mg-title,
  .mg-page.is-en .mg-benchmark .mg-title { font-size: 19px; }
  .mg-desktop-only { display: none; }
  .mg-mobile-only { display: block; }
}
@media print {
  .mg-banner { background: #fff; color: #111; }
  .mg-logo { filter: none; }
}
