/* =========================================================
   全站樣式 style.css
   RWD 的關鍵：用 @media 設定「螢幕小於某個寬度時」要怎麼排
   本站使用三個斷點：960px（平板）、760px（手機橫）、520px（手機）
   ========================================================= */

/* ---------- 0. 顏色與字體（改這裡就能改全站） ---------- */
:root {
  --ink: #000000;      /* 主要文字 */
  --navy: #1C2F6B;     /* 日期、說明文字 */
  --blue: #3F5FE0;     /* 主視覺的寶藍 */
  --sky: #4A90D9;      /* 按鈕、行程區背景 */
  --label: #5A9BE0;    /* 小標籤 */
  --orange: #CF6330;   /* 重要日期區背景 */
  --mist: #F1F4F9;     /* 淺灰藍背景 */
  --line: #CDD5E3;     /* 輸入框、分隔線（帶一點藍） */
  --tint: #EEF3FC;     /* 被選取、提示的淡藍底 */
  --venue: #102050;    /* 行程區的地點文字 */

  --sans: "Helvetica Neue", Helvetica, Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Courier New", monospace;

  --header-h: 64px;
}

/* ---------- 1. 基本設定 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 { font-weight: 400; margin: 0; }
h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);   /* clamp(最小, 隨螢幕變化, 最大) */
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* 內容寬度上限，左右留白會隨螢幕縮放 */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section {
  padding: clamp(56px, 8vw, 112px) 0;
  scroll-margin-top: var(--header-h);    /* 點導覽連結時，不會被頁首擋住 */
}

/* 藍色小標：字級和內文一樣（15px），用顏色區分層次，不用大小 */
.label {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  color: var(--label);
  margin: 0 0 8px;
}

/* ---------- 2. 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-width: 190px;
  padding: 12px 18px;
  background: var(--sky);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.btn::after {                 /* 按鈕右邊的小圓點 */
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.btn:hover { background: var(--blue); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }

/* ---------- 3. 頁首 ---------- */
.site-header {
  position: sticky;           /* 往下捲時固定在最上方 */
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo { display: block; text-decoration: none; }
.logo img { width: auto; height: 40px; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a { font-size: 14px; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-register {
  background: var(--sky);
  color: #fff;
  padding: 8px 16px;
}
.menu-toggle {
  display: none;
  font: inherit;
  font-size: 14px;
  background: none;
  border: 1px solid var(--ink);
  padding: 6px 14px;
  cursor: pointer;
}

/* ---------- 4. 主視覺 Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(600px, calc(100vh - var(--header-h)), 880px);
  overflow: hidden;
}
.hero > .wrap { width: 100%; }

/* 主視覺圖（首頁上方與 Ready to Join 共用） */
.art canvas,
.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 左側漸漸淡出，避免線條壓到文字 */
.art {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%);
          mask-image: linear-gradient(to right, transparent 0, #000 40%);
}

.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
}
.hero-art img { object-position: right 75%; }   /* 顯示主視覺下半部的藍色波浪 */

/* 日期組：參考布旗 */
.date-lockup {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.date-lockup p { margin: 0; }
.year {
  display: flex;
  flex-direction: column;
  padding-right: 20px;
  border-right: 1px solid var(--ink);
  font-size: clamp(2.75rem, 4.5vw, 4rem);
  line-height: 0.92;
}
.year span:last-child { color: var(--blue); }
.date-detail { display: flex; flex-direction: column; justify-content: flex-end; }
.month { font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1; }
.days { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; color: var(--blue); }
.place { margin-top: 6px !important; font-size: 13px; font-weight: 700; }

.hero-text {
  position: relative;
  z-index: 1;
  width: min(560px, 48%);
  padding: 48px 0 56px;
}
.kicker {
  margin: 0 0 16px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}
.hero h1 {
  margin-bottom: 32px;
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.lead {
  max-width: 500px;
  margin: 40px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--navy);
  color: var(--navy);
  font-size: 15px;
}

/* ---------- 4.5 活動簡介（主視覺下方：標語＋兩段說明） ---------- */
.intro {
  padding: clamp(36px, 4.5vw, 56px) 0 clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--ink);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.intro .label { margin-bottom: 12px; }
.tagline {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.tagline span { display: block; }
.tagline span:last-child { color: var(--blue); }
.intro-blocks { display: grid; gap: 28px; }
.intro-block p {
  max-width: 58ch;
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 15px;
}

/* 區塊大標題下方的副標與導言（Why Join、Ready to Join 共用） */
.section-sub {
  max-width: 760px;        /* 夠寬就排成一行，不夠才換行 */
  margin: 16px 0 0;
  color: var(--blue);
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.4;
  text-wrap: balance;      /* 換行時讓每一行長度接近，不會只剩幾個字落單 */
}
.section-sub span { display: inline-block; }   /* 中文：一個逗號一段，整段一起換行 */
.section-intro {
  max-width: 760px;
  margin: 24px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--navy);
  color: var(--navy);
  font-size: 15px;
}

/* ---------- 5. 為什麼參加 ---------- */
.why { background: var(--mist); }
.why h2 { max-width: 22ch; }
.section-head { margin-bottom: clamp(48px, 5vw, 64px); }

.why-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;     /* 左邊四點說明，右邊照片 */
  gap: 48px;
}
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.why-item h3 {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 1rem;
}
.why-item .num { color: var(--sky); }
.why-item p {
  max-width: 36ch;
  margin: 0 0 0 calc(3ch + 16px);
  font-size: 15px;
}
.why-photo {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #D6E3F3;
}
/* 照片輪播：所有照片疊在一起，只有 is-active 那張看得到，切換時淡入淡出 */
.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.slideshow .slide.is-active { opacity: 1; }
/* 底部加一點漸層，讓小圓點在任何照片上都看得清楚 */
.slideshow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
}
.slide-dots {
  z-index: 1;
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  gap: 4px;
}
.slide-dot {
  width: 28px;          /* 好按的範圍 */
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.slide-dot::before {    /* 實際看到的小圓點 */
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.slide-dot.is-active::before { background: #fff; transform: scale(1.3); }
.slide-dot:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) {
  .slideshow .slide { transition: none; }
}
/* 區塊最下方的一句話（藍色） */
.statement {
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  color: var(--blue);
  font-size: clamp(1.2rem, 2vw, 1.5rem);   /* 這句話的大小：想再大或再小改最後一個數字 */
  line-height: 1.3;
}
.statement span {         /* 第二行小字（lang 檔的 why_statement 第二格有填才會出現） */
  display: block;
  margin-top: 14px;
  color: var(--navy);
  font-size: 15px;
  letter-spacing: 0;
}

/* 編號清單（引導問題、你將實際參與）：藍色編號＋細線 */
.num-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.num-list.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.num-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}
.num-list .num {
  flex: none;
  font-family: var(--mono);
  color: var(--sky);
}

/* ---------- 6. 講者 ---------- */
/* 左：三方領域示意圖，右：引導問題 */
.voices {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 32px 72px;
  align-items: start;
  margin-bottom: clamp(48px, 5vw, 64px);
}
.sectors { margin: 0; }
.sectors-svg { display: block; width: 100%; max-width: 400px; margin-top: 16px; }
.sector-name   { font-size: 15px; font-weight: 700; }
.sector-note   { font-size: 12px; fill: var(--navy); }
.sector-center { font-size: 11px; fill: var(--ink); }

/* 藍色小標（上方有一條短線）：字級和內文一樣，用顏色區分 */
.group-label {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--label);
}
.group-label::before {       /* 標籤上方的短線 */
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin-bottom: 12px;
  background: var(--label);
}

/* 主題領域：左主題、右說明，一列一項 */
.themes {
  list-style: none;
  margin: 16px 0 40px;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.themes li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px 32px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}
.themes strong { font-weight: 400; }
.themes span { color: var(--navy); }

/* 講者頭像（講者內頁） */
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mist);
  color: #777;
  font-family: var(--mono);
  font-size: 12px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 100%; height: 100%; fill: #C9D3E4; }    /* 沒有照片時的人形圖示 */

