/* -----------------------------------------------------
   Global Styles
----------------------------------------------------- */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #fff9fb;
  color: #333;
  overflow-x: hidden;
}

h2.section-title {
  text-align: center;
  font-size: 42px;
  color: #d24f70;
  margin-bottom: 60px;
  font-weight: 700;
}

section:nth-of-type(even) {
  background: #fff;
}

section:nth-of-type(odd) {
  position: relative;
  overflow: hidden;
}

section:nth-of-type(odd)::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #ffd7e1 0%, #f38aa7 100%);
  filter: blur(100px);
  opacity: 0.45;

  z-index: 0; /* Glow 在背景 */
  pointer-events: none;
}

/* 让内容浮在 glow 上 */
section:nth-of-type(odd) > * {
  position: relative;
  z-index: 5;
}

/* Services = 第 3 个 section */
section:nth-of-type(3)::before {
  top: -20%;
  left: 50%;
}

/* Featured = 第 4 个 section → 不会出现（偶数）*/
/* Gallery = 第 5 个 */
section:nth-of-type(5)::before {
  top: 40%;
  left: -20%;
}

/* FAQ = 第 7 个 */
section:nth-of-type(7)::before {
  top: -10%;
  right: -15%;
}

/* -----------------------------------------------------
   Navigation (Desktop + Mobile Hamburger)
----------------------------------------------------- */

.nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 18px 8%;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(18px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #e05b7e;
}

.desktop-menu {
  display: flex;
  gap: 35px;
}

.desktop-menu a {
  text-decoration: none;
  color: #555;
  font-size: 16px;
}

.desktop-menu a:hover {
  color: #d24f70;
}

/* Mobile Hamburger */
.hamburger {
  width: 28px;
  padding-right: 50px;
  height: 20px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #d24f70;
  border-radius: 3px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: #ffe5ee;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: 0.4s ease;
  z-index: 40;
}
.mobile-menu a {
  text-decoration: none;
  font-size: 20px;
  color: #d24f70;
  font-weight: 600;
}

@media(max-width: 900px){
  .desktop-menu { display:none; }
  .hamburger { display:flex; }
}

/* -----------------------------------------------------
   Hero Section (Glow Immersive)
----------------------------------------------------- */

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-top: 80px;
  padding-bottom: 50px;
}

.hero-content {
  max-width: 50%;
}

.floating-photo-wrapper {
  max-width: 45%;
  display: flex;
  justify-content: flex-end;
}


.hero-section {
  height: 80vh;
  padding: 0 10%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #ffd7e1, #f38aa7);
  top: 20%;
  left: 55%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  opacity: 0.5;
  animation: floatGlow 8s infinite ease-in-out;
}

