/* ============================================================
   智慧医疗机器人矩阵 专题页
   设计基调：Noto Sans SC / 品牌蓝 #00a0e9 / 医疗青 #89c3cf（效果图吸色校准）
   效果图基准色：
     医疗青面 #89c3cf  浅青行 #b8dbe2  浅灰行 #f5f5f5  组灰盒 #f2f2f2
     标题青   #4fb3c8  深墨   #1c2b33  深岩   #44595e  正文灰 #555
   ============================================================ */

/* ---------- banner：通栏大图，文字压左上（校正稿：文字在上方，机器人完整露出） ---------- */
.med-banner {
  position: relative;
  width: 100%;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: #cfe8ec;
}
.med-banner .bannerImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.med-banner .bannerInner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(2.5rem, 6vh, 4.5rem);
}
/* 校正稿取样 #bbf0f3：左侧青白渐变压底，右侧透出照片与机器人 */
.med-banner .bannerInner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(187, 236, 243, 0.95) 0%,
    rgba(187, 236, 243, 0.72) 32%,
    rgba(187, 236, 243, 0.25) 50%,
    rgba(187, 236, 243, 0) 60%
  );
  pointer-events: none;
}
.med-banner .container {
  position: relative;
}
.med-banner .bannerGlass {
  /* 校正稿无玻璃卡片：纯文字排版，仅保留入场动效载体 */
  padding: 0 0 0 clamp(2rem, 9vw, 11rem);
  max-width: 660px;
  animation: medGlassIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes medGlassIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.med-banner .en {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #44595e;
}
.med-banner h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #4fb3c8;
  margin: 0.7rem 0 1rem;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.85);
}
.med-banner h1 .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  animation: medCharIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes medCharIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.med-banner .sub {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1c2b33;
  letter-spacing: 0.14em;
  opacity: 0;
  animation: medFadeUp 0.8s ease 1.1s forwards;
}
@keyframes medFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 通用结构 ---------- */
.med-section {
  padding: 4.5rem 0;
}
.med-wrap {
  width: 1400px;
  max-width: 94%;
  margin: 0 auto;
}
.med-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: #1c2b33;
  margin-bottom: 2.4rem;
  position: relative;
  padding-bottom: 1.15rem;
  letter-spacing: 0.04em;
}
.med-title-accent {
  font-style: normal;
  color: #4fb3c8;
}
.med-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 110px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #00a0e9, #4fb3c8);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.med-title.inview::after {
  transform: translateX(-50%) scaleX(1);
}

/* 滚动浮现（JS 加 .med-anim 后启用初始隐藏，避免无 JS 时不可见） */
.med-anim .med-fade {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.med-anim .med-fade.inview {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 场景头（青绿信息面板 + 产品组图） ---------- */
/* 校正稿：青绿面板与灰色组图紧邻无间隔，外圈整体圆角 */
.med-intro {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin-bottom: 3rem;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
}
.med-intro .panel {
  flex: 0 0 34%;
  background: #77c5d1;
  border-radius: 18px 0 0 18px;
  padding: 2.4rem 2.4rem 2.6rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.med-intro .panel h3 {
  font-size: 2.9rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  letter-spacing: 0.05em;
}
.med-intro .panel dl {
  margin-top: 1.1rem;
}
.med-intro .panel dt {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #274b53;
}
.med-intro .panel dd {
  font-size: 1.25rem;
  line-height: 1.9;
  color: #274b53;
}
.med-intro .groupImg {
  flex: 1;
  min-width: 0;
  background: #f2f2f2;
  border-radius: 0 18px 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.4vw, 2rem);
  overflow: hidden;
}
.med-intro .groupImg img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.med-intro .groupImg:hover img {
  transform: scale(1.04);
}

/* ---------- 规格参数表 ---------- */
.med-tableBox {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}
table.med-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  text-align: center;
}
table.med-table th,
table.med-table td {
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 0.95rem 0.8rem;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}
table.med-table thead th {
  background: #77c5d1;
  color: #22343b;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1.25rem 0.8rem;
  letter-spacing: 0.04em;
}
/* 行交替：偶数行浅青、奇数行浅灰白（校正稿吸色 #b0dde3 / #f5f5f5） */
table.med-table tbody tr:nth-child(even) td {
  background: #b0dde3;
}
table.med-table tbody tr:nth-child(odd) td {
  background: #f5f5f5;
}
/* 校正稿：行头列跟随行条纹（奇数行浅灰、偶数行浅青），只保留加粗 */
table.med-table td.rowhead {
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}
table.med-table td .spec-img {
  display: block;
  margin: 0 auto;
  height: 96px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  transition: transform 0.5s ease;
}
table.med-table td .spec-img:hover {
  transform: translateY(-4px);
}
/* 配送表：透明底产品图放大（效果图透明机器人） */
table.med-table--delivery td .spec-img {
  height: 120px;
  max-width: 150px;
}

/* ---------- 配送价值卡片（通栏医疗青色带 + 白卡） ---------- */
.med-band {
  background: #77c5d1;
}
.med-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.med-cards .card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease;
}
.med-cards .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(23, 74, 87, 0.22);
}
.med-cards .card .imgBox {
  overflow: hidden;
  aspect-ratio: 508 / 472;
}
.med-cards .card .imgBox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.med-cards .card:hover .imgBox img {
  transform: scale(1.06);
}
.med-cards .card p {
  padding: 1.3rem 1.5rem 1.6rem;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #555;
}

