/* ============================================================
   TATA 官網重新設計提案 — style.css
   色彩與字體規範依 DESIGN.md（深藍＋金，全站黑體 Noto Sans TC（2026-07-22 拍板棄襯線））
   ============================================================ */

:root {
  --navy-950: #081527;
  --navy-900: #0D2440;
  --navy-700: #1B3A5C;
  --gold-500: #C2A356;
  --gold-600: #A98A45;
  --paper: #F7F8FA;
  --ink: #14263F;
  --body: #33465E;
  --muted: #5B6B7F;
  --line: #DCE1E8;
  --line-dark: rgba(255, 255, 255, 0.14);
  /* 2026-07-22 William 拍板：全站黑體（棄襯線）。--serif 變數保留名稱、內容改黑體，各標題規則不用動 */
  --serif: "Noto Sans TC", sans-serif;
  --sans: "Noto Sans TC", sans-serif;
  --radius: 8px;
  --header-h: 72px;
  --img-tone: saturate(0.85) brightness(0.98) contrast(1.03);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--body);
  background: #fff;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.35;
}

::selection { background: var(--navy-900); color: #fff; }

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-950); color: rgba(255, 255, 255, 0.82); }
.section--navy h2, .section--navy h3 { color: #fff; }

/* ---------- 共用元件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--gold { background: var(--gold-500); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-600); color: #fff; }
.btn--ghost-light { border: 1px solid rgba(255, 255, 255, 0.65); color: #fff; }
.btn--ghost-light:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn--ghost-gold { border: 1px solid var(--gold-500); color: var(--gold-500); }
.btn--ghost-gold:hover { background: var(--gold-500); color: var(--navy-950); }
.btn--icon { border: 1px solid var(--line-dark); color: rgba(255,255,255,0.75); padding: 0.72rem; border-radius: 4px; }
.btn--icon:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn--icon svg { width: 18px; height: 18px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--navy-900);
  border-bottom: 1px solid var(--gold-500);
  padding-bottom: 2px;
  transition: color 0.25s ease, gap 0.25s ease;
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { color: var(--gold-600); gap: 0.8rem; }
.link-arrow--gold { color: var(--gold-500); }
.link-arrow--gold:hover { color: #fff; }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1rem 0.55rem;
  background: #fff;
}
.tag--gold { color: var(--gold-500); border-color: rgba(194, 163, 86, 0.45); background: transparent; }

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-bottom: 1.4rem;
}
.sec-head--light .sec-rule,
.events .sec-rule,
.ai .sec-rule,
.join .sec-rule { background: rgba(255, 255, 255, 0.18); }
.sec-head h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); letter-spacing: -0.01em; }
.sec-head__lead { margin-top: 1rem; max-width: 56ch; }
.sec-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.sec-head__note { max-width: 34ch; color: var(--muted); }
.sec-head--light .sec-head__note,
.sec-head--light .sec-head__lead { color: rgba(255, 255, 255, 0.65); }

.vlabel {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  color: var(--gold-600);
  padding-top: 0.35em;
  border-left: 1px solid var(--line);
}

/* ---------- 液態玻璃（導覽列、玻璃卡） ---------- */
.liquid-glass {
  background: rgba(0, 0, 0, .4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.1) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.1) 80%, rgba(255,255,255,.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- 主導覽（初始透明浮於 hero，捲動後收斂為白膠囊） ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  color: #fff;
  background: transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.3s ease, color 0.3s ease, border-radius 0.3s ease,
    padding 0.3s ease, margin-top 0.3s ease, height 0.3s ease,
    box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled .site-header__inner,
body.menu-open .site-header__inner {
  width: min(100% - 32px, 1360px);
  height: 60px;
  margin-top: 16px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(13, 36, 64, 0.04),
    0 12px 30px -10px rgba(0, 0, 0, 0.1);
  color: var(--ink);
}
@media (max-width: 768px) {
  .site-header__inner { gap: 1rem; }
  .site-header.is-scrolled .site-header__inner,
  body.menu-open .site-header__inner {
    width: min(100% - 32px, 1200px);
    height: 56px;
    margin-top: 12px;
    border-radius: 24px;
  }
}
@media (max-width: 520px) {
  .brand__text small { display: none; }
  .brand__text strong { font-size: 0.92rem; }
}
.brand { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.brand__badge {
  background: #fff;
  border-radius: 8px;
  padding: 5px 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: fit-content;
}
.brand__badge img { display: block; width: 45px; height: auto; }
.brand__badge--footer { padding: 8px 10px; margin-bottom: 1.1rem; }
.brand__badge--footer img { width: 60px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__text strong { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.04em; }
.brand__text small { font-size: 0.6rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); }

.main-nav { display: flex; gap: 1.1rem; margin-left: auto; }
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { color: var(--gold-500); border-bottom-color: var(--gold-500); }
.main-nav__tte { color: var(--gold-500) !important; }

/* 捲動白膠囊態（及手機選單展開時）：連結與品牌文字轉深藍 */
.site-header.is-scrolled .main-nav a { color: var(--body); }
.site-header.is-scrolled .main-nav a:hover { color: var(--gold-600); }
.site-header.is-scrolled .main-nav__tte { color: var(--gold-600) !important; }
.site-header.is-scrolled .brand__text strong,
body.menu-open .brand__text strong { color: var(--ink); }
.site-header.is-scrolled .brand__text small,
body.menu-open .brand__text small { color: var(--muted); }
.site-header.is-scrolled .brand__badge,
body.menu-open .brand__badge { box-shadow: 0 0 0 1px var(--line); }
.site-header.is-scrolled .menu-toggle,
body.menu-open .menu-toggle { color: var(--navy-900); }

.menu-toggle { display: none; width: 40px; height: 40px; margin-left: auto; }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  overflow-y: auto;
  background: var(--navy-950);
  color: #fff;
  padding: 2.5rem clamp(20px, 6vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-nav nav a:hover { color: var(--gold-500); padding-left: 0.5rem; }
.mobile-nav__cta { align-self: flex-start; }
.mobile-nav__contact { display: flex; flex-direction: column; gap: 0.4rem; color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.mobile-nav__contact a:hover { color: var(--gold-500); }

/* ---------- Hero（全螢幕影片） ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__video,
.hero__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 日間素材壓暗成黃昏調，白字才壓得住 */
  filter: brightness(0.6) saturate(0.85) contrast(1.05);
}
.hero__fallback { display: none; }
.hero__fallback.is-active { display: block; animation: hero-kenburns 26s ease-in-out infinite alternate; }
@keyframes hero-kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, -1.5%); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 21, 39, 0.38) 0%,
    rgba(8, 21, 39, 0.05) 38%,
    rgba(8, 21, 39, 0.55) 72%,
    rgba(8, 21, 39, 0.88) 100%
  );
}
.hero__inner { position: relative; width: 100%; padding-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.hero__kicker {
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  color: var(--gold-500);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero__chars .ch { display: inline-block; }
.hero__sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
}
.hero__actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }

