/* ============================================================
   米露谷心理治療所 — 主要樣式表
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

/* ---- CSS 變數 ---- */
:root {
  --color-primary: #dc725d;
  --color-primary-dark: #c45e49;
  --color-primary-light: #f0a090;
  --color-accent-green: #7aab8a;
  --color-bg: #ffffff;
  --color-bg-alt: #faf7f4;
  --color-bg-card: #ffffff;
  --color-text: #2d2d2d;
  --color-text-muted: #6b6b6b;
  --color-border: #e8e0d8;
  --font-main: 'Noto Sans TC', sans-serif;
  --radius-card: 16px;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.14);
  --container-max: 1120px;
  --section-py: 70px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  padding-top: 64px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: var(--font-main);
}

/* ---- Layout ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section:nth-child(even) {
  background: var(--color-bg-alt);
}

/* ---- Typography ---- */
h1 { font-size: 2.4rem; font-weight: 700; line-height: 1.3; }
h2 { font-size: 1.8rem; font-weight: 700; line-height: 1.35; }
h3 { font-size: 1.3rem; font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: 10px 20px;
}

.btn-ghost:hover {
  color: var(--color-primary);
}

/* ---- Cards ---- */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* ---- Chips / Tags ---- */
.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.chip-primary {
  background: rgba(220,114,93,0.1);
  color: var(--color-primary);
  border-color: rgba(220,114,93,0.3);
}

.chip-green {
  background: rgba(122,171,138,0.1);
  color: var(--color-accent-green);
  border-color: rgba(122,171,138,0.3);
}

.chip-muted {
  font-size: 0.74rem;
  padding: 3px 9px;
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

/* ---- Pill Filter Buttons ---- */
.filter-pill {
  border-radius: 999px;
  padding: 6px 18px;
  border: 1.5px solid var(--color-border);
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-main);
  color: var(--color-text-muted);
  transition: all 0.18s;
}

.filter-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-pill.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ---- Grid ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s;
}

.site-header.hide {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-mark {
  flex-shrink: 0;
}

.logo-divider {
  display: inline-block;
  width: 1px;
  height: 26px;
  background: #d8cfc4;
  margin: 0 4px;
  flex-shrink: 0;
}

.logo-zh {
  font-family: 'Noto Serif TC', 'Songti TC', 'PingFang TC', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.12em;
  line-height: 1;
}

.logo-en {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  color: #8a8a8a;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-top: 5px;
}

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

.main-nav a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  background: rgba(220,114,93,0.07);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* Hamburger open state */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.footer-logo .logo-zh {
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: 0.14em;
}

.footer-logo .logo-en {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.32em;
  margin-top: 7px;
}

.footer-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.6;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social-link:hover {
  background: #fff;
  color: var(--color-primary);
  transform: translateY(-2px);
}
.contact-social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.contact-social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(122, 171, 138, 0.06);
}

/* ============================================================
   LINE Float Button & Modal
   ============================================================ */
.line-float-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 150;
  background: #06C755;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.2s;
  font-family: var(--font-main);
  font-weight: 500;
}

.line-float-btn:hover {
  background: #05a847;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.line-float-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: white;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 380px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-box h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.modal-box p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0 auto 24px;
}

/* ============================================================
   Page Banner (通用頁頂 banner)
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, #e8d5c4 0%, #f5ebe0 50%, #ddeedd 100%);
  padding: 70px 0 60px;
  text-align: center;
}

.page-banner .kicker {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-banner h1 {
  font-size: 2.2rem;
  color: var(--color-text);
  margin-bottom: 10px;
}

.page-banner .subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.page-banner .banner-tagline {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-text);
  margin: 4px 0 14px;
  letter-spacing: 0.02em;
}

.page-banner--yucai .subtitle {
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.85;
}

/* Anchor nav (services.html) */
.anchor-nav {
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border, #e8e4df);
  position: sticky;
  top: var(--header-height, 64px);
  z-index: 90;
  transition: top 0.3s;
}
.anchor-nav.header-hidden {
  top: 0;
}

