/* ==========================================================================
   AI 運籌世代營 2027：網站樣式
   換顏色：只改下面「品牌色」幾行。scrollcraft.css 是捲動引擎的樣式，不要改。
   ========================================================================== */

:root {
  /* ---- 品牌色 ---- */
  --navy:      #0B1A2C;   /* 深色章節底色 */
  --navy-deep: #081422;   /* 「給你」章節底色 */
  --paper:     #F1F3F5;   /* 淺色章節底色 */
  --red:       #C8323D;   /* 按鈕底色（成大紅） */
  --red-on-dark:  #F07A83;  /* 深色底上的強調字 */
  --red-on-paper: #B5222D;  /* 淺色底上的強調字 */
  --line-cyan: #6FC7EA;   /* 地圖、路線的線條色 */

  /* scrollcraft 的六個顏色角色（深色底） */
  --sc-canvas: var(--navy);
  --sc-surface: #12263D;
  --sc-ink: #EEF2F6;
  --sc-ink-soft: #A9B7C8;
  --sc-accent: var(--red-on-dark);
  --sc-accent-ink: var(--navy);
  --sc-shadow-color: 214 60% 4%;

  --sc-font-display: "Archivo", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --sc-font-text: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;

  --folio: 0rem;
  --pad-l: calc(var(--sc-gutter) + var(--folio));
  --dock-h: 0px;
}
@media (min-width: 1100px) { :root { --folio: 8.5rem; } }
@media (max-width: 899px)  { :root { --dock-h: 68px; } }

body { line-height: 1.7; letter-spacing: 0.01em; }
html { scroll-padding-top: 1rem; }

