/* ========================================
   美好生活體態保健中心 - Official Website
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #f2e16d;
  --color-primary-dark: #d4c34a;
  --color-text: #2d2d2d;
  --color-text-light: #555;
  --color-bg: #ffffff;
  --color-bg-warm: #faf8f0;
  --color-bg-dark: #1a1a1a;
  --color-line-green: #06c755;
  --font-heading: 'Playfair Display', 'Noto Sans TC', serif;
  --font-body: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-height: 80px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

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

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-text);
}

.section-title.center {
  text-align: center;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  height: 64px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: height var(--transition);
}

.site-header.scrolled .logo-img {
  height: 40px;
}

/* --- Navigation --- */
.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item > a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-item > a:hover {
  background: var(--color-primary);
  color: var(--color-text);
}

.nav-item.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  transition: all var(--transition);
}

.dropdown li a:hover {
  background: var(--color-bg-warm);
  color: var(--color-text);
  padding-left: 24px;
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/hero.jpg') center center / cover no-repeat;
  margin-top: var(--header-height);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

/* --- Intro Section --- */
.section-intro {
  background: var(--color-bg-warm);
  text-align: center;
}

.intro-lead {
  font-size: 1.2rem;
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 2;
}

.intro-needs {
  display: inline-block;
  text-align: left;
  background: white;
  padding: 32px 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.intro-needs h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.intro-needs ol {
  padding-left: 24px;
  list-style: decimal;
}

.intro-needs ol li {
  font-size: 1rem;
  line-height: 2.2;
  color: var(--color-text-light);
}

/* --- Feature Sections --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-feature-reverse .feature-grid {
  direction: rtl;
}

.section-feature-reverse .feature-grid > * {
  direction: ltr;
}

.feature-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.feature-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-image:hover img {
  transform: scale(1.03);
}

.feature-text p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.highlight-text {
  font-weight: 700;
  color: var(--color-text) !important;
  background: linear-gradient(transparent 60%, var(--color-primary) 60%);
  display: inline;
  padding: 0 4px;
}

/* --- Concept Section --- */
.section-concept {
  background: var(--color-bg-warm);
  padding: 60px 0;
}

.concept-image-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.concept-img {
  width: 100%;
  border-radius: 16px;
}

/* --- CTA Section --- */
.section-cta {
  position: relative;
  padding: 120px 0;
  background: url('images/consult-bg.jpg') center center / cover no-repeat fixed;
  color: white;
  text-align: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.cta-content p {
  font-size: 1rem;
  line-height: 2;
  opacity: 0.92;
  margin-bottom: 12px;
}

/* --- Booking Section --- */
.section-booking {
  background: var(--color-bg-warm);
}

.booking-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 650px;
  margin: 0 auto 48px;
  line-height: 2;
}

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

.store-card {
  background: white;
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.store-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--color-primary-dark);
}

.store-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.store-address {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
  min-height: 48px;
}

.store-address small {
  color: #888;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-line {
  background: var(--color-line-green);
  color: white;
}

.btn-line:hover {
  background: #05b34c;
  transform: scale(1.05);
}

.line-icon {
  width: 20px;
  height: 20px;
  fill: white;
}

/* --- FAQ Section --- */
.section-faq {
  background: white;
}

.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-item:first-child {
  border-top: 1px solid #eee;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-primary-dark);
}

.faq-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 2;
  margin-bottom: 12px;
}

/* --- Pricing Table --- */
.pricing-table {
  background: var(--color-bg-warm);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.price-row:last-child {
  border-bottom: none;
}

.price-sessions {
  font-weight: 600;
  color: var(--color-text);
}

.price-amount {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 1.1rem;
}

.price-note {
  font-size: 0.85rem !important;
  color: #888 !important;
  margin-top: 8px;
}

/* --- Reviews Carousel --- */
.section-reviews {
  background: var(--color-bg-warm);
  padding-bottom: 100px;
}

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

.carousel-viewport {
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 33.333%;
  padding: 0 8px;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

.carousel-arrow:hover {
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

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

.carousel-prev {
  left: -22px;
}

.carousel-next {
  right: -22px;
}

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

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-dot.active {
  background: var(--color-primary-dark);
  transform: scale(1.2);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 60px;
  width: auto;
  opacity: 0.9;
}

.footer-links h4,
.footer-social h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--color-primary);
}

.social-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--color-text);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-bottom: 4px;
}

.footer-bottom a {
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer-bottom a:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .feature-grid {
    gap: 40px;
  }

  .feature-image img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 80px 24px 24px;
    transition: right 0.4s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item > a {
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    display: none;
  }

  .nav-item.has-dropdown.open .dropdown {
    display: block;
  }

  .hero {
    min-height: 500px;
    max-height: 600px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section {
    padding: 60px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-feature-reverse .feature-grid {
    direction: ltr;
  }

  .feature-image img {
    height: 350px;
  }

  .stores-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto;
  }

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

  .carousel-prev {
    left: 4px;
  }

  .carousel-next {
    right: 4px;
  }

  .section-cta {
    padding: 80px 0;
    background-attachment: scroll;
  }

  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

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

  .intro-needs {
    padding: 24px 28px;
  }

  .store-card {
    padding: 32px 24px;
  }
}

/* --- Floating LINE Button --- */
/* --- Floating LINE Booking Widget --- */
.floating-booking {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.floating-booking-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #06c755;
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.floating-booking-toggle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(6, 199, 85, 0.5);
}

.floating-booking-toggle svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.floating-booking-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 280px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition: all 0.3s ease;
}

.floating-booking-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-booking-panel h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 14px;
  text-align: center;
}

.store-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #2d2d2d;
  transition: all 0.2s ease;
  margin-bottom: 8px;
  border: 1px solid #f0f0f0;
}

.store-option:last-child {
  margin-bottom: 0;
}

.store-option:hover {
  background: #f0fdf4;
  border-color: #06c755;
}

.store-option .store-pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #06c755;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-option .store-pin svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
}

.store-option .store-info {
  flex: 1;
  min-width: 0;
}

.store-option .store-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.store-option .store-area {
  font-size: 0.75rem;
  color: #888;
}

@media (max-width: 768px) {
  .floating-booking {
    bottom: 16px;
    right: 16px;
  }
  .floating-booking-toggle {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  .floating-booking-toggle svg {
    width: 18px;
    height: 18px;
  }
  .floating-booking-panel {
    width: 260px;
    right: 0;
    bottom: 56px;
  }
}
