/* ═══════════════════════════════════════════════════════════
   馥靈之鑰 Course Slides v1.0
   深色品牌風格簡報系統
   ═══════════════════════════════════════════════════════════ */

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #05030a;
  color: rgba(255,255,255,.9);
  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(80,60,140,.25) 0%, #05030a 70%);
}
.slide-title .lesson-tag {
  font-size: 1.1rem;
  color: rgba(248,223,165,.7);
  letter-spacing: .15em;
  margin-bottom: 16px;
}
.slide-title h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fbe6c2 0%, #f8dfa5 30%, #ecd098 70%, #fff9ea 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(255,255,255,.6);
  margin-top: 20px;
  text-align: center;
}
.slide-title .brand {
  position: absolute;
  bottom: 40px;
  font-size: .9rem;
  color: rgba(248,223,165,.4);
  letter-spacing: .1em;
}

/* ── Content Slide ── */
.slide-content {
  background: radial-gradient(ellipse at 30% 60%, rgba(60,40,100,.15) 0%, #05030a 70%);
  align-items: flex-start;
  padding: 50px 80px;
}
.slide-content h2 {
  font-size: 2rem;
  color: #f8dfa5;
  margin-bottom: 24px;
  text-shadow: 0 0 12px rgba(248,223,165,.3);
  width: 100%;
}
.slide-content h3 {
  font-size: 1.4rem;
  color: #ecd098;
  margin: 20px 0 12px;
  width: 100%;
}
.slide-content p, .slide-content li {
  font-size: 1.15rem;
  line-height: 1.9;
  color: rgba(255,255,255,.88);
  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: #f8dfa5;
  font-weight: 600;
}
.slide-content .quote {
  border-left: 3px solid rgba(248,223,165,.4);
  padding: 16px 24px;
  margin: 16px 0;
  color: rgba(255,255,255,.75);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 900px;
}
.slide-content .card {
  background: rgba(14,10,24,.82);
  border: 1px solid rgba(248,223,165,.2);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 12px 0;
  box-shadow: 0 0 20px rgba(248,223,165,.08);
  width: 100%;
  max-width: 1000px;
}
.slide-content table {
  width: 100%;
  max-width: 1000px;
  border-collapse: collapse;
  margin: 16px 0;
}
.slide-content th {
  background: rgba(248,223,165,.12);
  color: #f8dfa5;
  padding: 12px 16px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid rgba(248,223,165,.3);
}
.slide-content td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 1rem;
  color: rgba(255,255,255,.85);
}

/* ── 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(100,70,160,.2) 0%, #05030a 60%);
}
.slide-divider h2 {
  font-size: 2.5rem;
  color: #f8dfa5;
  text-shadow: 0 0 20px rgba(248,223,165,.3);
  text-align: center;
}
.slide-divider .divider-line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(248,223,165,.5), transparent);
  margin: 20px 0;
}
.slide-divider p {
  font-size: 1.2rem;
  color: rgba(255,255,255,.6);
  text-align: center;
  max-width: 600px;
}

/* ── Action Slide ── */
.slide-action {
  background: radial-gradient(ellipse at 50% 50%, rgba(60,100,60,.15) 0%, #05030a 70%);
}
.slide-action h2 {
  font-size: 2rem;
  color: #f8dfa5;
  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, #f8dfa5, #d4a850);
  color: #0a0814;
  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(255,255,255,.88);
  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(5,3,10,.85);
  border: 1px solid rgba(248,223,165,.15);
  border-radius: 24px;
  padding: 8px 20px;
  backdrop-filter: blur(12px);
}
.slide-nav button {
  background: none;
  border: none;
  color: rgba(248,223,165,.7);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .2s;
}
.slide-nav button:hover {
  color: #f8dfa5;
  background: rgba(248,223,165,.1);
}
.slide-nav .page-info {
  color: rgba(255,255,255,.5);
  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, #f8dfa5, #d4a850);
  transition: width .3s ease;
  z-index: 100;
  box-shadow: 0 0 8px rgba(248,223,165,.3);
}

/* ── Sidebar (slide list) ── */
.slide-sidebar {
  position: fixed;
  top: 0; left: -320px;
  width: 320px; height: 100%;
  background: rgba(5,3,10,.95);
  border-right: 1px solid rgba(248,223,165,.15);
  backdrop-filter: blur(16px);
  z-index: 200;
  transition: left .3s ease;
  overflow-y: auto;
  padding: 20px;
}
.slide-sidebar.open { left: 0; }
.slide-sidebar h3 {
  color: #f8dfa5;
  font-size: 1rem;
  margin-bottom: 16px;
}
.slide-sidebar .sidebar-item {
  display: block;
  padding: 10px 14px;
  color: rgba(255,255,255,.7);
  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(248,223,165,.1);
  color: #f8dfa5;
}
.sidebar-toggle {
  position: fixed;
  top: 16px; left: 16px;
  z-index: 201;
  background: rgba(5,3,10,.8);
  border: 1px solid rgba(248,223,165,.2);
  color: rgba(248,223,165,.7);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.sidebar-toggle:hover {
  color: #f8dfa5;
  border-color: rgba(248,223,165,.4);
}

/* ── Fullscreen button ── */
.fullscreen-btn {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 100;
  background: rgba(5,3,10,.8);
  border: 1px solid rgba(248,223,165,.2);
  color: rgba(248,223,165,.7);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fullscreen-btn:hover {
  color: #f8dfa5;
}

/* ── 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 / Export ── */
@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; color: #222; }
  .slide-title h1 { -webkit-text-fill-color: #2a1f0e; }
}