/* 章節底色：每一章一個顏色，直接切換，不漸變 */
.ch { position: relative; background: var(--sc-canvas); color: var(--sc-ink); }
.ch--dark  { --sc-canvas: var(--navy); }
.ch--deep  { --sc-canvas: var(--navy-deep); }
.ch--paper {
  --sc-canvas: var(--paper); --sc-surface: #FFFFFF;
  --sc-ink: #0F1B2A; --sc-ink-soft: #4A5868;
  --sc-accent: var(--red-on-paper); --sc-accent-ink: #FFFFFF;
  --sc-shadow-color: 214 30% 40%;
  color: var(--sc-ink);
}
.ch :focus-visible { outline-color: var(--sc-accent); }
em { font-style: normal; color: var(--sc-accent); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- 按鈕 -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .6em 1.3em; border-radius: 10px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), border-color 160ms, color 160ms;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--accent { background: var(--red); color: #fff; box-shadow: 0 2px 4px hsl(355 60% 20% / .25), 0 10px 22px -8px hsl(355 70% 35% / .55); }
@media (hover: hover) and (pointer: fine) { .btn--accent:not(:disabled):hover { background: #A8262F; } }
.btn--ghost { background: transparent; color: var(--sc-ink); border-color: color-mix(in oklab, var(--sc-ink) 30%, transparent); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { border-color: var(--sc-ink); } }
.btn--lg { min-height: 54px; font-size: 1.08rem; padding: .7em 1.6em; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--sc-accent); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform 160ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover::after { transform: translateX(4px); } }
.linkbtn { background: none; border: 0; padding: 0; font-weight: 700; color: var(--sc-accent); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }

/* 依身分顯示 */
[data-for] { transition: opacity 180ms var(--sc-ease-out); }
body[data-role="student"] [data-for="teacher"],
body[data-role="teacher"] [data-for="student"] { display: none !important; }

/* --------------------------------------------------- 身分切換（簽名互動） -- */
.role {
  display: inline-flex; padding: 3px; border-radius: 12px;
  background: color-mix(in oklab, var(--sc-ink) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--sc-ink) 16%, transparent);
}
.role button {
  min-height: 38px; padding: 0 .95em; border: 0; border-radius: 9px; background: transparent;
  color: var(--sc-ink-soft); font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: background-color 180ms var(--sc-ease-out), color 180ms var(--sc-ease-out);
}
.role button[aria-checked="true"] { background: var(--sc-ink); color: var(--sc-canvas); }
@media (hover: hover) and (pointer: fine) { .role button[aria-checked="false"]:hover { color: var(--sc-ink); } }
.role--inline { align-items: center; }
.role__label { padding: 0 .6em 0 .7em; font-size: .9rem; color: var(--sc-ink-soft); }

/* 右上（桌機）／底部（手機）的切換列 */
.dock {
  position: fixed; z-index: 70; display: flex; align-items: center; gap: .6rem;
  top: 1.1rem; right: var(--sc-gutter);
  padding: 6px; border-radius: 16px;
  background: color-mix(in oklab, var(--navy) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(238, 242, 246, .14);
  box-shadow: var(--sc-e2);
  --sc-ink: #EEF2F6; --sc-ink-soft: #A9B7C8; --sc-canvas: var(--navy);
  transition: opacity 240ms var(--sc-ease-out), transform 240ms var(--sc-ease-out);
}
.dock .btn { min-height: 38px; padding: .4em 1.05em; font-size: .95rem; }
body.at-hero .dock { opacity: 0; transform: translateY(-8px); pointer-events: none; }
@media (max-width: 899px) {
  .dock {
    top: auto; bottom: 0; left: 0; right: 0; border-radius: 16px 16px 0 0;
    justify-content: space-between; padding: 10px var(--sc-gutter) calc(10px + env(safe-area-inset-bottom));
  }
  .dock .btn { min-height: 44px; }
  .dock .role button { min-height: 40px; }
  body.at-hero .dock { transform: translateY(100%); }
  body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------- 左側章節目錄 -- */
.folio { display: none; }
@media (min-width: 1100px) {
  .folio {
    display: flex; flex-direction: column; gap: 1.6rem;
    position: fixed; z-index: 60; top: 1.6rem; left: var(--sc-gutter); width: calc(var(--folio) - 1.5rem);
    color: #EEF2F6; transition: color 240ms var(--sc-ease-out);
  }
  body[data-ground="paper"] .folio { color: #0F1B2A; }
  .folio__mark { font-weight: 900; font-size: .95rem; letter-spacing: .04em; text-decoration: none; line-height: 1.3; }
  .folio__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
  .folio__list a {
    position: relative; display: block; padding: .35rem 0 .35rem .9rem;
    font-size: .88rem; text-decoration: none; opacity: .55; transition: opacity 160ms;
  }
  .folio__list a::before { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 0; translate: 0 -50%; background: var(--red); transition: height 220ms var(--sc-ease-out); }
  .folio__list a:hover { opacity: .85; }
  .folio__list a[aria-current="true"] { opacity: 1; font-weight: 700; }
  .folio__list a[aria-current="true"]::before { height: 1.1em; }
  body.at-hero .folio__list { opacity: .9; }
}

/* ============================================================ 1 標題頁 == */
.hero__stage { background: var(--navy); }
.hero__plane { position: absolute; inset: -6% -4%; pointer-events: none; }
.depth { position: absolute; inset: 0; transform: translate3d(calc(var(--mx, 0) * var(--d, 0) * 1px), calc(var(--my, 0) * var(--d, 0) * 1px), 0); transition: transform 600ms var(--sc-ease-out); }
.hero__streets, .hero__route { width: 100%; height: 100%; }
.hero__plane--back { opacity: .9; filter: blur(.4px); }
.hero__plane--back .st { stroke: rgba(150, 185, 215, .12); stroke-width: 1.2; }
.hero__plane--back .blk { fill: rgba(150, 185, 215, .035); }
.hero__route .rt-base { fill: none; stroke: rgba(111, 199, 234, .28); stroke-width: 2; }
.hero__route .rt-best {
  fill: none; stroke: var(--red-on-dark); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: clamp(0, calc(1 - var(--sc-p, 0) * 2.2 - .18), 1);
}
.hero__route .nd { fill: var(--navy); stroke: var(--line-cyan); stroke-width: 2.2; }
.hero__route .nd--home { fill: var(--line-cyan); stroke: rgba(111, 199, 234, .3); stroke-width: 10; }
/* 文字一側用遮罩讓街道淡掉，不蓋整片暗色 */
.hero__plane--back, .hero__plane--mid {
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 30%, #000 62%);
          mask-image: linear-gradient(100deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 30%, #000 62%);
}
.hero__plane--front { z-index: 25; }
.bokeh { position: absolute; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(111,199,234,.55), rgba(111,199,234,.12) 60%, transparent 70%); filter: blur(10px); }
.bokeh--a { width: 150px; height: 150px; right: 8%; bottom: -2%; }
.bokeh--b { width: 70px; height: 70px; right: 34%; bottom: 8%; filter: blur(6px); opacity: .7; }
.bokeh--c { width: 220px; height: 220px; left: 62%; top: -6%; opacity: .45; filter: blur(16px); }

.hero__copy {
  position: absolute; z-index: 20; left: var(--pad-l); right: var(--sc-gutter);
  top: 50%; translate: 0 -54%;
  transform: translate3d(0, calc(var(--sc-p, 0) * -6vh), 0) scale(calc(1 - var(--sc-p, 0) * .05));
  transform-origin: left center;
  opacity: calc(1 - max(0, var(--sc-p, 0) - .55) * 2.2);
}
.hero__kicker { display: flex; flex-wrap: wrap; gap: .5em; margin: 0 0 1.4rem; font-size: clamp(.92rem, .85rem + .3vw, 1.1rem); color: var(--sc-ink-soft); }
.hero__kicker strong { color: var(--sc-ink); font-weight: 700; }
.hero__title {
  margin: 0; font-family: var(--sc-font-display); font-weight: 900;
  font-size: clamp(3.2rem, 1.6rem + 7.4vw, 8.4rem); line-height: 1.02; letter-spacing: -.01em;
}
.hero__title em { color: var(--red-on-dark); }
.hero__lede { display: grid; gap: .35rem; margin: 1.6rem 0 0; }
.hero__pair { font-weight: 900; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); letter-spacing: .04em; line-height: 1.2; }
.hero__role { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); color: var(--sc-ink-soft); max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; margin-top: 2.2rem; }
.hero__beat {
  position: absolute; z-index: 20; right: var(--sc-gutter); bottom: clamp(2rem, 9vh, 5rem);
  max-width: 17em; margin: 0; text-align: right; font-weight: 700; font-size: clamp(1rem, .9rem + .5vw, 1.3rem);
}
@media (min-width: 900px) { .hero__br { display: none; } }
@media (max-width: 699px) {
  .hero__copy { top: auto; bottom: calc(1.6rem + env(safe-area-inset-bottom)); translate: none; }
  .hero__kicker { margin-bottom: 1rem; }
  .hero__title { font-size: clamp(3rem, 15vw, 4.2rem); }
  .hero__actions { margin-top: 1.5rem; }
  .hero__actions .btn--lg { width: 100%; }
  .hero__beat { top: 4.5rem; bottom: auto; right: var(--sc-gutter); left: var(--sc-gutter); text-align: left; font-size: .98rem; }
  .hero__plane--back, .hero__plane--mid { -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.4) 40%, #000 70%); mask-image: linear-gradient(0deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.4) 40%, #000 70%); }
}

/* ============================================================== 2 運籌 == */
#yunchou { padding: 0 var(--sc-gutter) var(--sc-section) var(--pad-l); }
.intertitle { min-height: 92svh; display: grid; align-content: center; gap: 1.4rem; padding-top: var(--sc-section); }
.intertitle__word { line-height: 1; padding: .08em 0; }
.intertitle__word p { margin: 0; font-weight: 900; font-size: clamp(6rem, 3rem + 16vw, 17rem); line-height: 1; letter-spacing: .02em; color: var(--red-on-paper); }
.intertitle__def { margin: 0; max-width: 22em; font-size: clamp(1.3rem, 1rem + 1.4vw, 2.2rem); font-weight: 700; line-height: 1.5; }

.puzzle {
  display: grid; gap: var(--sc-7) var(--sc-8); align-items: start;
  grid-template-columns: minmax(0, 1fr); padding-top: var(--sc-7);
}
@media (min-width: 960px) { .puzzle { grid-template-columns: minmax(18rem, 5fr) minmax(0, 7fr); } }
.puzzle__title { margin: 0 0 1rem; font-weight: 900; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.15; }
.puzzle__brief { margin: 0; max-width: 26em; color: var(--sc-ink-soft); font-size: 1.05rem; }
.puzzle__brief strong { color: var(--sc-ink); }
.puzzle__picked { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.4rem 0 0; padding: 0; min-height: 2.2rem; counter-reset: pk; }
.puzzle__picked li { counter-increment: pk; display: inline-flex; align-items: center; gap: .4em; padding: .2em .75em .2em .35em; border-radius: 8px; background: #fff; box-shadow: var(--sc-e1); font-size: .92rem; font-weight: 500; }
.puzzle__picked li::before { content: counter(pk); display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 6px; background: #0F1B2A; color: #fff; font-family: "Archivo", sans-serif; font-size: .8rem; font-weight: 700; }
.puzzle__result { margin-top: 1.2rem; min-height: 1.6em; font-size: 1.05rem; }
.puzzle__result .big { display: block; font-family: var(--sc-font-display); font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.puzzle__result .big em { color: var(--red-on-paper); }
.puzzle__result .small { display: block; color: var(--sc-ink-soft); margin-top: .3rem; }
.puzzle__controls { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

.puzzle__map { margin: 0; }
.puzzle__map figcaption { margin-top: .8rem; font-size: .88rem; color: var(--sc-ink-soft); }
.map {
  position: relative; aspect-ratio: 420 / 330; border-radius: 16px; overflow: hidden;
  background: #FFFFFF; box-shadow: var(--sc-e3), inset 0 0 0 1px rgba(15, 27, 42, .06);
}
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .blk { fill: #E8ECF0; }
.map .st { stroke: #FFFFFF; stroke-width: 8; }
.map .r-user { fill: none; stroke: #0F1B2A; stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 7 6; opacity: .75; }
.map .r-best { fill: none; stroke: var(--red-on-paper); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.map .r-best.is-drawn { transition: stroke-dashoffset 1400ms var(--sc-ease-in-out); stroke-dashoffset: 0; }
.stop {
  position: absolute; translate: -50% -50%; z-index: 2;
  display: grid; justify-items: center; gap: 2px;
  min-width: 48px; min-height: 48px; padding: 0; border: 0; background: none; cursor: pointer; color: #0F1B2A;
}
.stop__dot {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 2.5px solid #0F1B2A; box-shadow: var(--sc-e2);
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: .95rem;
  transition: transform 160ms var(--sc-ease-out), background-color 160ms, color 160ms;
}
.stop__name { position: absolute; top: calc(100% - 4px); white-space: nowrap; font-size: .82rem; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .92); }
.stop[aria-pressed="true"] .stop__dot { background: #0F1B2A; color: #fff; }
@media (hover: hover) and (pointer: fine) { .stop:not(:disabled):hover .stop__dot { transform: scale(1.1); } }
.stop:active .stop__dot { transform: scale(.94); }
.stop:disabled { cursor: default; }
.stop--home .stop__dot { width: 40px; height: 40px; background: var(--red); border-color: var(--red); color: #fff; font-size: .78rem; }
.stop--home { cursor: default; }
@media (max-width: 599px) {
  .stop__dot { width: 30px; height: 30px; font-size: .85rem; }
  .stop--home .stop__dot { width: 34px; height: 34px; }
  .stop__name { font-size: .72rem; }
}

.puzzle__lesson { grid-column: 1 / -1; max-width: 40rem; margin-top: var(--sc-5); font-size: 1.1rem; }
.puzzle__lesson p { margin: 0 0 1rem; }
.puzzle__lesson-strong { font-weight: 900; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.35; }
.puzzle__lesson:not([hidden]) { animation: lessonIn 520ms var(--sc-ease-out) both; }
@keyframes lessonIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================== 3 管理 == */
.days__stage { display: flex; align-items: center; background: var(--navy); }
.days__rail { align-items: stretch; gap: clamp(2rem, 4vw, 5rem); padding: 0 var(--sc-gutter) 0 var(--pad-l); }
.plate { flex: 0 0 auto; width: clamp(17rem, 30vw, 25rem); display: flex; flex-direction: column; justify-content: center; }
.plate--lead { width: clamp(19rem, 38vw, 34rem); }
.plate__headline { margin: 0 0 1.2rem; font-weight: 900; font-size: clamp(2.2rem, 1.4rem + 3vw, 4.2rem); line-height: 1.12; }
.plate__headline em { color: var(--red-on-dark); }
.plate__def { margin: 0; color: var(--sc-ink-soft); font-size: 1.08rem; max-width: 24em; }
.plate--day { padding-top: 1.2rem; border-top: 1px solid rgba(238, 242, 246, .2); align-self: center; }
.plate--day:nth-of-type(odd) { transform: translateY(2.5rem); }
.plate--day:nth-of-type(even) { transform: translateY(-2.5rem); }
.plate__glyph { display: block; font-weight: 900; font-size: clamp(5.5rem, 3rem + 8vw, 10rem); line-height: 1; color: var(--sc-ink); margin-bottom: .6rem; }
.plate--day:nth-of-type(3n) .plate__glyph { color: var(--red-on-dark); }
.plate__tag { font-family: "Archivo", "Noto Sans TC", sans-serif; font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--line-cyan); }
.plate__title { margin: .2rem 0 .5rem; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 900; line-height: 1.3; }
.plate__text { margin: 0; color: var(--sc-ink-soft); font-size: 1rem; }
.plate--end { width: clamp(16rem, 24vw, 20rem); gap: 1.2rem; }
.plate__note { margin: 0; font-size: 1.15rem; font-weight: 500; }
.link-arrow--light { color: var(--red-on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .plate--day { opacity: clamp(.55, calc(.4 + var(--sc-p, 0) * 3), 1); }
}
@media (max-width: 699px) {
  .plate { width: 80vw; }
  .plate--lead { width: 86vw; }
  .plate--day:nth-of-type(n) { transform: none; }
}

/* ============================================================ 4 第一屆 == */
.first { padding: var(--sc-section) var(--sc-gutter) var(--sc-section) var(--pad-l); }
.first__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 3rem; margin-bottom: var(--sc-7); }
.first__title { margin: 0; font-weight: 900; font-size: clamp(2.2rem, 1.4rem + 3vw, 4.2rem); line-height: 1.12; }
.first__dates { margin: 0; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.first__grid { display: grid; gap: var(--sc-7); align-items: start; }
@media (min-width: 960px) { .first__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--sc-8); } }
.first__media { padding: 4px; margin: -4px; }
.video {
  position: relative; display: flex; align-items: flex-end; gap: 1.2rem; aspect-ratio: 16 / 10;
  padding: clamp(1.2rem, 3vw, 2.2rem); border-radius: 16px; overflow: hidden; color: #EEF2F6; text-decoration: none;
  background:
    radial-gradient(70% 90% at 70% 30%, rgba(111, 199, 234, .28), transparent 70%),
    linear-gradient(150deg, #12263D, #081422);
  box-shadow: var(--sc-e3);
}
.video::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(238,242,246,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(238,242,246,.05) 1px, transparent 1px); background-size: 44px 44px; }
.video__play { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red); box-shadow: 0 6px 18px -4px rgba(200, 50, 61, .7); transition: transform 180ms var(--sc-ease-out); }
.video__play::after { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
@media (hover: hover) and (pointer: fine) { .video:hover .video__play { transform: scale(1.06); } }
.video__text { position: relative; display: grid; gap: .1rem; }
.video__text strong { font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); }
.video__text small { color: #A9B7C8; }
.programme { list-style: none; margin: 0; padding: 0; }
.programme li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .2rem 1rem; padding: .8rem 0; border-top: 1px solid rgba(15, 27, 42, .12); }
.programme li:last-child { border-bottom: 1px solid rgba(15, 27, 42, .12); }
.programme .d { font-family: "Archivo", sans-serif; font-weight: 700; font-size: .82rem; letter-spacing: .06em; color: var(--red-on-paper); padding-top: .2rem; }
.programme .t { font-weight: 700; line-height: 1.5; }
.programme .w { grid-column: 2; font-size: .9rem; color: var(--sc-ink-soft); }
.first__photos { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); margin-top: var(--sc-7); }
.first__photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

/* ============================================================== 5 給你 == */
.foryou { padding: var(--sc-section) var(--sc-gutter) var(--sc-section) var(--pad-l); }
.foryou__inner { display: grid; gap: var(--sc-7); }
.foryou__panel { display: grid; gap: var(--sc-6) var(--sc-8); align-items: start; }
@media (min-width: 960px) { .foryou__panel { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.foryou__who { margin: 0 0 1rem; font-weight: 700; color: var(--line-cyan); letter-spacing: .06em; }
.foryou__headline { margin: 0; font-weight: 900; font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4.4rem); line-height: 1.16; text-wrap: balance; }
.foryou__headline em { color: var(--red-on-dark); }
.foryou__desc { margin: 1.2rem 0 0; color: var(--sc-ink-soft); max-width: 28em; }
.gains { list-style: none; margin: 0; padding: 0; counter-reset: g; }
.gains li { counter-increment: g; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .8rem; padding: 1.05rem 0; border-top: 1px solid rgba(238, 242, 246, .14); font-size: 1.1rem; font-weight: 500; }
.gains li::before { content: "0" counter(g); font-family: "Archivo", sans-serif; font-weight: 800; color: var(--red-on-dark); font-variant-numeric: tabular-nums; }
.gains li.is-key { font-weight: 900; }
.foryou__swap { margin: var(--sc-7) 0 0; color: var(--sc-ink-soft); }
.foryou__swap .linkbtn { margin-left: .4em; color: var(--red-on-dark); }
.foryou__panel.is-swapping { animation: swapIn 320ms var(--sc-ease-out); }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================== 6 報名 == */
.close { padding: var(--sc-section) var(--sc-gutter) 0 var(--pad-l); }
.close__cta { padding: .05em 0; }
.close__line {
  display: inline-flex; align-items: baseline; gap: .25em;
  font-weight: 900; font-size: clamp(3.4rem, 1.8rem + 7vw, 8rem); line-height: 1.05;
  color: var(--sc-ink); text-decoration: none; border-bottom: .06em solid var(--red-on-paper); padding-bottom: .04em;
}
.close__arrow { color: var(--red-on-paper); font-family: "Archivo", sans-serif; transition: transform 200ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .close__line:hover .close__arrow { transform: translateX(.12em); } }
.close__line:active { transform: translateY(1px); }
.close__form { margin: 1.4rem 0 0; font-size: 1.1rem; color: var(--sc-ink-soft); max-width: 36em; }
.close__form strong { color: var(--sc-ink); }

.steps { list-style: none; margin: var(--sc-8) 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; max-width: 56rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sc-6); } }
.steps li { counter-increment: s; padding: 1rem 0; border-top: 2px solid #0F1B2A; }
.steps li::before { content: counter(s); display: block; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--red-on-paper); line-height: 1.2; }
.steps h3 { margin: .3rem 0 .2rem; font-size: 1.15rem; font-weight: 900; }
.steps p { margin: 0; font-size: .95rem; color: var(--sc-ink-soft); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin: var(--sc-7) 0 0; max-width: 56rem; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts dt { font-size: .85rem; color: var(--sc-ink-soft); }
.facts dd { margin: .1rem 0 0; font-weight: 700; }
.tbd { font-weight: 500; color: var(--sc-ink-soft); }
.hl { color: var(--red-on-paper); font-weight: 900; }

.colophon { margin-top: var(--sc-9); max-width: 56rem; border-top: 1px solid rgba(15, 27, 42, .16); }
.fold { border-bottom: 1px solid rgba(15, 27, 42, .16); }
.fold summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; min-height: 44px; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; font-family: "Archivo", sans-serif; font-size: 1.4rem; font-weight: 500; color: var(--red-on-paper); transition: transform 200ms var(--sc-ease-out); }
.fold[open] summary::after { transform: rotate(45deg); }
.fold__body { padding: 0 0 1.6rem; font-size: .95rem; }
.fold__body h4 { margin: 1.2rem 0 .4rem; font-size: .95rem; }
.fold__body h4:first-child { margin-top: 0; }
.sched { list-style: none; margin: 0; padding: 0; }
.sched li { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: .8rem; padding: .3rem 0; }
.sched .tm { font-family: "Archivo", sans-serif; font-variant-numeric: tabular-nums; color: var(--sc-ink-soft); font-size: .88rem; }
.sched .sp { color: var(--sc-ink-soft); font-size: .88rem; }
.speakers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .6rem 1.5rem; }
.speakers strong { display: block; }
.speakers span { font-size: .88rem; color: var(--sc-ink-soft); }
.qa { margin: 0 0 1.1rem; }
.qa dt { font-weight: 700; }
.qa dd { margin: .2rem 0 0; color: var(--sc-ink-soft); }
.privacy { margin: 1rem 0 0; display: grid; gap: .8rem; }
.privacy dt { font-weight: 700; }
.privacy dd { margin: .1rem 0 0; color: var(--sc-ink-soft); }

.foot { display: grid; gap: .3rem 2rem; padding: var(--sc-8) 0 var(--sc-7); font-size: .88rem; color: var(--sc-ink-soft); }
@media (min-width: 900px) { .foot { grid-template-columns: auto auto auto 1fr; } .foot__copy { text-align: right; } }
.foot p { margin: 0; }
.foot__mark { font-weight: 900; color: var(--sc-ink); }
.foot a { color: var(--sc-ink); }

/* ------------------------------------------------------------- 提示訊息 -- */
.toast {
  position: fixed; z-index: 200; left: 50%; bottom: calc(var(--dock-h) + 20px + env(safe-area-inset-bottom));
  width: max-content; max-width: calc(100vw - 2rem); padding: .8rem 1.2rem; border-radius: 12px;
  background: #0F1B2A; color: #fff; font-size: .95rem; box-shadow: var(--sc-e3);
  translate: -50% 14px; opacity: 0; pointer-events: none;
  transition: opacity 220ms var(--sc-ease-out), translate 220ms var(--sc-ease-out);
}
.toast.is-show { opacity: 1; translate: -50% 0; }
.noscript { position: fixed; inset: auto 0 0 0; z-index: 400; margin: 0; padding: 12px; background: #FFF3CD; color: #664D03; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .depth { transform: none !important; }
  .hero__copy { transform: none; opacity: 1; }
  .hero__route .rt-best { stroke-dashoffset: 0; }
  .map .r-best.is-drawn { transition: none; }
}
.stop--low .stop__name { top: auto; bottom: calc(100% - 4px); }

/* 高中教師選項旁的「免報名費」標示（招募教師的亮點） */
.role button[data-role-pick="teacher"] { display: inline-flex; align-items: center; gap: .45em; }
.role__free {
  display: inline-flex; align-items: center; padding: .12em .5em; border-radius: 6px;
  background: var(--red); color: #fff; font-weight: 900; font-size: 1em; line-height: 1.35; letter-spacing: .02em;
  box-shadow: 0 2px 6px -2px hsl(355 70% 30% / .6);
}
.hero .role button { min-height: 44px; font-size: 1rem; }
@media (max-width: 899px) {
  .dock .role button[data-role-pick="teacher"] { flex-direction: column; gap: 2px; padding: 4px .8em; min-height: 52px; }
  .dock .role__free { font-size: .9rem; padding: 0 .45em; }
}
@media (max-width: 699px) {
  /* 手機：前景光點移到上方，不蓋住標題下方的按鈕 */
  .bokeh--a { top: 6%; bottom: auto; right: -8%; }
  .bokeh--b { top: 30%; bottom: auto; right: 12%; }
}