.hero__glass {
  position: absolute;
  right: clamp(20px, 5vw, 40px);
  bottom: calc(92px + clamp(2rem, 5vh, 3rem));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-radius: 12px;
  padding: 0.85rem 1.3rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}
.hero__glass i {
  width: 6px;
  height: 6px;
  background: var(--gold-500);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hero__stats {
  position: relative;
  border-top: 1px solid var(--line-dark);
  background: rgba(8, 21, 39, 0.55);
  backdrop-filter: blur(6px);
}
.hero__stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 1.6rem 1rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.stat + .stat { border-left: 1px solid var(--line-dark); }
.stat__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat__suffix { font-size: 0.65em; margin-left: 0.1em; }
.stat__label { font-size: 0.88rem; color: rgba(255, 255, 255, 0.72); letter-spacing: 0.12em; }

/* ---------- 關於公會 ---------- */
.about__grid {
  display: grid;
  grid-template-columns: auto 5fr 7fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.about__media { margin-top: clamp(2rem, 6vw, 5.5rem); }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: var(--img-tone);
}
.about__media figcaption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--gold-500);
  padding-left: 0.8rem;
}
.about__lead { font-size: 1.1rem; color: var(--ink); max-width: 60ch; margin-bottom: 2.5rem; }

.mission-list li {
  display: flex;
  gap: 1.4rem;
  padding-block: 1.3rem;
  border-top: 1px solid var(--line);
}
.mission-list li:last-child { border-bottom: 1px solid var(--line); }
.mission-list__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold-600);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}
.mission-list h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.mission-list p { font-size: 0.95rem; }

.chairman {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
}
.chairman__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.chairman__quote p {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.6;
  color: var(--ink);
}
.chairman__quote footer { margin-top: 1.4rem; }
.chairman__role { font-weight: 700; color: var(--gold-600); letter-spacing: 0.15em; font-size: 0.95rem; }
.chairman__side { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 3vw, 3rem); }
.chairman__stat { display: flex; align-items: baseline; gap: 0.7rem; }
.chairman__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.chairman__unit { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.chairman__desc { margin-top: 1.1rem; font-size: 0.98rem; max-width: 40ch; }
.chairman__side .link-arrow { margin-top: 1.4rem; }

/* ---------- 核心服務（編號索引列表） ---------- */
.service-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2.5rem, 5vw, 5rem);
}
.service-index li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.4rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.service-index li:nth-child(2n) { border-left: 0; }
.service-index li:nth-child(7), .service-index li:nth-child(8) { border-bottom: 1px solid var(--line); }
.service-index__num {
  grid-row: 1 / 3;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  transition: color 0.25s ease;
}
.service-index li:hover .service-index__num { color: var(--gold-500); }
.service-index h3 { font-size: 1.2rem; }
.service-index p { font-size: 0.94rem; margin-top: 0.35rem; }

.services__cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 2px solid var(--navy-900);
  padding-top: 1.8rem;
}
.services__cta p { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); }

/* ---------- 最新消息（報紙式） ---------- */
.news__cats { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.news__cats a {
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.news__cats a:hover { color: var(--navy-900); border-bottom-color: var(--gold-500); }

.news__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.news__feature figure { overflow: hidden; border-radius: var(--radius); }
.news__feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: var(--img-tone);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.news__feature-link:hover img { transform: scale(1.03); }
.news__feature-body { padding-top: 1.4rem; }
.news__meta { display: flex; align-items: center; gap: 0.9rem; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.news__feature h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); margin-top: 0.7rem; transition: color 0.2s ease; }
.news__feature-link:hover h3 { color: var(--gold-600); }
.news__excerpt { margin-top: 0.8rem; max-width: 52ch; }
.news__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy-900);
  border-bottom: 1px solid var(--gold-500);
  padding-bottom: 2px;
}
.news__more svg { width: 15px; height: 15px; }

.news__list li { border-top: 1px solid var(--line); }
.news__list li:last-child { border-bottom: 1px solid var(--line); }
.news__list a {
  display: grid;
  grid-template-columns: 4.2rem auto 1fr;
  align-items: baseline;
  gap: 1.1rem;
  padding-block: 1.15rem;
  transition: padding-left 0.25s ease;
}
.news__list a:hover { padding-left: 0.5rem; }
.news__list time { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.news__list h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ink);
  transition: color 0.2s ease;
}
.news__list a:hover h3 { color: var(--gold-600); }
.news__all { margin-top: 2.4rem; }

