/* ===================================
   諮詢服務部門簡報樣式表
   四種色系主題 + Vanilla JavaScript
   =================================== */

/* 基礎重設 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 引入思源黑體 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

/* ===================================
   四種色系主題變數
   =================================== */

/* 醫療藍綠色系 */
:root[data-theme="medical"] {
  --primary-color: #0891b2; /* cyan-600 */
  --primary-light: #06b6d4; /* cyan-500 */
  --primary-dark: #0e7490; /* cyan-700 */
  --secondary-color: #14b8a6; /* teal-500 */
  --accent-color: #10b981; /* emerald-500 */
  --bg-gradient-from: #0f766e; /* teal-700 */
  --bg-gradient-to: #134e4a; /* teal-900 */
  --text-color: #ffffff;
  --text-secondary: #d1fae5; /* emerald-100 */
  --card-bg: rgba(20, 184, 166, 0.1);
  --card-border: rgba(20, 184, 166, 0.3);
}

/* 商務深藍色系 */
:root[data-theme="business"] {
  --primary-color: #1e40af; /* blue-800 */
  --primary-light: #3b82f6; /* blue-500 */
  --primary-dark: #1e3a8a; /* blue-900 */
  --secondary-color: #4f46e5; /* indigo-600 */
  --accent-color: #6366f1; /* indigo-500 */
  --bg-gradient-from: #1e3a8a; /* blue-900 */
  --bg-gradient-to: #0f172a; /* slate-900 */
  --text-color: #ffffff;
  --text-secondary: #dbeafe; /* blue-100 */
  --card-bg: rgba(59, 130, 246, 0.1);
  --card-border: rgba(59, 130, 246, 0.3);
}

/* 現代灰橘色系 */
:root[data-theme="modern"] {
  --primary-color: #ea580c; /* orange-600 */
  --primary-light: #f97316; /* orange-500 */
  --primary-dark: #c2410c; /* orange-700 */
  --secondary-color: #f59e0b; /* amber-500 */
  --accent-color: #fbbf24; /* amber-400 */
  --bg-gradient-from: #78716c; /* stone-500 */
  --bg-gradient-to: #292524; /* stone-800 */
  --text-color: #ffffff;
  --text-secondary: #fed7aa; /* orange-200 */
  --card-bg: rgba(249, 115, 22, 0.1);
  --card-border: rgba(249, 115, 22, 0.3);
}

/* 清新天藍色系 */
:root[data-theme="skyblue"] {
  --primary-color: #0ea5e9; /* sky-500 */
  --primary-light: #38bdf8; /* sky-400 */
  --primary-dark: #0284c7; /* sky-600 */
  --secondary-color: #0891b2; /* cyan-600 */
  --accent-color: #06b6d4; /* cyan-500 */
  --bg-gradient-from: #0c4a6e; /* sky-900 */
  --bg-gradient-to: #082f49; /* sky-950 */
  --text-color: #ffffff;
  --text-secondary: #e0f2fe; /* sky-100 */
  --card-bg: rgba(14, 165, 233, 0.1);
  --card-border: rgba(14, 165, 233, 0.3);
}

/* 背景漸層 */
body {
  background: linear-gradient(135deg, var(--bg-gradient-from), var(--bg-gradient-to));
  color: var(--text-color);
  min-height: 100vh;
}

/* ===================================
   投影片容器系統
   =================================== */

.slides-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slides-container {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.slide {
  min-width: 100%;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
}

/* ===================================
   封面頁樣式
   =================================== */

.slide-title {
  font-size: 4rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-color);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.slide-meta {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.8;
}

@media (max-width: 640px) {
  .slide-title {
    font-size: 2.5rem;
  }

  .slide-subtitle {
    font-size: 1.5rem;
  }

  .slide-meta {
    font-size: 1rem;
  }
}

/* ===================================
   通用標題樣式
   =================================== */

.slide-heading {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  color: var(--text-color);
}

@media (max-width: 640px) {
  .slide-heading {
    font-size: 2rem;
    margin-bottom: 40px;
  }
}

@media (min-width: 1024px) {
  .slide-heading {
    font-size: 4rem;
  }
}

/* ===================================
   團隊架構圖
   =================================== */

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  padding-bottom: 160px;
}

.org-head, .org-body {
  display: flex;
  justify-content: center;
}

.org-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.org-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.org-card.manager {
  background: var(--primary-color);
}

