/* ========================================
   CM皮膚綜合治療 — 網站樣式
   ======================================== */

:root {
  --purple: #6B4C9A;
  --purple-dark: #523A7A;
  --purple-light: #8B6CB8;
  --green: #5A8F5A;
  --green-dark: #467846;
  --green-light: #7AAF7A;
  --cream: #FAFAF8;
  --cream-dark: #F0EDE8;
  --white: #FFFFFF;
  --text: #2D2A32;
  --text-muted: #6B6575;
  --border: #E5E0DA;
  --shadow: 0 4px 24px rgba(107, 76, 154, 0.08);
  --shadow-lg: 0 8px 40px rgba(107, 76, 154, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Noto Sans TC', 'PingFang HK', 'Microsoft JhengHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(107, 76, 154, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(107, 76, 154, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

/* ---- Section shared ---- */
.section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header--light .section-title,
.section-header--light .section-subtitle {
  color: var(--white);
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-header--light .section-label {
  color: var(--green-light);
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-subtitle--dark {
  color: var(--text-muted);
}

.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--green));
  margin: 0 auto;
  border-radius: 2px;
}

.section-divider--light {
  background: linear-gradient(90deg, var(--green-light), var(--white));
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 76, 154, 0.08);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-cm {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-c { color: var(--purple); }
.logo-m { color: var(--green); }

.logo-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--purple-dark);
  letter-spacing: 0.05em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width var(--transition);
}

.main-nav a:not(.nav-cta):hover {
  color: var(--purple);
}

.main-nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px;
  background: var(--purple);
  color: var(--white) !important;
  border-radius: 50px;
  font-size: 13px !important;
}

.nav-cta:hover {
  background: var(--purple-dark);
}

.nav-cta::after { display: none !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple-dark);
  transition: all var(--transition);
}

/* ---- Hero / Banner Slider ---- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  background: #f4f7f2;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h));
  min-height: 520px;
  overflow: hidden;
}

.hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slide 1：診所實景 + Logo 排版 */
.hero-slide-photo {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 42, 50, 0.72) 0%,
    rgba(107, 76, 154, 0.58) 50%,
    rgba(90, 143, 90, 0.42) 100%
  );
}