/* ---------- 活動專區（深藍段） ---------- */
.events { padding-top: clamp(4rem, 7vw, 6rem); }
.news { padding-bottom: clamp(4rem, 7vw, 6rem); }
.events__cats { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.events__cats a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.events__cats a:hover { color: var(--gold-500); border-bottom-color: var(--gold-500); }

.event-list { border-top: 1px solid var(--line-dark); }
.event-row {
  display: grid;
  grid-template-columns: 7.5rem 1.2fr 1fr auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding-block: 1.9rem;
  border-bottom: 1px solid var(--line-dark);
}
.event-row__date {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--gold-500);
  font-family: var(--serif);
}
.event-row__month { font-size: 0.95rem; letter-spacing: 0.2em; font-weight: 700; }
.event-row__month span { font-size: 0.75em; }
.event-row__day { font-size: 2.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.event-row__day i { font-style: normal; font-size: 0.5em; }
.event-row__meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.4rem;
}
.event-row__main h3 { font-size: 1.3rem; }
.event-row__venue {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}
.event-row__venue svg { width: 15px; height: 15px; color: var(--gold-500); flex-shrink: 0; }

.progress__track {
  display: block;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.progress__fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold-500);
  transform: scaleX(var(--p, 1));
  transform-origin: left center;
}
.progress__text { margin-top: 0.55rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.62); font-variant-numeric: tabular-nums; }
.event-row__count {
  margin-top: 0.55rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
}
.event-row__count.is-ended { color: rgba(255, 255, 255, 0.45); }
.event-row__actions { display: flex; gap: 0.6rem; align-items: center; }
.events__all { margin-top: 2.6rem; }

/* ---------- 媒體中心 ---------- */
.media__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.episode-list li { border-top: 1px solid var(--line); }
.episode-list li:last-child { border-bottom: 1px solid var(--line); }
.episode-list a {
  display: grid;
  grid-template-columns: 4.6rem 1fr auto;
  align-items: center;
  gap: 1.3rem;
  padding-block: 1.35rem;
}
.episode-list__ep {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold-600);
  font-variant-numeric: tabular-nums;
}
.episode-list__body h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  transition: color 0.2s ease;
}
.episode-list a:hover .episode-list__body h3 { color: var(--gold-600); }
.episode-list__body p { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.episode-list__play { width: 34px; height: 34px; color: var(--navy-900); transition: color 0.2s ease, transform 0.2s ease; }
.episode-list__play svg { width: 100%; height: 100%; }
.episode-list a:hover .episode-list__play { color: var(--gold-500); transform: scale(1.08); }
.media__platforms { margin-top: 1.4rem; font-size: 0.9rem; color: var(--muted); }
.media__platforms a { color: var(--navy-900); font-weight: 500; }
.media__platforms a:hover { color: var(--gold-600); }

.media__figure { position: relative; }
.media__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  filter: var(--img-tone);
}
.media__figure figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 21, 39, 0.82);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
}
.media__figure figcaption svg { width: 14px; height: 14px; color: var(--gold-500); }

.media__videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.video-card figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
}
.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: var(--img-tone);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-card a:hover img { transform: scale(1.04); }
.video-card__badge {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(8, 21, 39, 0.82);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.video-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.9);
}
.video-card__play svg { width: 100%; height: 100%; }
.video-card a:hover .video-card__play { opacity: 1; transform: scale(1); }
.video-card h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ink);
  transition: color 0.2s ease;
}
.video-card a:hover h3 { color: var(--gold-600); }
.video-card p { font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
.media__social { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.media__social a { color: var(--navy-900); font-weight: 500; }
.media__social a:hover { color: var(--gold-600); }

/* ---------- 國際合作夥伴（serif marquee） ---------- */
.partners__head .sec-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.marquee { overflow: hidden; }
.marquee__row {
  display: flex;
  width: max-content;
  padding-block: 1.1rem;
  animation: marquee 46s linear infinite;
}
.marquee__row--alt { animation-duration: 38s; animation-direction: reverse; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: baseline;
  gap: 3.2rem;
  padding-right: 3.2rem;
}
.marquee__row span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  color: var(--navy-900);
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 3.2rem;
}
.marquee__row span::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold-500);
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partners__cta {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.partners__cta p { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); }

/* ---------- 加入公會（深藍大 CTA） ---------- */
.join {
  position: relative;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
.join__bg { position: absolute; inset: 0; }
.join__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-tone);
  opacity: 0.28;
}
.join__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 36, 64, 0.86) 0%, rgba(8, 21, 39, 0.94) 100%);
}
.join__inner { position: relative; }
.join h2, .join h3 { color: #fff; }

.join__list { border-top: 1px solid var(--line-dark); margin-top: 1rem; }
.join__list a {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: 1.6rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line-dark);
  transition: padding-left 0.25s ease;
}
.join__list a:hover { padding-left: 0.7rem; }
.join__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
}
.join__body h3 { font-size: 1.2rem; }
.join__body p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.62); margin-top: 0.2rem; }
.join__action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--gold-500);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s ease, gap 0.25s ease;
  white-space: nowrap;
}
.join__action svg { width: 16px; height: 16px; }
.join__list a:hover .join__action { border-bottom-color: var(--gold-500); gap: 0.8rem; }

.join__contact {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.join__contact-title { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.1rem; }
.join__contact a { transition: color 0.2s ease; }
.join__contact > a:hover { color: var(--gold-500); }
.join__contact-links { display: flex; gap: 0.8rem; margin-left: auto; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.66); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(5, 1fr);
  gap: clamp(1.8rem, 3vw, 3rem);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.site-footer__name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: #fff; }
.site-footer__en { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--gold-500); margin-top: 0.3rem; }
.site-footer__desc { font-size: 0.9rem; margin-top: 1.1rem; max-width: 34ch; }
.site-footer__brand address { font-style: normal; font-size: 0.88rem; margin-top: 1.3rem; line-height: 2; }
.site-footer a { transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold-500); }
.site-footer__col { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.9rem; }
.site-footer__col h3 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-dark);
}
.site-footer__bottom { border-top: 1px solid var(--line-dark); }
.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.4rem;
  font-size: 0.82rem;
}
.site-footer__bottom nav { display: flex; gap: 1.4rem; }
.site-footer__disclaimer {
  background: var(--gold-500);
  color: var(--navy-950);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding-block: 0.55rem;
}

