/* ============================================================
   SKH Hero Page — 統一設計規範
   4 主頁共用：index、dr-ser、treatments、international
   標準來源：International 頁
   依賴：global-tokens.css → global-components.css → 本檔案
   建立：2026-06-29 ｜ 規範化：2026-06-29
   ============================================================ */


/* ─────────────────────────────────────────────
   1. BASE 基礎
   ───────────────────────────────────────────── */

section { scroll-margin-top: 4rem; }

.serif { font-family: var(--font-display); }

h1, h2, h3, .serif-font {
  font-family: var(--font-display);
  line-height: 1.3;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }


/* ─────────────────────────────────────────────
   2. HP-HERO 主容器
   規範：深色滿版、文字左上、照片右下
   ───────────────────────────────────────────── */

.hp-hero {
  background: #0F172A;
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 0 1.5rem;
  z-index: 1;
}


/* ─────────────────────────────────────────────
   3. HP-HERO__INNER 內容區
   ───────────────────────────────────────────── */

.hp-hero__inner {
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  z-index: 10;
  position: relative;
  padding-top: 10rem;
}

/* 文字區域：桌面佔 64%，留空間給照片 */
.hp-hero__text {
  max-width: 100%;
}
@media (min-width: 1024px) {
  .hp-hero__text { max-width: 64%; }
}


/* ─────────────────────────────────────────────
   4. HP-TAG 區塊小標（Hero 內膠囊標籤）
   ───────────────────────────────────────────── */

.hp-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E37F7F;
  background: rgba(227, 127, 127, 0.12);
  border: 1px solid rgba(227, 127, 127, 0.2);
  margin-bottom: 2rem;
}


/* ─────────────────────────────────────────────
   5. HP-H1 標題
   ───────────────────────────────────────────── */

.hp-h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-top: 0;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04))
          drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
  animation: heroPulse 4s ease-in-out infinite;
}
@media (min-width: 640px)  { .hp-h1 { font-size: 3rem; } }
@media (min-width: 768px)  { .hp-h1 { font-size: 3.75rem; } }

/* 漸層文字（用於 H1 重點句） */
.text-gradient-on-dark {
  background: linear-gradient(135deg, #F5A8A8, #E37F7F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-on-light {
  background: linear-gradient(135deg, #E37F7F, #C85A50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ─────────────────────────────────────────────
   6. HP-SUB 副標題
   ───────────────────────────────────────────── */

.hp-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: 1.75rem;
  max-width: 36rem;
}
@media (min-width: 768px) { .hp-sub { font-size: 1rem; } }


/* ─────────────────────────────────────────────
   7. HP-CTA 按鈕區
   ───────────────────────────────────────────── */

.hp-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .hp-cta {
    flex-direction: row;
    align-items: center;
  }
}

/* — 主按鈕：漸層品牌色 + pulse 光環 — */
.hp-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  background: linear-gradient(to right, #E37F7F, #FF8C5A);
  color: #fff;
  border: none;
  box-shadow: 0 10px 30px rgba(227, 127, 127, 0.3);
  animation: pulse-glow 2.5s infinite;
}
.hp-btn:hover {
  box-shadow: 0 15px 40px rgba(227, 127, 127, 0.6);
  transform: translateY(-2px);
  color: #fff;
}

/* — 副連結 — */
.hp-link {
  color: #CBD5E1;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 1rem;
  transition: color 0.2s;
}
.hp-link:hover { color: #fff; }

@keyframes pulse-glow {
  0%   { box-shadow: 0 0 0 0 rgba(227, 127, 127, 0.4); }
  70%  { box-shadow: 0 0 0 20px rgba(227, 127, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 127, 127, 0); }
}

/* — 保留舊 class 相容（非 Hero 區域可能使用）— */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  font-size: 16px;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
}
.btn-primary {
  background: var(--color-brand);
  color: #fff;
  border: 1.5px solid var(--color-brand);
}
.btn-primary:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(227, 127, 127, 0.35);
  color: #fff;
}
.btn-primary--outline {
  background: transparent;
  border: 1.5px solid var(--color-brand);
  color: var(--color-brand);
}
.btn-primary--outline:hover {
  background: linear-gradient(to right, var(--color-brand), var(--color-brand-deep));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -10px rgba(227, 127, 127, 0.8);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}
.btn-secondary:hover {
  background: #fff;
  color: var(--color-slate-950);
  border-color: transparent;
  transform: translateY(-2px);
}


/* ─────────────────────────────────────────────
   8. GLOW 光暈動畫
   ───────────────────────────────────────────── */

@keyframes float {
  0%   { transform: translateY(0) translateX(0) rotate(0); }
  33%  { transform: translateY(-30px) translateX(15px) rotate(2deg); }
  66%  { transform: translateY(15px) translateX(-20px) rotate(-1deg); }
  100% { transform: translateY(0) translateX(0) rotate(0); }
}

@keyframes opacity-pulse {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.35; }
}

