/* ============================================
   晨曦美學・曜研中心 - 全局樣式
   科學極簡 × 醫療高端美學
   ============================================ */

/* 導入 Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS 變數定義
   ============================================ */
:root {
  /* 品牌色系 */
  --color-white: #FFFFFF;
  --color-gold: #D4AF37;
  --color-blush: #F7E7E2;
  --color-dark: #2C2C2C;
  --color-gray-light: #E8E8E8;
  --color-gray-medium: #B8B8B8;
  --color-gray-dark: #666666;
  
  /* 字型 */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Noto Sans TC', sans-serif;
  
  /* 間距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* 圓角 */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  /* 陰影 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  
  /* 過渡 */
  --transition: all 0.3s ease;
}

/* ============================================
   基礎樣式
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

/* ============================================
   排版系統
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 1.875rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

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

a:hover {
  color: var(--color-dark);
}

/* ============================================
   導航欄
   ============================================ */
.navbar {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

.navbar-brand .highlight {
  color: var(--color-gold);
}

.nav-link {
  color: var(--color-dark) !important;
  font-weight: 500;
  margin-left: 2rem;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
}

/* ============================================
   按鈕樣式
   ============================================ */
.btn-luxury {
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  background-color: transparent;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.btn-luxury:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4),
              0 0 40px rgba(212, 175, 55, 0.2);
  transform: scale(1.02);
}

.btn-luxury:active {
  transform: scale(0.98);
}

.btn-luxury-solid {
  background-color: var(--color-gold);
  color: var(--color-white);
  border: 2px solid var(--color-gold);
}

.btn-luxury-solid:hover {
  background-color: transparent;
  color: var(--color-gold);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ============================================
   卡片組件 - 毛玻璃效果
   ============================================ */
.card-frosted {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card-frosted:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.95);
}

.card-frosted.accent-border {
  border: 2px solid var(--color-gold);
}

/* ============================================
   背景與容器
   ============================================ */
.bg-blush {
  background-color: var(--color-blush);
}

.bg-gradient-subtle {
  background: linear-gradient(135deg, rgba(247, 231, 226, 0.3) 0%, transparent 100%);
}

.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(247, 231, 226, 0.2) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  color: var(--color-dark);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-content .highlight {
  color: var(--color-gold);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--color-dark);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ============================================
   動畫
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ============================================
   區塊間距
   ============================================ */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-lg {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--color-gray-dark);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   頁腳
   ============================================ */
footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0 1rem;
}

footer h3 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

footer a {
  color: #B8B8B8;
}

footer a:hover {
  color: var(--color-gold);
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: #888;
}

/* ============================================
   表單
   ============================================ */
.form-control {
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--color-dark);
}

.form-label .required {
  color: #dc3545;
}

/* ============================================
   進度條
   ============================================ */
.progress-bar {
  background-color: var(--color-gold);
}

.progress {
  background-color: var(--color-gray-light);
  border-radius: var(--radius-lg);
  height: 8px;
}

/* ============================================
   標籤與徽章
   ============================================ */
.badge-gold {
  background-color: var(--color-gold);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

/* ============================================
   響應式設計
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .nav-link {
    margin-left: 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  .container-custom {
    padding: 0 1rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero {
    height: 300px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .btn-luxury {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .card-frosted {
    padding: var(--spacing-md);
  }
}

/* ============================================
   工具類
   ============================================ */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--color-gold);
}

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

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.justify-content-center {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.cursor-pointer {
  cursor: pointer;
}