/* ---------- 數位服務 × AI 展示段 ---------- */
.text-gold { color: var(--gold-500); }
.btn--glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--glass:hover { border-color: var(--gold-500); color: var(--gold-500); }

.ai {
  position: relative;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  padding-bottom: clamp(4rem, 7vw, 6rem);
}
.ai__bg { position: absolute; inset: 0; }
.ai__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-tone);
  opacity: 0.22;
}
.ai__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 21, 39, 0.9) 0%, rgba(8, 21, 39, 0.82) 55%, rgba(8, 21, 39, 0.94) 100%);
}
.ai__grid {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.ai__side { position: sticky; top: calc(var(--header-h) + 2rem); }
.ai h2, .ai h3 { color: #fff; }
.ai__side .sec-head { margin-bottom: 2.2rem; }
.ai__nav { display: flex; flex-direction: column; align-items: stretch; border-top: 1px solid var(--line-dark); margin-bottom: 2.2rem; }
.ai__nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.ai__nav button::after {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ai__nav button:hover { color: #fff; }
.ai__nav button.is-active { color: var(--gold-500); padding-left: 0.6rem; }
.ai__nav button.is-active::after { opacity: 1; }
.ai__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.ai__cards { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.5rem); }
.ai-card {
  background: rgba(13, 36, 64, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 1.2rem;
  align-items: start;
}
.ai-card--pre { opacity: 0; transform: translateX(48px); }
.ai-card { transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.ai-card.is-in { opacity: 1; transform: none; }
.ai-card__icon {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  color: var(--gold-500);
}
.ai-card__icon svg { width: 100%; height: 100%; }
.ai-card h3 { font-size: 1.35rem; }
.ai-card > p { margin-top: 0.4rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.68); }
.ai-card__media {
  grid-column: 1 / -1;
  margin-top: 1.2rem;
  overflow: hidden;
  border-radius: 8px;
}
.ai-card__media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  filter: var(--img-tone);
  animation: ai-kenburns 22s ease-in-out infinite alternate;
}
@keyframes ai-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}
.ch-w { display: inline-block; }

/* ---------- 領航團隊（手風琴卡片，純 CSS） ---------- */
.team { background: #fff; }
.team__row {
  display: flex;
  gap: 14px;
  height: 540px;
}
.team-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-950);
  transition: flex 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.4s ease;
}
.team-card.is-open { flex: 2.5 1 0; }
.team__row:hover .team-card { flex: 0.8 1 0; }
.team__row:hover .team-card:hover { flex: 2.5 1 0; transform: translateY(-5px); }
.team-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-tone);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover img { transform: scale(1.04); }
.team-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 21, 39, 0) 45%, rgba(8, 21, 39, 0.55) 72%, rgba(8, 21, 39, 0.9) 100%);
}
.team-card__vlabel {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.92);
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
.team-card.is-open .team-card__vlabel,
.team-card:hover .team-card__vlabel { opacity: 0; }
.team__row:hover .team-card.is-open:not(:hover) .team-card__vlabel { opacity: 1; }
.team-card__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.6rem 1.6rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.team-card.is-open .team-card__info,
.team-card:hover .team-card__info { opacity: 1; transform: none; }
.team__row:hover .team-card.is-open:not(:hover) .team-card__info { opacity: 0; transform: translateY(10px); }
.team-card__info h3 {
  font-size: clamp(1.8rem, 2vw, 2.2rem);
  color: var(--gold-500);
  letter-spacing: 0.04em;
}
.team-card__duty { margin-top: 0.6rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); line-height: 1.7; }
.team-card__meta {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

/* ---------- RWD ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header__cta { display: none; }
  .event-row { grid-template-columns: 6rem 1fr; grid-template-rows: auto auto auto; row-gap: 1.2rem; }
  .event-row__main { grid-column: 2; }
  .event-row__reg { grid-column: 1 / -1; }
  .event-row__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .vlabel { writing-mode: horizontal-tb; border-left: 0; border-bottom: 1px solid var(--line); letter-spacing: 0.35em; padding-bottom: 0.5rem; justify-self: start; }
  .about__media { margin-top: 0; max-width: 480px; }
  .chairman__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .chairman__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; }
  .media__grid { grid-template-columns: 1fr; }
  .media__figure img { max-height: 340px; }
  .news__grid { grid-template-columns: 1fr; }
  .ai__grid { grid-template-columns: 1fr; }
  .ai__side { position: static; }
  .ai__nav { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .team__row {
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .team__row::-webkit-scrollbar { display: none; }
  .team-card {
    flex: 0 0 290px;
    height: 480px;
    scroll-snap-align: start;
  }
  .team__row:hover .team-card,
  .team__row:hover .team-card:hover,
  .team-card.is-open { flex: 0 0 290px; transform: none; }
  .team-card__vlabel { display: none; }
  .team-card__info,
  .team__row:hover .team-card.is-open:not(:hover) .team-card__info { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .service-index { grid-template-columns: 1fr; }
  .service-index li:nth-child(8) { border-bottom: 1px solid var(--line); }
  .service-index li:nth-child(7) { border-bottom: 0; }
  .media__videos { grid-template-columns: 1fr; }
  .hero__stats-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .hero__glass { display: none; }
  .join__contact-links { margin-left: 0; }
}

@media (max-width: 520px) {
  .news__list a { grid-template-columns: 3.4rem 1fr; }
  .news__list a .tag { display: none; }
  .event-row { grid-template-columns: 4.6rem 1fr; }
  .event-row__day { font-size: 1.7rem; }
  .join__list a { grid-template-columns: 1fr; gap: 0.5rem; }
  .join__num { font-size: 1.1rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- 減少動態效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__fallback.is-active,
  .ai-card__media img { animation: none; }
  .marquee__row { animation: none; width: auto; justify-content: center; }
  .marquee__group { flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; padding-right: 0; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__row span { gap: 0; }
  .marquee__row span::after { display: none; }
}

/* ================================================================
   多頁化（2026-07-22）：下拉導覽、頁首、子頁共用元件
   ================================================================ */

/* ---------- 下拉選單 ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { white-space: nowrap; }
.has-drop > a::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}
.has-drop:hover > a::after, .has-drop:focus-within > a::after { transform: rotate(225deg) translateY(-1px); }
.nav-drop {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 216px;
  padding: 0.3rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 70;
}
.has-drop:hover .nav-drop, .has-drop:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.site-header .nav-drop a {
  position: relative;
  display: block;
  padding: 0.75rem 1.1rem;
  color: var(--body);
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.site-header .nav-drop a:last-child { border-bottom: 0; }
.site-header .nav-drop a::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.3s ease;
}
.site-header .nav-drop a:hover { background: none; color: var(--navy-900); padding-left: 1.45rem; }
.site-header .nav-drop a:hover::after { width: calc(100% - 2.2rem); }

/* 手機選單分組標題 */
.mobile-nav__group {
  margin: 1.1rem 0 0.2rem;
  color: var(--gold-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* ---------- 子頁頁首 ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 70%, var(--navy-700) 100%);
  color: #fff;
  padding: 9.5rem 0 3.5rem;
}
.page-hero__crumb {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold-500);
  font-weight: 500;
  margin-bottom: 1rem;
}
.page-hero__crumb a { color: rgba(255, 255, 255, 0.6); }
.page-hero__crumb a:hover { color: #fff; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
}
.page-hero__lead {
  margin-top: 0.9rem;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
}