/* 保留 heroFloat / opacityPulse 別名供舊 HTML 過渡 */
@keyframes heroFloat {
  0%   { transform: translateY(0) translateX(0) rotate(0); }
  33%  { transform: translateY(-30px) translateX(15px) rotate(2deg); }
  66%  { transform: translateY(15px) translateX(-20px) rotate(-1deg); }
  100% { transform: translateY(0) translateX(0) rotate(0); }
}
@keyframes opacityPulse {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.38; }
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.88; }
}

.animate-glow-1 {
  animation: float 12s ease-in-out infinite,
             opacity-pulse 6s ease-in-out infinite;
}
.animate-glow-2 {
  animation: float 15s ease-in-out infinite reverse,
             opacity-pulse 8s ease-in-out infinite 1s;
}
/* glow-3 保留供需要第 3 顆光暈的頁面使用 */
.animate-glow-3 {
  animation: float 10s ease-in-out infinite 3s,
             opacity-pulse 5s ease-in-out infinite 2s;
}

.hero-slogan-pulse { animation: heroPulse 4s ease-in-out infinite; }


/* ─────────────────────────────────────────────
   9. HP-PHOTO 照片系統
   ───────────────────────────────────────────── */

.hp-photo {
  position: absolute;
  bottom: 0;
  right: 5%;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}
.hp-photo.is-visible { opacity: 1 !important; }

.hp-photo img {
  position: relative;
  z-index: 10;
  width: auto;
  max-height: 100vh;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

/* 照片底部呼吸光暈 */
@keyframes breath {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.2; }
  50%      { transform: translateX(-50%) scale(1.15); opacity: 0.45; }
}
.hp-photo__breath,
.animate-breath {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 110%;
  height: 80%;
  background: #E37F7F;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(100px);
  z-index: 0;
  animation: breath 5s ease-in-out infinite;
}

/* 照片顯示切換按鈕 */
.hp-toggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all 0.2s;
}
.hp-toggle:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* 桌面：照片自動顯示，隱藏 toggle */
@media (min-width: 1024px) {
  .hp-photo { opacity: 1 !important; }
  .hp-toggle { display: none; }
}

/* 手機：照片底部、限制高度 */
@media (max-width: 1023px) {
  .hp-photo {
    bottom: 0 !important;
    height: auto !important;
    max-height: 85vh;
  }
}

/* 向下相容：舊 class 映射到新規範 */
.hero-photo {
  position: absolute;
  opacity: 0;
  z-index: 15;
  pointer-events: none;
  width: auto;
  object-fit: contain;
  transition: opacity 0.5s;
}
.hero-photo.is-visible { opacity: 1 !important; }

.hero-photo-toggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all 0.2s;
}
.hero-photo-toggle:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E37F7F;
  background: rgba(227, 127, 127, 0.12);
  border: 1px solid rgba(227, 127, 127, 0.2);
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .hero-photo { opacity: 1 !important; }
  .hero-photo-toggle { display: none; }
}
@media (max-width: 1023px) {
  .hero-photo {
    bottom: 0 !important;
    height: auto !important;
    max-height: 85vh;
  }
}


/* ─────────────────────────────────────────────
   10. SECTION EYEBROW 區塊小標（非 Hero 內）
   ───────────────────────────────────────────── */

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 1rem;
  display: block;
}


/* ─────────────────────────────────────────────
   11. CREDENTIAL TAGS 資歷標籤
   ───────────────────────────────────────────── */

.cred-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.cred-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-slate-600);
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: 20px;
  padding: 5px 12px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s;
}
.cred-tag:hover {
  border-color: var(--color-brand);
  color: var(--color-brand-dark);
  box-shadow: 0 4px 14px rgba(227, 127, 127, 0.2);
}
.cred-tag i { color: var(--color-brand); font-size: 10px; }


/* ─────────────────────────────────────────────
   12. NAV-DOT 側邊導航圓點
   ───────────────────────────────────────────── */

.nav-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-slate-300);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}
.nav-dot:hover,
.nav-dot.active {
  background: var(--color-brand);
  transform: scale(1.5);
}
.g-side .nav-dot .nav-label {
  display: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: var(--color-slate-700);
  font-family: var(--font-body);
  font-size: 8px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-slate-200);
  pointer-events: none;
}
.g-side .nav-dot:hover .nav-label {
  display: block;
  opacity: 1;
  pointer-events: auto;
}


/* ─────────────────────────────────────────────
   13. PAGE CTA 頁尾行動呼籲
   ───────────────────────────────────────────── */

.page-cta {
  background: var(--color-slate-950);
  position: relative;
  overflow: hidden;
}
.page-cta__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: var(--color-brand-a15);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}


/* ─────────────────────────────────────────────
   14. HERO STAT 數字統計（index 用）
   ───────────────────────────────────────────── */

.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5.5vw, 2rem);
  font-weight: 900;
  color: var(--color-brand);
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--color-slate-400);
  margin-top: 4px;
}