/* ---------- 7. 報名呼籲 ---------- */
.join { border-top: 1px solid var(--ink); scroll-margin-top: var(--header-h); }

/* 上半：標題、導言、按鈕＋右側主視覺 */
.join-top {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px);
}
.join-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: url("../images/keyvisual.png") no-repeat;
  background-size: 220% auto;      /* 放大倍數：數字越大，線條越大 */
  background-position: 55% 36%;    /* 左右位置、上下位置：改這兩個數字就能移動 */
  /* 左半邊淡出得更多，讓文字可以往右排、不被線條干擾 */
  -webkit-mask-image: linear-gradient(to right, transparent 25%, #000 70%);
          mask-image: linear-gradient(to right, transparent 25%, #000 70%);
}
.join-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;        /* 文字欄寬：副標與導言盡量排成一行 */
  color: var(--navy);
  font-size: 15px;
}
.join-inner p { margin: 20px 0 0; }
.join-inner .btn { margin-top: 32px; }

/* 下半：你將實際參與／你將帶走什麼 */
.join-details {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px 64px;
  padding: 40px 0 clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--line);
}
.join-details .num-list { margin-top: 16px; }
.join-take { margin: 16px 0 0; color: var(--navy); font-size: 15px; }
.join-core {
  margin: 28px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.8;
}
.join-core b { display: block; font-weight: 400; color: var(--label); }
.join-core span { display: inline-block; }
.join-core span + span::before { content: "｜"; margin: 0 6px; color: var(--label); }

/* ---------- 8. 一週行程 ---------- */
.schedule { background: #E3F0FC; color: var(--ink); }   /* 淺藍底：讓總覽表的顏色看得清楚 */
.schedule-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;                /* 右邊的說明對齊標題區的底部，不會浮在上面 */
  padding-bottom: 28px;
  border-bottom: 1px solid var(--navy);
}
.schedule .section-sub { color: var(--navy); }
.schedule-intro { margin: 0; font-size: 15px; }