/* ---------- 子頁通用 ---------- */
.page-section { padding: clamp(4rem, 7vw, 6rem) 0; }
.page-section--paper { background: var(--paper); }
.page-section--navy { background: var(--navy-950); color: #fff; }
.sub-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.page-section--navy .sub-title { color: #fff; }
.sub-lead { color: var(--body); line-height: 1.9; max-width: 65ch; }
.page-section--navy .sub-lead { color: rgba(255, 255, 255, 0.72); }
.anchor-block { scroll-margin-top: 110px; }

/* 篩選膠囊 */
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 2.2rem; }
.filter-pills button {
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--body);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.25s ease;
}
.filter-pills button:hover { border-color: var(--navy-700); color: var(--navy-700); }
.filter-pills button.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

/* 消息列表 */
.news-row {
  display: grid;
  grid-template-columns: 92px 110px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease;
}
.news-row:hover { padding-left: 0.5rem; }
.news-row__date { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.news-row__cat {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--navy-700);
  text-align: center;
}
.news-row__title { font-weight: 500; color: var(--ink); font-size: 1.05rem; }
.news-row:hover .news-row__title { color: var(--navy-700); }
.news-row__arrow { color: var(--muted); }
@media (max-width: 700px) {
  .news-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* 表單 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .is-full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--ink); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }

/* 資訊卡（服務/委員會等） */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.info-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem;
  background: #fff;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.info-card:hover { transform: translateY(-4px); border-color: var(--gold-500); }
.info-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.info-card p { font-size: 0.94rem; color: var(--body); line-height: 1.8; }
.info-card__tag { font-size: 0.78rem; color: var(--gold-600); font-weight: 700; letter-spacing: 0.1em; display: block; margin-bottom: 0.6rem; }

