/* ============================================================
   basic-style token 已由 base.html 載入的 basic-style.css 提供
   此檔只包含本頁專屬樣式，請勿在此重複定義全站共用規則
   ============================================================ */
/* ── 分頁切換器 (Tabs Component) ─────────────────────────── */
.tabs {
  margin-bottom: 0 !important;
}

.tabs li {
  margin: 0;
}

.tabs.is-fullwidth ul {
  border-bottom: 2px solid var(--color-border, #dce3ed);
  gap: 0.25rem;
}

.tabs a {
  color: var(--color-text-muted, #5a6b7e);
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: none !important;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 0.5rem 0.5rem 0 0;
  text-decoration: none !important;
}

.tabs a:hover {
  color: var(--color-accent-dark, #0d6fbb);
  background-color: rgba(13, 111, 187, 0.06);
}

/* 底部滑動指示線 */
.tabs a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 3px;
  background-color: var(--color-accent-dark, #0d6fbb);
  border-radius: 3px 3px 0 0;
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tabs li.is-active a {
  color: var(--color-primary, #0c2340);
  font-weight: 700;
  background-color: transparent;
}

.tabs li.is-active a::after {
  width: 75%;
}

/* ── 分頁內文區域 (Tab Contents) ─────────────────────────── */
.tab-content {
  display: none;
  padding: 1.75rem 0 1rem 0;
}

.tab-content.is-active {
  display: block;
  animation: tabFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 分頁段落文字精緻卡片包裝 */
.tab-content>p {
  font-size: var(--fs-base, 1.125rem);
  line-height: var(--line-height-base, 2rem);
  letter-spacing: var(--letter-spacing-base, 0.09rem);
  color: var(--color-text, #0c2340);
  background-color: #ffffff;
  border: 1px solid var(--color-border, #dce3ed);
  border-left: 4px solid var(--color-accent-dark, #0d6fbb);
  border-radius: 0.75rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 16px rgba(12, 35, 64, 0.04);
  margin: 0;
}

.kpi-card {
  background-color: #DAE3F3;
  padding: 2.5rem 1rem;
  height: 100%;
}

.kpi-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  text-align: center;
}

.kpi-number.red {
  color: #e60012;
}

.kpi-text {
  font-size: 1.125rem;
  font-weight: bold;
  color: #1f3a6d;
  line-height: 1.5;
  text-align: center;
}

/* ── 供應商行為守則下載卡片 ───────────────────────────────── */
.esg-policy-link-wrap {
  margin: 1.5rem 0 2rem 0;
  display: inline-flex;
  align-items: center;
}

a.esg-policy-link,
a.esg-policy-link:link,
a.esg-policy-link:visited,
a.esg-policy-link:active {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background-color: #ffffff;
  color: var(--color-accent-dark, #0d6fbb);
  border: 1px solid var(--color-accent-dark, #0d6fbb);
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none !important;
  letter-spacing: 0.03rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(13, 111, 187, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 左側 PDF 文件圖示 */
a.esg-policy-link::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d6fbb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='12' y1='18' x2='12' y2='12'/%3E%3Cline x1='9' y1='15' x2='12' y2='18'/%3E%3Cline x1='15' y1='15' x2='12' y2='18'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* 右側導向箭頭圖示 */
a.esg-policy-link::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d6fbb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

a.esg-policy-link:hover {
  background-color: #e6f0fa;
  border-color: var(--color-primary-light, #1a4480);
  color: var(--color-primary, #0c2340);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(13, 111, 187, 0.16);
  opacity: 1;
}

a.esg-policy-link:hover::before {
  transform: scale(1.08);
}

a.esg-policy-link:hover::after {
  transform: translateX(3px);
}