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

/* ---------- banner：内收圆角大图，文字直接压图 ---------- */
.med-banner {
  position: relative;
  width: min(1400px, calc(100% - 2.5rem));
  height: 560px;
  margin: 1.25rem auto 0;
  overflow: hidden;
  border-radius: 32px;
  background: #cfe8ec;
}
.med-banner .bannerImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.med-banner .bannerInner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
/* 左侧轻渐变衬底，保证文字在照片上的可读性（对应效果图左区浅色渐变） */
.med-banner .bannerInner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(214, 241, 247, 0.9) 0%,
    rgba(219, 243, 248, 0.55) 34%,
    rgba(222, 244, 249, 0) 62%
  );
  pointer-events: none;
}
.med-banner .container {
  position: relative;
}
.med-banner .bannerGlass {
  /* 效果图无玻璃卡片：纯文字排版，仅保留入场动效载体 */
  padding: 0 0 0 clamp(2rem, 7vw, 7rem);
  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: 60px;
  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: 2rem;
  align-items: stretch;
  margin-bottom: 3rem;
}
.med-intro .panel {
  flex: 0 0 34%;
  background: #89c3cf;
  border-radius: 18px;
  padding: 2.4rem 2.4rem 2.6rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.med-intro .panel h3 {
  font-size: 1.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: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #274b53;
}
.med-intro .panel dd {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #274b53;
}
.med-intro .groupImg {
  flex: 1;
  min-width: 0;
  background: #f2f2f2;
  border-radius: 18px;
  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: #89c3cf;
  color: #22343b;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1.25rem 0.8rem;
  letter-spacing: 0.04em;
}
/* 行交替：偶数行浅青、奇数行浅灰白（效果图节奏） */
table.med-table tbody tr:nth-child(even) td {
  background: #b8dbe2;
}
table.med-table tbody tr:nth-child(odd) td {
  background: #f5f5f5;
}
table.med-table td.rowhead {
  background: #b8dbe2 !important;
  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);
}

/* ---------- 配送价值卡片（通栏医疗青色带 + 白卡） ---------- */
.med-band {
  background: #89c3cf;
}
.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;
    border-radius: 24px;
  }
  .med-banner .bannerGlass {
    padding-left: clamp(1.5rem, 5vw, 4rem);
  }
  .med-intro {
    flex-direction: column;
  }
  .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 {
    width: calc(100% - 1.5rem);
    height: 360px;
    margin-top: 0.75rem;
    border-radius: 18px;
  }
  .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(214, 241, 247, 0.95) 0%,
      rgba(219, 243, 248, 0.78) 48%,
      rgba(222, 244, 249, 0.3) 78%,
      rgba(222, 244, 249, 0) 100%
    );
  }
  .med-section {
    padding: 3rem 0;
  }
  .med-title {
    font-size: 1.55rem;
    margin-bottom: 1.8rem;
  }
  .med-intro {
    gap: 1.2rem;
    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;
  }
  .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;
  }
}