.hero-slide-compose {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(14px, 2vw, 22px);
  padding: 48px 24px 96px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-brand-logo {
  width: min(48vw, 240px);
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.hero-focus-line {
  font-size: clamp(16px, 2.2vw, 26px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.08em;
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-focus-line span {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  margin: 0 0.15em;
}

.hero-formula-line {
  font-size: clamp(14px, 1.7vw, 20px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  padding: 0.55em 1.3em;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(90, 143, 90, 0.35);
  backdrop-filter: blur(6px);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(160deg, #efe9f5 0%, #e8f0e6 100%);
  color: var(--text-muted);
  border-top: 1px dashed rgba(107, 76, 154, 0.25);
  border-bottom: 1px dashed rgba(90, 143, 90, 0.25);
}

.hero-slide-placeholder span {
  font-size: 20px;
  font-weight: 700;
  color: var(--purple-dark);
}

.hero-slide-placeholder p {
  font-size: 14px;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--purple-dark);
  box-shadow: 0 2px 14px rgba(45, 42, 50, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-nav svg {
  width: 20px;
  height: 20px;
}

.hero-nav:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.06);
}

.hero-nav--prev { left: 16px; }
.hero-nav--next { right: 16px; }

.hero-dots {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-dot.is-active,
.hero-dot:hover {
  background: var(--purple);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  animation: bounce 2s infinite;
  pointer-events: none;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 768px) {
  /* 手機頭圖：統一用橫幅比例（與第2張圖一致），避免上下大片留白 */
  .hero {
    min-height: 0;
  }

  .hero-slider {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .hero-slide > img {
    object-fit: contain;
    object-position: center center;
    background: #0f2a1c;
  }

  .hero-slide-photo > img {
    object-fit: cover;
  }

  .hero-slide-compose {
    gap: 6px;
    padding: 12px 14px 28px;
    justify-content: center;
  }

  .hero-brand-logo {
    width: min(18vw, 72px);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  }

  .hero-focus-line {
    font-size: clamp(10px, 2.6vw, 12px);
    letter-spacing: 0.02em;
    line-height: 1.35;
    padding: 0 8px;
  }

  .hero-formula-line {
    font-size: clamp(9px, 2.3vw, 11px);
    padding: 0.28em 0.7em;
    letter-spacing: 0.01em;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
  }

  .hero-actions .btn {
    width: auto;
    max-width: none;
    padding: 5px 12px;
    font-size: 11px;
    min-height: 0;
    line-height: 1.25;
    border-radius: 999px;
  }

  .hero-nav {
    width: 30px;
    height: 30px;
  }

  .hero-nav--prev { left: 4px; }
  .hero-nav--next { right: 4px; }

  .hero-dots {
    bottom: 8px;
  }

  .hero-scroll {
    display: none;
  }
}

/* ---- About ---- */
.about {
  background: var(--white);
  padding-top: 48px;
}

.section-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 30%, var(--purple) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, var(--green) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--green-light), var(--purple-light));
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.5;
}

.image-placeholder-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

.about-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  border-left: 4px solid var(--purple);
}

.about-quote {
  font-size: 17px;
  font-weight: 600;
  color: var(--purple-dark);
  line-height: 1.7;
  margin-bottom: 18px !important;
}

.about-card h3 {
  font-size: 20px;
  color: var(--purple-dark);
  margin-bottom: 16px;
}

.about-card p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card strong {
  color: var(--green-dark);
}

.about-course-label {
  font-weight: 600;
  color: var(--purple-dark) !important;
  margin-top: 4px !important;
}

.about-course-list {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
}

.about-course-list li {
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 15px;
  padding: 2px 0;
}

.about-guarantee-title {
  font-weight: 700 !important;
  color: var(--purple-dark) !important;
  margin-bottom: 6px !important;
}

.about-guarantee {
  color: var(--green-dark) !important;
  font-weight: 600;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(107, 76, 154, 0.1), rgba(90, 143, 90, 0.1));
  border-radius: 10px;
  color: var(--purple);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Cases Carousel ---- */
.cases {
  background: linear-gradient(160deg, var(--green-dark) 0%, #3d6b3d 40%, var(--purple-dark) 100%);
}

.cases-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 10% 90%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.carousel-slide {
  display: none;
}

.carousel-slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.carousel-slide img {
  width: 100%;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--transition);
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-btn--prev { left: -22px; }
.carousel-btn--next { right: -22px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel-dot.active,
.carousel-dot:hover {
  background: var(--white);
  border-color: var(--white);
}

.cases-disclaimer {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 24px;
}

/* ---- Register Form ---- */
.register {
  background: var(--cream);
  padding-bottom: 40px;
}

.register-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(107, 76, 154, 0.03) 0%, transparent 50%),
    linear-gradient(225deg, rgba(90, 143, 90, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.register-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.register-headline {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.register-headline-price {
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 700;
  color: var(--purple);
  line-height: 1.1;
  margin: 0 2px;
}

.register-headline-brand {
  color: var(--green-dark);
  font-weight: 700;
}

.register-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.register-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group--grow {
  flex: 2;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition);
}

.form-group input:disabled,
.form-group select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.form-terms {
  background: var(--cream);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 13px;
}

.form-terms ul {
  margin-top: 8px;
  padding-left: 0;
}

.form-terms li {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  opacity: 0.5;
  cursor: not-allowed;
}

.form-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(107, 76, 154, 0.06);
  border-radius: 8px;
  font-size: 13px;
  color: var(--purple);
}

.register-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.register-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.register-info-card h3 {
  font-size: 16px;
  color: var(--purple-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream-dark);
}

.register-notice-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.register-info-card ul li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.register-info-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}

.register-info-card--accent {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white);
  border: none;
}

.register-info-card--accent h3 {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.hours {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hours-note {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 20px;
}

.register-location {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.register-location--muted {
  opacity: 1;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
}

.register-map {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream-dark);
}

.register-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

/* ---- IG Photo Wall ---- */
.ig-wall {
  background: var(--cream);
  padding-top: 56px;
  padding-bottom: 56px;
}

.ig-wall-header {
  text-align: center;
  margin-bottom: 20px;
}

.ig-wall-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 6px;
}

.ig-wall-handle {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--green-dark);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.ig-wall-handle:hover {
  color: var(--purple);
}

/* 隱藏 Elfsight 自帶標題，避免與頁面標題重複 */
.ig-wall .eapps-instagram-feed-title-container,
.ig-wall .eapps-instagram-feed-title,
.ig-wall .eapps-widget-title,
.ig-wall [class*="WidgetTitle"],
.ig-wall [class*="FeedTitle"] {
  display: none !important;
}

.ig-wall .elfsight-app-f397500c-926e-4e16-9459-13b2b25b9b09,
.ig-wall [class^="elfsight-app-"] {
  min-height: 280px;
}

/* ---- Facebook 動態牆（自訂品牌欄 + 裁切官方醜標題／藏滾動條） ---- */
.fb-wall {
  background: linear-gradient(180deg, #f7f5fa 0%, #ffffff 48%, #ffffff 100%);
  padding-top: 48px;
  padding-bottom: 64px;
}

.fb-wall-header {
  text-align: center;
  margin-bottom: 22px;
}

.fb-wall-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 6px;
}

.fb-wall-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.fb-wall-card {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(107, 76, 154, 0.12);
  box-shadow: 0 14px 40px rgba(45, 42, 50, 0.08);
  overflow: hidden;
}

.fb-wall-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(107, 76, 154, 0.08), rgba(90, 143, 90, 0.08));
  border-bottom: 1px solid rgba(107, 76, 154, 0.1);
}

.fb-wall-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.fb-wall-brand-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fb-wall-brand-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--purple-dark);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-wall-brand-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.fb-wall-follow {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #1877F2;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity var(--transition), transform var(--transition);
}

.fb-wall-follow:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.fb-wall-frame {
  --fb-crop: 128px;
  --fb-view-h: 560px;
  position: relative;
  width: 100%;
  height: var(--fb-view-h);
  overflow: hidden;
  background: #fafafa;
}

/* 加寬裁掉 iframe 右側醜滾動條；上移裁掉官方標題／按鈕區 */
.fb-wall-iframe {
  position: absolute;
  left: 0;
  top: calc(var(--fb-crop) * -1);
  width: calc(100% + 20px);
  max-width: none;
  height: calc(var(--fb-view-h) + var(--fb-crop));
  border: 0;
  display: block;
}

.fb-wall-fallback {
  display: none;
  text-align: center;
  max-width: 420px;
  margin: 16px auto 0;
  padding: 20px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.fb-wall-fallback.is-visible {
  display: block;
}

.fb-wall-fallback a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1877F2;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ig-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #ddd;
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ig-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 76, 154, 0.45);
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition);
}