.anchor-nav-list {
  display: flex;
  gap: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  padding-right: 48px;
}
.anchor-nav-list::-webkit-scrollbar { display: none; }
.anchor-nav-list a {
  display: block;
  padding: 13px 20px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.anchor-nav-list a:hover,
.anchor-nav-list a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* 手機版：chip 兩行佈局 */
@media (max-width: 767px) {
  .anchor-nav-list {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding: 8px 12px 10px;
    gap: 6px;
  }
  .anchor-nav-list a {
    padding: 6px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
    border-bottom: none;
    border-radius: 20px;
    background: var(--color-bg-subtle, #f5f2ef);
    border: 1.5px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
  }
  .anchor-nav-list a:hover {
    background: rgba(220, 114, 93, 0.12);
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
  .anchor-nav-list a.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
  }
}

/* ============================================================
   Hero (index.html)
   ============================================================ */
.hero {
  min-height: 85vh;
  /* 柔和放射漸層，取代平面米色，增加層次 */
  background: radial-gradient(120% 120% at 50% 45%, #fbf4ea 0%, #f6f0e7 55%, #efe7db 100%);
  display: flex;
  align-items: center; /* 卡片上下置中（原為 flex-end 偏下） */
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-blob-layer {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 1.2s ease-out, transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform, opacity;
}

.hero-blob-layer.is-in {
  opacity: 1;
  transform: scale(1);
}

/* 桌機：色塊放大並往中央卡片靠攏，環抱卡片、填補留白 */
.hero-blob-1 {
  right: 13%;
  top: -9%;
  width: 660px;
  height: 660px;
}

.hero-blob-2 {
  right: 14%;
  bottom: -13%;
  width: 460px;
  height: 460px;
  transition-delay: 0.2s;
}

.hero-blob-3 {
  left: 9%;
  bottom: -9%;
  width: 560px;
  height: 560px;
  transition-delay: 0.4s;
}

/* 平板／手機：色塊縮小並退回邊緣，避免蓋住內容 */
@media (max-width: 768px) {
  .hero-blob-1 { right: -10%; top: -8%; width: 360px; height: 360px; }
  .hero-blob-2 { right: -8%; bottom: -12%; width: 280px; height: 280px; }
  .hero-blob-3 { left: -15%; bottom: -18%; width: 320px; height: 320px; }
}

.hero-blob-layer svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-card {
  background: rgba(255,251,245,0.55);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  padding: 48px 52px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto; /* 卡片水平置中 */
  box-shadow: 0 10px 40px rgba(60,40,20,0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out 0.3s, transform 1s cubic-bezier(0.2, 0.6, 0.2, 1) 0.3s;
}

.hero-card.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob-layer,
  .hero-card {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.hero-kicker {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: 20px;
  white-space: pre-line;
}

.hero-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; /* 桌機：按鈕同一排，空間不足時換行（手機版 ≤600px 改為 column 一顆一排） */
}
.hero-actions .btn {
  white-space: nowrap;
  padding-left: 20px;
  padding-right: 20px;
}

/* ============================================================
   Empathy Section (index.html)
   ============================================================ */
.section-empathy {
  background: #faf7f4;
}
.empathy-intro {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 44px;
}
.empathy-intro h2 {
  margin-bottom: 14px;
}
.empathy-lead {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.empathy-bridge {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}
.empathy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.empathy-tag {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: white;
  border: 1.5px solid var(--color-border, #e8e4df);
  color: var(--color-text);
  font-size: 0.88rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: default;
  user-select: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}
.empathy-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(220, 114, 93, 0.05);
  transform: translateY(-2px);
}
/* ── 關於米露谷 intro ── */
.section-about-intro {
  background: #ffffff;
}
.about-intro-inner {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 64px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}
.about-intro-logo img {
  width: 100%;
  height: auto;
  display: block;
}
.about-intro-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin-bottom: 20px;
  line-height: 1.55;
}
.about-intro-desc {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}
.about-intro-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
}
.about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.about-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
@media (max-width: 640px) {
  .about-intro-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .about-intro-logo img {
    width: 100px;
    margin: 0 auto;
  }
  .about-intro-stats { justify-content: center; }
}
.section-services {
  background: #faf7f4;
}

.service-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-cat-card {
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid var(--color-border, #e8e4df);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.service-cat-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(220, 114, 93, 0.1);
  transform: translateY(-3px);
}
.service-cat-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  display: block;
}
.service-cat-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.service-cat-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0 0 auto;
}
.service-cat-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
}
@media (max-width: 767px) {
  .service-categories {
    grid-template-columns: 1fr;
  }
  .empathy-tags {
    gap: 8px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .service-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   News Cards
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.news-card.is-pinned {
  position: relative;
}

.news-card.is-pinned::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent var(--color-primary) transparent transparent;
  border-radius: 0 var(--radius-card) 0 0;
}

.news-category {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}

.news-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.news-summary {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.news-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-top: 4px;
  transition: color 0.15s;
}

.news-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ============================================================
   Location Tabs
   ============================================================ */
.tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 500;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.location-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.location-right {
  display: flex;
  flex-direction: column;
}

.location-view-tabs {
  display: flex;
  align-self: flex-start;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.location-view-tab {
  padding: 7px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--color-text-muted);
  transition: background 0.2s, color 0.2s;
}

.location-view-tab + .location-view-tab {
  border-left: 1.5px solid var(--color-border);
}

.location-view-tab.active {
  background: var(--color-primary);
  color: white;
}

.location-view-container {
  overflow: hidden;
  width: 100%;
}

.location-view-slider {
  display: flex;
  width: 200%;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-view-slider.show-map {
  transform: translateX(-50%);
}

.location-view-panel {
  width: 50%;
  flex-shrink: 0;
}

.location-view-panel img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 10px;
  cursor: zoom-in;
  transition: opacity 0.15s;
}

.location-view-panel img:hover {
  opacity: 0.88;
}

/* ── Map Lightbox ── */
.map-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}

.map-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.map-lightbox-inner {
  position: relative;
  max-width: 860px;
  width: 100%;
  transform: scale(0.94);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-lightbox.open .map-lightbox-inner {
  transform: scale(1);
}

.map-lightbox-inner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.map-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  color: var(--color-text);
  transition: background 0.15s;
}

.map-lightbox-close:hover {
  background: var(--color-surface);
}

.location-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-name::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 3px;
}

.location-info dt {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.location-info dd {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 18px;
}

.location-info dd a {
  color: var(--color-primary);
  transition: color 0.15s;
}

.location-info dd a:hover {
  color: var(--color-primary-dark);
}

/* 各館地址：Google 地圖導航按鈕 */
.location-info dd a.location-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-accent-green);
  border: 1px solid var(--color-accent-green);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.location-info dd a.location-map-btn:hover {
  color: #fff;
  background: var(--color-accent-green);
}

/* 各館服務時間：即時狀態徽章 + 逐日時段 */
.loc-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 20px;
  white-space: nowrap;
}
.loc-status .dot { width: 7px; height: 7px; border-radius: 50%; }
.loc-status.open { background: rgba(122, 171, 138, 0.16); color: #3f7a57; }
.loc-status.open .dot { background: #4caf72; }
.loc-status.closed { background: rgba(194, 85, 74, 0.12); color: #b8493d; }
.loc-status.closed .dot { background: #c2554a; }
.loc-status.appt { background: var(--color-bg-alt); color: var(--color-text-muted); }
.loc-status.appt .dot { background: var(--color-text-muted); }
.loc-hours { display: grid; gap: 2px; }
.loc-hours-row {
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 3px 8px;
  border-radius: 6px;
}
.loc-hours-row .d { flex: 0 0 44px; color: var(--color-text-muted); }
.loc-hours-row .t.closed { color: #c2554a; }
.loc-hours-row.is-today { background: rgba(122, 171, 138, 0.14); font-weight: 600; }
.loc-hours-row.is-today .d { color: var(--color-accent-green); }
.loc-hours-today-tag { font-size: 0.7rem; color: var(--color-accent-green); margin-left: 4px; }
/* hero「各館服務據點 ↓」捲動目標，避免被 sticky header 遮住 */
#locations-heading { scroll-margin-top: 90px; }

/* 各館空間照片：卡片內縮圖列 + lightbox */
.location-spaces {
  grid-column: 1 / -1;
  min-width: 0; /* 關鍵：讓內部 overflow 真正捲動，而非撐寬卡片造成破圖 */
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.location-spaces-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; }
.location-spaces-viewport { position: relative; }
.space-arrow {
  position: absolute;
  top: 60px; /* 對齊縮圖圖片中心（160px 寬 × 4:3 ＝ 120px 高，中心 60px） */
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: var(--color-text);
  font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.space-arrow:hover { background: #fff; color: var(--color-primary); }
.space-arrow-prev { left: -6px; }
.space-arrow-next { right: -6px; }
.space-arrow.is-hidden { opacity: 0; pointer-events: none; }
.location-spaces-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* 隱藏原生灰色捲軸（Firefox） */
}
.location-spaces-grid::-webkit-scrollbar { display: none; } /* 隱藏原生灰色捲軸（WebKit） */
.space-thumb {
  flex: 0 0 160px; /* 固定寬、不換行；超出橫向捲動 */
  scroll-snap-align: start;
  border: none; padding: 0; background: none; cursor: zoom-in;
  text-align: center; font-family: inherit;
}
.space-thumb img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; display: block; transition: opacity 0.15s, transform 0.15s;
}
.space-thumb:hover img { opacity: 0.9; transform: translateY(-2px); }
.space-cap { display: block; font-size: 0.82rem; font-weight: 600; margin-top: 7px; color: var(--color-text); }
.space-num {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: var(--color-accent-green); color: #fff; border-radius: 50%; font-size: 0.72rem; margin-right: 5px;
}

.space-lightbox {
  position: fixed; inset: 0; z-index: 1000; padding: 30px;
  background: rgba(28, 24, 20, 0.92);
  display: none; align-items: center; justify-content: center;
}
.space-lightbox.open { display: flex; }
.space-lb-stage { max-width: 880px; width: 100%; text-align: center; margin: 0; }
.space-lb-stage img { max-width: 100%; max-height: 72vh; object-fit: contain; border-radius: 10px; }
.space-lb-cap { color: #fff; font-size: 1rem; font-weight: 600; margin-top: 14px; }
.space-lb-cap .space-num { background: #fff; color: #3f7a57; }
.space-lb-close {
  position: absolute; top: 16px; right: 22px; font-size: 2rem; line-height: 1;
  color: #fff; background: none; border: none; cursor: pointer;
}
.space-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2.4rem; color: #fff; background: none; border: none; cursor: pointer; padding: 10px 16px; opacity: 0.8;
}
.space-lb-nav:hover { opacity: 1; }
.space-lb-prev { left: 8px; }
.space-lb-next { right: 8px; }
body.space-lb-open { overflow: hidden; }
@media (max-width: 600px) { .space-lb-nav { font-size: 1.8rem; padding: 8px 10px; } }

/* ============================================================
   About page
   ============================================================ */
.belief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.belief-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.belief-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.belief-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.belief-icon.warm { background: rgba(220,114,93,0.1); }
.belief-icon.stable { background: rgba(122,171,138,0.1); }
.belief-icon.hold { background: rgba(180,150,200,0.1); }

.belief-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.belief-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.about-text-section .content-block {
  max-width: 720px;
}

.about-text-section .content-block + .content-block {
  margin-top: 28px;
}

.about-text-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.about-text-section p {
  font-size: 0.96rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.brand-story {
  max-width: 760px;
  margin: 0 auto;
}

.brand-story p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}

/* ============================================================
   Team page
   ============================================================ */
.filter-panel {
  background: var(--color-bg-alt);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin-bottom: 48px;
}

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

.filter-row + .filter-row {
  margin-top: 14px;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  width: 60px;
  flex-shrink: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.team-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.team-card-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e8d5c4, #ddeedd);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-card-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8d5c4, #ddeedd);
}

.team-card-body {
  padding: 20px 20px 22px;
}

.team-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.team-card-title {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.team-card-role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.team-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-card-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.team-card-schedule {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

/* 班表館別色：中和紅、板橋藍、新店綠 */
.chip-zhonghe {
  background: rgba(220,114,93,0.1);
  color: var(--color-primary);
  border-color: rgba(220,114,93,0.3);
}

.chip-banqiao {
  background: rgba(79,134,179,0.12);
  color: #3f6f9f;
  border-color: rgba(79,134,179,0.32);
}

.chip-xindian {
  background: rgba(122,171,138,0.12);
  color: var(--color-accent-green);
  border-color: rgba(122,171,138,0.3);
}

.member-schedule {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.member-schedule-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.team-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.team-card.hidden {
  display: none;
}

.team-card-education {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.team-card-education p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 2px;
}

.member-specialty-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  margin-top: 4px;
}

.exp-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
  line-height: 1.6;
}

.exp-badge--current {
  background: rgba(122,171,138,0.15);
  color: var(--color-accent-green);
  border: 1px solid rgba(122,171,138,0.35);
}

/* ============================================================
   Team Member page
   ============================================================ */
.member-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}

.member-photo {
  width: 300px;
  height: 400px;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: sticky;
  top: 84px;
}

.member-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.member-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #e8d5c4, #ddeedd);
}

/* 個人頁裁切＝總覽卡的中央直條：外層 3:4 容器裁掉左右，內層放滿高的卡片視圖(16:10) */
.member-photo-strip {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.member-photo-cardview {
  height: 100%;
  width: auto;
  aspect-ratio: 16 / 10;
  flex: none;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.member-info h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.member-title {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.member-role {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.member-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.member-section {
  margin-bottom: 28px;
}

.member-section-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}

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

.member-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-list li {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  padding-left: 16px;
  position: relative;
}

.member-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
}

.member-list li a {
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}

.member-list li a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary-light);
}

.pub-meta {
  font-size: 0.82rem;
  color: var(--color-text-light, #9a9a9a);
  margin-left: 4px;
}

.member-bio {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.85;
  font-style: italic;
  border-left: 3px solid var(--color-primary-light);
  padding-left: 20px;
  margin-top: 8px;
}

.member-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.member-link {
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(220,114,93,0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.member-link:hover {
  border-color: var(--color-primary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--color-primary);
}

/* ============================================================
   Services page
   ============================================================ */
.service-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 36px 32px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.service-icon {
  margin-bottom: 18px;
}

.service-icon-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-circle.coral { background: #fde8e4; }
.service-icon-circle.green { background: #e4f0e8; }

.service-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.service-target {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 16px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.service-list li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  padding-left: 14px;
  position: relative;
}

.service-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 1.2rem;
  line-height: 1.3;
}

.service-format {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: auto;
  margin-bottom: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.service-format strong {
  color: var(--color-text);
}

.service-fee {
  font-size: 0.88rem;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.6;
}

.service-fee strong {
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 4px;
}

.service-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
  line-height: 1.6;
}

.yucai-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(122, 171, 138, 0.08);
  border: 1px solid rgba(122, 171, 138, 0.3);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.yucai-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── 關於育才中心 ── */
.yucai-about {
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.yucai-about-title {
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--color-accent-green);
}
.yucai-about-text {
  max-width: 760px;
  color: var(--color-text-muted);
  line-height: 1.85;
  font-size: 0.96rem;
}
.yucai-audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 4px;
}
.yucai-audience-col {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}
.yucai-audience-col--pro { border-top: 3px solid var(--color-accent-green); }
.yucai-audience-col--deep { border-top: 3px solid var(--color-primary-light); }
.yucai-audience-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}
.yucai-audience-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.yucai-audience-list li {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 5px 14px;
}
@media (max-width: 640px) {
  .yucai-audience-grid { grid-template-columns: 1fr; }
  .page-banner .banner-tagline { font-size: 1.1rem; }
}

.service-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.service-cta:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ── 特別主題方案 ── */
.program-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.program-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 32px;
}

.program-tag {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.program-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 10px;
}

.program-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* 已結束方案：保留於版面但視覺弱化 */
.program-card--ended {
  background: var(--color-bg-alt);
  box-shadow: none;
  border: 1px solid var(--color-border);
  opacity: 0.9;
}
.program-card--ended .program-tag {
  color: var(--color-text-muted);
}
.program-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  vertical-align: middle;
}

.program-desc a {
  color: var(--color-primary);
}

.service-fee {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.service-fee strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* ── 育才中心 ── */
.yucai-section {
  background: var(--color-bg-alt);
  padding: 40px 0;
}

.yucai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.yucai-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--color-accent-green);
}

.yucai-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(122, 171, 138, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.yucai-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  scroll-margin-top: 100px; /* 跨頁錨點（如 news 連到 #supervision-heading）不被 sticky header 遮住 */
}

.yucai-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.yucai-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex: 1;
}

.yucai-card-list li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-left: 16px;
  position: relative;
}

.yucai-card-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-accent-green);
  font-weight: 700;
}

