﻿/* ==========================================================================
   研发管线 - 页面样式
   遵循项目 rem 单位约定（font-size: calc(100vw / 1920)）
   ========================================================================== */

/* 公共容器 */
.main-pipeline {
  background: #f5f8fb;
}

/* ==========================================================================
   1. 筛选标签栏
   ========================================================================== */
.pipeline_tabs {
  padding: 70rem 0 50rem;
  background: #f5f8fb;
}

.pipeline_tabs_list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20rem;
}

.pipeline_tab a {
  display: inline-block;
  padding: 12rem 36rem;
  border: 1px solid #000;
  border-radius: 30rem;
  color: #000;
  background: #fff;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  line-height: 1.2;
}

.pipeline_tab--active a {
  background: #005ca7;
  border-color: #005ca7;
  color: #fff;
}

/* ==========================================================================
   2. 管线表格
   表格表头：8 列（项目 / 适应症 / 6 个阶段）
   表格内部：项目组跨多行；每个适应症对应 1 行
   适应症列下被细分为左右两个子列：
     - 左子列：病症名（1 行）
     - 右子列：CN/EU-US 字段名（2 行）
   6 个阶段列：每个阶段列内 2 行（与 CN/EU-US 对应），各 1 根进度条胶囊
   ========================================================================== */
.pipeline_table {
  padding: 30rem 0 100rem;
  background: #f5f8fb;
}

.pipeline_table_box {
  background: #fff;
  border-radius: 14rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  /* overflow: hidden; */
  /*box-shadow: 0 8px 24px rgba(0, 92, 167, 0.08);*/
}

