/* ───────── 基礎 ───────── */
:root {
  --white: #ffffff;
  --mist: #f5f7fa;
  --teal: #2cb1bc;
  --navy: #0f2a43;

  --teal-50: #e6f6f7;
  --teal-100: #c9ecef;
  --teal-700: #137f88; /* 白底上的連結與強調文字（對比 ≥ 4.5） */
  --navy-700: #1b3c5c;
  --text: var(--navy);
  --muted: #51637a;
  --border: #dce3eb;
  --danger: #b42318;

  --radius: 14px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', 'Segoe UI', system-ui, sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-700);
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  margin: 0;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.icon {
  flex: none;
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}

.container.narrow {
  max-width: 820px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--mist);
  border-radius: var(--radius);
}

/* ───────── 按鈕與標籤 ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
}

.btn-primary:hover {
  background: #45c0ca;
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal-700);
}

.btn-ghost {
  background: rgb(255 255 255 / 0.08);
  color: var(--white);
  border-color: rgb(255 255 255 / 0.45);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.16);
  border-color: var(--white);
}

.btn-danger {
  background: var(--white);
  color: var(--danger);
  border-color: #f1c4bf;
}

.btn-danger:hover {
  background: #fdf0ee;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 14px;
}

.btn-lg {
  min-height: 52px;
  padding: 12px 28px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  background: var(--mist);
  color: var(--muted);
}

.tag-city {
  background: var(--navy);
  color: var(--white);
}

.tag-open {
  background: var(--teal-50);
  color: var(--teal-700);
}

.tag-muted {
  background: #eceff3;
  color: var(--muted);
}

.tag-pin {
  background: var(--teal);
  color: var(--navy);
}

.credit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.credit {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  background: var(--mist);
  color: var(--navy);
  border: 1px solid var(--border);
}

.credit-pro {
  background: var(--teal-50);
  border-color: var(--teal-100);
  color: #0d5f66;
}

.credit-qa {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}

.credit-rad {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.credit-list-lg .credit {
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 8px;
}

/* ───────── 頁首 ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 18px;
}

.brand-text small {
  font-size: 12px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a:not(.btn) {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:not(.btn):hover {
  background: var(--mist);
  color: var(--teal-700);
}

.site-nav .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 12px 14px;
  }

  .site-nav .btn {
    margin: 8px 0 0;
  }
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(15 42 67 / 0.96) 0%, rgb(15 42 67 / 0.88) 42%, rgb(15 42 67 / 0.45) 75%, rgb(15 42 67 / 0.2) 100%),
    radial-gradient(circle at 15% 110%, rgb(44 177 188 / 0.35), transparent 45%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 48px;
  min-height: min(680px, 86vh);
  padding-top: 72px;
  padding-bottom: 72px;
}


.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-lead {
  max-width: 600px;
  font-size: 17px;
  line-height: 1.9;
  color: rgb(255 255 255 / 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.next-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-self: end;
  width: 100%;
  max-width: 340px;
  padding: 24px;
  border-radius: 20px;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  border-top: 4px solid var(--teal);
  transition: transform 0.2s;
}

.next-card:hover {
  transform: translateY(-3px);
}

.next-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-700);
  letter-spacing: 0.08em;
}

.next-date {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.next-date strong {
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
}

.next-date span {
  color: var(--muted);
  font-weight: 600;
}

.next-place {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.next-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--teal-700);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgb(15 42 67 / 0.9) 0%, rgb(15 42 67 / 0.86) 60%, rgb(15 42 67 / 0.95) 100%);
  }

  .next-card {
    justify-self: stretch;
    max-width: none;
  }
}

/* ───────── 區塊共用 ───────── */
.section {
  padding: 96px 0;
}

.section-eyebrow {
  margin-bottom: 8px;
  color: var(--teal-700);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
}

.section-lead {
  margin-top: 14px;
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.link-more:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .container {
    padding-inline: 16px;
  }
}