.yucai-cta {
  color: var(--color-accent-green);
  border-color: var(--color-accent-green);
  align-self: flex-start;
}

.yucai-cta:hover {
  background: var(--color-accent-green);
  color: #fff;
}

.yucai-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(122, 171, 138, 0.1);
  color: var(--color-accent-green);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(122, 171, 138, 0.3);
  align-self: flex-start;
}

.yucai-note {
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.booking-steps {
  display: flex;
  align-items: stretch;
  gap: 36px;
}

.step-card {
  flex: 1;
  text-align: center;
  padding: 32px 20px;
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.step-desc {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

/* Connector arrow — sits entirely inside the 36px gap */
.step-card:not(:last-child)::after {
  content: '→';
  position: absolute;
  left: 100%;
  width: 36px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: var(--color-primary-light);
  font-size: 1.4rem;
  pointer-events: none;
}

/* ============================================================
   Media page
   ============================================================ */
.media-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

/* ── 長條卡片 ── */
.media-card-h {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: stretch;
  width: 100%;
  text-align: left;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  font: inherit;
  color: inherit;
}

.media-card-h:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.media-card-h-thumb {
  position: relative;
  flex-shrink: 0;
  width: 180px;
  background: #000;
  overflow: hidden;
}

.media-card-h-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-card-h-thumb .media-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 0.95rem;
  padding-left: 3px;
  pointer-events: none;
}

/* ── 無 thumb 時的類型色塊 placeholder ── */
.media-card-h-thumb.is-placeholder {
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.media-card-h-thumb.is-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.92;
}
.media-card-h-thumb.is-placeholder[data-type="影片"] {
  background: linear-gradient(135deg, #dc725d 0%, #c5604e 100%);
}
.media-card-h-thumb.is-placeholder[data-type="Podcast"] {
  background: linear-gradient(135deg, #7aab8a 0%, #5d9470 100%);
}
.media-card-h-thumb.is-placeholder[data-type="廣播"] {
  background: linear-gradient(135deg, #6677a0 0%, #4e5e85 100%);
}

.media-card-h-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 22px;
  min-width: 0;
}

.media-card-h-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.media-card-h-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(220,114,93,0.1);
  color: var(--color-primary);
  align-self: flex-start;
}

/* ── media type badge variants ── */
.media-type-badge[data-type="Podcast"] {
  background: rgba(122,171,138,0.12);
  color: var(--color-accent-green);
}
.media-type-badge[data-type="廣播"] {
  background: rgba(100,120,180,0.1);
  color: #5a6fad;
}

@media (max-width: 640px) {
  .media-card-h-thumb { width: 120px; }
  .media-card-h-body { padding: 14px 16px; }
  .media-card-h-title { font-size: 0.95rem; }
}

/* ── 影音詳情 Modal ── */
.media-modal .modal-box {
  max-width: 560px;
  text-align: left;
  padding: 0;
  overflow: hidden;
}
.media-modal .modal-close {
  color: #fff;
  top: 10px;
  right: 14px;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.media-modal-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.media-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-modal-thumb.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.media-modal-thumb.is-placeholder svg {
  width: 72px;
  height: 72px;
  opacity: 0.92;
}
.media-modal-thumb.is-placeholder[data-type="影片"] {
  background: linear-gradient(135deg, #dc725d 0%, #c5604e 100%);
}
.media-modal-thumb.is-placeholder[data-type="Podcast"] {
  background: linear-gradient(135deg, #7aab8a 0%, #5d9470 100%);
}
.media-modal-thumb.is-placeholder[data-type="廣播"] {
  background: linear-gradient(135deg, #6677a0 0%, #4e5e85 100%);
}
.media-modal-body {
  padding: 24px 30px 28px;
}
.media-modal-body .media-type-badge {
  margin-bottom: 12px;
}
.media-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.4;
}
.media-modal-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.media-modal-desc {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.media-modal .media-modal-cta {
  display: inline-block;
  padding: 9px 22px;
  font-size: 0.88rem;
}
.media-modal .modal-close:hover {
  color: rgba(255,255,255,0.7);
}
.media-modal-thumb + .modal-close { color: #fff; }
.media-modal:not(:has(.media-modal-thumb)) .modal-close,
.media-modal .media-modal-body .modal-close {
  color: var(--color-text-muted);
  text-shadow: none;
}

/* ── book grid ── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.book-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--color-primary);
  color: inherit;
  text-decoration: none;
  transition: box-shadow .18s, transform .18s;
}

a.book-card:hover {
  box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(0,0,0,0.1));
  transform: translateY(-3px);
}

.book-card-cover {
  width: 100%;
  height: 190px;
  margin-bottom: 14px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-card-cover img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.book-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  flex: 1;
  margin-bottom: 12px;
}

.book-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.book-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 6px;
  padding: 6px 14px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.18s, color 0.18s;
}

.book-link:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ── press timeline ── */
.press-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 780px;
  margin: 0 auto;
}

.press-item {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.press-item:first-child {
  padding-top: 4px;
}

.press-item:last-child {
  border-bottom: none;
}

.press-date {
  flex-shrink: 0;
  width: 84px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  padding-top: 3px;
}

.press-content {}

.press-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 5px;
  line-height: 1.45;
}

.press-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.press-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================================
   Contact page
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

.contact-form {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--color-primary);
  margin-left: 3px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--color-text);
  background: white;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220,114,93,0.12);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 6px;
}

/* 表單分段標題 */
.form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.form-section-title:first-of-type { margin-top: 0; }

/* 單選 / 複選選項群組 */
.form-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-options.inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.form-option {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.55;
  cursor: pointer;
}
.form-option input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-card);
  padding: 28px;
}

.contact-info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 18px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info-item dt {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.contact-info-item dd {
  font-size: 0.9rem;
  color: var(--color-text);
}

.contact-info-item dd a {
  color: var(--color-primary);
  transition: color 0.15s;
}

.contact-info-item dd a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.line-cta {
  background: #06C755;
  border-radius: var(--radius-card);
  padding: 24px 28px;
  text-align: center;
  color: white;
}

.line-cta p {
  font-size: 0.88rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.btn-line {
  background: white;
  color: #06C755;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  display: inline-block;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-line:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

/* ============================================================
   外部錨點跳轉 — 補齊 sticky header / anchor-nav 高度
   讓 #foo-heading 跳轉後標題不會被遮住
   ============================================================ */
:target {
  scroll-margin-top: 88px;
}
body:has(.anchor-nav) :target {
  scroll-margin-top: 148px;
}

/* ============================================================
   講座邀約與機構合作
   ============================================================ */
.lectures-section {
  background: var(--color-bg-card);
}
.lectures-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-card);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
.lectures-block-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.lectures-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lectures-list li {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}
.lectures-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}
.lectures-list a {
  color: var(--color-primary);
  text-decoration: underline;
}
.lectures-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lectures-steps li {
  font-size: 0.92rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.6;
}
.lectures-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lectures-contact {
  grid-column: 1 / -1;
  background: var(--color-bg-card);
  border-radius: 12px;
  padding: 24px 28px;
  border-left: 4px solid var(--color-primary);
}
.lectures-contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.lectures-email {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  text-decoration: none;
  margin-bottom: 8px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}
.lectures-email:hover {
  border-bottom-color: var(--color-primary);
}
.lectures-contact-note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.lectures-contact-note a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px dotted var(--color-text-muted);
}
@media (max-width: 720px) {
  .lectures-card { grid-template-columns: 1fr; padding: 28px 24px; gap: 24px; }
}

/* press 區塊底部「想邀請我們？」CTA */
.press-invite-cta {
  margin-top: 36px;
  padding: 22px 28px;
  background: var(--color-bg-card);
  border-radius: 14px;
  border-left: 4px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.press-invite-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.press-invite-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}
.press-invite-cta .btn {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .press-invite-cta { flex-direction: column; align-items: stretch; padding: 22px 22px; gap: 16px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .belief-grid { grid-template-columns: repeat(2, 1fr); }
  .member-layout { grid-template-columns: 260px 1fr; gap: 40px; }
  .member-photo { width: 260px; height: 340px; }
}

/* 導覽列項目較多，桌機 900–1000px 寬度會擠到看不見最右側項目，故 ≤1000px 即收合為漢堡選單（版面格線仍維持 900px 斷點，見下方） */
@media (max-width: 1000px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 24px;
    gap: 4px;
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--color-border);
    z-index: 99;
  }

  .main-nav.open a {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {

  .hero-card { padding: 36px 32px; }
  .hero-title { font-size: 2.1rem; }

  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .location-card { grid-template-columns: 1fr; gap: 20px; }
  .booking-steps { flex-direction: column; gap: 20px; }
  .step-card:not(:last-child)::after { display: none; }
  .member-layout { grid-template-columns: 1fr; }
  .member-photo { width: 100%; height: 280px; position: static; }
}

@media (max-width: 840px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .section-title { font-size: 1.5rem; }

  .hero { padding: 60px 0 50px; min-height: auto; align-items: flex-start; padding-top: 100px; }
  .hero-card { padding: 28px 24px; }
  .hero-title { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }

  .news-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .belief-grid { grid-template-columns: 1fr; }
  .yucai-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .press-item { flex-direction: column; gap: 4px; }
  .press-date { width: auto; }

  .page-banner h1 { font-size: 1.7rem; }
  .filter-panel { padding: 20px; }
  .contact-form { padding: 24px; }
  .line-float-btn {
    padding: 10px 16px;
    border-radius: 999px;
    width: auto;
    height: auto;
    font-size: 0.82rem;
    box-sizing: border-box;
  }
  .line-float-btn svg { width: 18px; height: 18px; }
}

/* ============================================================
   Specialty filter (team page)
   ============================================================ */
.specialty-trigger {
  border: 1.5px solid var(--color-primary);
  background: white;
  color: var(--color-primary);
  border-radius: 999px;
  padding: 6px 18px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: all 0.18s;
}
.specialty-trigger:hover {
  background: var(--color-primary);
  color: white;
}

.specialty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.specialty-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: white;
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.specialty-chip button {
  background: rgba(255,255,255,0.25);
  border: none;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.specialty-chip button:hover { background: rgba(255,255,255,0.45); }

/* Modal overrides for specialty modal */
.specialty-modal .specialty-modal-box {
  max-width: 640px;
  width: 92%;
  padding: 28px 28px 20px;
  text-align: left;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}
.specialty-modal-box h3 {
  margin-bottom: 16px;
  padding-right: 32px;
}
.specialty-modal-search {
  margin-bottom: 16px;
}
.specialty-modal-search input {
  width: 100%;
  padding: 9px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-family: var(--font-main);
  color: var(--color-text);
  background: white;
}
.specialty-modal-search input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.specialty-modal-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
  margin-right: -4px;
}
.specialty-group-title {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  margin: 4px 0 10px;
}
.specialty-group + .specialty-group { margin-top: 18px; }
.specialty-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
}
.specialty-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px 0;
}
.specialty-check input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.specialty-empty {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 24px 0;
}
.specialty-modal-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.specialty-clear {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.88rem;
  text-decoration: underline;
  padding: 4px;
  font-family: var(--font-main);
}
.specialty-clear:hover { color: var(--color-text); }
.specialty-actions { display: flex; gap: 10px; }
.specialty-cancel,
.specialty-apply {
  padding: 7px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-main);
  border: 1.5px solid var(--color-border);
  background: white;
  color: var(--color-text-muted);
  transition: all 0.18s;
}
.specialty-cancel:hover { border-color: var(--color-text-muted); color: var(--color-text); }
.specialty-apply {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.specialty-apply:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

@media (max-width: 720px) {
  .specialty-check-grid { grid-template-columns: repeat(2, 1fr); }
  .specialty-modal .specialty-modal-box { padding: 24px 20px 16px; max-height: 92vh; }
}
@media (max-width: 480px) {
  .specialty-check-grid { grid-template-columns: 1fr; }
  .specialty-modal-foot { flex-wrap: wrap; }
  .specialty-actions { flex: 1; justify-content: flex-end; }
}

/* ── 育才中心：區塊與督導清單 ── */
.yucai-block {
  margin-bottom: 40px;
}
.supervision-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 26px 0 0;
}
/* ── 開場：核心大標＋副標＋A/B 雙軌大按鈕 ── */
.supervision-lead-title {
  margin: 10px 0 0;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  letter-spacing: 0.01em;
}
.supervision-lead-sub {
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text-muted);
  max-width: 62ch;
}
.supervision-routes {
  margin: 22px 0 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.supervision-route {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-card);
  text-decoration: none;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.supervision-route:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent-green);
  box-shadow: 0 8px 22px rgba(93, 148, 112, 0.16);
}
.supervision-route-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text);
}
.supervision-route-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
/* B 軌：實色強調，凸顯「請所方推薦」的行政派案入口 */
.supervision-route--accent {
  background: var(--color-accent-green);
  border-color: var(--color-accent-green);
}
.supervision-route--accent .supervision-route-title,
.supervision-route--accent .supervision-route-desc {
  color: #fff;
}
.supervision-route--accent:hover {
  border-color: var(--color-accent-green);
  box-shadow: 0 8px 22px rgba(93, 148, 112, 0.3);
}
@media (max-width: 640px) {
  .supervision-lead-title { font-size: 1.02rem; }
  .supervision-routes { grid-template-columns: 1fr; }
}
.supervisor-section-title {
  margin: 22px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}
