/* ==========================================================================
   四季八里都蘭共學堂 - 全域設計系統 & 樣式表 (style.css)
   ========================================================================== */

/* --- 變數定義 --- */
:root {
  /* HSL 色彩主題 (Ocean Tech & Warm Soil) */
  --primary-hue: 222;
  --secondary-hue: 160;
  --accent-hue: 38;

  /* 深色模式變數 (預設) */
  --bg-base: #090d16;
  --bg-surface: rgba(15, 23, 42, 0.65);
  --bg-surface-opaque: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.45);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary-color: #3b82f6; /* 太平洋藍 */
  --secondary-color: #10b981; /* 都蘭山林綠 */
  --accent-color: #f59e0b; /* 溫暖稻穗金 */
  --accent-glow: rgba(245, 158, 11, 0.15);
  
  --gradient-hero: linear-gradient(135deg, #1e3a8a, #064e3b);
  --gradient-highlight: linear-gradient(135deg, #60a5fa, #34d399);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --font-title: 'Outfit', 'Noto Sans TC', sans-serif;
  --font-body: 'Noto Sans TC', sans-serif;
}

/* 淺色模式變數 */
html.light {
  --bg-base: #f8fafc;
  --bg-surface: rgba(255, 255, 255, 0.7);
  --bg-surface-opaque: #ffffff;
  --bg-card: rgba(241, 245, 249, 0.8);
  --border-color: rgba(15, 23, 42, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary-color: #1d4ed8;
  --secondary-color: #047857;
  --accent-color: #d97706;
  --accent-glow: rgba(217, 119, 6, 0.1);
  
  --gradient-hero: linear-gradient(135deg, #eff6ff, #ecfdf5);
  --gradient-highlight: linear-gradient(135deg, #1d4ed8, #059669);
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.12);
  --glass-glow: 0 8px 32px 0 rgba(15, 23, 42, 0.05);
}

/* --- 全域重置與基礎樣式 --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.625;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* 背景裝飾光點 */
.glow-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  transition: opacity 0.4s ease;
}

.glow-1 {
  background: radial-gradient(circle, var(--primary-color), transparent 70%);
  top: 10%;
  right: -10%;
}

.glow-2 {
  background: radial-gradient(circle, var(--secondary-color), transparent 70%);
  bottom: 10%;
  left: -10%;
}

/* 容器佈局 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 毛玻璃卡片基類 */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--glass-glow);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.3s ease, 
              border-color 0.3s ease;
}

/* --- 網頁導覽列 (Navbar) --- */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(var(--bg-base), 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-emoji {
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-highlight);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 按鈕基類 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-base);
}

.btn-block {
  display: block;
  width: 100%;
}

.nav-btn {
  composes: btn;
  background: var(--gradient-highlight);
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  transition: all 0.2s ease;
}

.nav-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* 深淺色主題切換 */
.theme-toggle, .mobile-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.theme-toggle:hover, .mobile-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* 切換圖示顯示 */
.sun-icon { display: block; }
.moon-icon { display: none; }

html.light .sun-icon { display: none; }
html.light .moon-icon { display: block; }

.mobile-toggle {
  display: none;
}