/* ───────── 協會簡介 ───────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.about-photos {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-top: 32px;
}

.about-photos img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-photos img:last-child {
  margin-top: 40px;
}

.program-list {
  display: grid;
  gap: 16px;
}

.program-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.program-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
}

.program-card h3 {
  font-size: 19px;
  margin: 2px 0 10px;
}

.program-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.program-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.program-card li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 520px) {
  .about-photos img {
    height: 160px;
  }

  .about-photos img:last-child {
    margin-top: 24px;
  }
}

/* ───────── 公告 ───────── */
.news {
  background: var(--mist);
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.news-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.15s;
}

.news-item:hover {
  border-color: var(--teal);
}

.news-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.news-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.news-text strong {
  font-size: 18px;
}

.news-text span {
  color: var(--muted);
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-arrow {
  color: var(--teal-700);
}

@media (max-width: 640px) {
  .news-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 18px;
  }

  .news-date {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }

  .news-text span {
    -webkit-line-clamp: 2;
  }
}

/* ───────── 課程總覽 ───────── */
.course-toolbar {
  display: grid;
  gap: 16px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--mist);
  border-radius: var(--radius);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field .icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font-size: 16px;
}

.search-field input:focus {
  outline: 3px solid rgb(44 177 188 / 0.3);
  outline-offset: 0;
  border-color: var(--teal);
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
}

.segmented button,
.segmented a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.segmented button[aria-pressed='true'],
.segmented a[aria-current] {
  background: var(--navy);
  color: var(--white);
}

.filter-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.filter-label {
  flex: none;
  width: 36px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--teal);
}

.chip[aria-pressed='true'] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}

.result-count {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.month-group + .month-group {
  margin-top: 32px;
}

.month-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 800;
}

.month-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.course-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.course-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.course-item:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.course-item.is-past {
  background: var(--mist);
}

.course-item.is-past .date-block {
  background: #e3e8ee;
  color: var(--muted);
}

.date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 10px 4px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  line-height: 1.2;
  text-align: center;
}

.date-m {
  font-size: 13px;
  opacity: 0.85;
}

