﻿@charset "utf-8";

/* ── Free flow BEAUTY Homepage Layout ── */

/* 首页开场 — 淡粉底，不用黑色；CSS 兜底自动淡出 */
#IntroLoader {
  background: linear-gradient(165deg, #FFFBFA 0%, var(--ff-rose-pale) 55%, var(--ff-rose-bg) 100%) !important;
  color: var(--ff-rose-deep);
  animation: introLoaderHide 0.45s ease 2.75s forwards !important;
}

#greetingLogo img {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 32px rgba(213, 139, 139, 0.12);
  border-radius: 2px;
}

#greetingTitle {
  color: var(--ff-rose-deep) !important;
}

/* 首页幻灯片 — 恢复原始固定比例轮播（IFF 改动前可用方案） */
.ff-slideshow {
  position: relative;
  width: 100%;
  margin-top: var(--ff-header-offset, 85px);
  background: var(--ff-rose-pale);
  overflow: hidden;
}

.ff-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: min(85vh, 720px);
  min-height: 220px;
}

.ff-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  pointer-events: none;
}

.ff-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.ff-slide a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.ff-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--ff-rose-pale);
}

.ff-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(213, 139, 139, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ff-rose-deep);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  padding: 0;
}

.ff-slider-arrow:hover {
  background: var(--ff-rose);
  border-color: var(--ff-rose);
  color: var(--ff-white);
}

.ff-slider-prev { left: 1rem; }
.ff-slider-next { right: 1rem; }

.ff-slider-dots {
  position: absolute;
  bottom: 1.1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  z-index: 3;
}

.ff-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--ff-rose);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.ff-slider-dot.is-active {
  background: var(--ff-rose);
  transform: scale(1.15);
}

.ff-slider-dot:hover {
  background: var(--ff-rose-light);
}

/* 品牌宣言条 */
.ff-statement {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--ff-rose-pale);
  border-top: 1px solid var(--ff-rose-light);
  border-bottom: 1px solid var(--ff-rose-light);
}

.ff-statement h1 {
  font-family: 'Cormorant Garamond', 'Noto Serif TC', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--ff-rose-deep);
  margin-bottom: 1.5rem;
}

.ff-statement p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ff-gray);
  line-height: 2;
  font-size: 0.9rem;
}

/* 双列服务卡片 — 替代原 medIntro 叠图 */
.ff-services-duo {
  max-width: var(--ff-content-max, 1200px);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.ff-service-card {
  position: relative;
  padding: 3rem 2.5rem;
  background: var(--ff-white);
  border: 1px solid var(--ff-rose-light);
  transition: transform 0.4s, box-shadow 0.4s;
}

.ff-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(213,139,139,0.12);
}

.ff-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--ff-rose);
}

.ff-service-card h2 {
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--ff-rose-deep);
  margin-bottom: 1.25rem;
}

.ff-service-card p {
  color: var(--ff-gray);
  font-size: 0.85rem;
  line-height: 2;
  margin-bottom: 1.5rem;
}

.ff-service-card a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--ff-rose);
  display: inline-block;
}

.ff-service-num {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 3rem;
  font-weight: 100;
  color: var(--ff-rose-light);
  line-height: 1;
}

/* 精选疗程 — 浅色卡片，与首页整体风格一致 */
.ff-featured {
  padding: 5.5rem 1.5rem 5rem;
  background: linear-gradient(180deg, var(--ff-white) 0%, var(--ff-rose-pale) 100%);
  border-top: 1px solid rgba(232, 196, 196, 0.5);
  border-bottom: 1px solid rgba(232, 196, 196, 0.5);
}

.ff-featured-title {
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ff-rose-deep);
  margin: 0 0 3rem;
}

.ff-featured-grid {
  max-width: var(--ff-content-max, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  background: transparent;
}

.ff-featured-item {
  background: rgba(255, 255, 255, 0.88);
  padding: 0;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--ff-rose-light);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s, background 0.35s;
}