.supervisor-audience-note {
  margin: 8px 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.supervisor-audience-note a {
  color: var(--color-accent-green);
}
/* ── 督導快捷篩選標籤（比照課程 chip）── */
.supervisor-filters {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.supervisor-chip {
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.16s;
}
.supervisor-chip:hover { border-color: var(--color-accent-green); color: var(--color-accent-green); }
.supervisor-chip.is-active {
  color: #fff;
  background: var(--color-accent-green);
  border-color: var(--color-accent-green);
}
/* ── 機構/團體督導：三欄式導引卡（純資訊＋hover）── */
.group-guide {
  margin-top: 20px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(122, 171, 138, 0.08);
  border: 1px solid var(--color-border);
}
.group-guide-intro {
  margin: 0 0 18px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--color-text);
}
.group-guide-filter-hint {
  margin: 0 auto 18px;
  max-width: 560px;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  background: rgba(122, 171, 138, 0.1);
  border: 1px solid rgba(122, 171, 138, 0.3);
  border-radius: 12px;
  padding: 10px 16px;
}
.group-guide-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.group-guide-col {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 12px;
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.group-guide-col:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-green);
  box-shadow: 0 10px 24px rgba(93, 148, 112, 0.18);
}
.group-guide-badge {
  align-self: flex-start;
  padding: 3px 12px;
  border: none;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--color-accent-green);
  cursor: pointer;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.group-guide-badge:hover {
  background: var(--color-primary, var(--color-accent-green));
}
.group-guide-badge[aria-pressed="true"] {
  background: var(--color-primary, var(--color-accent-green));
  box-shadow: 0 0 0 3px rgba(220, 114, 93, 0.35);
}
.group-guide-badge::after {
  content: " ▾ 篩選";
  font-weight: 500;
  opacity: 0.85;
}
.group-guide-badge[aria-pressed="true"]::after {
  content: " ✓ 篩選中";
}
.group-guide-title {
  margin: 12px 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-text);
}
.group-guide-action {
  margin-top: 12px;
  flex: 1;
}
.group-guide-action-label {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-primary, #4a9d83);
}
.group-guide-action p:not(.group-guide-action-label) {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.group-guide-cta {
  margin-top: 16px;
  display: inline-block;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--color-accent-green);
  transition: opacity 0.16s ease;
}
.group-guide-cta:hover { opacity: 0.88; }
@media (max-width: 720px) {
  .group-guide-cols { grid-template-columns: 1fr; }
}

