/* TARSA 台灣 AI 運動協會官網樣式。依 2026/10 改版設計稿重寫：白底、黑字、品牌紅 #C21A22。
   中文用系統字型（不載入中文網頁字型）；英文小標用自架 Rajdhani（OFL）。 */

/* ---------- 字型 ---------- */
@font-face { font-family: Rajdhani; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/rajdhani-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Rajdhani; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/rajdhani-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

/* ---------- 設計變數 ---------- */
:root {
  --red: #C21A22; --red-dark: #86241f; --red-soft: #E86B70;
  --ink: #000000; --ink-2: #161616; --ink-3: #111827; --text: #353535; --text-2: #374151;
  --muted: #64748B; --muted-2: #475569; --muted-3: #52525B;
  --line: #E2E8F0; --line-2: #E5E7EB; --line-3: #D1D5DB;
  --bg: #FFFFFF; --bg-soft: #F8FAFC; --bg-soft-2: #FAFAFA; --dark: #181818;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kicker: Rajdhani, var(--font);
  --pad-x: clamp(20px, 6vw, 96px); --pad-y: clamp(64px, 9vw, 120px); --pad-y-s: clamp(42px, 6vw, 84px);
  --max: 1240px; --radius: 8px;
  --hdr-h: 72px;
}

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.menu-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.8; }
img, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.ico { width: 1em; height: 1em; flex: none; vertical-align: -0.15em; }
.ico-red { color: var(--red); }
.ico-big { width: 30px; height: 30px; color: var(--red); }
.red { color: var(--red); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--red); color: #fff; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- 共用排版 ---------- */
.wrap { max-width: var(--max); margin: 0 auto; }
.sec { padding: var(--pad-y) var(--pad-x); }
.sec-tight { padding-top: var(--pad-y-s); padding-bottom: var(--pad-y-s); }
.sec-soft { background: var(--bg-soft); }
.sec-line { border-top: 1px solid var(--line-2); }
.page-hero { padding: clamp(48px, 7vw, 88px) var(--pad-x) clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.page-hero .lead { max-width: 760px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--kicker); font-weight: 600; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--red); line-height: 1.4; }
.kicker-line::before { content: ""; width: 32px; height: 2px; background: var(--red); }
.h1 { font-weight: 900; font-size: clamp(30px, 3.3vw, 54px); line-height: 1.28; letter-spacing: -.025em; color: var(--ink-2); }
.h2 { font-weight: 700; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.25; }
.h2-xl { font-weight: 900; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.35; }
.h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; }
.lead { font-size: clamp(16px, 1.32vw, 20px); line-height: 1.85; color: var(--text); }
.lead-xl { font-size: clamp(20px, 2vw, 28px); font-weight: 700; line-height: 1.6; }
.sub { font-size: 15px; line-height: 1.8; color: var(--muted-2); }
.note { font-size: 13px; line-height: 1.8; color: var(--muted); }
.sec-head { display: flex; flex-direction: column; gap: 10px; max-width: 680px; margin-bottom: clamp(28px, 4vw, 40px); }
.sec-head.between { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; max-width: none; }
.sec-head.between > div { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.more:hover { color: var(--red); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 8px; padding: 13px 20px; font-size: 15px; font-weight: 700; line-height: 1.3; background: var(--red); color: #fff; border: 1px solid var(--red); transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-3); }
.btn-outline:hover { background: transparent; color: var(--red); border-color: var(--red); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.chip { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid var(--red); color: var(--red); border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--muted); }
.meta b { color: var(--red); font-weight: 700; letter-spacing: .06em; }
.badge-reg { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.badge-reg .ico { width: 20px; height: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr; } }
.links { display: flex; flex-direction: column; gap: 6px; }
.links a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.links a:hover { color: var(--red); }
.links .ico { color: var(--red); }

/* ---------- 頁首 ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #E5E5E5; }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--hdr-h); padding: 10px var(--pad-x); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-logo { height: 44px; width: auto; }
.brand picture { display: inline-block; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.nav ul { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 28px); white-space: nowrap; }
.nav a { display: inline-block; padding: 6px 0; font-size: 14px; font-weight: 500; letter-spacing: .03em; color: var(--ink); border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid #ddd; background: none; color: var(--ink); font-size: 22px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn:hover { border-color: var(--red); color: var(--red); }
.menu-btn .ico-close { display: none; }
.hdr.open .menu-btn .ico-open { display: none; }
.hdr.open .menu-btn .ico-close { display: inline; }
@media (max-width: 1099px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--hdr-h)); height: calc(100dvh - var(--hdr-h)); overflow-y: auto; background: #fff; padding: 20px var(--pad-x) 40px; border-top: 1px solid #E5E5E5; }
  .hdr.open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; counter-reset: n; }
  .nav li { counter-increment: n; }
  .nav a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; font-size: clamp(22px, 4vw, 30px); font-weight: 700; border-bottom: 0; }
  .nav a::before { content: counter(n, decimal-leading-zero); font-family: var(--kicker); font-size: 14px; font-weight: 600; color: var(--red); }
  .nav a[aria-current="page"] { color: var(--red); }
}
@media (max-width: 420px) { .brand-name { display: none; } }

/* ---------- 首頁主視覺 ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(calc(100vh - var(--hdr-h)), 760px); align-items: center; background: #fff; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; padding: clamp(40px, 6vw, 96px) var(--pad-x); }
.hero-logo { width: clamp(180px, 20vw, 280px); margin-left: -8px; }
.hero .kicker { letter-spacing: .16em; font-size: 13px; font-weight: 700; }
.hero-photo { position: relative; min-height: 100%; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { order: 1; padding: 44px var(--pad-x) 36px; }
  .hero-photo { order: 2; height: 56vw; min-height: 300px; }
}

/* ---------- 願景 ---------- */
.vision { border-bottom: 1px solid var(--line); }
.vision .wrap { display: flex; flex-direction: column; gap: 22px; }

/* ---------- 兩條路（給家長與學生／給企業與學校） ---------- */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.path { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 14px; background: #fff; }
.path h3 { font-size: 24px; }
.path p { font-size: 15px; line-height: 1.8; color: var(--text); }
.path .links { margin-top: 6px; }

/* ---------- 照片卡（四大教育使命／三大事業） ---------- */
.cards-photo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .cards-photo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards-photo { grid-template-columns: 1fr; } }
.pcard { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 420px; padding: 28px; border-radius: 8px; background: #222; color: #fff; }
.pcard picture, .pcard img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pcard img { object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .04) 20%, rgba(0, 0, 0, .78) 100%); pointer-events: none; }
.pcard > span, .pcard > strong { position: relative; z-index: 1; }
.pcard .no { font-family: var(--kicker); font-weight: 700; font-size: 40px; line-height: 1; }
.pcard .t { font-size: 21px; font-weight: 700; }
.pcard .b { font-size: 16px; line-height: 1.85; white-space: pre-line; }
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.wcard { position: relative; display: block; aspect-ratio: 4 / 5; max-height: 560px; overflow: hidden; border-radius: 8px; background: #222; color: #fff; }
.wcard picture, .wcard img { position: absolute; inset: 0; width: 100%; height: 100%; }
.wcard img { object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.wcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 8, 13, .9) 0%, rgba(6, 8, 13, .2) 55%, rgba(6, 8, 13, 0) 100%); }
.wcard .body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 26px; }
.wcard .kicker { font-size: 13px; letter-spacing: .22em; }
.wcard .t { font-size: 26px; font-weight: 700; color: #fff; }
.wcard .d { font-size: 15px; line-height: 1.7; color: #fff; }
.wcard .c { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 500; color: #fff; }
.wcard:hover { color: #fff; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pcard:hover img, .wcard:hover img { transform: scale(1.05); }
}

/* ---------- 市長賀詞 ---------- */
.endorse { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 96px); align-items: start; max-width: var(--max); }
.endorse-head { display: flex; flex-direction: column; gap: 16px; }
.endorse-head h2 { font-weight: 900; font-size: clamp(24px, 2.8vw, 38px); }
.endorse-photo { margin: 4px 0 0; width: 100%; max-width: 400px; overflow: hidden; border-radius: 12px; background: #F1F5F9; border: 1px solid var(--line); box-shadow: 0 16px 38px rgba(51, 65, 85, .1); }
.endorse-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.endorse-head .credit { font-size: 13px; line-height: 1.6; color: var(--ink); }
.endorse-head .credit a { color: var(--ink); text-decoration: underline; font-weight: 600; }
.endorse-head .credit a:hover { color: var(--red); }
.endorse-body { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.endorse-body .ico { width: 36px; height: 36px; color: var(--red); }
.endorse-body p { font-size: 16px; line-height: 1.95; }
.endorse-body .sign { margin-top: 8px; font-size: 15px; font-weight: 700; text-align: right; }
@media (max-width: 900px) { .endorse { grid-template-columns: 1fr; } }

/* ---------- 關於協會 ---------- */
.mission { display: flex; flex-direction: column; gap: 16px; padding-left: clamp(16px, 2vw, 28px); border-left: 2px solid var(--red); margin-top: clamp(20px, 3vw, 36px); max-width: 900px; }
.mission .lead-m { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.9; }
.mission p { font-size: 15px; line-height: 1.9; }
.story { display: flex; flex-direction: column; gap: clamp(42px, 6vw, 72px); }
.story article { display: grid; grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; padding-top: clamp(34px, 5vw, 58px); border-top: 1px solid var(--line-2); }
.story-head { position: sticky; top: calc(var(--hdr-h) + 24px); display: flex; flex-direction: column; gap: 10px; }
.story-head .kicker { font-weight: 700; font-size: 13px; letter-spacing: .22em; }
.story-head h3 { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.25; }
.story-body { display: flex; flex-direction: column; gap: 20px; max-width: 980px; }
.story-body p { font-size: clamp(17px, 1.35vw, 20px); line-height: 2; }
.story-body .strong { font-size: 17px; font-weight: 700; line-height: 1.9; }
.pull { padding: 22px 24px; border-left: 4px solid var(--red); background: var(--bg-soft-2); font-size: clamp(18px, 1.5vw, 22px) !important; font-weight: 700; line-height: 1.85 !important; }
.slogan { font-size: clamp(24px, 2.2vw, 34px) !important; font-weight: 900; line-height: 1.4 !important; color: var(--red); }
.ocard { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line-3); border-top: 4px solid var(--red); background: #fff; }
.ocard .no { font-family: var(--kicker); font-weight: 700; font-size: 30px; line-height: 1; color: var(--red); }
.ocard h4 { font-size: 20px; line-height: 1.5; }
.ocard p { font-size: 16px !important; line-height: 1.9 !important; }
.belief { display: flex; flex-direction: column; gap: 12px; padding: clamp(26px, 4vw, 42px); background: var(--red); color: #fff; }
.belief .a { font-size: clamp(21px, 2vw, 30px) !important; font-weight: 800; line-height: 1.6 !important; color: #fff; }
.belief .b { font-size: clamp(18px, 1.55vw, 23px) !important; font-weight: 600; line-height: 1.8 !important; color: #fff; }
@media (max-width: 980px) { .story article { grid-template-columns: 1fr; } .story-head { position: static; } }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin: 20px 0; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 8px 0; }
.step .rail { display: flex; align-items: center; }
.step .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--red); background: #fff; }
.step.first .dot { background: var(--red); }
.step .line { flex: 1; height: 2px; background: var(--line); }
.step .t { font-size: 20px; font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.fact { padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; }
.fact .k { font-family: var(--kicker); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--red); text-transform: uppercase; }
.fact .v { display: block; margin-top: 6px; font-size: 17px; font-weight: 700; line-height: 1.5; }

/* ---------- 榮譽會員 ---------- */
.honorary { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 36px; }
.bg { position: absolute; inset: 0; z-index: 0; }
.bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.honorary .bg::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .82); }
.honorary > .wrap { position: relative; z-index: 1; width: 100%; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.hcard { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 8px; background: #fff; border: 1px solid var(--line); transition: border-color .3s; }
.hcard:hover { border-color: var(--red); }
.hcard img { flex: none; width: 84px; height: 84px; border-radius: 6px; object-fit: cover; }
.hcard .txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hcard .bar { width: 22px; height: 2px; background: var(--red); }
.hcard .nm { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hcard .nm b { font-size: 19px; font-weight: 700; }
.hcard .nm span { font-size: 14px; font-weight: 500; color: var(--red); }
.hcard .org { font-size: 14px; line-height: 1.5; }

/* ---------- 活動與賽事 ---------- */
.event-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .event-block { grid-template-columns: 1fr; } }
.event-copy { display: flex; flex-direction: column; gap: 18px; }
.event-copy p { font-size: 16px; line-height: 1.9; color: var(--text); }
.bullets { display: flex; flex-direction: column; gap: 10px; }
.bullets li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.7; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.camp-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.camp-info .fact .v { font-weight: 500; font-size: 15px; }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.feat li { padding: 20px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.feat b { font-size: 17px; }
.feat span { font-size: 14px; color: var(--text); line-height: 1.7; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.video figcaption { margin-top: 8px; font-size: 14px; font-weight: 500; }
.video figure { margin: 0; }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.yt .play span { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; font-size: 28px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted-2); }

/* ---------- 企業合作 ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.split-photo { position: relative; min-height: 420px; }
.split-photo picture, .split-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.split-photo img { object-fit: cover; object-position: 50% 55%; }
.split-copy { display: flex; flex-direction: column; gap: 32px; padding: clamp(48px, 7vw, 96px) var(--pad-x); }
.split-copy .intro { display: flex; flex-direction: column; gap: 10px; }
.split-copy h1 { font-size: clamp(29px, 3.2vw, 42px); line-height: 1.3; }
.split-copy .lead { max-width: 680px; margin-top: 8px; color: #333; }
.split-copy .btns { margin-top: 18px; }
.prow { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--line); }
.prow .ico { width: 30px; height: 30px; color: var(--red); }
.prow .txt { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prow .t { font-size: 22px; font-weight: 700; }
.prow .d { font-size: 15px; line-height: 1.75; }
.prow .ctas { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 4px; }
.prow .ctas a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--red); }
.prow .ctas a:hover { color: var(--red-dark); }
.dark-banner { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 68px) clamp(24px, 5vw, 64px); border-radius: 18px; background: var(--dark); color: #fff; }
.dark-banner::before { content: ""; position: absolute; right: -90px; top: -130px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(194, 26, 34, .2), transparent 72%); pointer-events: none; }
.dark-banner .kicker { color: var(--red-soft); font-weight: 700; letter-spacing: .22em; }
.dark-banner h2 { position: relative; margin: 18px 0 16px; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.2; font-weight: 800; color: #fff; }
.dark-banner p { position: relative; max-width: 790px; color: #E5E7EB; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.85; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; margin-top: 34px; }
.proj { display: flex; flex-direction: column; gap: 13px; min-width: 0; padding: clamp(22px, 3vw, 32px); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 14px; }
.proj img { width: 100%; height: clamp(150px, 15vw, 215px); object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.proj .kicker { font-weight: 700; letter-spacing: .18em; }
.proj h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.4; color: var(--ink-3); }
.proj p { font-size: 16px; line-height: 1.85; color: var(--text-2); }
.closing { max-width: 960px; margin: 36px auto 0; font-size: clamp(17px, 2.1vw, 22px); line-height: 1.65; font-weight: 650; color: #27272A; text-align: center; }
.center { display: flex; justify-content: center; margin-top: 30px; }
.records { display: flex; flex-direction: column; }
.record { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; align-items: center; }
.records .record + .record { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line-2); }
.record .ph { overflow: hidden; border-radius: 12px; background: #F4F4F5; aspect-ratio: 16 / 10; }
.record .ph img { width: 100%; height: 100%; object-fit: cover; }
.record .meta { margin-bottom: 12px; }
.record h3 { font-size: clamp(21px, 2.7vw, 30px); line-height: 1.45; margin-bottom: 14px; color: var(--dark); }
.record p { font-size: 16px; line-height: 1.85; color: var(--muted-3); }
.record .more { margin-top: 14px; }
.sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.sponsor { display: flex; align-items: center; justify-content: center; height: 120px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 17px; font-weight: 700; }

/* ---------- 加入會員 ---------- */
.member { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 40px; min-height: min(calc(100vh - var(--hdr-h)), 720px); }
.member .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .86) 45%, rgba(255, 255, 255, .68) 100%), linear-gradient(0deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .2) 100%); }
.member > :not(.bg) { position: relative; z-index: 1; }
.mcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.mcard { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 8px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid #DFE3EA; box-shadow: 0 8px 30px rgba(22, 31, 45, .07); transition: border-color .3s; }
.mcard:hover { border-color: var(--red); }
.mcard .en { font-family: var(--kicker); font-weight: 600; font-size: 13px; letter-spacing: .22em; color: var(--ink); }
.mcard .t { font-size: 24px; font-weight: 700; color: var(--ink-3); }
.mcard .d { font-size: 15px; line-height: 1.75; flex: 1; }
.mcard .fee { font-size: 15px; font-weight: 700; color: var(--red); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; counter-reset: f; }
.flow li { counter-increment: f; display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; }
.flow li::before { content: counter(f, decimal-leading-zero); font-family: var(--kicker); font-weight: 700; font-size: 28px; color: var(--red); line-height: 1; }
.flow b { font-size: 18px; }
.flow span { font-size: 14px; line-height: 1.7; color: var(--text); }

/* ---------- 最新消息 ---------- */
.ncards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.ncard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); transition: border-color .3s; }
.ncard:hover { border-color: var(--red); color: var(--ink); }
.ncard .ph { aspect-ratio: 16 / 10; overflow: hidden; background: #F4F4F5; }
.ncard .ph img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.ncard .body { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.ncard h3 { font-size: 20px; line-height: 1.5; }
.ncard p { font-size: 15px; line-height: 1.75; color: var(--text); }
.ncard .more { margin-top: auto; padding-top: 6px; color: var(--red); }
.press { border-top: 2px solid var(--ink); }
.press a { display: grid; grid-template-columns: minmax(120px, 180px) 1fr auto; gap: clamp(16px, 3vw, 36px); align-items: center; padding: 26px 4px; border-bottom: 1px solid var(--line-3); color: var(--ink); transition: color .2s, background .2s; }
.press a:hover { color: var(--red); background: var(--bg-soft-2); }
.press .who { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.press .src { font-size: 14px; font-weight: 700; color: var(--red); }
.press .date { font-size: 13px; color: var(--muted); }
.press .title { font-size: clamp(17px, 1.6vw, 22px); font-weight: 650; line-height: 1.55; color: inherit; }
.press .arr { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--ink); color: var(--ink); }
.press a:hover .arr { border-color: var(--red); color: var(--red); }
@media (max-width: 720px) {
  .press a { grid-template-columns: 1fr auto; gap: 12px 16px; padding: 22px 2px; }
  .press .who { grid-column: 1 / 2; }
  .press .title { grid-column: 1 / 2; }
  .press .arr { grid-column: 2 / 3; grid-row: 1 / 3; align-self: center; }
}
.article { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.article-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.article-head h1 { font-size: clamp(26px, 3vw, 40px); line-height: 1.35; }
.article .lead { color: var(--text); }
.article p { font-size: 17px; line-height: 2; }
.article h2 { font-size: 22px; margin-top: 10px; }
.article .ph { overflow: hidden; border-radius: 12px; }
.article .btns { padding-top: 10px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-2); }
.back:hover { color: var(--red); }

/* ---------- 聯絡我們 ---------- */
.contact-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 32px; min-height: min(calc(100vh - var(--hdr-h)), 640px); color: #fff; }
.contact-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34, 16, 16, .94) 0%, rgba(34, 16, 16, .72) 45%, rgba(34, 16, 16, .28) 100%); }
.contact-hero > :not(.bg) { position: relative; z-index: 1; }
.contact-hero .intro { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.contact-hero h1 { font-size: clamp(32px, 4vw, 56px); line-height: 1.2; color: #fff; }
.contact-hero p { font-size: 16px; line-height: 1.85; color: #fff; }
.contact-hero .btn-light .ico { width: 20px; height: 20px; }
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.info-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.info-card .ico-big { margin-bottom: 4px; }
.info-card b { font-size: 18px; }
.info-card p { font-size: 15px; line-height: 1.75; color: var(--text); }
.info-card a { font-weight: 500; }

/* ---------- 頁尾 ---------- */
.ftr { display: flex; flex-direction: column; gap: 36px; padding: 56px var(--pad-x) 32px; border-top: 1px solid #E5E5E5; }
.ftr-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.ftr-brand { display: flex; flex-direction: column; gap: 10px; }
.ftr-logo { width: 140px; }
.ftr-brand strong { font-size: 16px; }
.ftr-brand small { font-size: 13px; color: var(--muted-2); }
.ftr-nav ul { display: grid; grid-template-columns: repeat(2, minmax(110px, auto)); gap: 12px 40px; }
.ftr-nav a { font-size: 14px; color: var(--ink); }
.ftr-nav a:hover { color: var(--red); }
.ftr-contact { display: flex; flex-direction: column; gap: 14px; }
.ftr-contact .kicker { font-size: 13px; letter-spacing: .22em; color: var(--ink); }
.ftr-contact > a { font-size: 15px; color: var(--ink); }
.ftr-contact > a:hover { color: var(--red); }
.social { display: flex; gap: 10px; }
.social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); color: var(--ink); font-size: 20px; }
.social a:hover { border-color: var(--red); color: var(--red); }
.ftr-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, .08); font-size: 13px; color: var(--muted-2); }

/* ---------- 進場動效（僅在允許動態且 JS 啟用時） ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- 列印 ---------- */
@media print {
  .hdr, .ftr .social, .menu-btn, .skip { display: none; }
  .pcard, .wcard { min-height: 0; aspect-ratio: auto; }
}
