/* ==========================================================
   仪器共享平台 · 平台介绍页
   风格参照：https://gkky.ihm.ac.cn/?c=87（细胞药物研发平台）
   版心 1560px · 自适应
   ========================================================== */

:root {
  --blue: #236eb6;        /* 主蓝：标题条 / 胶囊 / 按钮 */
  --blue-text: #236eb7;   /* 段落标题文字 */
  --border-blue: #2969a9; /* 描边 / 下划线 */
  --light-blue: #edf5fa;  /* 浅蓝底色 */
  --text-dark: #333333;
  --grad: linear-gradient(90deg, #236eb6 0%, #37a9c2 55%, #56bfa9 100%);
}


/*body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(180deg, #eaf3f9 0%, #f4f9fc 100%);
  overflow-x: hidden;
}*/


.container { padding: 0px 0 100px; }

/* ============ 通用：大节标题胶囊（左圆角矩形→右侧圆头） ============ */
.pill-bar {
  display: inline-block;
  height: 60px;
  line-height: 60px;
  padding: 0 46px;
  border-radius: 30px 0 30px 0;
  background: var(--grad);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ============ 通用 · 圆点列表 ============ */
.dot-list li {
  position: relative;
  padding-left: 26px;
  font-size: 18px;
  line-height: 1.7;
}

.dot-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: -2px;
  font-weight: 700;
}

/* ============ 平台简介 ============ */
.intro-box {
  margin-top: 34px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(35, 110, 182, 0.08);
  padding: 44px 50px;
}

.intro-box p {
  font-size: 20px;
  line-height: 2;
  color: var(--text-dark);
}

/* ============ 平台功能：4 列卡片 ============ */
.func-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.func-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(35, 110, 182, 0.08);
}

.func-card h3 {
  height: 66px;
  line-height: 66px;
  text-align: center;
  background: var(--blue);
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 2px;
}

.func-sub {
  padding: 20px 26px 6px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--blue-text);
  font-weight: 600;
}

.func-card .dot-list {
  padding: 10px 26px 26px;
}

/* ============ 特色服务 ============ */
.feature-wrap { margin-top: 60px; }

/* 卡片容器（分子互作 / 质谱 / 影像 / 病理 通用） */
.eng-box {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-blue);
  border-radius: 10px;
  padding: 60px 30px 30px;
  box-shadow: 0 0 20px rgba(35, 110, 182, 0.08);
  text-align: center;
}
.eng-box:nth-child(1) .eng-diagram{max-width: 80%;}
.eng-box-title {
  position: absolute;
  top: -30px;
  left: 30px;
  height: 60px;
  line-height: 60px;
  padding: 0 40px;
  border-radius: 30px 0 30px 0;
  background: var(--grad);
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* 第一行：分子互作分析 + 质谱分析检测 */
.feature-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1.72fr;
  gap: 30px;
}

.eng-box-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.eng-diagram {
  flex-shrink: 0;
  object-fit: contain;
}

/* 质谱分析检测：树状图（纯 HTML 构建） */
.ms-tree {
  display: grid;
  grid-template-columns: 1.15fr 0.72fr 0.62fr;
  gap: 18px;
  align-items: start;
}

.ms-branch-head {
  height: 56px;
  line-height: 56px;
  text-align: center;
  background: var(--blue);
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 6px;
}