.ff-featured-item:hover {
  transform: translateY(-5px);
  background: var(--ff-white);
  border-color: rgba(213, 139, 139, 0.55);
  box-shadow: 0 18px 48px rgba(213, 139, 139, 0.14);
}

.ff-featured-item img {
  width: 100%;
  max-width: none;
  margin: 0;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.ff-featured-item--iff img {
  object-position: center 12%;
}

.ff-featured-item span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ff-rose-deep);
  display: block;
  padding: 0.85rem 0.5rem 1.1rem;
  line-height: 1.5;
}

.ff-featured-more {
  text-align: center;
  margin-top: 2.5rem;
}

.ff-featured-more a {
  color: var(--ff-rose-dark);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  display: inline-block;
  transition: color 0.3s;
}

.ff-featured-more a:hover {
  color: var(--ff-rose);
}

/* 生活美容 — 右图左文变体 */
.ff-beauty-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--ff-white) 0%, var(--ff-rose-pale) 100%);
}

.ff-beauty-inner {
  max-width: var(--ff-content-max, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ff-beauty-text h2 {
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  color: var(--ff-rose-deep);
  margin-bottom: 1.5rem;
}

.ff-beauty-text p {
  color: var(--ff-gray);
  font-size: 0.85rem;
  line-height: 2.2;
  margin-bottom: 1rem;
}

.ff-beauty-visual {
  position: relative;
}

.ff-beauty-visual img {
  width: 100%;
  display: block;
}

.ff-beauty-visual::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 60%; height: 60%;
  border: 1px solid var(--ff-rose);
  opacity: 0.4;
  z-index: -1;
}

/* 环境图 — 双列不等高 */
.ff-gallery {
  padding: 4rem 1.5rem 6rem;
  max-width: var(--ff-content-max, 1200px);
  margin: 0 auto;
}

.ff-gallery-title {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--ff-rose-deep);
  margin-bottom: 3rem;
}

.ff-gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.ff-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ff-gallery-col img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.ff-gallery-col:first-child img:first-child { aspect-ratio: 16/10; }
.ff-gallery-col:first-child img:last-child { aspect-ratio: 4/3; }
.ff-gallery-col:last-child img { aspect-ratio: 3/4; flex: 1; min-height: 280px; object-fit: cover; }

/* 品牌合作 — 简洁横条 */
.ff-partners {
  padding: 4rem 1.5rem 5rem;
  background: var(--ff-white);
}

.ff-partners h2 {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--ff-rose-deep);
  margin-bottom: 2.5rem;
}

.ff-partners-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  align-items: center;
}

.ff-partners-grid img {
  height: 36px;
  width: auto;
  opacity: 0.55;
  transition: opacity 0.3s;
  filter: grayscale(30%);
}

.ff-partners-grid a:hover img { opacity: 1; filter: none; }

.ff-partners-grid--treatments {
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.ff-partners-grid--treatments img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
  border: 1px solid var(--ff-rose-light);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.ff-partners-grid--treatments a:hover img {
  transform: translateY(-4px);
  border-color: rgba(213, 139, 139, 0.55);
  box-shadow: 0 14px 40px rgba(213, 139, 139, 0.14);
}

/* Instagram 嵌入 */
.ff-instagram-feed {
  padding: 4rem 1.5rem 3rem;
  background: var(--ff-white);
  border-top: 1px solid rgba(232, 196, 196, 0.5);
}

.ff-instagram-feed-title {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--ff-rose-deep);
  text-transform: uppercase;
  margin: 0 0 2rem;
}

.ff-instagram-feed-inner {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 120px;
}

@media (max-width: 991px) {
  .ff-slider {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .ff-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  .ff-slider-prev { left: 0.5rem; }
  .ff-slider-next { right: 0.5rem; }
  .ff-services-duo,
  .ff-beauty-inner,
  .ff-gallery-grid { grid-template-columns: 1fr; }
  .ff-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .ff-beauty-visual::after { display: none; }
}
