/*  除统一布局外的其他样式  */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 用于标题 */
@font-face {
  font-family: 'HarmonyOS Sans SC';
  font-weight: 900;
  font-style: normal;
  src: url('https://static.igem.wiki/teams/5843/wiki-safety/harmonyos-sans-sc-black.ttf') format('truetype');
}

/* 用于引用标题 */
@font-face {
  font-family: 'HarmonyOS Sans SC';
  font-weight: 500;
  font-style: normal;
  src: url('https://static.igem.wiki/teams/5843/wiki-safety/harmonyos-sans-sc-medium.ttf') format('truetype');
}

/* 用于引用正文 */
@font-face {
  font-family: 'HarmonyOS Sans SC';
  font-weight: 300;
  font-style: normal;
  src: url('https://static.igem.wiki/teams/5843/wiki-safety/harmonyos-sans-sc-light.ttf') format('truetype');
}

/* 用于正文 */
@font-face {
  font-family: 'HarmonyOS Sans SC';
  font-weight: 400;
  font-style: normal;
  src: url('https://static.igem.wiki/teams/5843/wiki-safety/harmonyos-sans-sc-regular.ttf') format('truetype');
}

body {
  font-family: 'HarmonyOS Sans SC', sans-serif;
  color: #267389;
  line-height: 1.5;
  background-color: #dff4fc;
}



/* ======= 人物介绍板块 ======= */

/* 团队模块整体 */
.members-module {
  margin: 40px 0;
  font-family: 'HarmonyOS Sans SC', sans-serif;
}

/*  标题栏 */
.members-header {
  width: 100%;
  border-radius: 25px;
  background-color: #26829c;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 17px;
  box-sizing: border-box;
  text-align: center;
  margin-bottom: 30px;
}

.normal-content .members-title {
  font-family: 'HarmonyOS Sans SC', sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  /* 5% */
  color: #ffffff;
}

/* ========== 成员网格布局 使用 Grid ========== */
.members-grid {
  display: grid;
  gap: 40px;
  /* 网格项之间的间距 */
  justify-content: center;
  min-width:100%;
}

/* ========== 单个成员盒子 ========== */
.member-box {
  display: flex;
  align-content: space-around;
  justify-content: space-evenly;
  flex: 1 1 45%;
  min-width: 300px;
}

/* ========== 单个成员卡片 ========== */
.member-card {
  display: flex;
  width: calc(50% - 15px);
  /* 减去一些空间以确保两个卡片之间有间隙 */
  height: 320px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  gap: 20px;
}


/* ========== 照片翻转容器 ========== */
.member-card .photo-flip-container {
  width: 45%;
  height: 90%;
  perspective: 1000px;
  position: relative;
  transform-style: preserve-3d;
}

.member-card .photo-flip-container .member-photo {
  position: absolute;
  width: 110%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  backface-visibility: hidden;
  margin: 0;
  transition: transform 0.6s ease-in-out;
}

.member-card .photo-flip-container .front {
  transform: rotateY(0deg);
  z-index: 10;
}

.member-card .photo-flip-container .back {
  transform: rotateY(180deg);
  z-index: 9;
}