/* 會員名錄 */
.members-toolbar { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin: 1.6rem 0; }
.members-toolbar .field { margin: 0; }
.members-toolbar input[type="search"] {
  flex: 1 1 260px;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.members-toolbar select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.members-count { color: var(--muted); font-size: 0.9rem; margin-left: auto; font-variant-numeric: tabular-nums; }
.member-table { width: 100%; border-collapse: collapse; background: #fff; }
.member-table th, .member-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  vertical-align: top;
}
.member-table th {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 2px solid var(--navy-900);
  white-space: nowrap;
}
.member-table tbody tr { transition: background 0.2s ease; }
.member-table tbody tr:hover { background: var(--paper); }
.member-table .m-name { font-weight: 700; color: var(--ink); }
.member-table .m-sub { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.member-table a { color: var(--navy-700); }
.member-table a:hover { color: var(--gold-600); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pager { display: flex; gap: 0.4rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }
.pager button {
  min-width: 40px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--body);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.pager button.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pager button:disabled { opacity: 0.4; cursor: default; }

/* 月曆列表 */
.cal-list { display: grid; gap: 0.9rem; }
.cal-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.cal-item__day { font-size: 1.6rem; font-weight: 900; color: var(--navy-900); text-align: center; }
.cal-item__day small { display: block; font-size: 0.75rem; color: var(--gold-600); font-weight: 700; letter-spacing: 0.1em; }
.cal-item__title { font-weight: 700; color: var(--ink); }
.cal-item__meta { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) { .cal-item { grid-template-columns: 64px 1fr; } .cal-item .btn { display: none; } }

/* 組織架構 */
.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.org-node {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem;
  background: #fff;
  text-align: center;
}
.org-node--root { background: var(--navy-900); border-color: var(--navy-900); }
.org-node--root h3 { color: #fff; }
.org-node--root p { color: rgba(255, 255, 255, 0.7); }
.org-node h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.35rem; }
.org-node p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* 聯絡資訊列 */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.contact-card { border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; background: #fff; }
.contact-card h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; }
.contact-card p, .contact-card address { font-size: 0.95rem; color: var(--body); line-height: 1.9; font-style: normal; }
.contact-card a { color: var(--navy-700); }
.contact-card a:hover { color: var(--gold-600); }

/* ---------- 下拉不間斷橋接（2026-07-22 William 回報：慢移滑鼠選單會消失） ---------- */
.nav-drop::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

/* ---------- 中寬螢幕導覽收斂（2026-07-22 William 回報：捲動膠囊超出頁面） ---------- */
@media (max-width: 1380px) and (min-width: 1101px) {
  .main-nav { gap: 0.7rem; }
  .main-nav a { font-size: 0.82rem; }
  .brand__text small { display: none; }
  .brand__text strong { font-size: 0.92rem; }
  .site-header__cta { padding: 0.55rem 1rem; font-size: 0.85rem; }
}

/* ---------- 規線系統（2026-07-22 局部重做：取代通用卡片） ---------- */
.ruled-list { border-top: 2px solid var(--navy-900); }
.ruled-list--2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
@media (max-width: 800px) { .ruled-list--2col { grid-template-columns: 1fr; } }
.ruled-item {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.8rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.ruled-item__no { font-weight: 900; color: var(--gold-500); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.ruled-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.ruled-item p { font-size: 0.92rem; color: var(--muted); margin-top: 0.25rem; line-height: 1.7; }

/* 定義列（秘書處資訊） */
.def-row { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.def-row dt { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.def-row dd { font-size: 1rem; color: var(--ink); font-weight: 500; }
.def-row dd a { color: var(--navy-700); }
.def-row dd a:hover { color: var(--gold-600); }

/* 組織樹（細線連接） */
.org-tree { text-align: center; }
.org-tree__root { display: inline-block; background: var(--navy-900); color: #fff; padding: 0.9rem 2.6rem; border-radius: 10px; font-weight: 700; font-size: 1.05rem; }
.org-tree__stem { width: 1px; height: 2rem; background: var(--line); margin: 0 auto; }
.org-tree__row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding-top: 2rem; }
.org-tree__row::before { content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 1px; background: var(--line); }
.org-tree__node { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1rem; background: #fff; }
.org-tree__node::before { content: ""; position: absolute; top: -2rem; left: 50%; width: 1px; height: 2rem; background: var(--line); }
.org-tree__node h3 { font-size: 1rem; font-weight: 700; color: var(--ink); }
.org-tree__node p { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; line-height: 1.7; }
@media (max-width: 800px) {
  .org-tree__row { grid-template-columns: 1fr 1fr; }
  .org-tree__row::before { display: none; }
}

/* 月曆＋列表雙欄 */
.cal-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
@media (max-width: 900px) { .cal-split { grid-template-columns: 1fr; } }
.mini-cals { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 520px) { .mini-cals { grid-template-columns: 1fr; } }
.mini-cal { border-top: 2px solid var(--navy-900); padding-top: 1rem; }
.mini-cal h3 { font-size: 0.95rem; font-weight: 900; color: var(--ink); margin-bottom: 0.6rem; }
.mini-cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mini-cal th { font-size: 0.7rem; color: var(--muted); font-weight: 500; padding: 0.3rem 0; text-align: center; }
.mini-cal td { text-align: center; font-size: 0.82rem; padding: 0.4rem 0; color: var(--body); font-variant-numeric: tabular-nums; }
.mini-cal td.is-event { background: var(--navy-900); color: #fff; border-radius: 6px; font-weight: 700; }
.mini-cal td.is-range { background: rgba(194, 163, 86, 0.22); color: var(--ink); font-weight: 500; }
.cal-rows { border-top: 2px solid var(--navy-900); }
.cal-row { display: grid; grid-template-columns: 5rem 1fr auto; gap: 1.2rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cal-row__date { font-weight: 900; color: var(--navy-900); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.cal-row__date small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.cal-row h3 { font-size: 1rem; font-weight: 700; color: var(--ink); }
.cal-row p { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) { .cal-row { grid-template-columns: 4rem 1fr; } .cal-row .btn { display: none; } }

/* ---------- Hero 台北市框線地圖＋拉線統計（2026-07-23） ---------- */
.hero__map {
  position: absolute;
  z-index: 1;
  right: clamp(150px, 16vw, 270px);
  top: 50%;
  transform: translateY(-54%);
  height: min(58vh, 540px);
  aspect-ratio: 620 / 806;
  display: none;
  pointer-events: none;
}
@media (min-width: 1101px) {
  .hero__map { display: block; }
  .hero__stats { display: none; }   /* 桌機統計改由地圖拉線呈現 */
  .hero__glass { display: none; }   /* 避免與拉線統計重複 */
}
.hero__map-svg { width: 100%; height: 100%; overflow: visible; }
.hero__map-districts path {
  stroke: rgba(194, 163, 86, 0.55);
  stroke-width: 1.1;
  fill: rgba(194, 163, 86, 0.05);
}
.hero__map-links line {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.hero__map-links circle { fill: var(--gold-500); }
.map-chip {
  position: absolute;
  padding: 0.55rem 0.95rem;
  background: rgba(8, 21, 39, 0.55);
  border: 1px solid rgba(194, 163, 86, 0.35);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  white-space: nowrap;
}
.map-chip b {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.map-chip span:not([data-count]) { font-size: 0.72rem; color: rgba(255, 255, 255, 0.65); letter-spacing: 0.08em; }
.map-chip--1 { left: -10%; top: -2%; }
.map-chip--2 { right: -20%; top: 22%; }
.map-chip--3 { right: -12%; bottom: 2%; }
.map-chip--4 { left: -18%; bottom: 6%; }
@media (min-width: 1101px) and (max-width: 1380px) {
  .hero__map { right: clamp(120px, 13vw, 200px); height: min(52vh, 480px); }
  .map-chip--2 { right: -14%; }
}

/* ---------- Hero 世界點陣圖 × 國際弧線（2026-07-23 取代影片 hero） ---------- */
.hero--world {
  background:
    radial-gradient(1100px 560px at 76% 42%, rgba(27, 58, 92, 0.6), transparent 62%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 80%);
}
.hero__world {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__world-dots {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  /* 左側（標題區）淡出，右側清晰 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.45) 38%, black 62%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.45) 38%, black 62%);
}
.hero__world-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arcs-base path { fill: none; stroke: rgba(168, 198, 244, 0.9); stroke-width: 0.8; }
.arcs-flow path {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 5 13;
  animation: arcflow 1.6s linear infinite;
}
@keyframes arcflow { to { stroke-dashoffset: -18; } }
.arcs-cities .city { fill: #C9DCF7; }
.arcs-cities .city--home { fill: #fff; stroke: #9DBDEE; stroke-width: 2; }
.arcs-labels .lbl { fill: rgba(255, 255, 255, 0.62); font-size: 11px; letter-spacing: 0.06em; }
.arcs-labels .lbl--home { fill: var(--gold-500); font-weight: 700; font-size: 12.5px; }

/* 柔和淺色玻璃統計卡（取代生硬邊框版） */
.hero__chips { display: flex; gap: 0.9rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hchip {
  padding: 0.7rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  color: #fff;
}
.hchip b {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.hchip span:not([data-count]) { font-size: 0.75rem; color: rgba(255, 255, 255, 0.68); letter-spacing: 0.05em; }
@media (max-width: 1100px) {
  .hero__world-dots { opacity: 0.55; }
  .hero__chips { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .arcs-flow path { animation: none; }
}

/* 手機 hero：kicker 與固定導覽列互撞，小螢幕隱藏 */
@media (max-width: 768px) {
  .hero__kicker { display: none; }
  .hero--world .hero__inner { padding-top: 7.5rem; }
}

/* ---------- 合作夥伴 3D 滾動牆（2026-07-23，Aceternity 3D Marquee 風） ---------- */
.tm3d {
  position: relative;
  overflow: hidden;
  height: 540px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--navy-950), var(--navy-900) 70%);
}
.tm3d::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 21, 39, 0.95), transparent 20%, transparent 80%, rgba(8, 21, 39, 0.95));
  pointer-events: none;
  z-index: 2;
}
.tm3d__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  width: 132%;
  margin-left: -16%;
  transform: rotateX(32deg) rotateZ(-11deg) translateY(-140px);
  transform-origin: center;
}
.tm3d__track { display: flex; flex-direction: column; gap: 1rem; animation: tmUp 28s linear infinite; }
.tm3d__col:nth-child(2n) .tm3d__track { animation-name: tmDown; animation-duration: 34s; }
.tm3d__col:nth-child(3n) .tm3d__track { animation-duration: 23s; }
.tm3d:hover .tm3d__track { animation-play-state: paused; }
@keyframes tmUp { to { transform: translateY(-50%); } }
@keyframes tmDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.tm3d__tile {
  background: #fff;
  border-radius: 10px;
  padding: 1.15rem 0.9rem;
  text-align: center;
}
.tm3d__tile b { display: block; color: var(--navy-900); font-size: 1rem; font-weight: 700; white-space: nowrap; }
.tm3d__tile span { font-size: 0.7rem; color: var(--gold-600); letter-spacing: 0.14em; }
.tm3d__tile--dark { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }
.tm3d__tile--dark b { color: #fff; }
.tm3d__tile--dark span { color: var(--gold-500); }
@media (max-width: 900px) {
  .tm3d { height: 440px; }
  .tm3d__grid { grid-template-columns: repeat(3, 1fr); width: 170%; margin-left: -35%; transform: rotateX(26deg) rotateZ(-8deg) translateY(-110px); }
  .tm3d__col:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tm3d__track { animation: none; }
}

/* ---------- 3D 夥伴牆改淺底（2026-07-23 William：深藍牆在淺色段太突兀） ---------- */
.tm3d {
  background: linear-gradient(150deg, #eef1f5 0%, #e3e9f0 70%, #dde4ec 100%);
  border: 1px solid var(--line);
}
.tm3d::after {
  background: linear-gradient(180deg, rgba(238, 241, 245, 0.98), transparent 20%, transparent 80%, rgba(221, 228, 236, 0.98));
}
.tm3d__tile {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(13, 36, 64, 0.06);
}
.tm3d__tile--dark {
  background: var(--navy-900);
  border-color: var(--navy-700);
}
.tm3d__tile--dark b { color: #fff; }


/* ---------- Hero 文字垂直置中＋地圖更淡（2026-07-23 William 回饋） ---------- */
.hero--world .hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-top: var(--header-h, 76px);
  padding-bottom: 3rem;
}
.hero__world-dots {
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.12) 28%, rgba(0,0,0,0.55) 52%, black 76%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.12) 28%, rgba(0,0,0,0.55) 52%, black 76%);
}

/* ---------- 3D 夥伴牆去框線（2026-07-23 William：有框很怪） ---------- */
.tm3d { border: 0; }
.tm3d__tile,
.tm3d__tile--dark { border: 0; }
.tm3d__tile { box-shadow: 0 8px 24px rgba(13, 36, 64, 0.08); }
.tm3d__tile--dark { box-shadow: 0 10px 28px rgba(13, 36, 64, 0.22); }

/* ---------- 社群平台圖示列（官方品牌色＋白圖示） ---------- */
.social-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2.2rem; }
.social-row__label { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.12em; font-weight: 500; }
.soc { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--body); font-size: 0.93rem; font-weight: 500; transition: color 0.2s ease; }
.soc:hover { color: var(--navy-900); }
.soc__badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c, var(--navy-900));
  transition: transform 0.25s ease;
}
.soc:hover .soc__badge { transform: translateY(-2px); }
.soc__badge svg { width: 16px; height: 16px; fill: #fff; }


/* ---------- Hero 101 底圖＋地圖層半透明（2026-07-23） ---------- */
.hero__photo { position: absolute; inset: 0; z-index: 0; }
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.5);
  opacity: 0.55;
}
.hero--world .hero__world { z-index: 1; opacity: 0.5; }

/* ---------- 3D 夥伴牆無縫融入底色（2026-07-23 William：邊界有切線） ---------- */
.tm3d { background: transparent; border-radius: 0; }
.tm3d::after {
  background: linear-gradient(180deg, var(--paper) 0%, transparent 22%, transparent 78%, var(--paper) 100%);
}

/* ---------- 理事長照片 RWD ---------- */
@media (max-width: 800px) {
  .chairman-sec .chairman-intro { grid-template-columns: 1fr !important; gap: 1.6rem !important; }
  .chairman-sec .chairman-intro figure { max-width: 320px; }
}

/* ---------- 公文閱讀頁 ---------- */
.doc-back { display: inline-block; margin-bottom: 1.4rem; color: var(--navy-700); font-size: 0.9rem; }
.doc-back:hover { color: var(--gold-600); }
.doc-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(2rem, 4vw, 3.5rem);
}
.doc-sheet__no { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.05em; }
.doc-sheet h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  color: var(--ink);
  margin: 0.8rem 0 1.6rem;
  line-height: 1.4;
}
.doc-sheet__meta { border-top: 2px solid var(--navy-900); margin-bottom: 2rem; }
.doc-sheet h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-900); margin: 1.8rem 0 0.6rem; }
.doc-sheet p { color: var(--body); line-height: 2; }
.doc-attach {
  margin-top: 2.2rem;
  padding: 1.2rem 1.4rem;
  background: var(--paper);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.doc-attach span { font-size: 0.92rem; color: var(--ink); font-weight: 500; }

/* ---------- 聯絡我們：左資訊＋3D 地圖定位 / 右表單卡（2026-07-23） ---------- */
.contact2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact2__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 1.6rem; font-size: 0.9rem; color: var(--muted); }
.contact2__meta a { color: var(--navy-700); }
.contact2__meta a:hover { color: var(--gold-600); }
.contact2__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-500); }