.org-card.team {
  background: var(--secondary-color);
}

.org-icon {
  font-size: 3rem;
}

.org-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.org-line {
  width: 2px;
  height: 40px;
  background: var(--primary-color);
}

.org-line-split {
  width: 200px;
  height: 2px;
  background: var(--primary-color);
  margin: 10px 0;
}

.org-groups {
  display: flex;
  gap: 80px;
}

.org-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.org-card.sub {
  background: var(--accent-color);
  padding: 20px 28px;
  flex-direction: row;
  gap: 8px;
}

.org-number {
  font-size: 2rem;
  font-weight: 900;
}

.org-label {
  font-size: 1.2rem;
  font-weight: 500;
}

.org-desc {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.org-note {
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .org-groups {
    flex-direction: column;
    gap: 40px;
  }

  .org-icon {
    font-size: 2rem;
  }

  .org-title {
    font-size: 1.2rem;
  }
}

/* ===================================
   服務範圍卡片
   =================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin-bottom: 40px;
}

.service-card {
  background: rgba(14, 165, 233, 0.2);
  backdrop-filter: blur(10px);
  border: 3px solid rgba(14, 165, 233, 0.5);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-light);
  background: rgba(14, 165, 233, 0.3);
}

.service-card.highlight {
  background: var(--primary-color);
  border-color: var(--primary-light);
}

.service-icon {
  font-size: 3.5rem;
}

.service-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-color);
}

.service-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
}

.service-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.service-total {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-secondary);
}

.total-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-light);
}

@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .service-number {
    font-size: 2rem;
  }
}

/* ===================================
   台灣地圖分佈
   =================================== */

.hospital-map-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin-bottom: 40px;
}

.hospital-map-image {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.map-total {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-secondary);
}

.total-count {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-light);
}

@media (max-width: 640px) {
  .hospital-map-image {
    max-height: 60vh;
  }

  .map-total {
    font-size: 1.4rem;
  }

  .total-count {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .hospital-map-image {
    max-height: 75vh;
  }
}

/* ===================================
   衛生所分佈
   =================================== */

.health-center-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin-bottom: 50px;
}

.health-region-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 3px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.health-region-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-light);
  background: rgba(14, 165, 233, 0.25);
}

.region-header {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
}

.region-count {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-light);
  text-shadow: 0 2px 8px rgba(14, 165, 233, 0.5);
}

.health-note {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(14, 165, 233, 0.2);
  padding: 20px 40px;
  border-radius: 16px;
  border: 2px solid rgba(14, 165, 233, 0.4);
  margin-bottom: 80px;
}

.note-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.note-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
}