/* ========== 文本信息区 ========== */
.member-info {
  flex: 1;
  padding: 15px;
  height: 80%;
  width:700px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.member-card .member-name {
  font-family: 'HarmonyOS Sans SC', sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  /* 5% 字间距，使用 em 单位更合适 */
  color: #16576B;
}

/* ========== 分割线 + 箭头 ========== */
.divider-with-caret {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-direction: row;
  position: relative;
  flex-wrap: wrap;
}

.divider-line {
  width: 100%;
  height: 3.5px;
  background-color: #DC7072;
  border-radius: 2px;
  margin: 0px auto;
  opacity: 1;
  border: none;
}

.caret-icon {
  width: 30px;
  height: 30px;
  margin-top: -10px;
  margin-right: -5px;
  cursor: pointer;
  z-index: 6;
  transition: transform 0.3s ease-in-out;
  filter: brightness(0) saturate(100%) invert(21%) sepia(80%) saturate(1859%) hue-rotate(325deg) brightness(94%) contrast(103%);
}


/* ========== 描述与扩展文本 ========== */
p.member-desc {
  font-weight: 400;
  font-size: 13px;
  color: #267389;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: px;
  padding: 0px;

}

.member-extra {
  height: 250px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  background-color: #DFF4FC;
  padding: 12px;
  border-radius: 8px;
  position: absolute;
  top: 70px;
  left: 15px;
  right: 15px;
  z-index: 5;
  opacity: 0;
  transform: translateY(-10px);
  /* 隐藏状态 */
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.member-extra.show,
.member-extra:hover {
  opacity: 1;
  transform: translateY(10);
  visibility: visible;
}



/* ======= 下拉长条板块 ======= */

.block-container {
  width: 100%;
  margin: 40px auto;
  border-radius: 8px;
  overflow: hidden;
}

.block {
  height: auto;
  width: 100%;
  padding-top: 5px;
  position: relative;
  overflow: hidden;
  transition: margin-bottom 0.3s ease;
}

.block-header {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 20px 20px 5px 20px;
  margin: -5px auto;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: inset -5px 1px 10px -5px #464d5414;
}

.block-header:hover {
  filter: brightness(105%);
}

.block-text-container {
  width: 100%;
  padding: 20px;
}

.block.even .title-in-block {
  font-family: 'HarmonyOS Sans SC', sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #16576b;
}

.block.odd .title-in-block {
  font-family: 'HarmonyOS Sans SC', sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #f8f9fa;
}

.text-in-block {
  font-family: 'HarmonyOS Sans SC', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #267389;
  padding: 5px 0px 5px 5px;
}

.toggle-icon {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 25px;
  height: 25px;
  cursor: pointer;
  will-change: transform;
  transition: transform 0.3s ease;
  filter: brightness(0) saturate(100%) invert(20%) sepia(60%) saturate(2735%) hue-rotate(328deg) brightness(97%) contrast(100%);
  z-index: 2;
}

.toggle-icon-even {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 25px;
  height: 25px;
  cursor: pointer;
  will-change: transform;
  transition: transform 0.3s ease;
  filter: brightness(0) saturate(100%) invert(51%) sepia(59%) saturate(443%) hue-rotate(310deg) brightness(94%) contrast(89%);
  z-index: 2;
}

.block.active .toggle-icon {
  transform: rotate(180deg);
}

.block.active .toggle-icon-even {
  transform: rotate(180deg);
}

.hidden-block-content {
  max-height: 0px;
  width: 98%;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  ;
  background: #ffffff;
  box-shadow: 0px 0px 8px rgb(0 0 0 / 14%);
  position: relative;
  margin: 5px auto 0;

}

.block.active .hidden-block-content {
  min-height: 50px;
  margin: 15px auto;
  border-radius: 10px;
  opacity: 1;
  border: 2px solid #4494aa48;

}

/* 奇数和偶数背景颜色 */
.block.odd .block-header {
  background-color: #84B1B7;
}

.block.even .block-header {
  background-color: #E7F2F4;
}

/* 下拉轨迹线样式 */
.line-trace {
  position: absolute;
  right: 0px;
  height: 100%;
  width: 10px;
  background-color: #c02544c2;
  /* 明确设置红色轨迹线 */
  transition: height 0.5s ease;
  z-index: 1;
}

.block.odd .line-trace {
  background-color: #b9203e;
}

.block.even .line-trace {
  background-color: #DC7072;
}




/* ======= 月历右侧栏板块 ======= */

/* ========== 表格整体样式 ========== */


/* 表格样式 */
.date-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.date-table thead th {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 80px 16px 10px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 25px;
  white-space: nowrap;
  height: fit-content;
  border-bottom: 2px solid #16576b;
  color: #16576b;
}
.date-table tr{
    border-bottom: 3px solid #4494AA;
    border-radius:30px;
}


/* ========== 列宽控制：6:47:47 ========== */
.date-table .col-time {
  width: 12%;
}

.date-table .col-content {
  width: 46%;
}

.date-table .col-sync {
  width: 42%;
}

/* ========== 奇偶行背景色 ========== */
.date-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.date-table tbody tr:nth-child(even) {
  background-color: #eef8fb;
}

/* 单元格样式 */
.date-table td {
  padding: 20px 10px 40px 10px; 
  vertical-align: top; 
  text-align: left;  
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  min-height: 30px;
  line-height: 1.4;
}

.date-table td p {
  margin: 0;
  padding: 0;

}

.date-time p{
  font-family: 'HarmonyOS Sans SC', sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  /* 5% */
  color:#16576b;
  vertical-align: top;

}

.date-time {
  vertical-align: top;
}



/* 响应式设计 */
@media (max-width: 1500px) {

  /* ========== 成员网格布局 ========== */
  .members-grid {
    display: flex;
    flex-direction: column;
    overflow-x: auto;
  }

  /* ========== 单个成员盒子 ========== */
  .member-box {
    width: 100%;
    height: auto;
    flex-direction: row;
    /* 保持水平排列 */
    justify-content: space-evenly;
  }

  /* ========== 单个成员卡片 ========== */
  .member-card {
    width: 100%;
    flex-direction: row;
    min-height: 50px;
  }

  /* ========== 照片 ========== */
  .member-photo {
    width: 45%;
    height: auto;
    border-radius: 15px;
  }

  /* ========== 文本信息区 ========== */
  .member-info {
    width: 80%;
    height: auto;
    padding: 20px;
  }

  .member-card .member-name {
    font-size: 18px;
    margin-bottom: 0px;
  }

  /* ========== 分割线 + 箭头 ========== */
  .divider-with-caret {
    margin: 10px 0;
  }

  .divider-line {
    height: 2px;
  }

  .caret-icon {
    width: 25px;
    height: 25px;
    margin-top: -8px;
  }

  /* ========== 描述与扩展文本 ========== */
  .member-desc {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .member-extra {
    height: 70%;
    top: 90px;
    overflow-y: auto;
  }

  .member-extra.show .caret-icon,
  .member-extra:hover .caret-icon {
    transform: translateY(0);
    position: absolute;
    bottom: 0px;
    right: 10px;
  }

}