/* 五個階段：UNDERSTAND → DESIGN → … */
.pathway {
  margin: 8px 0 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.pathway span { display: block; font-family: var(--sans); letter-spacing: 0; color: var(--venue); }
.pathway b { font-weight: 400; white-space: nowrap; }   /* 每個階段的字不拆行 */

.schedule-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);   /* 五天：左欄三天、右欄兩天 */
  grid-auto-flow: column;           /* 先排滿左欄，再排右欄 */
  column-gap: 24px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.day {
  display: grid;
  grid-template-columns: 150px 1fr;
  margin-bottom: 10px;
  background: #fff;
}
/* 左邊：當天代表色的日期塊 */
.day-mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  background: var(--c);
  color: var(--cf);
  text-decoration: none;
}
.day-mark time { font-family: var(--mono); font-size: 17px; line-height: 1.3; }
.day-mark time span { display: block; font-size: 13px; }
.day-stage { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; white-space: nowrap; opacity: 0.9; }
.day > div { align-self: center; padding: 16px 20px; }
.day h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
  line-height: 1.35;
}
.day .venue { margin: 0; font-size: 14px; color: #555; }
.day h3 a { text-decoration: none; }
.day h3 a:hover { color: var(--ck); }
.day h3 .go { color: var(--ck); }

/* ---------- 9. 主辦與合作單位 ---------- */
.partner-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 96px;
  margin-top: 48px;
}
.partner-group .group-label { margin-bottom: 20px; }
.partner-group:nth-child(n+3) { flex-basis: 100%; }   /* 合作單位自成一排 */
.partner-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 64px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.partner-list a { display: block; transition: opacity 0.15s; }
.partner-list a:hover { opacity: 0.7; }
.partner-list img {
  width: auto;
  height: 72px;          /* Logo 高度：想放大或縮小改這個數字 */
  max-width: 100%;
  object-fit: contain;
}
/* 各 Logo 的形狀不同，個別微調，讓視覺份量接近 */
.partner-list img[src*="tdri"]  { height: 52px; }
.partner-list img[src*="csid"]  { height: 60px; }
.partner-list img[src*="apsda"] { height: 64px; }

/* ---------- 10. 重要日期 ---------- */
.keydates { background: var(--orange); color: #fff; }
.keydates h2 { margin-bottom: 40px; }
.keydates-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 最多三欄；目前兩個日期，靠左排列 */
  gap: 32px;
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
}
.keydates-list li {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}
.keydates-list time {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}

/* ---------- 11. 頁尾 ---------- */
.site-footer { padding: 48px 0 32px; font-size: 14px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-grid p { margin: 0 0 6px; }
.footer-title { font-weight: 700; }
.footer-logo { width: auto; height: 64px; margin-bottom: 16px; }
.footer-label { color: #666; }
.copyright { margin: 40px 0 0; font-size: 12px; color: #666; }


/* =========================================================
   RWD：不同螢幕寬度的調整
   ========================================================= */

/* 平板（960px 以下） */
@media (max-width: 960px) {
  .why-layout { grid-template-columns: 1fr; }
  .why-photo { min-height: 260px; }
  .partner-list { grid-template-columns: repeat(3, 1fr); }
}

/* 導覽列改成「Menu」按鈕（860px 以下） */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--ink);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px clamp(20px, 4vw, 48px) 24px;
  }
  .voices { grid-template-columns: 1fr; }
}

/* 手機（760px 以下） */
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; }
  .hero-art {
    position: relative;
    width: 100%;
    height: clamp(260px, 72vw, 420px);
  }
  .art { -webkit-mask-image: none; mask-image: none; }
  .hero-text { width: auto; padding: 32px 0 56px; }

  .intro-grid { grid-template-columns: 1fr; gap: 32px; }

  .join-top { padding-top: 0; }
  .join-art { position: relative; width: 100%; height: 200px; margin-bottom: 32px; background-size: 160% auto; -webkit-mask-image: none; mask-image: none; }
  .join-details { grid-template-columns: 1fr; padding-top: 32px; }

  .schedule-head { grid-template-columns: 1fr; gap: 20px; }
  .schedule-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .keydates-list { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* 小手機（520px 以下） */
@media (max-width: 520px) {
  .why-list { grid-template-columns: 1fr; gap: 36px; }
  .num-list.two { grid-template-columns: 1fr; }
  .themes li { grid-template-columns: 1fr; }
  .join-core span { display: block; }
  .join-core span + span::before { content: none; }
  .why-item p { margin-left: 0; }
  .partner-list { grid-template-columns: 1fr 1fr; }
  .day { grid-template-columns: 120px 1fr; }
  .day-mark { padding: 14px 12px; }
}


/* =========================================================
   中文版微調（html lang="zh-Hant" 時才套用）
   ========================================================= */
:lang(zh-Hant) body { line-height: 1.8; }
:lang(zh-Hant) .why-item h3,
:lang(zh-Hant) .label,
:lang(zh-Hant) .group-label { font-family: var(--sans); }
:lang(zh-Hant) .why-item h3 { font-weight: 700; }
:lang(zh-Hant) .section-sub { line-height: 1.6; }
:lang(zh-Hant) .join-core { font-family: var(--sans); }


/* =========================================================
   報名頁
   ========================================================= */
.form-page .wrap { max-width: 860px; }
.form-title {
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.form-intro { max-width: 62ch; margin: 0 0 56px; color: var(--navy); }

/* 每個大區塊自動編號 01、02…（被隱藏的區塊不會算進去） */
.reg-form { counter-reset: section; }
.form-section {
  min-width: 0;
  margin: 0 0 56px;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
  counter-increment: section;
}
.form-section legend {
  float: left;               /* 讓標題排在區塊內，而不是壓在線上 */
  width: 100%;
  margin-bottom: 28px;
  padding: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.3;
}
.form-section legend::before {
  content: counter(section, decimal-leading-zero);
  margin-right: 16px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--sky);
  vertical-align: middle;
}
.form-section legend + * { clear: both; }

.field { margin-bottom: 28px; }
.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}
.sub-label { display: block; margin: 12px 0 6px; font-size: 14px; }
.req { margin-left: 4px; color: var(--orange); }
.hint { display: block; margin-top: 6px; font-size: 13px; color: #555; }

/* 文字輸入框 */
.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form input[type="tel"],
.reg-form input[type="number"],
.reg-form input[type="date"],
.reg-form select,
.reg-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 16px;           /* 16px 以上，iPhone 點選時才不會自動放大 */
  color: var(--ink);
}
.reg-form input:focus,
.reg-form select:focus,
.reg-form textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.reg-form textarea { resize: vertical; }
.reveal { margin-top: 8px; }