.ig-overlay::before {
  content: '';
  width: 28px;
  height: 28px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.252-.147-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.252-.147-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ig-item:hover img {
  transform: scale(1.06);
}

.ig-item:hover .ig-overlay {
  opacity: 1;
}

.ig-cta {
  margin-top: 32px;
  text-align: center;
}

@media (max-width: 768px) {
  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .register-map iframe {
    height: 200px;
  }
}

/* ---- Treatment (text layout) ---- */
.treatment {
  background: var(--white);
  padding-top: 40px;
  padding-bottom: 40px;
}

.treatment-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(180deg, var(--cream) 0%, transparent 100%);
  pointer-events: none;
}

.treatment-intro {
  text-align: center;
  margin-bottom: 56px;
}

.treatment-lead {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  margin: 8px 0 16px;
  letter-spacing: 0.04em;
}

.treatment-highlight {
  margin-top: 36px;
  padding: 32px 28px;
  background: linear-gradient(135deg, rgba(107, 76, 154, 0.06), rgba(90, 143, 90, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.treatment-pill {
  display: inline-block;
  padding: 6px 16px;
  background: var(--purple);
  color: var(--white);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.treatment-highlight-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 24px;
}

.treatment-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.treatment-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  border: 1px solid var(--border);
}

.treatment-stat strong {
  display: block;
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  color: var(--purple);
  line-height: 1.1;
  margin-bottom: 8px;
}

.treatment-stat span {
  font-size: 14px;
  color: var(--text-muted);
}

.treatment-block-text {
  margin-bottom: 64px;
}

.treatment-block-text:last-child,
.treatment-advantages {
  margin-bottom: 0;
}

.treatment-h2 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--purple-dark);
  margin-bottom: 16px;
  text-align: center;
}

.treatment-intro-copy {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 15px;
}

.tech-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tech-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tech-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f2f0;
  border-bottom: 1px solid var(--border);
}

.tech-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-card-media--placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(107, 76, 154, 0.04),
      rgba(107, 76, 154, 0.04) 10px,
      rgba(90, 143, 90, 0.05) 10px,
      rgba(90, 143, 90, 0.05) 20px
    );
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
}

.tech-card-media--placeholder span {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-dark);
}

.tech-card-media--placeholder small {
  font-size: 12px;
}

.tech-card-body {
  padding: 22px 20px 24px;
  text-align: center;
}

.tech-card-body h4 {
  font-size: 18px;
  color: var(--purple-dark);
  margin-bottom: 12px;
}

.tech-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(90, 143, 90, 0.15);
  color: var(--green-dark);
}

.tech-badge--alt {
  background: rgba(107, 76, 154, 0.12);
  color: var(--purple-dark);
}

.treatment-kicker {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 8px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.why-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--purple);
}

.why-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 10px;
}