.supervisor-section {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.supervisor-empty {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
.supervisor-card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px 24px;
  background: var(--color-bg-alt);
  scroll-margin-top: 96px; /* 避免錨點捲動被 sticky header 遮住 */
  transition: background-color 0.6s ease, box-shadow 0.6s ease;
}
.supervisor-card--highlight {
  background-color: #fdf6e3;
  box-shadow: 0 0 0 3px rgba(160, 212, 194, 0.6);
}
.supervisor-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.supervisor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  background: rgba(122, 171, 138, 0.12);
}
.supervisor-avatar--placeholder {
  display: inline-block;
}
.supervisor-headtext {
  min-width: 0;
}
.supervisor-name {
  margin: 0;
  font-size: 1.1rem;
}
.supervisor-title {
  margin: 2px 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
}
.supervisor-tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text);
}
/* ── 小卡四區塊：一句話／督導取向／專長服務對象／督導風格 ── */
.supervisor-field {
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
}
.supervisor-field:first-of-type { border-top: none; }
.supervisor-field-label {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-primary, #4a9d83);
}
.supervisor-field-value {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text);
}
.supervisor-style-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.supervisor-style-list li {
  font-size: 0.86rem;
  line-height: 1.4;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(122, 171, 138, 0.14);
  color: var(--color-text);
}
.supervisor-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--color-primary, #4a9d83);
  text-decoration: none;
}
.supervisor-more:hover { text-decoration: underline; }