.contact2__map { position: relative; margin-top: 3rem; perspective: 800px; }
.contact2__map-img {
  width: 100%;
  display: block;
  transform: rotateX(22deg) scale(1.12);
  transform-origin: center 55%;
  filter: invert(0.72);
  opacity: 0.55;
}
.cpin { position: absolute; z-index: 3; }
.cpin__label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -6px);
  white-space: nowrap;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.32rem 0.7rem;
  border-radius: 8px;
}
.cpin__label::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 189, 238, 0.9), transparent);
}
.cpin__beam {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 40px;
  background: linear-gradient(to top, #9DBDEE, transparent);
}
.cpin__dot {
  position: absolute;
  left: -3px; top: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6FA1E8;
  box-shadow: 0 0 8px rgba(111, 161, 232, 0.9);
}
.cpin__ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(111, 161, 232, 0.12);
  animation: cpulse 6s ease-out infinite;
}
.cpin__ring--2 { animation-delay: 2s; }
.cpin__ring--3 { animation-delay: 4s; }
@keyframes cpulse {
  0% { opacity: 0; transform: scale(0.2); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cpin__ring { animation: none; opacity: 0.25; }
}

.contact2__form {
  background: linear-gradient(160deg, #f2f4f7, #e7ecf2);
  border-radius: 12px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: grid;
  gap: 1.1rem;
  box-shadow: 0 18px 48px rgba(13, 36, 64, 0.08);
}
.contact2__form .field input,
.contact2__form .field textarea { border-color: transparent; box-shadow: 0 1px 2px rgba(13, 36, 64, 0.06); }
.contact2__form .field input:focus,
.contact2__form .field textarea:focus { border-color: var(--navy-700); }
@media (max-width: 900px) {
  .contact2 { grid-template-columns: 1fr; }
  .contact2__map { max-width: 480px; }
}

/* ---------- 聯絡我們左右欄等高對齊（2026-07-23 William：地圖要對齊送出鈕） ---------- */
.contact2 { align-items: stretch; }
.contact2__info { display: flex; flex-direction: column; }
.contact2__map { flex: 1; display: flex; align-items: flex-end; margin-top: 2rem; }
.contact2__map-img { width: 100%; }

/* ---------- 聯絡我們地圖改滿版背景層（2026-07-23 William：要滿版、中間很空） ---------- */
.contact2 { position: relative; }
.contact2 > * { position: relative; z-index: 1; }
.contact2__map {
  position: absolute;
  inset: -2rem 0;
  z-index: 0;
  margin-top: 0;
  flex: none;
  display: block;
  pointer-events: none;
}
.contact2__map-img {
  position: absolute;
  left: -97%;
  top: 50%;
  width: 170%;
  height: auto;
  transform: translateY(-50%) rotateX(10deg);
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 92%, transparent 100%);
}
.cpin { left: 45%; top: 44%; }
@media (max-width: 900px) {
  .contact2__map { position: relative; inset: auto; height: 220px; order: 3; }
  .contact2__map-img { left: -30%; width: 130%; }
  .cpin { left: 58%; top: 40%; }
}

/* ---------- 聯絡地圖回歸簡潔版（2026-07-23 滿版嘗試失敗，改原比例大圖） ---------- */
.contact2__map {
  position: relative;
  inset: auto;
  z-index: 0;
  flex: 1;
  display: flex;
  align-items: flex-end;
  margin-top: 2rem;
  pointer-events: none;
}
.contact2__map-frame { position: relative; width: 100%; }
.contact2__map-img {
  position: static;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  transform: none;
  opacity: 0.55;
  filter: invert(0.72);
  -webkit-mask-image: none;
  mask-image: none;
}
.cpin { left: 83.75%; top: 36.1%; }
@media (max-width: 900px) {
  .contact2__map { height: auto; order: 0; }
  .contact2__map-img { width: 100%; }
  .cpin { left: 83.75%; top: 36.1%; }
}