/* 表头：9 列（项目 + 适应症 + 7 阶段） */
.pipeline_table_head {
  display: grid;
  grid-template-columns: 240rem 270rem repeat(6, 1fr);
  background: linear-gradient(to right, #005ca9 0%, #4981be 100%);
  position: sticky;
  top: 120rem;
  z-index: 9;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -o-transition: all 0.5s;
  -ms-transition: all 0.5s;
}
.body-move .pipeline_table_head {
  top: 0;
}
@media only screen and (max-width: 1024px) {
  .pipeline_table_head {
    top: 80px;
  }
}
@media only screen and (max-width: 767px) {
  .pipeline_table_head {
    top: 0px;
    position: static;
  }
}

.pipeline_table_th {
  padding: 26rem 12rem;
  color: #fff;
  line-height: 1.2;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.pipeline_table_th:last-child {
  border-right: none;
}
.pipeline_table_head .pipeline_table_th {
  border: none;
}
.pipeline_table_head .pipeline_table_th.pipeline_table_th--name {
  text-align: left;
  padding-left: 45rem;
}
.pipeline_table_head .pipeline_table_th.pipeline_table_th--indication {
  text-align: left;
  padding-left: 70rem;
}

/* 表格主体 */
.pipeline_table_body {
  display: flex;
  flex-direction: column;
  border: 1px solid #dfdfdf;
  border-top: none;
  border-bottom: none;
}

.pipeline_table_group {
  display: grid;
  grid-template-columns: 240rem 270rem repeat(6, 1fr);
  border-bottom: 1px solid #dfdfdf;
  align-items: stretch;
}
.pipeline_table_group:nth-child(2n)
  .pipeline_table_group_content
  .pipeline_table_indication_cell,
.pipeline_table_group:nth-child(2n)
  .pipeline_table_group_content
  .pipeline_table_area_cell,
.pipeline_table_group:nth-child(2n)
  .pipeline_table_group_content
  .pipeline_table_stage_cell {
  background: #f6f9fe;
}

.pipeline_table_group:last-child {
  /*border-bottom: none;*/
}

/* 第 1 列：项目名（跨多行，可点击打开弹窗） */
.pipeline_table_group_name {
  grid-row: 1 / -1;
  padding: 20rem;
  border-right: 1px solid #dfdfdf;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: #eaf1f9;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: background 0.3s ease;
  -webkit-transition: background 0.3s ease;
}

.pipeline_table_drug {
  color: #1a1a1a;
  line-height: 1.4;
}

.pipeline_table_desc {
  color: #000;
  line-height: 1.4;
}

/* 第 2-N 列：项目内容区 */
.pipeline_table_group_content {
  grid-column: 2 / -1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
}

/* 每个适应症块：左病症名 + 右区域标签 + 7 个阶段列 */
.pipeline_table_indication_block {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 190rem 80rem repeat(6, 1fr);
  border-bottom: 1px solid #dfdfdf;
  /*min-height: 120rem;*/
}

.pipeline_table_indication_block:last-child {
  border-bottom: none;
}

/* 适应症名（左子列：1 行） */
.pipeline_table_indication_cell {
  border-right: 1px solid #dfdfdf;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14rem 12rem;
  background: #fff;
}

.pipeline_table_indication {
  color: #1a1a1a;
  line-height: 1.5;
  text-align: center;
}

/* CN/EU-US 字段名（右子列：2 行） */
.pipeline_table_area_cell {
  border-right: 1px solid #dfdfdf;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.pipeline_table_area_row {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #dfdfdf;
  padding: 22rem 6rem;
}

.pipeline_table_area_row:last-child {
  border-bottom: none;
}

.pipeline_table_area {
  color: #000;
  line-height: 1;
  text-align: center;
}

/* 阶段单元格：2 行进度条 */
.pipeline_table_stage_cell {
  border-right: 1px solid #dfdfdf;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.pipeline_table_stage_cell:last-child {
  border-right: none;
}
/* 最后一列保留左侧进度连接线，隐藏右侧（管线终点） */
.pipeline_table_stage_cell:last-child .pipeline_table_stage_row::after {
  display: none;
}

/* 第一根线隐藏开始 */
.pipeline_table_area_cell
  + .pipeline_table_stage_cell
  .pipeline_table_stage_row::before {
  display: none;
  background: red;
}

.pipeline_table_area_cell
  + .pipeline_table_stage_cell
  .pipeline_table_stage_row {
  padding-left: 20%;
}
.pipeline_table_area_cell
  + .pipeline_table_stage_cell
  .pipeline_table_stage_row
  span {
  border-radius: 10rem 0 0 10rem;
}
/* 第一根线隐藏结束 */

/* 没有数据占位符开始 */
.pipeline_table_stage_row.Nobar::before,
.pipeline_table_stage_row.Nobar::after {
  display: none;
  background: rgb(21, 255, 0);
}
/* 没有数据占位符结束 */

/* 最后一根线隐藏开始 */
.pipeline_table_stage_row.Nobar1::after,
.pipeline_table_stage_row.Nobar2::after,
.pipeline_table_stage_row.Nobar3::after {
  display: none;
  background: rgb(240, 216, 1);
}

.pipeline_table_stage_cell  .last_span_curon,.pipeline_table_stage_cell .span_on.cur  {
  padding-right: 20%;
}
.pipeline_table_stage_cell  .last_span_curon span,.pipeline_table_stage_cell .span_on.cur span {
  border-radius: 0 10rem 10rem 0;
}
/* 最后一根线隐藏结束 */

/* 隐藏所有线 */
.pipeline_table_stage_row::before,
.pipeline_table_stage_row::after {
  display: none;
}

/* 阶段列内的每一行（与 CN/EU-US 行对应） */
.pipeline_table_stage_row {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  border-bottom: 1px solid #dfdfdf;
  position: relative;
}
.pipeline_table_stage_row:last-child {
  border-bottom: none;
}

.pipeline_table_stage_row::before {
  content: "";
  position: absolute;
  left: 0;
  width: 32%;
  height: 1px;
  border-bottom: 1px dashed #d0d0d0;
}
.pipeline_table_stage_row::after {
  content: "";
  position: absolute;
  right: 0;
  width: 32%;
  height: 1px;
  border-bottom: 1px dashed #d0d0d0;
}

/* 进度条 */
.pipeline_bar {
  display: block;
  width: 100%;
  height: 10rem;
  /* border-radius: 5rem; */
  background: #e6ebf1;
  position: relative;
  overflow: hidden;
}

.pipeline_bar--done {
  background: var(--c-yes, #015ca5);
}

.pipeline_bar--progress {
  background: var(--c-progress, #34aec5);
  position: relative;
}

.pipeline_bar--empty {
  background: var(--c-no, #e5e9ec);
}

/* 入场动画：进度条横向展开 */
.pipeline_bar--done,
.pipeline_bar--progress {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s ease;
  -webkit-transition: transform 0.6s ease;
}

.pipeline_bar--done.animated,
.pipeline_bar--progress.animated {
  transform: scaleX(1);
}

/* ==========================================================================
   3. 项目详情弹窗
   ========================================================================== */
.pipeline_modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.pipeline_modal.is-open {
  display: flex;
}

.pipeline_modal_mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-transition: opacity 0.3s ease;
}

.pipeline_modal.is-open .pipeline_modal_mask {
  opacity: 1;
}

.pipeline_modal_box {
  position: relative;
  width: 1000rem;
  max-width: calc(100% - 80rem);
  max-height: calc(100% - 100rem);
  background: #fff;
  border-radius: 16rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 30, 80, 0.25);
  transform: translateY(20rem);
  opacity: 0;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  -webkit-transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  display: flex;
  flex-direction: column;
}

.pipeline_modal.is-open .pipeline_modal_box {
  transform: translateY(0);
  opacity: 1;
}

/* 弹窗头部：左标题 + 右关闭按钮 */
.pipeline_modal_head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30rem 80rem;

  padding-bottom: 30rem;
  background: url(../images/pipeline_tacbg.jpg) no-repeat;
  background-size: cover;
  color: #fff;
}

.pipeline_modal_title {
  flex: 1;
  min-width: 0;
}

.pipeline_modal_drug {
  line-height: 1.4;
  position: relative;
}

/* 关闭按钮 */
.pipeline_modal_close {
  flex: 0 0 auto;
  width: 24rem;
  height: 24rem;
  border: none;
  background: transparent;
  cursor: pointer;
  position: absolute;
  right: 20rem;
  top: 20rem;
  transition: transform 0.3s ease;
  -webkit-transition: transform 0.3s ease;
  background: #fff;
  color: #53aaf7;
  border-radius: 100%;
}

.pipeline_modal_close i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12rem;
  height: 2rem;
  background: #53aaf7;
  transform: translate(-50%, -50%) rotate(45deg);
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  transition: background 0.3s ease;
  -webkit-transition: background 0.3s ease;
  border-radius: 1rem;
}

.pipeline_modal_close i:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
}

