:root {
  --indigo: #071426;
  --indigo-2: #10223d;
  --gold: #c89b42;
  --gold-2: #f0d58f;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #657086;
  --line: rgba(23, 32, 51, 0.13);
  --shadow: 0 22px 70px rgba(7, 20, 38, 0.13);
  --radius: 8px;
  --font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body { width: 100%; max-width: 100%; margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--font); overflow-x: hidden; }
body, button { font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.skip-link { position: fixed; top: -60px; left: 18px; z-index: 80; padding: 10px 14px; background: var(--indigo); color: white; }
.skip-link:focus { top: 18px; }
.notice { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 42px; padding: 8px 18px; background: var(--gold); color: var(--indigo); font-size: .9rem; }
.notice span, .notice strong, .notice a, .notice button { white-space: nowrap; }
.notice a, .notice-link { border-bottom: 1px solid currentColor; font-weight: 900; }
.notice-link, .inline-button { padding: 0; background: transparent; color: inherit; font: inherit; }
.site-header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 78px; padding: 12px clamp(18px, 4vw, 58px); background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand, .desktop-nav, .header-actions, .hero-actions, .section-head, .tab-list, .site-footer, .site-footer nav { display: flex; align-items: center; }
.brand { gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 54px; height: 42px; background: var(--indigo); border: 1px solid rgba(200,155,66,.55); border-radius: var(--radius); color: var(--gold-2); font-weight: 950; letter-spacing: 0; }
.brand-mark.large { width: 70px; height: 54px; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 1.05rem; line-height: 1.1; }
.brand-copy small { color: var(--muted); font-size: .78rem; font-weight: 800; }
.desktop-nav { justify-content: center; gap: clamp(12px, 2vw, 26px); color: var(--muted); font-size: .95rem; font-weight: 850; }
.desktop-nav a:hover, .text-link:hover { color: var(--gold); }
.header-actions { justify-content: end; gap: 10px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; background: white; border: 1px solid var(--line); border-radius: 50%; color: var(--indigo); }
.primary-button, .ghost-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: var(--radius); font-size: .94rem; font-weight: 950; }
.primary-button { background: var(--gold); color: var(--indigo); box-shadow: 0 12px 32px rgba(200,155,66,.28); }
.primary-button.compact { min-height: 42px; padding-inline: 16px; }
.primary-button.full { width: 100%; }
.ghost-button { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.42); color: white; }
.text-link { color: var(--indigo); font-weight: 950; }
.hero { position: relative; min-height: clamp(560px, 68vh, 720px); overflow: hidden; background: var(--indigo); }
.hero-image, .hero-overlay { position: absolute; inset: 0; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-overlay { background: linear-gradient(90deg, rgba(7,20,38,.94), rgba(7,20,38,.52) 46%, rgba(7,20,38,.08)), linear-gradient(0deg, rgba(7,20,38,.9), rgba(7,20,38,.02) 35%); }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; width: min(760px, calc(100% - 36px)); min-height: inherit; padding: 0 0 78px clamp(18px, 6vw, 84px); color: white; }
.hero h1 { margin: 0; color: var(--gold-2); font-family: Georgia, "Times New Roman", serif; font-size: clamp(5.4rem, 14vw, 12rem); line-height: .8; letter-spacing: 0; }
.hero-slogan { margin: 24px 0 0; color: var(--gold-2); font-size: clamp(1.5rem, 3vw, 2.8rem); font-weight: 950; }
.hero-full-name { margin: 4px 0 0; color: rgba(240,213,143,.86); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 2vw, 1.45rem); letter-spacing: 0; }
.hero-copy { max-width: 650px; margin: 18px 0 28px; color: rgba(255,255,255,.82); font-size: 1.12rem; overflow-wrap: anywhere; }
.hero-actions { gap: 14px; flex-wrap: wrap; }
.section, .section-band, .gateway { width: min(1200px, calc(100% - 36px)); margin: 0 auto; }
.section { padding: 96px 0 0; }
.section-band { margin-top: -34px; padding: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.gateway { position: relative; z-index: 2; margin-top: -34px; padding: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.gateway-head { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(280px, .65fr); gap: 32px; align-items: end; margin-bottom: 26px; }
.gateway h2 { max-width: 760px; font-size: clamp(2.1rem, 4vw, 3.35rem); overflow-wrap: anywhere; }
.gateway-head p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.feature-entry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.feature-entry { display: grid; overflow: hidden; min-height: 260px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 42px rgba(7,20,38,.07); transition: transform 180ms ease, border-color 180ms ease; }
.feature-entry:hover { transform: translateY(-4px); border-color: rgba(200,155,66,.65); }
.entry-image { min-height: 150px; background: linear-gradient(135deg, rgba(7,20,38,.88), rgba(16,34,61,.42)), var(--entry-image) center/cover; border-bottom: 3px solid var(--gold); }
.feature-entry strong { align-self: end; padding: 16px 16px 0; color: var(--indigo); font-size: 1.2rem; line-height: 1.25; }
.feature-entry small { padding: 4px 16px 18px; color: var(--muted); font-weight: 800; }
.about-entry { --entry-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80"); }
.partners-entry { --entry-image: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=900&q=80"); }
.actions-entry { --entry-image: url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=900&q=80"); }
.departments-entry { --entry-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80"); }
.resources-entry { --entry-image: url("https://images.unsplash.com/photo-1497633762265-9d179a990aa6?auto=format&fit=crop&w=900&q=80"); }
.detail-page { display: none; }
.detail-page.is-active { display: block; }
body.detail-mode .home-view { display: none; }
.back-home { display: inline-flex; align-items: center; min-height: 38px; margin-bottom: 18px; padding: 0 12px; background: rgba(200,155,66,.13); border: 1px solid rgba(200,155,66,.35); border-radius: var(--radius); color: var(--indigo); font-weight: 950; }
.back-home::before { content: "‹"; margin-right: 8px; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.section-label { margin-bottom: 12px; color: var(--gold); font-size: .78rem; font-weight: 950; letter-spacing: 0; text-transform: uppercase; }
.mission-grid { display: grid; grid-template-columns: minmax(280px,.9fr) minmax(320px,1.1fr); gap: 40px; align-items: start; }
h2 { margin: 0; color: var(--indigo); font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.08; font-weight: 950; }
.mission p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section-head { justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.people-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.profile-feature, .people-block, .action-card, .department-card, .video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 42px rgba(7,20,38,.07); }
.profile-feature { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center; min-height: 220px; padding: 24px; }
.portrait, .photo-slot, .action-photo, .department-photo { display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, rgba(7,20,38,.92), rgba(16,34,61,.7)), radial-gradient(circle at 30% 25%, rgba(240,213,143,.42), transparent 34%); border: 1px solid rgba(200,155,66,.36); color: var(--gold-2); font-weight: 950; }
.portrait { width: 132px; height: 156px; border-radius: var(--radius); font-size: 3.2rem; }
.profile-feature span, .people-block h3 span { color: var(--gold); font-size: .88rem; font-weight: 900; }
.profile-feature h3, .people-block h3, .action-card h3, .department-card h3, .video-card h3 { margin: 0; color: var(--indigo); }
.profile-feature p, .action-card p, .department-card p, .video-card p { margin: 8px 0 0; color: var(--muted); }
.people-block { padding: 22px; }
.people-block.wide { grid-column: 1 / -1; }
.photo-grid { display: grid; gap: 12px; margin-top: 16px; }
.photo-grid.small { grid-template-columns: repeat(5, 1fr); }
.photo-grid.medium { grid-template-columns: repeat(7, 1fr); }
.photo-grid.partners { grid-template-columns: repeat(6, 1fr); }
.photo-slot { aspect-ratio: 1 / 1.08; border-radius: var(--radius); font-size: .86rem; }
.action-section { width: 100%; max-width: none; padding: 96px max(18px, calc((100vw - 1200px) / 2)) 0; }
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.action-card { overflow: hidden; }
.action-photo { height: 220px; border: 0; border-bottom: 1px solid rgba(200,155,66,.25); border-radius: 0; }
.action-card h3, .action-card p { margin-left: 18px; margin-right: 18px; }
.action-card h3 { margin-top: 18px; }
.action-card p { margin-bottom: 22px; }
.departments { padding-bottom: 8px; }
.department-list { display: grid; gap: 14px; }
.department-card { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 18px; }
.department-photo { height: 132px; border-radius: var(--radius); }
.resources { padding-bottom: 92px; }
.tab-list { flex-wrap: wrap; justify-content: end; gap: 8px; }
.tab { min-height: 40px; padding: 0 14px; background: white; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: .88rem; font-weight: 900; }
.tab.is-active { background: var(--indigo); border-color: var(--indigo); color: var(--gold-2); }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-card { overflow: hidden; }
.video-thumb { position: relative; display: grid; place-items: center; height: 168px; background: linear-gradient(135deg, rgba(7,20,38,.96), rgba(16,34,61,.68)), radial-gradient(circle at 30% 25%, rgba(240,213,143,.55), transparent 36%); color: var(--gold-2); }
.video-thumb svg { width: 48px; height: 48px; }
.lock-state { position: absolute; top: 12px; right: 12px; padding: 5px 9px; background: rgba(255,255,255,.9); border-radius: 999px; color: var(--indigo); font-size: .76rem; font-weight: 950; }
.video-body { padding: 16px; }
.video-body button { width: 100%; min-height: 40px; margin-top: 16px; background: var(--indigo); border-radius: var(--radius); color: white; font-weight: 950; }
.video-card.unlocked .video-body button { background: var(--gold); color: var(--indigo); }
.social-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; background: white; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 950; text-decoration: none; }
.social-button span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 950; }
.social-button[disabled] { opacity: .5; cursor: not-allowed; }
.ml-field { display: grid; gap: 6px; }
.ml-field span { color: var(--muted); font-size: .88rem; font-weight: 950; }
.ml-field input { min-height: 48px; padding: 0 14px; background: white; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 1rem; font-family: inherit; }
.ml-field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.ml-feedback { margin: 0; font-size: .9rem; min-height: 1.2em; }
.ml-feedback[data-tone="error"] { color: #c0392b; }
.ml-feedback[data-tone="success"] { color: #1e7e34; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 4px 0; color: var(--muted); font-size: .82rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
[data-auth-anon] > *, [data-auth-user] > * { margin-top: 12px; }
[data-auth-anon] > *:first-child, [data-auth-user] > *:first-child { margin-top: 0; }
[data-user-email] { color: var(--ink); font-weight: 950; }
[data-membership-tier] { color: var(--muted); font-size: .92rem; }
.auth-icon { position: relative; }
.auth-icon-dot { display: none; position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; background: #1e7e34; border: 2px solid white; border-radius: 50%; }
.auth-icon.is-authed .auth-icon-dot { display: block; }
.auth-icon.is-authed { box-shadow: inset 0 0 0 2px var(--gold); }
.google span { background: #f8f1dd; color: #b86e00; }
.facebook span { background: #eaf1ff; color: #1763d1; font-family: Arial, sans-serif; }
.float-help { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: grid; place-items: center; width: 58px; height: 58px; background: var(--gold); border-radius: 50%; color: var(--indigo); box-shadow: 0 18px 42px rgba(7,20,38,.26); }
.drawer { position: fixed; inset: 0; z-index: 70; display: none; }
.drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(7,20,38,.58); }
.drawer-panel { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; gap: 4px; width: min(420px, 88vw); height: 100%; padding: 78px 24px 24px; background: white; box-shadow: var(--shadow); }
.drawer-panel a { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--indigo); font-size: 1.08rem; font-weight: 950; }
.drawer-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; background: transparent; color: var(--indigo); font-size: 2rem; line-height: 1; }
.login-dialog { width: min(480px, calc(100% - 32px)); padding: 0; background: transparent; border: 0; }
.login-dialog::backdrop { background: rgba(7,20,38,.66); backdrop-filter: blur(12px); }
.login-card { position: relative; display: grid; gap: 14px; padding: 30px; background: white; border: 1px solid rgba(200,155,66,.28); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-card h2 { font-size: 2.35rem; }
.login-card p { margin: 0 0 6px; color: var(--muted); }
#memberStatus { margin: 0; color: var(--muted); font-size: .92rem; }
.site-footer { justify-content: space-between; gap: 18px; margin-top: 92px; padding: 38px clamp(18px, 4vw, 58px) 76px; background: var(--indigo); color: white; }
.site-footer strong, .site-footer span { display: block; }
.site-footer span, .site-footer p, .site-footer nav { color: rgba(255,255,255,.68); }
.site-footer nav { gap: 18px; font-weight: 850; }
.site-footer p { margin: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .people-layout, .mission-grid { grid-template-columns: 1fr; }
  .action-grid, .video-grid, .feature-entry-grid { grid-template-columns: repeat(2, 1fr); }
  .gateway-head { grid-template-columns: 1fr; }
  .photo-grid.medium { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .notice { display: block; }
  .notice span, .notice strong, .notice a, .notice button { display: block; white-space: normal; overflow-wrap: anywhere; }
  .site-header { grid-template-columns: 1fr auto; gap: 8px; padding: 10px 14px; }
  .header-actions { gap: 6px; margin-right: 0; }
  .header-actions .icon-button:first-child { display: none; }
  .icon-button { width: 38px; height: 38px; }
  .brand-copy small { display: none; }
  .header-actions .primary-button { display: none; }
  .hero { min-height: 500px; }
  .hero-image { object-position: 58% top; }
  .hero-overlay { background: linear-gradient(0deg, rgba(7,20,38,.96), rgba(7,20,38,.16) 70%), linear-gradient(90deg, rgba(7,20,38,.72), rgba(7,20,38,.08)); }
  .hero-content { width: 100%; padding: 0 34px 58px 18px; }
  .hero-copy { max-width: min(320px, calc(100vw - 64px)); font-size: 1.02rem; }
  .section, .section-band, .gateway { width: calc(100% - 28px); }
  .section-band { margin-top: -18px; padding: 26px; }
  .gateway { margin-top: -18px; padding: 20px; }
  .gateway h2 { font-size: 1.85rem; }
  .gateway-head { gap: 12px; margin-bottom: 18px; }
  .gateway-head p { font-size: .95rem; }
  .section { padding-top: 72px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .profile-feature, .department-card { grid-template-columns: 1fr; }
  .portrait, .department-photo { width: 100%; }
  .photo-grid.small, .photo-grid.medium, .photo-grid.partners, .action-grid, .video-grid, .feature-entry-grid { grid-template-columns: 1fr 1fr; }
  .action-section { padding-top: 72px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .photo-grid.small, .photo-grid.medium, .photo-grid.partners, .action-grid, .video-grid, .feature-entry-grid { grid-template-columns: 1fr; }
  .hero-actions { align-items: stretch; flex-direction: column; }
}
