:root {
  --bg: #f5f1e9;
  --bg-soft: #ebe4d8;
  --card: #fffcf7;
  --text: #2c2824;
  --muted: #6a635a;
  --accent: #6e5638;
  --accent-light: #9a7d55;
  --gold: #b08d2a;
  --border: #e2d9cb;
  --shadow: 0 12px 40px rgba(44, 40, 36, 0.08);
  --museum: #1c1916;
  --museum-soft: #2a2520;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Serif TC", "Songti TC", "SimSun", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 233, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.site-nav .inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-logo {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); font-style: italic; }
.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* ========== Video Hero ========== */
.hero-video {
  position: relative;
  width: 100%;
  background: #1a1714;
  overflow: hidden;
}
.hero-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 700px) {
  .hero-video video {
    max-height: none;
    height: 88vh;
    min-height: 88vh;
    object-fit: cover;
  }
}

.hero-text {
  text-align: center;
  padding: 28px 24px 20px;
  background: var(--bg);
}
.hero-logo {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  margin-bottom: 6px;
  color: var(--text);
}
.hero-logo span {
  color: var(--accent);
  font-style: italic;
}
.hero-tag {
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 4px;
}
@media (max-width: 700px) {
  .hero-logo {
    font-size: 2.1rem;
    letter-spacing: 0.16em;
  }
  .hero-text { padding: 22px 18px 16px; }
  .nav-links { gap: 14px; }
}

/* Sections */
section { margin-bottom: 56px; }
.section-header {
  margin-bottom: 24px;
  text-align: center;
}
.section-header h2 {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.section-header p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}
.divider {
  width: 42px;
  height: 1.5px;
  background: var(--accent);
  margin: 14px auto 0;
  opacity: 0.7;
}

/* ========== Museum Gallery Slider (strip + peek) ========== */
.museum-gallery {
  margin: 0 -24px 40px;
  background: #0e0c0a;
  padding: 40px 0 36px;
  position: relative;
  overflow: hidden;
}

.museum-label {
  text-align: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}
.museum-label span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  letter-spacing: 0.4em;
  color: rgba(245, 236, 210, 0.85);
  text-transform: uppercase;
}

.museum-slider {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  z-index: 2;
}

.museum-viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  /* soft edge fade so strip feels cinematic */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}
.museum-viewport.is-dragging {
  cursor: grabbing;
}

.museum-track {
  display: flex;
  align-items: stretch;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  gap: 0;
}
.museum-track.no-transition {
  transition: none;
}

/* Desktop default: ~4.5 panels visible */
.museum-slide {
  flex: 0 0 22%;
  width: 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}
.museum-slide + .museum-slide {
  border-left: 3px solid #0e0c0a;
}

.museum-slide figure {
  margin: 0;
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #1a1714;
}

.museum-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: filter 0.4s ease, transform 0.5s ease;
  filter: brightness(0.82);
}
.museum-slide.is-active img {
  filter: brightness(1);
  transform: scale(1.02);
}

.museum-caption {
  text-align: center;
  margin-top: 18px;
  min-height: 2.2em;
  padding: 0 20px;
}
.museum-caption p {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: rgba(245, 241, 233, 0.7);
  font-style: italic;
}

.museum-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  padding: 0 20px;
}

.museum-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 106, 0.35);
  background: transparent;
  color: rgba(245, 241, 233, 0.8);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.museum-arrow:hover {
  border-color: rgba(232, 201, 106, 0.8);
  background: rgba(232, 201, 106, 0.1);
  color: #e8c96a;
}

.museum-progress {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 260px;
}
.museum-progress button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(245, 241, 233, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.25s, width 0.3s;
}
.museum-progress button.active {
  background: #e8c96a;
  transform: scale(1.2);
  width: 16px;
  border-radius: 3px;
}

.museum-counter {
  text-align: center;
  margin-top: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: rgba(245, 241, 233, 0.4);
}

/* Large desktop: show more panels */
@media (min-width: 1200px) {
  .museum-slide {
    flex: 0 0 18%;
    width: 18%;
  }
  .museum-slide figure {
    height: 360px;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .museum-slide {
    flex: 0 0 22%;
    width: 22%;
  }
  .museum-slide figure {
    height: 300px;
  }
}

/* Tablet */
@media (min-width: 701px) and (max-width: 899px) {
  .museum-slide {
    flex: 0 0 32%;
    width: 32%;
  }
  .museum-slide figure {
    height: 280px;
  }
}

/* Mobile: one main + peek left/right edges */
@media (max-width: 700px) {
  .museum-gallery {
    margin: 0 -24px 32px;
    padding: 28px 0 24px;
  }
  .museum-viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .museum-slide {
    flex: 0 0 78%;
    width: 78%;
  }
  .museum-slide + .museum-slide {
    border-left: 4px solid #0e0c0a;
  }
  .museum-slide figure {
    height: 300px;
  }
  .museum-arrow {
    width: 36px;
    height: 36px;
  }
}

/* Simple home gallery (no frame) */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: #e8e0d4;
}
.gallery-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.03); }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; gap: 10px; }
  .gallery-item img { height: 280px; }
}

/* Cards */
.course, .regular-card, .location-card, .contact-block, .gold-section, .about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 28px;
}
.course {
  position: relative;
  transition: box-shadow 0.3s, transform 0.25s;
  margin-bottom: 16px;
}
.course:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.course-number {
  position: absolute;
  top: 22px; right: 26px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--border);
  line-height: 1;
}
.course-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-right: 48px;
}
.course-meta {
  font-size: 0.88rem;
  color: var(--accent-light);
  margin-bottom: 10px;
}
.course-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.7;
}
.price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}
.price-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-left: 10px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.price-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--accent);
}

.tip-box {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.tip-box::before {
  content: "✦";
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.gold-section {
  background: linear-gradient(145deg, #f9f3e0 0%, #f0e6c4 100%);
  border-color: #e4d4a0;
  position: relative;
  overflow: hidden;
}
.gold-section h2 {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.gold-highlight { color: var(--gold); font-weight: 600; }
.gold-price {
  display: inline-block;
  margin-top: 8px;
  background: rgba(176, 141, 42, 0.14);
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

.location-info h3 {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.location-info .address {
  color: var(--text);
  font-weight: 500;
  margin: 8px 0;
}
.map-wrap {
  width: 100%;
  height: 320px;
  background: #e8e0d4;
  margin-top: 16px;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-block {
  text-align: center;
  padding: 44px 28px;
  box-shadow: var(--shadow);
}
.contact-block h2 {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.contact-block .sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  font-family: "Noto Serif TC", serif;
}
.wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}
.wa-btn svg { width: 20px; height: 20px; fill: currentColor; }
.phone {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.about-text {
  max-width: 640px;
  margin: 0 auto 26px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
}
.about-text strong { color: var(--text); font-weight: 600; }

footer {
  text-align: center;
  padding: 36px 24px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
footer a { color: var(--accent); text-decoration: none; }

.page-content { padding-top: 20px; padding-bottom: 40px; }
.btn-outline {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 24px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
}
.ig-btn:hover {
  background: var(--accent);
  color: #fff;
}
.ig-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