.date-d {
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.date-w {
  font-size: 13px;
  color: #9fe3e8;
  font-weight: 700;
}

.course-item.is-past .date-w {
  color: var(--muted);
}

.course-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.course-time,
.course-place {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.course-place {
  align-items: flex-start;
}

.course-place .icon {
  margin-top: 3px;
}

.course-title {
  font-size: 18px;
  font-weight: 800;
}

.course-topics {
  color: var(--muted);
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-arrow {
  color: var(--teal-700);
}

@media (max-width: 640px) {
  .course-toolbar {
    padding: 16px;
  }

  .toolbar-row .segmented {
    flex: 1 1 100%;
  }

  .toolbar-row .segmented button {
    flex: 1;
    justify-content: center;
  }

  .filter-row {
    flex-direction: column;
    gap: 6px;
  }

  .chips {
    gap: 6px;
  }

  .chip {
    padding: 4px 12px;
  }

  .course-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .date-d {
    font-size: 26px;
  }

  .course-arrow {
    display: none;
  }
}

/* 月曆 */
.calendar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.calendar-head h3 {
  font-size: 20px;
  font-weight: 800;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--teal);
  color: var(--teal-700);
}

.icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-dow {
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: var(--mist);
  border-bottom: 1px solid var(--border);
}

.calendar-day {
  min-height: 112px;
  padding: 6px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-outside {
  background: #fafbfc;
}

.calendar-day.is-outside .day-num {
  color: #a8b3c0;
}

.day-num {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.calendar-day.is-today .day-num {
  background: var(--teal);
  color: var(--navy);
}

.day-day-btn {
  display: none;
}

.cal-event {
  display: block;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  overflow: hidden;
}

.cal-event small {
  display: block;
  font-weight: 500;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event.is-past {
  background: #e3e8ee;
  color: var(--muted);
}

.cal-event:hover {
  background: var(--teal);
  color: var(--navy);
}

.calendar-selected {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.calendar-selected:empty {
  display: none;
}

@media (max-width: 640px) {
  .calendar-day {
    min-height: 54px;
    align-items: center;
    padding: 4px 2px;
    cursor: default;
  }

  .calendar-day .cal-event {
    display: none;
  }

  .calendar-day.has-events {
    cursor: pointer;
  }

  .calendar-day.has-events .day-num {
    background: var(--navy);
    color: var(--white);
  }

  .calendar-day.has-events.is-past-day .day-num {
    background: #e3e8ee;
    color: var(--muted);
  }

  .calendar-day.is-selected {
    background: var(--teal-50);
  }

  .calendar-day .dot-count {
    font-size: 11px;
    color: var(--muted);
  }
}

@media (min-width: 641px) {
  .dot-count {
    display: none;
  }

  .calendar-day.has-events {
    cursor: pointer;
  }

  .calendar-day.is-selected {
    outline: 2px solid var(--teal);
    outline-offset: -2px;
  }
}

/* ───────── CTA ───────── */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.7;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(15 42 67 / 0.72), rgb(15 42 67 / 0.88)),
    radial-gradient(circle at 50% 120%, rgb(44 177 188 / 0.5), transparent 60%);
}

.cta-inner {
  padding-top: 104px;
  padding-bottom: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.cta p {
  color: rgb(255 255 255 / 0.82);
  font-size: 17px;
  margin-bottom: 12px;
}

/* ───────── 頁尾 ───────── */
.site-footer {
  background: #0b2135;
  color: rgb(255 255 255 / 0.8);
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.footer-brand strong {
  color: var(--white);
  font-size: 17px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  border-color: var(--teal);
  color: #9fe3e8;
}

.footer-bottom {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 14px;
  color: rgb(255 255 255 / 0.6);
}

/* ───────── 內頁（課程、公告） ───────── */
.page-hero {
  padding: 40px 0 44px;
  background: var(--mist);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 12px 0 10px;
}

.page-hero-tags {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.page-hero-date {
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.page-hero-date .roc {
  font-size: 15px;
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 72px;
}

.detail-block + .detail-block {
  margin-top: 40px;
}

.detail-block h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 16px;
}

.detail-block h2 .icon {
  color: var(--teal-700);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.agenda {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.agenda th,
.agenda td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.agenda thead th {
  background: var(--mist);
  font-size: 14px;
  color: var(--muted);
}

.agenda tbody tr:last-child td {
  border-bottom: 0;
}

.agenda tfoot td {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  font-weight: 800;
  background: var(--mist);
}

.agenda .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.agenda-time {
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  width: 1%;
}

.prose {
  font-size: 17px;
  line-height: 1.85;
}

.prose > * + * {
  margin-top: 0.9em;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.6em;
  font-size: 19px;
  font-weight: 800;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.3em;
}

.prose blockquote {
  margin-left: 0;
  padding: 12px 18px;
  border-left: 4px solid var(--teal);
  background: var(--mist);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.detail-block .prose {
  padding: 24px;
  background: var(--mist);
  border-radius: var(--radius);
  font-size: 16px;
}

.detail-block .prose h3:first-child {
  margin-top: 0;
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.info-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--white);
  display: grid;
  gap: 20px;
}

.info-list {
  margin: 0;
  display: grid;
  gap: 16px;
}

.info-list dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.info-list dt .icon {
  color: var(--teal-700);
}

.info-list dd {
  margin: 4px 0 0 26px;
  font-weight: 600;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
}

.related {
  padding-top: 56px;
  padding-bottom: 72px;
  background: var(--mist);
}

.related-title {
  font-size: 22px !important;
  margin-bottom: 20px;
}

.related-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.related-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  text-decoration: none;
}

.related-item:hover {
  border-color: var(--teal);
}

.related-date {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.related-city {
  color: var(--muted);
  font-weight: 600;
}

.page-body {
  padding-top: 40px;
  padding-bottom: 80px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.not-found {
  padding: 96px 0;
  text-align: center;
}

.not-found .btn {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-aside {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .agenda th,
  .agenda td {
    padding: 12px;
  }

  .agenda-time {
    white-space: normal;
    width: 6.5em;
    font-size: 14px;
  }

  .detail-block .prose {
    padding: 18px;
  }
}

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

  * {
    transition: none !important;
  }
}