/* --- 首頁英雄區 (Hero Section) --- */
.hero-section {
  padding-top: 9rem;
  padding-bottom: 5rem;
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary-color);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.badge-amber {
  color: var(--accent-color);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.highlight-gradient {
  background: var(--gradient-highlight);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.image-wrapper {
  padding: 0.6rem;
  border-radius: 1.2rem;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  display: block;
  transition: transform 0.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1.02);
}

/* --- Section 共用樣式 --- */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 35rem;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Grid 基類 */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- 核心主張 (Philosophy) --- */
.claim-card {
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.claim-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.bg-blue-glow {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.bg-green-glow {
  background: linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.bg-amber-glow {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.bg-purple-glow {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- 山海共學週曆 (Schedule) --- */
.daily-notice {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.8rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
}

.notice-icon {
  font-size: 1.8rem;
}

.notice-text {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.table-responsive {
  overflow-x: auto;
  border-radius: 1rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 750px;
}

.schedule-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.2rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-color);
}

.schedule-table td {
  padding: 1.2rem 1.5rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.time-col {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--primary-color);
}

.event-name {
  font-weight: 600;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.3rem;
}

.tag-weekly {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag-tutor {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag-core {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.tag-monthly {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* --- 共創營介紹 (Camp) --- */
.camp-section {
  position: relative;
}

.camp-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.mentor-row {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.mentor-avatar {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--gradient-hero);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.mentor-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.mentor-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-card {
  padding: 2rem;
  border-left: 4px solid var(--accent-color);
}

.price-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-amount {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-color);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.barter-notice p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.6rem;
}

.tag-barter {
  background: var(--accent-glow);
  color: var(--accent-color);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* 營期主題清單 */
.camp-themes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.themes-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.theme-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.8rem;
}

.theme-emoji {
  font-size: 2rem;
  line-height: 1;
}

.theme-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.theme-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- 實戰故事區 (Stories - 輪播) --- */
.carousel-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 1rem;
}

.story-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.story-slide.active {
  display: block;
  opacity: 1;
}

.story-card {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  overflow: hidden;
}

.story-img-wrap {
  position: relative;
  height: 100%;
  min-height: 320px;
}

.story-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.3rem;
  color: #ffffff;
}

.story-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.story-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.story-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.story-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
}

.story-highlight {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-color);
}

/* 輪播導航點 */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* --- 播客與音訊播放器 (Podcast) --- */
.podcast-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  overflow: hidden;
}

.podcast-playlist {
  border-right: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
}

.playlist-header {
  padding: 1.5rem 1.8rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.playlist-items {
  display: flex;
  flex-direction: column;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.2s ease;
}

.playlist-item:last-child {
  border-bottom: none;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.playlist-item.active {
  background: rgba(59, 130, 246, 0.06);
  border-left: 4px solid var(--primary-color);
}

.play-indicator {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 1rem;
}

.playlist-item.active .play-indicator {
  color: var(--primary-color);
}

.item-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.playlist-item.active .item-meta h4 {
  color: var(--primary-color);
}

.item-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.item-duration {
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* 播放器容器 */
.podcast-player-container {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.player-visual-area {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

/* 黑膠唱片特效 */
.disc-wrapper {
  perspective: 1000px;
}

.vinyl-disc {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, #2d2d2d 30%, #0d0d0d 60%, #1a1a1a 70%);
  border: 4px solid #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateDisc 10s linear infinite;
  animation-play-state: paused;
  transition: transform 0.5s ease;
}

@keyframes rotateDisc {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.vinyl-center {
  width: 2.2rem;
  height: 2.2rem;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.track-details h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.track-details p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* 進度條與時間 */
.time-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.time-slider-container span {
  font-family: var(--font-title);
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 2.5rem;
}

.time-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  cursor: pointer;
}

.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.time-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* 播放控制按鈕 */
.control-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
}

.btn-ctrl {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-ctrl:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-play {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-play:hover {
  transform: scale(1.05);
  background: #2563eb;
  color: #ffffff;
}

.hidden {
  display: none !important;
}

/* 逐字稿顯示框 */
.transcript-box {
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.transcript-content {
  max-height: 5.5rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scroll-behavior: smooth;
  transition: max-height 0.3s ease;
}

.transcript-content.expanded {
  max-height: 15rem;
}

.lyric-line {
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.lyric-line.active {
  color: var(--text-primary);
  font-weight: 500;
}

/* 存檔連結列 */
.archive-links-wrap {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.archive-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.6rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.archive-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-yt {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-yt:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-md {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-md:hover {
  background: var(--text-primary);
  color: var(--bg-base);
}

/* --- 預約報名表單 (Register) --- */
.register-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  overflow: hidden;
}

.register-info-panel {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));
  padding: 4rem 3rem;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-badge {
  font-family: var(--font-title);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.register-info-panel h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.register-info-panel p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.benefit-list li::before {
  content: "✦";
  color: var(--secondary-color);
  font-weight: bold;
}

/* 表單填寫面 */
.register-form-panel {
  padding: 4rem 3rem;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.required {
  color: #ef4444;
  margin-left: 0.15rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.25s ease;
}

html.light input[type="text"],
html.light input[type="tel"],
html.light input[type="email"],
html.light textarea {
  background: rgba(15, 23, 42, 0.02);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

html.light input[type="text"]:focus,
html.light input[type="tel"]:focus,
html.light input[type="email"]:focus,
html.light textarea:focus {
  background: rgba(255, 255, 255, 1);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Radio Group 樣式 */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  position: relative;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.2s ease;
}

.radio-label:hover {
  background: rgba(255, 255, 255, 0.03);
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-radio {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked ~ .custom-radio {
  border-color: var(--primary-color);
}

.custom-radio::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--primary-color);
  transform: scale(0);
  transition: transform 0.2s ease;
}

.radio-label input[type="radio"]:checked ~ .custom-radio::after {
  transform: scale(1);
}

.radio-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.radio-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* 支付/以物易物選擇盒 */
.payment-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.payment-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.2s ease;
}

.payment-box input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.payment-box:hover {
  background: rgba(255, 255, 255, 0.03);
}

.payment-box.active {
  border-color: var(--accent-color);
  background: var(--accent-glow);
  color: var(--accent-color);
}

/* 動態面板 */
.barter-details-panel {
  background: rgba(245, 158, 11, 0.03);
  border: 1px dashed rgba(245, 158, 11, 0.25);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.lodging-panel {
  background: rgba(59, 130, 246, 0.03);
  border: 1px dashed rgba(59, 130, 246, 0.2);
  padding: 1.2rem;
  border-radius: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-checkbox {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--text-muted);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.custom-checkbox::after {
  content: "✔";
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: bold;
  transform: scale(0);
  transition: transform 0.15s ease;
}

.checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox::after {
  transform: scale(1);
}

.help-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* --- 實體據點 (Contact) --- */
.contact-badge {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.contact-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.card-divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  margin-bottom: 2.2rem;
}

.contact-details-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-details-list li strong {
  color: var(--text-primary);
}

.contact-card .btn {
  width: 100%;
}

/* --- 頁尾 (Footer) --- */
.footer-area {
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 3rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer-moto {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.location-stamp {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- 彈出成功視窗 (Success Modal) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  max-width: 480px;
  width: 100%;
  padding: 3rem 2.5rem;
  text-align: center;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-success-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1.5rem;
}

.modal-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.modal-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal-summary {
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
}

.modal-summary p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.modal-summary p:last-child {
  margin-bottom: 0;
}

.modal-next-steps {
  font-size: 0.85rem !important;
  color: var(--accent-color) !important;
  font-weight: 600;
  margin-bottom: 2rem !important;
}

/* --- 共學課程 (Courses Section) --- */
.courses-section {
  position: relative;
}

.courses-grid {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.course-category-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.category-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  border-left: 4px solid var(--secondary-color);
  padding-left: 0.75rem;
  margin-bottom: 0.5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.course-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  gap: 0.5rem;
}

.course-header h4 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.course-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.course-teacher {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.course-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- 共生商店 (Stores Section) --- */
.stores-section {
  position: relative;
}

.store-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.store-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.75rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.store-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.store-tab-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.store-panels {
  position: relative;
}

.store-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.store-panel.active {
  display: block;
  opacity: 1;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.store-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  align-items: flex-start;
}

.store-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.store-card-visual {
  font-size: 2.2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.03);
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.store-card-body {
  flex-grow: 1;
}

.store-card-body h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.store-card-price {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.8rem;
}

.price-unit {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.store-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 出租單車微調與單車標章 */
.store-panel#store-panel-rental .store-card-visual {
  border-color: rgba(245, 158, 11, 0.25);
}

/* --- RWD 響應式佈局調整 (Media Queries) --- */

/* 平板寬度 (992px 以下) */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  

  .grid-4, .category-grid, .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .camp-section .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .story-card {
    grid-template-columns: 1fr;
  }
  
  .story-img-wrap {
    height: 250px;
    min-height: auto;
  }
  
  .story-content {
    padding: 2.2rem;
  }
  
  .podcast-layout {
    grid-template-columns: 1fr;
  }
  
  .podcast-playlist {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .register-layout {
    grid-template-columns: 1fr;
  }
  
  .register-info-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 2rem;
  }
  
  .register-form-panel {
    padding: 3rem 2rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* 手機版 (768px 以下) */
@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  /* 手機導航選單切換 */
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 4.8rem;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--bg-surface-opaque);
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-menu.open {
    height: auto;
    padding: 2rem 1.5rem;
  }
  
  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .nav-btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }
  

  .grid-4, .category-grid, .store-grid {
    grid-template-columns: 1fr;
  }
  
  .store-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .payment-selector {
    grid-template-columns: 1fr;
  }
  
  .footer-top, .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
