@charset "UTF-8";

/*
.sectorButton {
  border: 0;
  background-color: #f6e6c2;
  color: #fff;
  cursor: pointer;
  width: 15%;
  border-right: 2px solid #d7d5d0;
  line-height: 2;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctr * {
  font-size: 1.25rem;
  color: #333333;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.flexrow_result {
  display: flex;
  justify-content: center;
}

.sectorButton:hover {
  color: #fff;
  background-color: #eaf1f5;
}

#SSButton_On {
  background: #eaf1f5;
}

#SSButton_On a {
  color: #333333;
  font-weight: bold;
}

.sectorButton a {
  font-weight: bold;
}
*/

/* ===== 外层表格行：作为 flex 容器，让 5 个按钮等宽并排 ===== */
.flexrow_result {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ===== 每个按钮单元格 ===== */
.sectorButton {
  flex: 1 1 0;              /* 5 个等宽，替代 width:15%（原 5×15% 只有 75%） */
  display: flex;            /* 让内部的 <a> 用 flex 居中 */
  align-items: center;      /* 垂直居中 */
  justify-content: center;  /* 水平居中 */
  min-height: 2.5rem;       /* 有高度才能看出“上下居中”效果 */
  padding: 0.25rem 0.5rem;
  border: 0;
  border-right: 2px solid #d7d5d0;
  background-color: #f6e6c2;
  cursor: pointer;
  font-weight: bold;
}

/* 最后一个按钮去掉右边框，避免多余分隔线 */
.sectorButton:last-child {
  border-right: 0;
}

/* ===== 按钮里的链接：充满单元格，内部文本居中 ===== */
.sectorButton a,
.sectorButton a.no-icon {
  display: flex;
  align-items: center;      /* 垂直居中 */
  justify-content: center;  /* 水平居中 */
  width: 100%;
  height: 100%;
  font-size: 1.25rem;
  font-weight: bold;
  color: #333333;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
}

/* ===== hover ===== */
.sectorButton:hover {
  background-color: #eaf1f5;
}

/* ===== 选中状态 ===== */
#SSButton_On {
  background: #eaf1f5;
}

#SSButton_On a {
  color: #333333;
  font-weight: bold;
}

.subsector_desc-list {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0rem;
}

.sectors-table-list {
  display: block;
  width: 100%;
  position: relative;
}

.sectors-table-list table {
  display: block;
  width: 100%;
  margin-bottom: 2%;
  position: relative;
}

.sectors-table-list table th,
.sectors-table-list table td {
  width: 5%;
  padding: 1% 3%;
  text-align: center;
  box-sizing: border-box;
  border-color: #6E706F;
}

/* 默认：除了 max-width: 999px 外，td 内容不换行 */
.sectors-table-list table td,
.subsectors-methods table td {
  white-space: nowrap;
}

.sectors-table-list table td span {
  display: inline-block;
  white-space: nowrap;
}

.sectors-table-list table th span {
  display: inline-block;
  width: 100%;
  position: relative;
  vertical-align: middle;
}

.sectors-table-list table tbody tr:nth-child(odd) {
  background-color: #fdfdfd;
}

.sectors-table-list table tbody tr:nth-child(even) {
  background-color: #EEEEEE;
}

.sectors-table-list table::after {
  content: "";
  display: block;
  width: 100%;
  padding-top: 2%;
  position: relative;
}

.sectors-table-list table thead,
.sectors-table-list table::after {
  background-color: #b5deda;
  color: #000000;
}

.sectors-table-list table thead tr:first-child {
  background-color: #e8fcfd;
  color: #343a40;
}

.sectors-table-list table thead tr:first-child th {
  font-weight: bold;
  font-size: 1.25rem;
  text-align: left;
  padding: 0;
}

@media (min-width: 1000px) {
  .sectors-table-list table th:not(:first-child),
  .sectors-table-list table td:nth-child(2),
  .sectors-table-list table td:nth-child(3) {
    border-left: 2px solid #6E706F;
  }

  .sectors-table-list table td {
    border-left: none;
  }
}

@media (max-width: 999px) {
  /* 要求3：允许 td 及其内部 span 换行 */
  .sectors-table-list table td,
  .sectors-table-list table td span {
    white-space: normal;
    overflow-wrap: break-word;
  }

  .sectors-table-list table thead {
    display: block;
  }

  .sectors-table-list table thead th {
    display: none;
  }

  .sectors-table-list table thead tr:first-child th {
    display: block;
    width: 100%;
  }

  .sectors-table-list table thead tr:first-child {
    background-color: #b5deda;
    color: #000000;
  }

  .sectors-table-list table tbody {
    display: block;
  }

  .sectors-table-list table thead tr,
  .sectors-table-list table tbody tr {
    display: block;
    width: 100%;
  }

  /* 要求2 核心：
     td 作为迷你表格，行高由最高的单元格决定 →
     ::before 内容换行时自动撑高整行（td 随之增高）
     右侧内容自动进入匿名表格单元格，由 text-align: center 整体居中
     字符之间无额外间隙 → 要求1 */
  .sectors-table-list table tbody tr td {
    display: table;
    width: 100%;
    table-layout: fixed;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
    border-top: 0.5px solid;
    border-bottom: 0.5px solid;
    border-color: #6E706F;
  }

  /* ::before 作为表格单元格，宽 50%，
     内容可换行 → 换行时行高自动增长 → td 自动增高 (要求2)
     border-right 贯穿整个单元格高度 */
  .sectors-table-list table tbody tr td::before {
    content: attr(data-title);
    display: table-cell;
    width: 50%;
    vertical-align: middle;
    padding: 1% 3%;
    box-sizing: border-box;
    border-right: 2px solid #6E706F;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
  }

  /* 要求1：span 保持内容宽度、无额外 margin，相邻紧密相连 */
  .sectors-table-list table tbody tr td span {
    width: auto;
    margin: 0;
    text-align: center;
  }

  /* 让 .subsectors-methods 的 td 及 span 内容居中 */
  .subsectors-methods table td,
  .subsectors-methods table td span {
    text-align: center;
  }

  .sectors-table-list table tbody tr td:not(:first-child):not(:last-child) {
    border-bottom: 0.5px solid #6E706F;
  }

  .sectors-table-list table tbody tr:not(:last-child) td:last-child {
    border-bottom: 2px solid #6E706F;
  }
}

.subsectors-methods {
  margin-bottom: 1rem;
}

.subsectors-methods table {
  border-bottom: 13.5px solid #307F8D;
}

.subsectors-methods table th,
.subsectors-methods table td {
  padding: 15px;
}

.subsectors-methods table thead {
  color: #ffffff;
  background-color: #307F8D;
}

.subsectors-methods table th:not(:first-child):not(:last-child),
.subsectors-methods table td:not(:first-child):not(:last-child) {
  border-right: 2px solid #047188;
}

.subsectors-methods table tbody tr:nth-child(odd) {
  background-color: #FDFDFD;
}

.subsectors-methods table tbody tr:nth-child(even) {
  background-color: #E6F1F3;
}

@media (max-width: 768px) {
  .sectors-table-list table tbody tr td::before {
    padding: 1% 1%;
  }

  .sectorButton {
    line-height: 2;
  }

  .sectors-table-list table th,
  .sectors-table-list table td,
  .sectors-table-list table thead tr:first-child th {
    font-size: 1rem;
  }
  
  .ctr * {
  font-size: 1rem;
	}
}