/* ── 個人頁：督導媒合 callout ── */
.member-supervision-callout {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-alt, #f9f7f4);
}
.member-supervision-text {
  margin: 0 0 14px;
  font-size: 0.95rem;
}

/* ── 個人頁：督導相關資料區塊（view=supervision）── */
.member-supervision-detail {
  margin-top: 32px;
  padding: 26px 26px 28px;
  border: 1px solid rgba(122,171,138,0.4);
  border-radius: 14px;
  background: rgba(122,171,138,0.07);
}
.member-supervision-detail .member-section-title {
  margin-top: 0;
  color: var(--color-accent-green);
}
.sup-tagline {
  margin: 6px 0 18px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
  border-left: 3px solid var(--color-accent-green);
  padding-left: 14px;
}
.sup-list { margin: 0; }
.sup-row {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(122,171,138,0.18);
  font-size: 0.93rem;
  line-height: 1.7;
}
.sup-row:last-child { border-bottom: none; }
.sup-row dt {
  flex: 0 0 96px;
  margin: 0;
  color: var(--color-text-muted);
  font-weight: 500;
}
.sup-row dd { flex: 1; margin: 0; color: var(--color-text); }
.sup-style-title {
  margin: 20px 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-accent-green);
}
.sup-style {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sup-style li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text);
}
.sup-style li span {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(122,171,138,0.16);
  color: var(--color-accent-green);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============================================================
   育才中心：課程區（本季主題 ＋ 課程列表 ＋ 篩選）
   ============================================================ */

/* ── 本季主題置頂 ── */
.season-feature {
  background: linear-gradient(135deg, #eef5ee 0%, #f7f1ea 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 34px;
  margin-bottom: 44px;
}
.season-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--color-accent-green);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.season-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.season-theme {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-accent-green);
  margin-bottom: 10px;
}
.season-intro {
  color: var(--color-text-muted);
  line-height: 1.85;
  font-size: 0.95rem;
  max-width: 720px;
}
.season-article {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 8px;
  padding: 14px 18px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  transition: box-shadow 0.18s, transform 0.18s;
}
.season-article:hover { box-shadow: var(--shadow-card); transform: translateY(-1px); }
.season-article-tag {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  padding: 3px 12px;
}
.season-article-text { display: flex; flex-direction: column; gap: 2px; }
.season-article-text strong { color: var(--color-text); font-size: 0.98rem; }
.season-article-text span { color: var(--color-text-muted); font-size: 0.85rem; }
.season-article-arrow { margin-left: auto; color: var(--color-primary); font-weight: 700; }