/* 弹窗内容区：图 + 3 段文字 */
.pipeline_modal_body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 55rem 80rem 40rem;
  overflow: hidden;
  background: url(../images/pipeline_bigbg.jpg) no-repeat 0 bottom;
  background-size: 100%;
}
.pipeline_scoll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pipeline_modal_body::-webkit-scrollbar {
  width: 5px;
  height: 1px;
  background: #ccc;
}
.pipeline_modal_body::-webkit-scrollbar-thumb {
  width: 5px;
  border-radius: 5px;
  background: #005ca5;
}
.pipeline_modal_body::-webkit-scrollbar-track {
  width: 5px;
  height: 1px;
}

.pipeline_modal_text p {
  color: #555;
  line-height: 1.9;
  margin-bottom: 20rem;
}

.pipeline_modal_text p:last-child {
  margin-bottom: 0;
}

.pipeline_modal_tips {
  flex-shrink: 0;
  text-align: right;
  padding-top: 20rem;
  border-top: 1px solid #d8d8d8;
  margin-top: 60rem;
}
.pipeline_modal_tips p {
  display: flex;
  align-items: center;
  justify-content: end;
}
.pipeline_modal_tips p .piple_more02 {
  margin-left: 10rem;
}
.piple_more {
  width: 36rem;
  height: 22rem;
  border: 1px solid #005ca9;
  color: #005ca9;
  border-radius: 20rem;
  text-align: center;
  line-height: 20rem;
  display: inline-block;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.piple_more01 {
  margin-top: 20rem;
}
.piple_more02 {
  background: #005ca9;
  color: #fff;
}
.piple_more02 i {
  margin-top: -1rem;
}
/* 响应式 - 1024px */
@media only screen and (max-width: 1024px) {
  .pipeline_modal_box {
    max-width: calc(100% - 40rem);
  }
  .pipeline_modal_head {
    /* margin: 24rem 28rem 20rem; */
  }
  .pipeline_modal_body {
    padding: 24rem 28rem 32rem;
  }
  .pipeline_modal_pic {
    height: 220rem;
  }
}

/* 响应式 - 767px */
@media only screen and (max-width: 767px) {
  .pipeline_modal_box {
    max-width: calc(100% - 30px);
    max-height: calc(100% - 60px);
    border-radius: 10px;
  }
  .pipeline_modal_head {
    /* margin: 20px 18px 16px; */
  }
  .pipeline_modal_desc {
    font-size: 13px;
  }
  .pipeline_modal_close {
    width: 24px;
    height: 24px;
    top: 5px;
    right: 5px;
  }
  .pipeline_modal_close i {
    width: 14px;
  }
  .pipeline_modal_body {
    padding: 18px 18px 24px;
  }
  .pipeline_modal_pic {
    height: 160px;
    border-radius: 8px;
    margin-bottom: 18px;
  }
  .pipeline_modal_text p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 14px;
  }
}

/* ==========================================================================
   响应式 - 1440px
   ========================================================================== */
@media only screen and (max-width: 1440px) {
  .pipeline_table_head,
  .pipeline_table_group {
    grid-template-columns: 180rem 150rem repeat(6, 1fr);
  }
  .pipeline_table_indication_block {
    grid-template-columns: 100rem 50rem repeat(6, 1fr);
  }
  .pipeline_table_group_name {
    padding: 24rem 18rem 24rem 24rem;
  }
}