/* ---------- 应用场景（白底纯图，无遮罩） ---------- */
.med-appGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.med-appGrid .item {
  border-radius: 16px;
  overflow: hidden;
}
.med-appGrid .item img {
  width: 100%;
  aspect-ratio: 490 / 316;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.med-appGrid .item:hover img {
  transform: scale(1.05);
}

/* ---------- 合作伙伴（白底无卡片直铺 Logo） ---------- */
.med-partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}
.med-partners .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.med-partners .logo:hover {
  transform: translateY(-4px);
}
.med-partners .logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76px;
  object-fit: contain;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1200px) {
  .med-banner {
    height: 500px;
  }
}
@media screen and (max-width: 992px) {
  .med-banner {
    height: 460px;
  }
  .med-banner .bannerGlass {
    padding-left: clamp(1.5rem, 5vw, 4rem);
  }
  .med-intro {
    flex-direction: column;
    gap: 1.2rem;
  }
  .med-intro .panel {
    border-radius: 18px 18px 0 0;
  }
  .med-intro .groupImg {
    border-radius: 0 0 18px 18px;
  }
  .med-intro .panel {
    flex: none;
  }
  .med-intro .panel h3 {
    font-size: 1.6rem;
  }
  .med-intro .panel dl {
    margin-top: 0.9rem;
  }
  .med-intro .groupImg {
    padding: 1.4rem 1.6rem;
  }
}
@media screen and (max-width: 768px) {
  .med-banner {
    height: 420px;
  }
  .med-banner .en {
    font-size: 1.25rem;
  }
  .med-banner h1 {
    font-size: 1.9rem;
  }
  .med-banner .sub {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }
  .med-section {
    padding: 3.5rem 0;
  }
  .med-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  table.med-table th,
  table.med-table td {
    padding: 0.8rem 0.6rem;
    font-size: 0.92rem;
  }
  table.med-table thead th {
    font-size: 1rem;
    padding: 1rem 0.6rem;
  }
  .med-cards,
  .med-appGrid {
    gap: 1.2rem;
  }
  .med-cards .card p {
    padding: 1rem 1.1rem 1.2rem;
    font-size: 0.88rem;
  }
  .med-partners {
    gap: 2.2rem 1.6rem;
  }
  .med-partners .logo img {
    max-height: 62px;
  }
}
@media screen and (max-width: 640px) {
  .med-cards {
    grid-template-columns: 1fr;
  }
  .med-appGrid,
  .med-partners {
    grid-template-columns: repeat(2, 1fr);
  }
  .med-appGrid {
    gap: 1rem;
  }
  .med-partners {
    gap: 2rem 1rem;
  }
  .med-partners .logo {
    padding: 0.5rem 0.4rem;
  }
}
@media screen and (max-width: 480px) {
  .med-banner {
    height: 360px;
  }
  .med-banner .en {
    font-size: 1.05rem;
  }
  .med-banner h1 {
    font-size: 1.6rem;
  }
  .med-banner .sub {
    font-size: 0.82rem;
  }
  /* 小屏机器人照片占比更大，强化左侧衬底渐变保证文字可读 */
  .med-banner .bannerInner::before {
    background: linear-gradient(
      90deg,
      rgba(187, 236, 243, 0.96) 0%,
      rgba(187, 236, 243, 0.85) 42%,
      rgba(187, 236, 243, 0.45) 68%,
      rgba(187, 236, 243, 0) 100%
    );
  }
  .med-section {
    padding: 3rem 0;
  }
  .med-title {
    font-size: 1.55rem;
    margin-bottom: 1.8rem;
  }
  .med-intro {
    gap: 1rem;
    margin-bottom: 2.4rem;
  }
  .med-intro .panel {
    border-radius: 14px;
    padding: 1.6rem 1.4rem 1.8rem;
  }
  .med-intro .panel h3 {
    font-size: 1.35rem;
  }
  .med-intro .panel dt {
    font-size: 1rem;
  }
  .med-intro .panel dd {
    font-size: 0.88rem;
  }
  .med-intro .groupImg {
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
  }
  .med-cards .card p {
    font-size: 0.92rem;
  }
  table.med-table {
    min-width: 620px;
  }
  table.med-table th,
  table.med-table td {
    padding: 0.7rem 0.5rem;
    font-size: 0.84rem;
  }
  table.med-table thead th {
    font-size: 0.92rem;
    padding: 0.85rem 0.5rem;
  }
  table.med-table td .spec-img {
    height: 64px;
  }
  table.med-table--delivery td .spec-img {
    height: 84px;
  }
  .med-partners .logo img {
    max-height: 52px;
  }
}
/* 移动端表格横向滚动时，锁定行头列，保证阅读上下文 */
@media screen and (max-width: 768px) {
  table.med-table td.rowhead {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 2px 0 0 rgba(255, 255, 255, 0.9);
  }
}
/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .med-banner .bannerGlass,
  .med-banner h1 .ch,
  .med-banner .sub {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .med-anim .med-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .med-title::after {
    transform: translateX(-50%) scaleX(1);
    transition: none;
  }
  .med-intro .groupImg img,
  .med-cards .card,
  .med-cards .card .imgBox img,
  .med-appGrid .item img,
  .med-partners .logo,
  table.med-table td .spec-img {
    transition: none;
  }
}