.season-tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.season-track {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 18px;
}
.season-track-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent-green);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.season-track-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.season-track-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.5;
}
.season-track-list a:hover .season-item-title { color: var(--color-primary); text-decoration: underline; }
.season-item-title { flex: 1 1 100%; }

/* ── 所有課程 ── */
.course-catalog-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.course-catalog-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--color-text);
}
.course-catalog-en {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}
.course-count { font-size: 0.85rem; color: var(--color-text-muted); }

/* 篩選 */
.course-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.course-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.course-filter-label {
  flex-shrink: 0;
  width: 44px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
}
.course-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.course-chip {
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.16s;
}
.course-chip:hover { border-color: var(--color-accent-green); color: var(--color-accent-green); }
.course-chip.is-active {
  color: #fff;
  background: var(--color-accent-green);
  border-color: var(--color-accent-green);
}
.course-filter-clear {
  align-self: flex-start;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
}
.course-filter-clear:hover { text-decoration: underline; }

/* 課程卡格線 */
.course-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.course-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 0;
}
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.18s, transform 0.18s;
}
.course-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.course-cover {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-alt);
}
.course-cover--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #dfeede 0%, #f1e7dc 100%);
}
.course-cover-series {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-accent-green);
}
.course-cover-season { font-size: 0.78rem; color: var(--color-text-muted); }
.course-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.course-card-series {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-accent-green);
}
.course-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}
.course-card-meta { font-size: 0.83rem; color: var(--color-text-muted); }
.course-card-instructor {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text);
}
.course-instructor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  background: rgba(122, 171, 138, 0.12);
}
.course-instructor-avatar--placeholder { display: inline-block; }
.course-instructor-text { min-width: 0; line-height: 1.4; }
.course-instructor-hours { color: var(--color-text-muted); }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.course-tag {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.4;
}
.course-tag--format { color: var(--color-text-muted); background: var(--color-bg-alt); border: 1px solid var(--color-border); }
.course-tag--hot { color: #fff; background: var(--color-primary); }
.course-tag--status.is-open { color: var(--color-accent-green); background: rgba(122,171,138,0.16); }
.course-tag--status.is-soon { color: #b8862f; background: rgba(212,160,60,0.18); }
.course-tag--status.is-archive { color: var(--color-text-muted); background: #ececec; }

@media (max-width: 640px) {
  .season-feature { padding: 24px 20px; }
  .season-title { font-size: 1.25rem; }
  .season-tracks { grid-template-columns: 1fr; }
  .course-list { grid-template-columns: 1fr; }
  .course-filter-label { width: 100%; }
}

/* ============================================================
   育才中心：課程詳情頁（course.html）
   ============================================================ */
.course-notfound { text-align: center; padding: 60px 0; }
.course-notfound h1 { font-size: 1.6rem; margin-bottom: 10px; }
.course-notfound p { color: var(--color-text-muted); margin-bottom: 24px; }

.course-hero { margin-bottom: 36px; }
.course-hero-cover {
  aspect-ratio: 16 / 6;
  border-radius: var(--radius-card);
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-alt);
  margin-bottom: 22px;
}
.course-hero-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dfeede 0%, #f1e7dc 100%);
}
.course-hero-cover--placeholder span {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent-green);
}
.course-hero-season {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-green);
  margin-bottom: 8px;
}
.course-hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.9rem;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 14px;
}
.course-hero-tags { gap: 8px; }