.ms-branch-items {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.ms-branch-items span {
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: #eef2f5;
  border: 1px solid #dfe5ea;
  border-radius: 6px;
  font-size: 19px;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-branch-single .ms-branch-head { height: 56px; }

/* ============ 浅蓝面板（流式检测中心特色服务） ============ */
.panel-box {
  position: relative;
  margin-top: 60px;
  background: var(--light-blue);
  border-radius: 4px;
  padding: 60px 30px 30px;
}

.panel-bar {
  position: absolute;
  top: -30px;
  left: 0;
  height: 60px;
  line-height: 60px;
  padding: 0 46px;
  border-radius: 30px 0 30px 0;
  background: var(--grad);
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* 流式三列 */
.flow-grid {
  display: grid;
  grid-template-columns: 2.6fr 1fr 1fr;
  gap: 20px;
}

.flow-col {
  min-width: 0;
  background: #fff;
  border-radius: 8px;
  padding: 20px 22px 24px;
}

.flow-col h3 {
  height: 52px;
  line-height: 52px;
  text-align: center;
  background: var(--blue);
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.flow-col img {
  display: block;
  width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* 多色样本分析：散点图 + 实验类型列表 */
.flow-split {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 16px;
  margin-top: 14px;
  align-items: start;
}

.exp-list {
  background: var(--light-blue);
  border-radius: 6px;
  padding: 18px 20px 10px;
}

.exp-list b {
  display: block;
  font-size: 21px;
  color: var(--blue-text);
  margin-bottom: 12px;
}

.exp-list li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.exp-list li::before {
  content: "√";
  position: absolute;
  left: 2px;
  color: var(--blue);
  font-weight: 700;
}

/* 各类细胞分选：分选方式标签 + 彩色胶囊 */
.sort-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.sort-tags span {
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: var(--light-blue);
  border-radius: 6px;
  font-size: 19px;
  color: var(--blue-text);
  font-weight: 600;
}

.cell-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.cell-pills span {
  height: 46px;
  line-height: 46px;
  text-align: center;
  border-radius: 23px;
  color: #fff;
  font-size: 18px;
  letter-spacing: 1px;
}

.cell-pills span:nth-child(1) { background: #236eb6; }
.cell-pills span:nth-child(2) { background: #e8a712; }
.cell-pills span:nth-child(3) { background: #e07b28; }
.cell-pills span:nth-child(4) { background: #3d9e56; }
.cell-pills span:nth-child(5) { background: #6c8fa8; grid-column: 1 / -1; }

/* 纳米颗粒表征：样本类型 / 检测指标条 */
.nano-bar {
  margin-top: 14px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: var(--blue);
  border-radius: 6px;
  color: #fff;
  font-size: 18px;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nano-bar.red { background: #c0392b; }

/* ============ 底部行：影像检测 + 病理切片 ============ */
.bottom-grid {
  grid-template-columns: 1fr 1fr;
}

.svc-intro {
  text-align: center;
  font-size: 20px;
  line-height: 1.8;
  color: var(--blue-text);
  font-weight: 600;
  margin-bottom: 18px;
}

.img-caption {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--blue-text);
  margin: 14px 0 18px;
}

/* 高内涵：拍摄 / 分析 双卡 */
.hca-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hca-cell {
  background: var(--light-blue);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.hca-cell img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 6px;
}

.hca-cell b {
  display: block;
  font-size: 21px;
  color: var(--blue-text);
  margin: 12px 0 8px;
}

.hca-cell .dot-list { text-align: left; }

.hca-cell .dot-list li { font-size: 17px; line-height: 1.6; }

/* 病理切片与图像扫描：2×2 流程卡 */
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px 20px;
}

.path-card {
  border: 1px solid var(--border-blue);
  border-radius: 8px;
  overflow: hidden;
}

.path-card h4 {
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 6px;
}

.path-card:nth-child(1) h4 { background: #c0392b; }
.path-card:nth-child(2) h4 { background: #3d9e56; }
.path-card:nth-child(3) h4 { background: #7048b8; }
.path-card:nth-child(4) h4 { background: #1a8a9c; }

.path-card .dot-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  padding: 12px 14px;
}

.path-card .dot-list li { font-size: 17px; }

.path-card img {
  display: block;
  margin: 0 20px 20px;width: calc(100% - 40px);
  object-fit: cover;
}

/* ============ 响应式降级 ============ */
@media (max-width: 1560px) {
  /*.func-grid { grid-template-columns: repeat(2, 1fr); }*/
 
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .flow-grid .flow-col:first-child { grid-column: 1 / -1; }
  .ms-tree { grid-template-columns: repeat(3, 1fr); }
  
  .dot-list li { font-size: 20px; }
}

@media (max-width: 900px) {
  .container { padding: 0px 0 60px; }
  .pill-bar { font-size: 22px; height: 44px; line-height: 44px; padding: 0 24px; }
  .panel-bar { font-size: 20px; height: 44px; line-height: 44px; padding: 0 24px; top: -22px; }
  .eng-box { padding: 52px 16px 18px; }
  .eng-box-title { font-size: 20px; height: 44px; line-height: 44px; padding: 0 22px; top: -22px; }
  .intro-box { padding: 24px 20px; }
  .intro-box p { font-size: 16px; line-height: 1.8; }
  .func-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-grid .flow-col:first-child { grid-column: auto; }
  .flow-split { grid-template-columns: 1fr; }
  .ms-tree { grid-template-columns: 1fr; }
  .cell-pills { grid-template-columns: 1fr; }
  .cell-pills span:nth-child(5) { grid-column: auto; }
  .sort-tags { grid-template-columns: 1fr; }
  .hca-row { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; }
  .dot-list li { font-size: 16px; }
  .exp-list li { font-size: 15px; }
  .nano-bar { font-size: 15px; height: auto; min-height: 40px; line-height: 1.5; padding: 8px 6px; white-space: normal; }
  .ms-branch-items span { font-size: 16px; height: auto; min-height: 42px; line-height: 42px; white-space: normal; }
  .img-caption { font-size: 18px; }
  .svc-intro { font-size: 16px; }
  .eng-box:nth-child(1){margin-bottom: 30px;}
   .feature-grid { grid-template-columns: 1fr; }
   .bottom-grid { grid-template-columns: 1fr; }
}