/* ==========================================================================
   响应式 - 1024px
   ========================================================================== */
@media only screen and (max-width: 1024px) {
  .pipeline_tabs {
    padding: 50rem 0 30rem;
  }
  .pipeline_tabs_list {
    gap: 12rem;
  }
  .pipeline_tab a {
    padding: 10rem 24rem;
  }

  .pipeline_table {
    padding: 20rem 0 70rem;
  }

  .pipeline_table_head,
  .pipeline_table_group {
    grid-template-columns: 150rem 180rem repeat(6, 1fr);
  }
  .pipeline_table_indication_block {
    grid-template-columns: 120rem 60rem repeat(6, 1fr);
  }

  .pipeline_table_th {
    padding: 18rem 6rem;
  }

  .pipeline_table_group_name {
    padding: 20rem 14rem;
  }

  .pipeline_table_indication_cell {
    padding: 10rem 8rem;
  }
  .pipeline_table_area_row {
    padding: 2rem 4rem;
  }
  .pipeline_table_stage_row {
    padding: 4rem 0;
  }
  .pipeline_table_head .pipeline_table_th.pipeline_table_th--indication {
    padding-left: 20rem;
  }
}

/* ==========================================================================
   响应式 - 767px
   ========================================================================== */
@media only screen and (max-width: 767px) {
  .pipeline_tabs {
    padding: 30px 0 20px;
  }
  .pipeline_tabs_list {
    gap: 2px;
  }
  .pipeline_tab a {
    padding: 8px 15px;
    font-size: 13px;
  }

  .pipeline_table {
    padding: 10px 0 40px;clear: both;
  }
  .pipeline_table .wrap {
    overflow-x: auto;
  }
  .pipeline_table_box {
    border-radius: 8px;
    width: 1320px;
  }

  .pipeline_table_head,
  .pipeline_table_group {
    grid-template-columns: 180px 240px repeat(6, 1fr);
  }
  .pipeline_table_indication_block {
    grid-template-columns: 160px 80px repeat(6, 1fr);
  }

  .pipeline_table_th {
    padding: 10px 10px;
    line-height: 1.3;
  }

  .pipeline_table_group_name {
    padding: 12px 10px;
  }

  .pipeline_table_indication_cell {
    padding: 6px 10px;
  }

  .pipeline_table_indication {
    line-height: 1.4;
  }

  .pipeline_table_area_row {
    padding: 1px 10px;
  }
  .pipeline_table_stage_row {
    padding: 2px 0;
  }
  .pipeline_tabs_list {
    display: block;
  }
  .pipeline_tabs_list li {
    width: auto;
    float: left;
    margin-bottom: 10px;
    text-align: center;
  }
  .pipeline_tab a {
    display: block;
    margin: 0 5px;
  }
  .piple_more {
    width: 30px;
    height: 16px;
    line-height: 14px;
    border-radius: 20px;
  }
  .pipeline_modal_tips {
    text-align: left;
  }
  .pipeline_modal_tips p {
    align-items: start;
  }
  .pipeline_modal_tips p a {
    top: 2px;
    position: relative;
  }
}
@media only screen and (min-width: 1025px) {
  .pipeline_tab a:hover {
    border-color: #005ca7;
    color: #005ca7;
  }
  .pipeline_tab--active a:hover {
    color: #fff !important;
  }

  .pipeline_modal_close:hover {
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
  }
  .pipeline_modal_close:hover i {
    background: #005ca7;
  }

  .pipeline_table_group_name,
  .pipeline_table_desc,
  .pipeline_table_drug,
  .piple_more {
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    -ms-transition: all 0.3s;
  }

  .pipeline_table_group {
    position: relative;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    -ms-transition: all 0.3s;
  }
  .pipeline_table_group:hover {
    z-index: 5;
    box-shadow: 0 7px 14px 2px rgba(0, 15, 79, 0.1);
  }
  .pipeline_table_group:hover .pipeline_table_group_name .piple_more01 {
    background: #005ca9;
    color: #fff;
  }
  .pipeline_table_group:hover .pipeline_table_group_name {
    background: #83a2d0;
    background: linear-gradient(
      0deg,
      rgba(131, 162, 208, 1) 0%,
      rgba(166, 195, 228, 1) 100%
    );
  }

  .pipeline_table_group:hover .pipeline_table_group_name .pipeline_table_drug,
  .pipeline_table_group:hover .pipeline_table_group_name .pipeline_table_desc {
    color: #fff;
  }
  .pipeline_modal_tips p .piple_more02:hover {
    background: none;
  }
}
