/* ============================================================
   Directors Section Styles — Foxconntech Design System v2.0
   basic-style token 已由 base.html 載入的 basic-style.css 提供
   此檔只包含本頁專屬樣式，請勿在此重複定義全站共用規則
   ============================================================ */

/* ── 表格垂直置中工具 ────────────────────────────────────── */
.set-table-word-center {
  vertical-align: middle;
}

/* ── Tab 分頁標籤導航（方案 B：經典簡約文字標籤 ＋ 居中精緻小底線 Refined Underline） ── */
.set-directors-tabs-title {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  border-bottom: 2px solid rgba(12, 35, 64, 0.08);
  margin-bottom: 2rem;
  padding: 0;
  background: transparent;
  position: relative;
}

.set-directors-tabs-title li {
  text-align: center;
  position: relative;
  width: 33.333%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem 1rem 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: -2px;
}

/* 移除老舊豎線 */
.set-directors-tabs-title li::after {
  display: none;
}

.set-directors-tabs-title li a {
  color: var(--color-text-subtle, #5a6a85);
  font-size: var(--fs-base);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  min-height: 3rem;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.set-directors-tabs-title li a:focus,
.set-directors-tabs-title li a:hover {
  color: var(--color-accent, #1d8fe0);
  cursor: pointer;
}

.set-directors-tabs-title li.active a {
  color: var(--color-primary, #0c2340);
  font-weight: 700;
}

/* 居中精緻小藍條指示線（52px），無縫覆蓋融合於灰線上方 */
.set-directors-tabs-title li.active::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 3px;
  background-color: var(--color-accent, #1d8fe0);
  border-radius: 3px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(29, 143, 224, 0.45);
}

/* ── 董事會內容與段落文字 ─────────────────────────────────── */
.set-directors-inner p {
  color: var(--color-primary, #0c2340);
  line-height: 1.85;
}

/* ── 董事成員卡片化包裝 (Executive Profile Cards) ─────────── */
.set-group {
  background: #ffffff;
  border: 1px solid rgba(12, 35, 64, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(12, 35, 64, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.set-group:hover {
  border-color: rgba(29, 143, 224, 0.3);
  box-shadow: 0 6px 20px rgba(12, 35, 64, 0.07);
  transform: translateY(-2px);
}

.columns {
  margin: 0;
}

.columns:not(:last-child) {
  margin: 0px;
}

/* ── 董事名單橫列 ─────────────────────────────────────────── */
.set-work-title-simple {
  display: flex;
  align-items: center;
}

.set-work-title-simple li {
  text-align: center;
}

.set-work-title-simple li h5 {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-primary, #0c2340);
  letter-spacing: 0.5px;
  margin: 0;
}

/* 職稱 */
.set-work-title-simple li p {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-primary, #0c2340);
  margin: 0;
  text-align: center;
}

/* 展開經歷按鈕 */
.set-work-title-simple .set-resume-buttom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary, #0c2340);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  letter-spacing: 0.25px;
}

.set-work-title-simple .set-resume-buttom:hover {
  color: #ffffff;
  background-color: var(--color-accent, #1d8fe0);
  box-shadow: 0 4px 12px rgba(29, 143, 224, 0.25);
}

.set-work-title-simple .set-resume-buttom.active {
  color: var(--color-primary, #0c2340);
  background-color: #e8eef5;
  border-color: rgba(12, 35, 64, 0.12);
}

/* ── 董事詳細經歷折疊卡片 ─────────────────────────────────── */
.set-resume-detail {
  display: none;
  background-color: #f8fafc;
  width: 100%;
  padding: 2rem 2.5rem;
  border-radius: 0.625rem;
  margin-top: 1.25rem;
  border: 1px solid rgba(12, 35, 64, 0.06);
  box-shadow: inset 0 2px 4px rgba(12, 35, 64, 0.02);
}

.set-resume-detail li {
  color: var(--color-primary, #0c2340);
  font-size: 1rem;
  margin-left: 1.25rem;
  list-style: disc;
  line-height: 1.85;
}

.set-resume-detail .set-detail-title {
  color: var(--color-primary, #0c2340);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.25rem 0rem 0.5rem 0rem;
  border-left: 3px solid var(--color-accent, #1d8fe0);
  padding-left: 0.625rem;
  line-height: 1.3;
}

.set-resume-detail .set-detail-title:first-child {
  margin-top: 0;
}

/* ── 獨立董事備註說明（依全站原始樣式顯示，不加外框） ──────── */

/* ── 表格樣式：使用全站共用表格樣式 (basic-style.css) ───────── */
.table-width {
  width: 100%;
}

table th,
table td {
  vertical-align: middle;
}

/* ── 決議列表與年份按鈕 ───────────────────────────────────── */
.set-resolutions-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(12, 35, 64, 0.08);
  padding: 1rem;
}

.set-resolutions-list:hover {
  background-color: rgba(12, 35, 64, 0.02);
}

.set-resolutions-list li a img {
  width: 32px;
  filter: invert(86%) sepia(41%) saturate(670%) hue-rotate(349deg) brightness(94%) contrast(96%);
}

.set-resolutions-list li a img:hover {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(323deg) brightness(107%) contrast(107%);
  cursor: pointer;
}

.set-resolutions-year {
  position: relative;
  display: inline;
}

.set-resolutions-year .set-resolutions-btn {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.5rem 3rem;
  margin: 0.5rem 0rem 1.5rem 0rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(12, 35, 64, 0.12);
  background-color: var(--color-primary, #0c2340);
  color: #ffffff;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.set-resolutions-year .set-resolutions-btn:hover {
  background-color: var(--color-accent, #1d8fe0);
}

.set-resolutions-year::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 7px 0px 7px;
  border-color: #fff transparent transparent transparent;
  top: 50%;
  transform: translateY(-50%);
  right: 1.5rem;
}

/* ── 手機滑動指引提示 ─────────────────────────────────────── */
.mobile-touch {
  display: none;
  font-weight: 600;
  color: var(--color-accent, #1d8fe0);
  font-size: 1.125rem;
  padding: 0.75rem 1rem;
}

/* ── 響應式佈局設定 ───────────────────────────────────────── */
@media (max-width: 900px) {
  .set-resume-detail {
    padding: 2rem;
  }

  .set-directors-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 600px) {
  .set-directors-tabs-title {
    width: 750px;
    flex-wrap: wrap;
  }

  .mobile-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-wrapper::-webkit-scrollbar {
    display: none;
  }

  .table-width {
    width: 1024px;
  }

  .mobile-touch {
    display: block;
    padding: 0.75rem 1rem;
  }

  .set-work-title-simple {
    flex-wrap: wrap;
  }

  .set-work-title-simple li h5 {
    font-size: 1.125rem;
  }

  .set-work-title-simple li p {
    font-size: 1rem;
  }

  .set-work-title-simple .column {
    padding: 0;
  }

  .set-work-title-simple .set-resume-buttom {
    min-width: 100%;
    border-radius: 0.5rem;
    font-size: 1rem;
    padding: 0.5rem 0rem;
    margin: 0.5rem 0rem;
  }

  .set-resolutions-list-all .set-padding-s {
    padding: 1rem 0rem;
  }

  .set-resume-detail {
    padding: 0rem 1rem;
  }

  .set-resume-detail .set-detail-title ul li {
    word-wrap: break-all;
  }

  .pdf-margin-left {
    margin-left: 1rem;
  }

  .set-group .set-last-bottom {
    padding-bottom: 0rem;
    margin-bottom: 1rem;
  }
}