.why-card h4 {
  font-size: 17px;
  color: var(--purple-dark);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.advantage-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(90, 143, 90, 0.08), rgba(107, 76, 154, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.advantage-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.treatment-footnote {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .tech-cards,
  .why-grid,
  .advantage-list {
    grid-template-columns: 1fr;
  }

  .treatment-stats {
    grid-template-columns: 1fr;
  }
}

/* ---- Video ---- */
.video-section {
  background: linear-gradient(160deg, #2a2440 0%, var(--purple-dark) 50%, #1e3a2e 100%);
}

.video-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(90, 143, 90, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(107, 76, 154, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.video-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.video-card {
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.video-wrapper {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-caption {
  padding: 16px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* ---- Footer ---- */
.site-footer {
  background: #1a1820;
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-img {
  display: block;
  width: min(120px, 42%);
  height: auto;
  border-radius: 10px;
  background: #fff;
}

.footer-tagline {
  margin-top: 14px;
  font-size: 14px;
  opacity: 0.6;
}

.footer-contact h4,
.footer-social h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.footer-contact ul li svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.5;
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--white);
}

.placeholder-item {
  opacity: 0.4 !important;
  font-style: italic;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.social-btn--facebook:hover { border-color: #1877F2; color: #1877F2; }
.social-btn--instagram:hover { border-color: #E4405F; color: #E4405F; }
.social-btn--threads:hover { border-color: #fff; color: #fff; }
.social-btn--whatsapp:hover { border-color: #25D366; color: #25D366; }

.placeholder-link {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.float-whatsapp.placeholder-link {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.4;
}

/* ---- Floating WhatsApp ---- */
.float-whatsapp {
  position: fixed;
  bottom: 80px;
  right: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background: #1EBE5A;
  color: var(--white);
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 4px 28px rgba(22, 163, 74, 0.55);
  transition: all var(--transition);
  min-width: 58px;
}

.float-whatsapp:hover {
  padding-right: 16px;
  background: #17A34A;
  box-shadow: -6px 6px 36px rgba(22, 163, 74, 0.65);
}

.float-whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  flex-shrink: 0;
}

.float-whatsapp-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.float-whatsapp-line {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.float-whatsapp-line:first-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-grid,
  .register-wrapper,
  .video-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .carousel-btn--prev { left: 8px; }
  .carousel-btn--next { right: 8px; }
}

@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(22px, 6vw, 28px);
    padding: 0 8px;
  }

  .logo-text {
    font-size: 12px;
    max-width: 42vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .register {
    padding-bottom: 28px;
  }

  .register-header {
    margin-bottom: 28px;
    padding: 0 8px;
  }

  .register-headline {
    font-size: clamp(18px, 5.2vw, 24px);
    line-height: 1.5;
  }

  .register-headline-price {
    font-size: clamp(26px, 8vw, 34px);
    display: inline;
  }

  .treatment {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .about {
    padding-top: 32px;
  }

  .treatment-highlight {
    padding: 22px 16px;
  }

  .treatment-highlight-title {
    font-size: clamp(16px, 4.5vw, 22px);
  }

  .advantage-list li {
    font-size: 14px;
    padding: 16px 14px;
  }

  .carousel {
    max-width: 100%;
  }

  .fb-wall {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .fb-wall-card {
    max-width: 100%;
    border-radius: 16px;
  }

  .fb-wall-brand {
    padding: 12px 14px;
    gap: 10px;
  }

  .fb-wall-avatar {
    width: 40px;
    height: 40px;
  }

  .fb-wall-brand-text strong {
    font-size: 14px;
  }

  .fb-wall-follow {
    padding: 7px 12px;
    font-size: 12px;
  }

  .fb-wall-frame {
    --fb-crop: 118px;
    --fb-view-h: 480px;
  }

  .fb-wall-iframe {
    width: calc(100% + 18px);
  }

  .fb-wall-fallback {
    display: block;
    max-width: 100%;
  }

  .footer-logo-img {
    width: min(100px, 36vw);
  }

  .feature-item p {
    font-size: 13px;
    line-height: 1.55;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--cream-dark);
    width: 100%;
  }

  .main-nav a:last-child {
    border-bottom: none;
    margin-top: 8px;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-desc br {
    display: none;
  }

  .form-row {
    flex-direction: column;
  }

  .register-form {
    padding: 24px 16px;
  }

  .register-map iframe {
    height: 180px;
  }

  .video-card {
    max-width: 280px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .float-whatsapp {
    bottom: 20px;
    padding: 12px 8px;
    min-width: 48px;
    gap: 6px;
  }

  .float-whatsapp-icon {
    width: 32px;
    height: 32px;
  }

  .float-whatsapp-icon svg {
    width: 20px;
    height: 20px;
  }

  .float-whatsapp-line {
    font-size: 11px;
  }

  .float-whatsapp-line:first-child {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .hero-slide > img {
    object-fit: contain;
  }

  .hero-slide-compose {
    gap: 5px;
    padding: 10px 12px 26px;
  }

  .hero-brand-logo {
    width: min(16vw, 64px);
  }

  .hero-focus-line {
    font-size: 10px;
  }

  .hero-formula-line {
    font-size: 9px;
    padding: 0.25em 0.6em;
  }

  .hero-actions .btn {
    width: auto;
    max-width: none;
    padding: 4px 10px;
    font-size: 10.5px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero .btn {
    width: auto;
    max-width: none;
  }

  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