.course-block { margin: 0 0 34px; }
.course-block-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  padding-left: 12px;
  border-left: 4px solid var(--color-accent-green);
  margin-bottom: 16px;
}
.course-intro { color: var(--color-text); line-height: 1.95; font-size: 0.98rem; max-width: 760px; }

.course-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 28px;
  max-width: 760px;
}
.course-info-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border);
}
.course-info-label {
  flex-shrink: 0;
  width: 76px;
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.9rem;
}
.course-info-value { color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.6; }

.course-features, .course-suitable {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
}
.course-features li, .course-suitable li {
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 14px;
}
.course-suitable li::before { content: '✔ '; color: var(--color-accent-green); font-weight: 700; }

.course-bio {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  max-width: 760px;
}
.course-bio-name { font-weight: 700; font-size: 1.02rem; margin-bottom: 12px; }
/* 分享課程列 */
/* hero 標題列：課名靠左、分享靠右上，長標題自動換行 */
.course-hero-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 14px;
}
.course-hero-head .course-hero-title { margin-bottom: 0; flex: 1 1 240px; }
.course-hero-head .course-share {
  flex: 0 0 auto; margin: 0; padding-top: 6px; border-top: none;
}

/* 分享課程區：圓形圖示鈕，outline → hover 填色＋浮起（與站上按鈕同語彙） */
.course-share {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.course-share-label {
  font-size: .9rem; font-weight: 500; color: var(--color-text-muted);
  letter-spacing: .02em;
}
.course-share-btns { display: flex; gap: 8px; }
.course-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border-radius: 50%;
  background: #fff; color: var(--color-text-muted);
  border: 1.5px solid var(--color-border); cursor: pointer;
  text-decoration: none; transition: all .2s ease;
}
.course-share-btn svg { width: 17px; height: 17px; flex: none; }
.course-share-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.course-share-btn.is-line { color: #06c755; border-color: rgba(6,199,85,.5); }
.course-share-btn.is-line:hover { background: #06c755; border-color: #06c755; color: #fff; }
.course-share-btn.is-fb { color: #1877f2; border-color: rgba(24,119,242,.45); }
.course-share-btn.is-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.course-share-btn.is-copy { color: var(--color-primary); border-color: var(--color-primary-light); }
.course-share-btn.is-copy:hover,
.course-share-btn.is-copy.is-copied { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
/* 課程資訊列「講師」連結（連到團隊個人頁） */
.course-instructor-link { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.course-instructor-link:hover { color: var(--color-primary-dark, var(--color-primary)); }
/* 講師資訊卡片（整張可點，連到個人頁） */
.course-bio-card {
  display: flex; align-items: center; gap: 18px;
  max-width: 760px; padding: 18px 22px;
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); text-decoration: none; color: inherit;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.course-bio-card:hover {
  border-color: var(--color-primary-light, var(--color-primary));
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08); transform: translateY(-1px);
}
.course-bio-avatar {
  flex: none; width: 68px; height: 68px; border-radius: 50%;
  background-size: cover; background-position: center top; background-color: #e9e3d6;
}
.course-bio-avatar--empty { background: #e9e3d6; }
.course-bio-cardinfo { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.course-bio-cardname { font-weight: 700; font-size: 1.08rem; color: var(--color-text); }
.course-bio-cardtitle { font-size: .92rem; color: var(--color-text-muted); }
.course-bio-cardbtn { flex: none; color: var(--color-primary); font-weight: 600; white-space: nowrap; }
@media (max-width: 520px) {
  .course-bio-card { flex-wrap: wrap; gap: 12px; }
  .course-bio-cardbtn { width: 100%; }
}
.course-bio-quote {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--color-primary-light);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.8;
}

.course-testimonials { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.course-testimonial {
  background: rgba(122,171,138,0.08);
  border: 1px solid rgba(122,171,138,0.28);
  border-radius: 12px;
  padding: 16px 20px;
}
.course-testimonial p { color: var(--color-text); line-height: 1.85; }
.course-testimonial cite { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--color-text-muted); font-style: normal; }

.course-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.course-related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.course-related-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.course-related-title { color: var(--color-text); font-weight: 600; font-size: 0.95rem; line-height: 1.5; }
.course-related-arrow { position: absolute; top: 16px; right: 16px; color: var(--color-primary); }

.course-cta {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.course-cta-note {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 22px;
}
.course-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
  .course-hero-cover { aspect-ratio: 16 / 9; }
  .course-hero-title { font-size: 1.5rem; }
  .course-info { grid-template-columns: 1fr; }
}

/* ============================================================
   育才中心：課程 QA ＋ 合作邀請
   ============================================================ */

/* 課程 QA（原生 details 摺疊） */
.course-faq { display: flex; flex-direction: column; gap: 12px; max-width: 100%; }
.faq-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-accent-green);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--color-border); }
.faq-body { padding: 14px 20px 18px; }
.faq-body p { color: var(--color-text-muted); line-height: 1.85; font-size: 0.92rem; margin-bottom: 8px; }
.faq-subhead {
  font-weight: 700;
  color: var(--color-text) !important;
  margin-top: 10px;
}
.faq-body ul { list-style: none; margin-bottom: 10px; }
.faq-body li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}
.faq-body li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent-green);
}
.faq-body strong { color: var(--color-text); }

/* 合作邀請 */
.partnership-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.partnership-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent-green);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}
.partnership-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}
.partnership-item p { color: var(--color-text-muted); font-size: 0.88rem; line-height: 1.7; }
.partnership-cta { text-align: center; }

@media (max-width: 640px) {
  .partnership-grid { grid-template-columns: 1fr; }
}

/* 合作邀請 ＋ 聯繫（合併收尾區塊） */
.closing-section .partnership-item { background: var(--color-bg-card); }
.closing-cta {
  text-align: center;
  max-width: 620px;
  margin: 36px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.closing-cta h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }
.closing-cta p {
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 24px;
}

/* 本季主題「查看本季課程」按鈕 ＋ 本季篩選作用中標籤 */
.season-cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent-green);
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}
.season-cta:hover { background: #5d9470; transform: translateY(-1px); }

.course-filter-active { width: 100%; }
.active-season-chip {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.16s;
}
.active-season-chip:hover { background: var(--color-primary-dark); }

/* 課程 QA 作為「課程」卡內的子段落 */
.course-faq-section { margin-top: 4px; }
.course-subdivider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 34px 0 0;
}
.course-subheading {
  margin: 24px 0 4px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}
.course-subdesc {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