@keyframes floatGlow {
  0%   { transform: translate(-50%, -50%) scale(1); }
  50%  { transform: translate(-50%, -48%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.hero-title {
  font-size: 64px;
  color: #d24f70;
  max-width: 700px;
  opacity: 0;
  transform: translateY(60px);
}

.hero-subtitle {
  margin-top: 25px;
  max-width: 580px;
  opacity: 0;
  font-size: 20px;
  transform: translateY(60px);
}

.hero-btn {
  display: inline-block;
  margin-top: 35px;
  padding: 15px 35px;
  background: #d24f70;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  transition: 0.3s ease;
}
.hero-btn:hover {
  background: #ff8fab;
  transform: scale(1.05);
}


/* ---------------------------
   Floating Right Photo (HTML IMG)
---------------------------- */

/* 外层：只给 GSAP 控制透明 + 位置，不做动画 */
.floating-photo-wrapper {
  opacity: 0;
  transform: translateY(50px);
}

/* 里面：做上下浮动动画 */
.floating-photo-img {
  width: 380px;
  height: 480px;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
  transform: rotate(6deg); /* 保留歪角 */

  animation: floatUpDown 6s ease-in-out infinite;
}

/* 上下浮动动画 */
@keyframes floatUpDown {
  0%   { transform: translateY(0px) rotate(6deg); }
  50%  { transform: translateY(-18px) rotate(6deg); }
  100% { transform: translateY(0px) rotate(6deg); }
}

/* Mobile */
@media (max-width: 768px) {
  .floating-photo-img {
    width: 260px;
    height: 340px;
    transform: rotate(4deg);
  }
}


/* -----------------------------------------------------
   About Section – Curve Flow
----------------------------------------------------- */

.curve-bg {
  background: linear-gradient(to bottom, #fff9fb 0 percent, #ffeef3 100 percent);
  padding: 100px 10%;
  padding-top: 140px;
}

.about-inner {
  display: flex;
  gap: 80px;
}

.about-left .about-image {
  width: 420px;
  height: 520px;
  background: linear-gradient(135deg,#ffc5d3,#ffedf2);
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(60px);
  transform: rotate(-3deg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}


.about-right {
  flex:1;
}

.about-stats {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  width: 140px;
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color:#d24f70;
}

/* -----------------------------------------------------
   Services – Split Motion Layout
----------------------------------------------------- */

.services-section {
  padding: 130px 10% 0 10%;
}

/* Outer card */
.service-glass-card {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 70px;
  transition: 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.service-glass-card:hover {
  transform: scale(1.05);
}

/* Background image */
.svc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: 0.5s ease;
}

/* Pink gradient hint */
.pink-gradient {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(
      to top,
      rgba(210,79,112,0.28),
      rgba(210,79,112,0)
  );
  pointer-events: none;
  transition: 0.4s ease;
}

/* iOS dynamic glass panel */
.glass-panel {
  position: absolute;
  inset: 0; /* 完全覆盖整个区域 */

  /* Glasmorphism */
  background: rgba(255,255,255,0.20);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  /* 圆角要跟外层一致，这样融合不会断 */
  border-radius: 22px;

  /* 没有线，没有边框 */
  border: none;

  /* 内容排版 */
  padding: 30px 35px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  /* 动画（Desktop） */
  opacity: 0;
  transform: translateY(20px);
  transition: 0.45s ease;
}

/* Hover 才出现玻璃（桌面） */
.service-glass-card:hover .glass-full {
  opacity: 1;
  transform: translateY(0);
}

.service-glass-card.active .glass-panel {
  opacity: 1 !important;
  transform: translateY(0) !important;
  backdrop-filter: blur(26px) !important;
}


/* MOBILE：一直显示玻璃，不需要 hover */
@media (max-width: 900px) {
  .glass-full {
    opacity: 1 !important;
    transform: none !important;
  }
}



/* hover animation */
.service-glass-card:hover .glass-panel {
  opacity: 1;
  transform: translateY(0);
}

.service-glass-card:hover .pink-gradient {
  opacity: 0;
}

/* Text */
.glass-panel h3 {
  margin: 0 0 8px;
  color: #d24f70;
  font-size: 26px;
}

.glass-panel p,
.glass-panel ul li {
  color: #444;
  margin: 4px 0;
  font-size: 16px;
}

/* 3-column grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* 每个卡片高度改短，变成正方形比例 */
.service-glass-card {
  height: 360px;
  border-radius: 22px;
}

/* Mobile 变 1 column */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-glass-card {
    height: 420px;
  }
}

/* Mobile：直接显示玻璃卡片，不需要 hover */
@media (max-width: 900px) {

  /* 显示玻璃 panel */
  .service-glass-card .glass-panel {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* 移除底部粉色渐层（不再需要提示） */
  .service-glass-card .pink-gradient {
    opacity: 0 !important;
  }

  /* 背景图不需要 scale 动画避免跳动 */
  .service-glass-card:hover {
    transform: none !important;
  }
}

/* -----------------------------------------------------
   Featured Treatments – Parallax Cards
----------------------------------------------------- */

.featured-section {
  padding: 50px 10% 50px 10%;
}

.featured-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.featured-card {
  background:white;
  border-radius:20px;
  padding:30px;
  box-shadow:0 15px 30px rgba(0,0,0,0.07);
  position:relative;
  overflow:hidden;
}


.steps span {
  display:block;
  margin-top:8px;
  font-size:15px;
  color:#555;
}

/* -----------------------------------------------------
   Gallery – Magazine Layout
----------------------------------------------------- */

.gallery-section {
  padding: 50px 10% 50px 10%;
  overflow: hidden;
  position: relative;
}

/* -----------------------------------------
   iPhone Style Gallery Strip (160px height)
----------------------------------------- */

.gallery-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  animation: galleryScroll 25s linear infinite;
}

.gallery-strip img {
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

@keyframes galleryScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -----------------------------------------------------
   Testimonials – Floating Cards
----------------------------------------------------- */

.testimonial-section {
  padding: 50px 10% 50px 10%
}

.testimonial-slider {
  display:flex;
  gap:30px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:10px;
}

.t-card {
  min-width:300px;
  background:white;
  padding:25px;
  border-radius:20px;
  box-shadow:0 15px 30px rgba(0,0,0,0.07);
  opacity:0;
  transform:translateY(70px);
  scroll-snap-align:center;
  transition:0.25s;
}

.t-card:hover {
  transform:translateY(55px);
  box-shadow:0 18px 40px rgba(0,0,0,0.12);
}

.t-name {
  margin-top:10px;
  color:#d24f70;
  font-weight:600;
}

/* -----------------------------------------------------
   FAQ – Curve Style
----------------------------------------------------- */

.faq-section {
  padding: 50px 10% 50px 10%;
}

.faq-item {
  background:white;
  padding:20px 25px;
  margin-bottom:20px;
  border-radius:18px;
  box-shadow:0 10px 25px rgba(0,0,0,0.06);
  cursor:pointer;
  opacity:0;
  transform:translateY(60px);
}

.faq-item h3 {
  margin-bottom:10px;
  color:#d24f70;
}

/* -----------------------------------------------------
   Contact Section
----------------------------------------------------- */

.contact-section {
  padding: 50px 10% 50px 10%;
  text-align:center;
}

.contact-btn {
  display:inline-block;
  margin-top:30px;
  padding:15px 35px;
  background:#d24f70;
  color:white;
  text-decoration:none;
  border-radius:12px;
  transition:0.3s;
}

.contact-btn:hover {
  background:#ff8fab;
  transform:scale(1.05);
}

/* -----------------------------------------------------
   Footer
----------------------------------------------------- */

.footer {
  padding:30px;
  text-align:center;
  color:#a14b62;
  background:#ffe1ec; /* 主题一致的浅粉 */
  border-top: 1px solid #f5c2d1; /* 比背景稍深一点的粉线 */
}


/* ============================================================
   MOBILE FULL RESPONSIVE (max-width: 768px)
============================================================ */

@media (max-width: 768px) {

  body {
    overflow-x: hidden !important;
  }
  h2.section-title{
    margin-bottom: 10px;
  }

  /* ------------ Navigation ------------ */
  .nav {
    padding: 15px 6%;
  }

  /* ------------ Hero Section ------------ */
 /* Hero 内层改为上下排 － 图片在上 */
  .hero-inner {
    flex-direction: column-reverse;
    padding: 0;
  }

  /* Hero 整个区域左右不需要 padding，让图片可贴边 */
  .hero-section {
    padding: 0;
  }

  /* 图片外层变 full width，无 margin */
  .floating-photo-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    text-align: center; /* 让内容置中 */
  }

  /* 图片本体变成传统 Banner */
  .floating-photo-img,
  .floating-photo-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 0;  /* 去掉圆角，因为是 banner */
    transform: none;   /* 去掉倾斜 */
    animation: none;   /* 关掉上下浮动动画 */
    display: block;    /* 避免 inline 造成空白缝 */
    position:relative;
    z-index: 5;
    padding-top: 60px;
  }
  .hero-section {
    height: 95vh;
  }
  /* 防止 body 的左右 padding 影响它 */
  .hero-section {
    padding: 0;
  }
  .hero-content {
    max-width: 100%;
    padding-left: 40px;
    padding-bottom: 20px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 18px;
    max-width: 90%;
    margin: 10px auto 0;
  }

  .hero-btn {
    font-size: 18px;
    padding: 12px 28px;
  }

  /* ------------ About Section ------------ */
  .about-section{
    padding-bottom: 0;
    padding-top: 50px;
  } 

  .about-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-left .about-image {
    width: 90%;
    height: 380px;
    margin: 0 auto;
  }

  .about-right {
    text-align: center;
  }

  .about-stats {
    justify-content: center;
    gap: 25px;
  }

  .stat {
    width: 45%;
  }

  /* ------------ Services ------------ */
  .services-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 5;
  }

  .service-glass-card {
    height: 400px;
  }

  .service-glass-card{
    margin-bottom: 0;
  }

  /* ------------ Featured Treatments ------------ */
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    padding: 22px;
  }

  /* ------------ Gallery ------------ */
  .gallery-section{
    padding-top: 30px;
    padding-bottom: 0;
  }

  .gallery-strip {
    height: 140px;
    gap: 12px;
  }

  .gallery-strip img {
    height: 140px;
    width: auto;
  }

  .section-title {
    font-size: 34px;
    margin-bottom: 40px;
  }

  /* ------------ Testimonials ------------ */
  .testimonial-section{
    padding-top: 50px;
  }
  .testimonial-slider {
    gap: 20px;
  }

  .t-card {
    min-width: 260px;
  }

  /* ------------ FAQ ------------ */
  .faq-section{
    padding-top: 50px;
  }
  .faq-item {
    padding: 18px 20px;
  }

  /* ------------ Contact ------------ */
  .contact-section{
    padding-top: 50px;
  }
  .contact-btn {
    font-size: 18px;
    padding: 12px 28px;
  }
}