.birth { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }

/* 單選、複選 */
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 15px;
}
.choice input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--sky);
}
.choices-inline { display: flex; flex-wrap: wrap; gap: 0 28px; }

/* 方案卡片 */
.option-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 14px;
  margin-bottom: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.option-card input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--sky); }
.option-card:hover { border-color: var(--sky); }
.option-card:has(input:checked) { border-color: var(--blue); background: var(--tint); box-shadow: inset 3px 0 0 var(--blue); }
.option-text strong { display: block; font-size: 16px; }
.option-text span { font-size: 14px; color: #444; }
.option-fee {
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.note {
  margin: 12px 0 0;
  padding: 12px 16px;
  background: #EEF4FB;
  color: var(--navy);
  font-size: 14px;
}

.fee-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
  padding: 16px 20px;
  background: var(--mist);
  font-size: 15px;
}
.fee-summary strong { font-size: 1.4rem; font-weight: 400; color: var(--navy); }

/* ---- 報名規章（update-14）---- */
.option-text > span { display: block; }
.option-text .dates { margin: 2px 0 4px; font-family: var(--mono); font-size: 13px; color: var(--blue); }
.option-fee span { display: block; }
.option-fee span:nth-child(n+3) { margin-top: 4px; font-family: var(--sans); font-size: 12px; line-height: 1.5; color: #555; white-space: normal; width: 230px; margin-left: auto; }
.choices-stack { display: flex; flex-direction: column; }
.waiver-block { margin: 8px 0 0; padding: 4px 18px 8px; border-left: 3px solid var(--blue); background: #F7FAFD; }
.waiver-block .hint { display: block; }

.notice-box, .rule-box {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
}
.notice-box { border-color: var(--blue); background: #EEF4FB; }
.rule-box { margin: 16px 0; background: #fff; }
.rule-title { margin: 0 0 8px; font-weight: 700; color: var(--navy); font-size: 15px; }
.rule-box p:last-child, .notice-box p:last-child { margin-bottom: 0; }
.notice-box ul, .rule-box ul { margin: 0; padding-left: 1.2em; }
.notice-box li, .rule-box li { margin: 0 0 6px; }
.rule-box ol { margin: 0; padding: 0; list-style: none; }
.rule-box ol li { display: flex; gap: 8px; margin: 0 0 6px; }
.rule-box .mark { flex: none; color: var(--blue); }
.notice-contact { margin: 10px 0 0; }
.fee-summary small { display: block; margin-top: 2px; font-size: 12px; color: #666; }
.fee-summary > span { padding-right: 16px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.two-col.three { grid-template-columns: 1fr 1fr 1fr; }

.consent .choice { padding: 10px 0; font-size: 14px; line-height: 1.6; }
.photo-field { margin: 16px 0; }
.photo-field .hint { margin: 0 0 6px; }

.submit-row { padding-top: 32px; border-top: 1px solid var(--ink); }
button.btn { border: 0; font: inherit; font-size: 15px; cursor: pointer; }

/* 送出後的摘要 */
.summary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 32px;
  margin: 0 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.summary dt { color: #666; }
.summary dd { margin: 0; }
.form-page .note + .btn { margin-top: 32px; }

@media (max-width: 760px) {
  .two-col, .two-col.three { grid-template-columns: 1fr; }
  .option-card { grid-template-columns: auto 1fr; }
  .option-fee { grid-column: 2; text-align: left; }
  .option-fee span:nth-child(n+3) { margin-left: 0; width: auto; }
  .summary { grid-template-columns: 1fr; gap: 4px; }
  .summary dd { margin-bottom: 12px; }
}


/* =========================================================
   帳號、登入、我的報名
   ========================================================= */
.auth-page .wrap { max-width: 520px; }
.auth-form .btn { margin-top: 8px; }
.reg-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-size: 16px;
}
.auth-switch { margin: 32px 0 8px; font-size: 15px; }

.errors {
  margin: 0 0 32px;
  padding: 14px 18px;
  border-left: 4px solid var(--orange);
  background: #FBEDE6;
  font-size: 15px;
}
.errors p { margin: 0; }
.success {
  margin: 0 0 32px;
  padding: 14px 18px;
  border-left: 4px solid var(--blue);
  background: var(--tint);
}
.account-email { margin: 0 0 48px; }

/* 導覽列的「登出」按鈕，外觀和連結一樣 */
.nav-form { margin: 0; }
.nav-link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: inherit;
  cursor: pointer;
}
.nav-link-btn:hover { text-decoration: underline; }

/* 我的報名 */
.status-card {
  margin: 0 0 48px;
  padding: 24px;
  border-left: 4px solid var(--sky);
  background: #EEF4FB;
}
.status-card p { margin: 0; }
.status-card .status-name { margin: 4px 0 8px; font-size: 1.6rem; color: var(--navy); }
.status-confirmed  { border-color: var(--navy); background: var(--tint); }
.status-waitlisted { border-color: var(--orange); background: #FBEDE6; }
.status-under_review { border-color: var(--blue); background: #EEF4FB; }
.status-cancelled  { border-color: #999; background: var(--mist); }
.account-block { margin-bottom: 48px; }
.block-title { margin-bottom: 16px; font-size: 1.4rem; }
.account-block .summary { margin-bottom: 16px; }



/* =========================================================
   內頁的共同視覺（與首頁延續）
   - page-head：日期組＋大標題＋右側藍色波浪
   - auth-split：登入／註冊，左表單右主視覺
   - reg-layout：報名表，左側目錄＋右側表單
   - tracker：我的報名的進度條
   ========================================================= */

/* ---------- 共用：小日期組（首頁 20/26 的縮小版） ---------- */
.ph-date {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 300;
  line-height: 1;
}
.ph-year { padding-right: 14px; border-right: 1px solid var(--ink); color: var(--ink); }
.ph-days { color: var(--blue); }
.ph-title {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.ph-intro {
  max-width: 56ch;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--navy);
  color: var(--navy);
  font-size: 15px;
}

/* ---------- 內頁標題區 ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--ink);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head .ph-title,
.page-head .ph-intro { max-width: min(640px, 58%); }
.page-head-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  background: url("../images/keyvisual-band.png") no-repeat right 40% / cover;
}
.form-page { padding-top: clamp(40px, 5vw, 64px); }

/* ---------- 登入、註冊 ---------- */
.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-h));
  border-bottom: 1px solid var(--ink);
}
.auth-panel {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 100%;
  max-width: 600px;
  /* 左邊界與頁首 Logo 對齊 */
  margin-left: max(0px, calc((100vw - 1200px) / 2));
  padding: 64px clamp(20px, 4vw, 48px);
}
.auth-panel .ph-intro { margin-bottom: 40px; }
.auth-art {
  grid-column: 2;
  grid-row: 1;
  background: url("../images/keyvisual.png") no-repeat right 78% / cover;
}
.auth-switch { margin: 32px 0 8px; }
.auth-switch a { color: var(--blue); }

/* ---------- 報名表 ---------- */
.form-page .wrap { max-width: 1200px; }
.form-page .wrap > * { max-width: 860px; }   /* 內容靠左，與標題對齊 */
.fee-summary { background: var(--tint); }

/* ---------- 我的報名：進度條 ---------- */
.status-card { padding: 28px 28px 24px; }
.tracker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.tracker li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 3px solid var(--line);
  font-size: 14px;
  color: #5B6B88;
}
.tracker .step-num { font-family: var(--mono); font-size: 12px; }
.tracker li.is-done { border-color: var(--navy); color: var(--navy); }
.tracker li.is-current { border-color: var(--blue); color: var(--ink); font-weight: 700; }
.tracker li.is-current .step-num { color: var(--blue); font-weight: 400; }
.account-block .block-title {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

/* ---------- 內頁的 RWD ---------- */
@media (max-width: 760px) {
  .page-head { padding-top: 0; }
  .page-head-art {
    position: relative;
    width: auto;
    height: 140px;
    margin-bottom: 32px;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .page-head .ph-title,
  .page-head .ph-intro { max-width: none; }

  .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { grid-column: 1; grid-row: 1; height: 160px; -webkit-mask-image: none; mask-image: none; }
  .auth-panel { grid-row: 2; max-width: none; margin: 0; padding-top: 40px; }

  .logo img { height: 34px; }
  .tracker { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 520px) {
  .partner-groups { gap: 40px; }
  .partner-list { gap: 24px 40px; }
  .partner-list img { height: 52px; }
  .partner-list img[src*="tdri"]  { height: 38px; }
  .partner-list img[src*="csid"]  { height: 44px; }
  .partner-list img[src*="apsda"] { height: 46px; }
}

/* 師大學生證上傳 */
.card-upload { padding: 16px 20px; margin-top: 16px; background: var(--tint); }
.card-upload input[type="file"] { display: block; margin: 4px 0; font: inherit; font-size: 15px; }

/* 講者即將公布 */
.speakers-coming {
  display: inline-block;
  margin: 0 0 56px;
  padding: 20px 28px;
  border-left: 3px solid var(--blue);
  background: var(--tint);
  color: var(--navy);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}


/* =========================================================
   講者內頁（speakers.php）、每日學習路徑內頁（schedule.php）
   ========================================================= */
.inner-page { padding-top: clamp(40px, 5vw, 64px); }
.page-lead { max-width: 760px; margin: 0 0 48px; color: var(--navy); font-size: 15px; }
.page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin: 56px 0 0;
}
.back-link { font-size: 15px; color: var(--blue); }

/* 每日學習路徑：一天一列（日期與階段｜主題與學習內容｜Key Question） */
.pathway-days { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink); }
.pday {
  display: grid;
  grid-template-columns: 180px minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px 48px;
  padding: 36px 0 40px;
  border-top: 1px solid var(--ink);
}
.pday-when time { display: block; font-family: var(--mono); font-size: 15px; }
.pday-when .step {
  margin: 8px 0 0;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.pday-when .step span { display: block; font-family: var(--sans); letter-spacing: 0; color: var(--navy); }
.pday-main h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.25; letter-spacing: 0; }
.pday-main .venue { margin: 8px 0 24px; font-size: 14px; color: #555; }
.pday-main h2 a { text-decoration: none; }
.pday-main h2 a:hover { color: var(--blue); }
.pday-main p,
.pday-q p { margin: 8px 0 0; font-size: 15px; }
.pday-main .pday-more { margin-top: 20px; }
.pday-more a { color: var(--blue); }
.pday-q p { color: var(--navy); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.45; }

/* 講者卡片 */
.speaker-group { margin-bottom: 40px; }
.speaker-group:last-child { margin-bottom: 0; }
.speaker-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.speaker-card {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.speaker-card .name { margin: 0; font-size: 1.25rem; font-weight: 400; line-height: 1.3; }
.speaker-card p { margin: 6px 0 0; font-size: 15px; }
.speaker-card .role { color: #555; }
.speaker-card .bio { margin-top: 12px; color: var(--navy); }
.speaker-card .site { color: #555; }
.speaker-card .site a { color: var(--blue); }


/* ---------- 每日詳細行程（day.php） ---------- */
/* 區塊標題：上方一條黑線，和報名表的區塊標題同一套 */
.block-h {
  margin: 0 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: 0;
}
.block-h a { text-decoration: none; }
.block-h a:hover { color: var(--blue); }
.block-h .num { margin-right: 16px; font-family: var(--mono); font-size: 15px; color: var(--sky); vertical-align: middle; }
.day-block { margin-top: clamp(48px, 6vw, 72px); }
.page-lead + .day-block { margin-top: 0; }

.day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0 0 16px;
  font-size: 15px;
  color: #555;
}
.day-meta .step { font-family: var(--mono); letter-spacing: 0.04em; color: var(--blue); }
.day-lead {
  max-width: 900px;
  margin: 0 0 clamp(40px, 5vw, 64px);
  color: var(--navy);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.5;
}
.day-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 64px;
}
.day-text { margin: 0; font-size: 15px; }
.day-cols .num-list { margin-top: 0; }
.day-cols .num-list li:first-child { border-top: 0; padding-top: 0; }

/* 當日行程：左時間、右內容 */
.timetable { list-style: none; margin: 0; padding: 0; }
.timetable li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 4px 32px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}
.timetable li:first-child { padding-top: 0; }
.timetable time { font-family: var(--mono); color: var(--navy); }
.timetable p { margin: 0; }
.timetable b { margin-right: 14px; font-weight: 400; color: var(--blue); }

/* 額外的介紹區塊（例如 Trash Kitchen）：左說明與連結、右三個步驟 */
.feature-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
}
.feature-link { margin: 20px 0 0; font-size: 15px; }
.feature-link a { color: var(--blue); }
.feature .num-list { margin-top: 0; }
.feature .num-list li:first-child { border-top: 0; padding-top: 0; }
.feature .num-list .sub { margin-left: 14px; color: var(--navy); }

/* 預期學習產出：三欄 */
.outputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.outputs .num { font-family: var(--mono); font-size: 15px; color: var(--sky); }
.outputs h3 { margin: 6px 0 8px; font-size: 1.15rem; line-height: 1.35; }
.outputs p { margin: 0; font-size: 15px; color: var(--navy); }
.outputs.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; }   /* 四項時排成 2×2 */
.outputs-note { margin: 28px 0 0; padding: 14px 18px; background: var(--tint); color: var(--navy); font-size: 15px; }

/* 上一天／下一天 */
.day-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.day-nav a { text-decoration: none; }
.day-nav .next { text-align: right; }
.day-nav span { display: block; font-family: var(--mono); font-size: 15px; color: var(--blue); }
.day-nav strong { display: block; margin-top: 4px; font-size: 1.1rem; font-weight: 400; line-height: 1.35; }
.day-nav a:hover strong { color: var(--blue); }

@media (max-width: 860px) {
  .pday { grid-template-columns: 1fr; gap: 16px; padding: 28px 0 32px; }
  .speaker-cards { grid-template-columns: 1fr; }
  .day-cols, .feature-cols { grid-template-columns: 1fr; }
  .outputs, .outputs.four { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .timetable li { grid-template-columns: 1fr; }
  .timetable b { display: block; margin: 0; }
  .avatar { width: 64px; height: 64px; }
  .speaker-card { gap: 16px; }
}

/* =========================================================
   活動類型的代表色（update-16）
   一週總覽表、議程頁、每日頁共用：--c 主色、--ct 淡底色
   ========================================================= */
.t-talk     { --c: #5280BC; --ct: #E3F0FC; --ck: #3F6AA8; --cf: #fff; }      /* 研討會／講座 */
.t-workshop { --c: #E87D5A; --ct: #FDEEE7; --ck: #B5532D; --cf: #1C2F6B; }   /* 工作坊 */
.t-visit    { --c: #CE6A3F; --ct: #F8E6DD; --ck: #A84E28; --cf: #fff; }      /* 產業參訪 */
.t-field    { --c: #72B2FB; --ct: #E8F3FE; --ck: #2F6FB5; --cf: #1C2F6B; }   /* 田野調查 */
.t-forum    { --c: #1C2F6B; --ct: #E6EBF5; --ck: #1C2F6B; --cf: #fff; }      /* 論壇與發表 */
.t-break    { --c: #A7AFBF; --ct: #F4F5F8; --ck: #666;    --cf: #fff; }      /* 報到、用餐、休息、交通 */
/* --c 主色、--ct 淡底色、--ck 淡底上的文字色、--cf 主色上的文字色 */

/* ---------- 一週活動總覽表 ---------- */
.week { margin: 32px 0 40px; }
.week-grid {
  display: grid;
  grid-template-columns: 56px repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.wg-corner { grid-column: 1; grid-row: 1; }
.wg-rowlabel {
  align-self: center;
  justify-self: center;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  color: var(--navy);
}
.wg-am { grid-column: 1; grid-row: 2; }
.wg-pm { grid-column: 1; grid-row: 3; }
.wg-head {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 14px 16px;
  border-top: 6px solid var(--c);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
}
.wg-date { font-family: var(--mono); font-size: 15px; }
.wg-stage { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ck); }
.wg-theme { margin-top: 6px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.wg-head:hover .wg-theme { color: var(--ck); }
.wg-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 96px;
  padding: 14px;
  border-left: 4px solid var(--c);
  background: var(--ct);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wg-cell:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(28, 47, 107, 0.15); }
.wg-tag {
  align-self: flex-start;
  padding: 2px 8px;
  background: var(--c);
  color: var(--cf);
  font-size: 12px;
  line-height: 1.6;
}
.wg-when { display: none; }                   /* 手機版才顯示「上午／下午」 */
.wg-cell strong { font-size: 15px; line-height: 1.4; }

/* 各方案涵蓋日期（plan_coverage.php）：一天 = 兩格，共十格 */
.plan-cover { margin: 32px 0 36px; }
.pc-title { margin: 0 0 10px; font-size: 13px; color: var(--navy); }
.pc-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}
.pc-day {
  padding: 6px 10px;
  background: var(--c);
  color: var(--cf);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}
.pc-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 0;
  padding: 9px 14px;
  font-size: 14px;
}
.pc-plan span { font-family: var(--mono); font-size: 13px; }
.plan-a { background: #fff; color: var(--navy); outline: 1px solid #C9DBF2; outline-offset: -1px; }
.plan-b { background: #72B2FB; color: var(--navy); }
.plan-c { background: var(--navy); color: #fff; }

/* 圖例 */
.week-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 13px;
}
.week-legend li { display: flex; align-items: center; gap: 8px; }
.week-legend li::before { content: ""; width: 14px; height: 14px; background: var(--c); }
.week-legend .wg-note { margin-left: auto; color: #555; }
.week-legend .wg-note::before { display: none; }
.week-legend.small { margin: 0 0 20px; }

/* 首頁：藍底上的總覽表 */
.schedule .week { margin-bottom: 36px; }
.schedule .wg-head,
.schedule .wg-cell { background: #fff; }
.schedule .wg-cell:hover { box-shadow: 0 8px 20px rgba(28, 47, 107, 0.18); }


/* ---------- 每日頁 ---------- */
/* 標題區右側照片：左邊漸層淡出，文字才看得清楚 */
.page-head.has-photo { border-bottom: 6px solid var(--c, var(--blue)); }
.page-head-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-position: center;
  background-size: cover;
}
.page-head-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.55) 28%, rgba(255, 255, 255, 0) 60%);
}
.ph-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  background: var(--c, var(--blue));
  color: var(--cf, #fff);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* 學習階段、地點、時間 */
.day-info {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  margin: 0 0 24px;
  background: var(--ct);
  border-left: 6px solid var(--c);
}
.day-info div { padding: 16px 20px; }
.day-info div + div { border-left: 1px solid rgba(28, 47, 107, 0.15); }
.day-info dt { font-size: 12px; letter-spacing: 0.04em; color: var(--ck); }
.day-info dd { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }

/* 核心問題：大字色塊 */
.day-lead {
  max-width: none;
  margin: 0 0 clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.5vw, 44px);
  background: var(--c);
  color: var(--cf);
}
.day-lead .day-lead-label { margin: 0 0 8px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; opacity: 0.85; }
.day-lead p + p { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.5; }
.day-qbox { padding: 0 24px 20px; background: var(--ct); }
.day-qbox .block-h { border-top-color: var(--c); border-top-width: 3px; }
.day-qbox .num { color: var(--ck); }

/* 當日行程：時間軸 */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before {                          /* 中間那條直線 */
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 147px;
  width: 2px;
  background: var(--line);
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 0 48px;
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.5;
}
.tl-item::before {                           /* 直線上的圓點 */
  content: "";
  position: absolute;
  top: 20px;
  left: 142px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px #fff;
}
.tl-item time { padding-top: 12px; font-family: var(--mono); font-size: 14px; color: var(--navy); text-align: right; }
.tl-item p {
  margin: 0;
  padding: 11px 16px;
  border-left: 4px solid var(--c);
  background: var(--ct);
}
.tl-item b { margin-right: 12px; font-weight: 700; color: var(--ck); }
.tl-item.t-break p { border-left-color: transparent; background: none; color: #666; font-size: 14px; }
.tl-item.t-break b { font-weight: 400; color: #666; }
.tl-item.t-break::before { width: 8px; height: 8px; left: 144px; top: 22px; }

/* 額外介紹區塊（Trash Kitchen）與學習產出：淡色底卡片 */
.feature { padding: 0 clamp(20px, 3vw, 36px) clamp(24px, 3vw, 36px); background: var(--ct); }
.feature .block-h { border-top: 3px solid var(--c); }
.day-page .outputs li { padding: 18px 20px 22px; background: var(--ct); border-top: 4px solid var(--c); }
.day-page .outputs .num { color: var(--ck); }
.day-page .outputs-note { background: var(--ct); border-left: 4px solid var(--c); }

/* ---------- 議程頁（schedule.php） ---------- */
.pathway-h { margin-top: clamp(48px, 6vw, 72px); }
.pathway-days .pday { padding-left: 24px; border-left: 6px solid var(--c); margin-top: 16px; background: linear-gradient(90deg, var(--ct), #fff 60%); border-top: 0; }
.pathway-days { border-bottom: 0; }
.pday-when .step { color: var(--ck); }
.pday-photo { display: block; margin-top: 16px; }
.pday-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- 講者頁：每天的編號用當天的顏色 ---------- */
.day-block[class*="t-"] > .block-h { border-top: 3px solid var(--c); }
.day-block[class*="t-"] > .block-h .num { color: var(--ck); }

/* ---------- RWD ---------- */
@media (max-width: 960px) {
  .week-grid { grid-template-columns: 1fr; }
  .week-grid > * { grid-column: auto !important; grid-row: auto !important; order: var(--o); }
  .wg-corner, .week-grid > .wg-rowlabel { display: none; }
  .wg-head { margin-top: 12px; }
  .wg-cell { min-height: 0; }
  .wg-when { display: inline; }
  .week-legend .wg-note { margin-left: 0; width: 100%; }
}
@media (max-width: 860px) {
  .day-info { grid-template-columns: 1fr; }
  .day-info div + div { border-left: 0; border-top: 1px solid rgba(28, 47, 107, 0.15); }
  .pday-photo img { aspect-ratio: 16 / 7; }
}
@media (max-width: 760px) {
  .page-head-photo { position: relative; width: auto; height: 180px; margin-bottom: 32px; }
  .page-head-photo::after { display: none; }
}
@media (max-width: 520px) {
  .timeline::before { left: 5px; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 24px; }
  .tl-item::before { left: 0; top: 4px; }
  .tl-item.t-break::before { left: 2px; top: 6px; }
  .tl-item time { padding-top: 0; text-align: left; }
}
@media (max-width: 520px) {
  .pc-grid { gap: 4px; }
  .pc-day { padding: 5px 2px; font-size: 11px; text-align: center; }
  .pc-plan { padding: 8px 10px; font-size: 13px; }
  .pc-plan span { font-size: 12px; }
}

/* ---------- 報名表定稿（update-19） ---------- */
.notice-box .notice-sub { margin-top: 14px; }
.notice-box p { margin: 0; }
.notice-contact-line { margin: -12px 0 40px; }
.pay-box { margin: 0 0 24px; background: var(--tint); border-color: transparent; }
.pay-box .summary { margin-top: 12px; }
.form-summary { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: #555; }
.reg-form input[type="file"] { font: inherit; font-size: 15px; }

/* 「Ready to Join Us?」的報名期間提醒 */
.reg-deadline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 8px 0 24px;
  border: 1px solid var(--orange);
  font-size: 15px;
}
.reg-deadline b { padding: 8px 14px; background: var(--orange); color: #fff; font-weight: 700; }
.reg-deadline span { padding: 8px 14px; background: #fff; color: var(--ink); }