@media (max-width: 640px) {
  .health-center-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .health-region-card {
    padding: 30px 20px;
  }

  .region-header {
    font-size: 1.3rem;
  }

  .region-count {
    font-size: 2rem;
  }

  .health-note {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
  }

  .note-text {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .region-header {
    font-size: 2rem;
  }

  .region-count {
    font-size: 3.5rem;
  }
}

/* ===================================
   工作內容卡片
   =================================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin-bottom: 50px;
}

.work-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  border-color: var(--primary-light);
}

.work-icon {
  font-size: 3rem;
}

.work-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.work-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  opacity: 0.9;
}

.work-focus {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--primary-color);
  padding: 20px 40px;
  border-radius: 16px;
}

.focus-badge {
  background: rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.focus-text {
  font-size: 1.5rem;
  font-weight: 700;
}

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

  .work-focus {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================
   專案負責卡片
   =================================== */

.project-container {
  display: flex;
  gap: 40px;
  max-width: 1000px;
}

.project-card {
  flex: 1;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-light);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.project-icon {
  font-size: 3rem;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.project-divider {
  height: 2px;
  background: var(--primary-color);
  margin: 20px 0;
}

.project-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .project-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* ===================================
   每日工作量
   =================================== */

.workload-container {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.workload-chart {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chart-bar {
  background: rgba(0, 0, 0, 0.3);
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  height: 100%;
  width: 75%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: width 0.5s ease-in-out;
}

.bar-label {
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chart-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-align: center;
}

.workload-types {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.type-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.2rem;
  color: var(--text-color);
}

.type-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.type-dot.simple {
  background: #10b981; /* green */
}

.type-dot.complex {
  background: #f59e0b; /* amber */
}

.type-dot.new {
  background: #ef4444; /* red */
}

/* ===================================
   章節頁樣式
   =================================== */

.section-slide {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  position: relative;
  overflow: hidden;
}

.section-number {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  font-size: 15rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
}

.section-title {
  font-size: 5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-color);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 10;
  position: relative;
}

.section-subtitle {
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: center;
  z-index: 10;
  position: relative;
}

@media (max-width: 640px) {
  .section-number {
    font-size: 8rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .section-subtitle {
    font-size: 1.5rem;
  }
}

/* ===================================
   流程圖樣式
   =================================== */

.flow-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
  max-width: 1200px;
}

.flow-step {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 150px;
  transition: all 0.3s ease;
}

.flow-step:hover {
  transform: scale(1.05);
}

.flow-step.danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.flow-icon {
  font-size: 2.5rem;
}

.flow-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
}

.flow-arrow {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
}

.flow-arrow.danger {
  color: #ef4444;
}

@media (max-width: 640px) {
  .flow-container {
    flex-direction: column;
    gap: 10px;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }
}

/* ===================================
   風險警示框
   =================================== */

.risk-alert {
  background: rgba(239, 68, 68, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  gap: 24px;
  max-width: 800px;
}

.alert-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 12px;
}

.alert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-list li {
  font-size: 1.1rem;
  color: var(--text-color);
  padding-left: 20px;
  position: relative;
}

.alert-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 900;
}

/* ===================================
   KPI 對比卡片
   =================================== */

.kpi-comparison {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.kpi-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 250px;
  transition: all 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.kpi-card.simple {
  border-color: #10b981;
}

.kpi-card.complex {
  border-color: #ef4444;
}

.kpi-icon {
  font-size: 3rem;
}

.kpi-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.kpi-time {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.kpi-score {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-light);
}

.kpi-vs {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-light);
}

.kpi-issue {
  text-align: center;
  max-width: 600px;
}

.issue-text {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.issue-highlight {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ef4444;
}

@media (max-width: 640px) {
  .kpi-comparison {
    flex-direction: column;
    gap: 20px;
  }
}

/* ===================================
   改善方案樣式
   =================================== */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin-bottom: 40px;
}

.solution-benefit {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.solution-benefit:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  border-color: var(--primary-light);
}

.benefit-icon {
  font-size: 3.5rem;
}

.benefit-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
}

.benefit-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
}

.solution-status {
  text-align: center;
}

.status-badge {
  display: inline-block;
  background: var(--accent-color);
  color: var(--text-color);
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ===================================
   自動化對比
   =================================== */

.automation-comparison {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  flex-wrap: wrap;
  justify-content: center;
}

.auto-column {
  flex: 1;
  min-width: 300px;
}

.auto-header {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.auto-content {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.auto-content:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.auto-column.before .auto-content {
  border-color: #ef4444;
}

.auto-column.after .auto-content {
  border-color: #10b981;
}

.auto-icon {
  font-size: 4rem;
}

.auto-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.auto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.auto-list li {
  font-size: 1.1rem;
  color: var(--text-color);
  padding-left: 24px;
  position: relative;
}

.auto-column.before .auto-list li:before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 900;
}

.auto-column.after .auto-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 900;
}

.auto-arrow {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-light);
}

@media (max-width: 640px) {
  .automation-comparison {
    flex-direction: column;
  }

  .auto-arrow {
    transform: rotate(90deg);
  }
}

/* ===================================
   導航按鈕
   =================================== */

.nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-color);
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-prev {
  left: 30px;
}

.nav-next {
  right: 30px;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 640px) {
  .nav-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .nav-prev {
    left: 15px;
  }

  .nav-next {
    right: 15px;
  }
}

/* ===================================
   進度指示點
   =================================== */

.pagination-dots {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 24px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.dot.active {
  background: var(--primary-light);
  transform: scale(1.3);
}

@media (max-width: 640px) {
  .pagination-dots {
    bottom: 20px;
    padding: 8px 12px;
    gap: 6px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

/* ===================================
   投影片編號
   =================================== */

.slide-number {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

@media (max-width: 640px) {
  .slide-number {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}

/* ===================================
   無障礙與效能優化
   =================================== */

button:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================
   列印樣式
   =================================== */

@media print {
  body {
    overflow: visible;
  }

  .slides-container {
    display: block !important;
    transform: none !important;
  }

  .slide {
    page-break-after: always;
    min-height: 100vh;
  }

  .nav-btn,
  .pagination-dots,
  .slide-number {
    display: none !important;
  }
}
