/* ═══════════════════════════════════════════════════════════
   馥靈之鑰 Course Slides v1.1 — 淺色主題
   NAHA 芳療講義專用（米色溫暖風格）
   ═══════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #faf9f7;
  color: #1a1714;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
}

/* ── Slide Container ── */
.slides-wrap {
  width: 100%; height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
  overflow-y: auto;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Title Slide ── */
.slide-title {
  background: radial-gradient(ellipse at 50% 40%, rgba(184,146,42,.08) 0%, #faf9f7 70%);
}
.slide-title .lesson-tag {
  font-size: 1.1rem;
  color: #8b6914;
  letter-spacing: .15em;
  margin-bottom: 16px;
}
.slide-title h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6b4f1a 0%, #8b6914 30%, #a07d2e 70%, #4a3810 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  line-height: 1.4;
  max-width: 900px;
}
.slide-title .subtitle {
  font-size: 1.2rem;
  color: rgba(26,23,20,.55);
  margin-top: 20px;
  text-align: center;
}
.slide-title .brand {
  position: absolute;
  bottom: 40px;
  font-size: .9rem;
  color: rgba(139,105,20,.4);
  letter-spacing: .1em;
}

/* ── Content Slide ── */
.slide-content {
  background: radial-gradient(ellipse at 30% 60%, rgba(184,146,42,.04) 0%, #faf9f7 70%);
  align-items: flex-start;
  padding: 50px 80px;
}
.slide-content h2 {
  font-size: 2rem;
  color: #6b4f1a;
  margin-bottom: 24px;
  width: 100%;
}
.slide-content h3 {
  font-size: 1.4rem;
  color: #8b6914;
  margin: 20px 0 12px;
  width: 100%;
}
.slide-content p, .slide-content li {
  font-size: 1.15rem;
  line-height: 1.9;
  color: rgba(26,23,20,.85);
  max-width: 1000px;
}
.slide-content ul, .slide-content ol {
  padding-left: 28px;
  width: 100%;
  max-width: 1000px;
}
.slide-content li {
  margin-bottom: 8px;
}
.slide-content .highlight {
  color: #8b6914;
  font-weight: 600;
}
.slide-content .quote {
  border-left: 3px solid rgba(139,105,20,.3);
  padding: 16px 24px;
  margin: 16px 0;
  color: rgba(26,23,20,.7);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 900px;
  background: rgba(184,146,42,.04);
  border-radius: 0 8px 8px 0;
}
.slide-content .card {
  background: #fff;
  border: 1px solid rgba(139,105,20,.15);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 12px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  width: 100%;
  max-width: 1000px;
}
.slide-content table {
  width: 100%;
  max-width: 1000px;
  border-collapse: collapse;
  margin: 16px 0;
}
.slide-content th {
  background: rgba(139,105,20,.08);
  color: #6b4f1a;
  padding: 12px 16px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 2px solid rgba(139,105,20,.2);
}
.slide-content td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 1rem;
  color: rgba(26,23,20,.8);
}

/* ── Exam Focus Callout ── */
.exam-focus {
  background: rgba(184,146,42,.08);
  border: 1px solid rgba(139,105,20,.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
  width: 100%;
  max-width: 1000px;
}
.exam-focus h4 {
  color: #8b6914;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ── Two Column Layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: 1000px;
}

/* ── Section Divider Slide ── */
.slide-divider {
  background: radial-gradient(ellipse at 50% 50%, rgba(184,146,42,.06) 0%, #faf9f7 60%);
}
.slide-divider h2 {
  font-size: 2.5rem;
  color: #6b4f1a;
  text-align: center;
}
.slide-divider .divider-line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139,105,20,.4), transparent);
  margin: 20px 0;
}
.slide-divider p {
  font-size: 1.2rem;
  color: rgba(26,23,20,.55);
  text-align: center;
  max-width: 600px;
}

/* ── Action Slide ── */
.slide-action {
  background: radial-gradient(ellipse at 50% 50%, rgba(80,120,80,.06) 0%, #faf9f7 70%);
}
.slide-action h2 {
  font-size: 2rem;
  color: #6b4f1a;
  margin-bottom: 24px;
}
.slide-action .action-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 12px 0;
  max-width: 800px;
}
.slide-action .action-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #8b6914, #a07d2e);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
}
.slide-action .action-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(26,23,20,.85);
  padding-top: 4px;
}

/* ── Navigation ── */
.slide-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 100;
  background: rgba(250,249,247,.92);
  border: 1px solid rgba(139,105,20,.15);
  border-radius: 24px;
  padding: 8px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.slide-nav button {
  background: none;
  border: none;
  color: rgba(139,105,20,.6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .2s;
}
.slide-nav button:hover {
  color: #6b4f1a;
  background: rgba(139,105,20,.08);
}
.slide-nav .page-info {
  color: rgba(26,23,20,.4);
  font-size: .85rem;
  min-width: 60px;
  text-align: center;
}

/* ── Progress Bar ── */
.slide-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b6914, #c4a03a);
  transition: width .3s ease;
  z-index: 100;
}

/* ── Sidebar ── */
.slide-sidebar {
  position: fixed;
  top: 0; left: -320px;
  width: 320px; height: 100%;
  background: rgba(250,249,247,.97);
  border-right: 1px solid rgba(139,105,20,.12);
  backdrop-filter: blur(16px);
  z-index: 200;
  transition: left .3s ease;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 4px 0 16px rgba(0,0,0,.05);
}
.slide-sidebar.open { left: 0; }
.slide-sidebar h3 {
  color: #6b4f1a;
  font-size: 1rem;
  margin-bottom: 16px;
}
.slide-sidebar .sidebar-item {
  display: block;
  padding: 10px 14px;
  color: rgba(26,23,20,.6);
  font-size: .9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 4px;
}
.slide-sidebar .sidebar-item:hover,
.slide-sidebar .sidebar-item.current {
  background: rgba(139,105,20,.08);
  color: #6b4f1a;
}
.sidebar-toggle {
  position: fixed;
  top: 16px; left: 16px;
  z-index: 201;
  background: rgba(250,249,247,.9);
  border: 1px solid rgba(139,105,20,.15);
  color: rgba(139,105,20,.6);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.sidebar-toggle:hover {
  color: #6b4f1a;
  border-color: rgba(139,105,20,.3);
}

/* ── Fullscreen button ── */
.fullscreen-btn {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 100;
  background: rgba(250,249,247,.9);
  border: 1px solid rgba(139,105,20,.15);
  color: rgba(139,105,20,.6);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.fullscreen-btn:hover {
  color: #6b4f1a;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .slide { padding: 40px 28px; }
  .slide-title h1 { font-size: 1.8rem; }
  .slide-content h2 { font-size: 1.5rem; }
  .slide-content p, .slide-content li { font-size: 1rem; }
  .two-col { grid-template-columns: 1fr; gap: 16px; }
  .slide-nav { bottom: 10px; padding: 6px 14px; }
}

/* ── Print ── */
@media print {
  .slide-nav, .slide-sidebar, .sidebar-toggle, .fullscreen-btn, .slide-progress { display: none; }
  .slide { position: relative; opacity: 1; pointer-events: auto; page-break-after: always; min-height: 100vh; }
  body { background: #fff; }
}
