/* ============================================
   哈哈寶貝 全站自訂樣式
   現代都會風格 — 深藍黑 + 金色點綴
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #0f172a;
  --bg-card: #1e293b;
  --gold: #d4a574;
  --gold-dark: #b8860b;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --glass-bg: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(212, 165, 116, 0.15);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  /* 多層漸層渲染底色 — 深邃都會夜空 */
  background-image:
    radial-gradient(ellipse 120% 80% at 15% 20%, rgba(88, 40, 120, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 100% 60% at 85% 15%, rgba(212, 165, 116, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 140% 70% at 50% 90%, rgba(60, 30, 100, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 80% 80% at 75% 55%, rgba(30, 50, 120, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ---------- Smoke / Mist Atmosphere ---------- */
.smoke-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.smoke-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

/* 深紫煙霧 — 左上 */
.smoke-blob-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(88, 40, 130, 0.18) 0%, rgba(60, 20, 100, 0.06) 40%, transparent 70%);
  top: -8%;
  left: -10%;
  filter: blur(80px);
  animation: smoke-drift-1 28s ease-in-out infinite;
}

/* 金色光暈 — 右上 */
.smoke-blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.10) 0%, rgba(184, 134, 11, 0.04) 40%, transparent 70%);
  top: 5%;
  right: -5%;
  filter: blur(70px);
  animation: smoke-drift-2 32s ease-in-out infinite;
}

/* 深藍霧氣 — 中央偏下 */
.smoke-blob-3 {
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(30, 50, 120, 0.12) 0%, rgba(20, 30, 80, 0.05) 45%, transparent 70%);
  top: 35%;
  left: 20%;
  filter: blur(90px);
  animation: smoke-drift-3 35s ease-in-out infinite;
}

/* 紫紅薄霧 — 右下 */
.smoke-blob-4 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(120, 50, 100, 0.12) 0%, rgba(80, 30, 80, 0.04) 40%, transparent 70%);
  bottom: 5%;
  right: 5%;
  filter: blur(85px);
  animation: smoke-drift-4 30s ease-in-out infinite;
}

/* 淡金煙絲 — 左下 */
.smoke-blob-5 {
  width: 400px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(212, 165, 116, 0.07) 0%, rgba(180, 140, 80, 0.03) 40%, transparent 70%);
  bottom: 15%;
  left: 5%;
  filter: blur(75px);
  animation: smoke-drift-5 26s ease-in-out infinite;
}

/* 深邃墨霧 — 頂部橫向 */
.smoke-blob-6 {
  width: 100%;
  height: 300px;
  background: linear-gradient(180deg, rgba(10, 8, 25, 0.4) 0%, transparent 100%);
  top: 0;
  left: 0;
  filter: blur(40px);
  animation: smoke-pulse 20s ease-in-out infinite;
}

@keyframes smoke-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  25%      { transform: translate(60px, 30px) scale(1.08); opacity: 0.9; }
  50%      { transform: translate(-30px, 60px) scale(0.95); opacity: 0.6; }
  75%      { transform: translate(40px, -20px) scale(1.04); opacity: 0.8; }
}

@keyframes smoke-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  33%      { transform: translate(-50px, 40px) scale(1.1); opacity: 0.8; }
  66%      { transform: translate(30px, -30px) scale(0.93); opacity: 0.5; }
}

@keyframes smoke-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  20%      { transform: translate(40px, -20px) scale(1.05); opacity: 0.7; }
  50%      { transform: translate(-50px, 30px) scale(0.96); opacity: 0.4; }
  80%      { transform: translate(20px, 10px) scale(1.02); opacity: 0.6; }
}

@keyframes smoke-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  30%      { transform: translate(-40px, -30px) scale(1.06); opacity: 0.8; }
  60%      { transform: translate(50px, 20px) scale(0.94); opacity: 0.5; }
}

@keyframes smoke-drift-5 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  40%      { transform: translate(30px, -40px) scale(1.08); opacity: 0.7; }
  70%      { transform: translate(-20px, 20px) scale(0.96); opacity: 0.4; }
}

@keyframes smoke-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.6; }
}

/* 內容層級 — 確保在煙霧之上 */
main,
section,
#site-footer {
  position: relative;
  z-index: 1;
}

/* Header 需要獨立高 z-index，不然 fixed 定位會被父層 stacking context 壓住 */
#site-header {
  position: relative;
  z-index: 100;
}

/* ---------- Gold Gradient Text ---------- */
.text-gold-gradient {
  background: linear-gradient(135deg, #d4a574, #b8860b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Gold Gradient Button ---------- */
.btn-gold {
  background: linear-gradient(135deg, #d4a574, #b8860b);
  color: #0f172a;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.35);
}

/* ---------- Gold Outline Button ---------- */
.btn-gold-outline {
  border: 2px solid #d4a574;
  color: #d4a574;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  background: transparent;
}
.btn-gold-outline:hover {
  background: linear-gradient(135deg, #d4a574, #b8860b);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.35);
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: rgba(20, 28, 48, 0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(212, 165, 116, 0.10);
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.glass-card:hover {
  transform: translateY(-4px);
  background: rgba(25, 35, 58, 0.65);
  border-color: rgba(212, 165, 116, 0.30);
  box-shadow: 0 16px 50px rgba(212, 165, 116, 0.10), 0 0 30px rgba(88, 40, 130, 0.06);
}

/* ---------- Gold Glow ---------- */
.gold-glow {
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.2);
}
.gold-glow-hover:hover {
  box-shadow: 0 0 30px rgba(212, 165, 116, 0.35);
}

/* ---------- Gold Border Left ---------- */
.gold-border-left {
  border-left: 4px solid #d4a574;
}

/* ---------- Section Divider ---------- */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #d4a574, #b8860b);
  margin: 0 auto;
  border-radius: 2px;
}

/* ---------- Page Banner ---------- */
.page-banner {
  position: relative;
  padding: 5rem 1rem;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(88, 40, 130, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.88), rgba(20, 15, 40, 0.92)),
    url('../images/banners/default-banner.jpg') center/cover no-repeat;
  text-align: center;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}
@media (min-width: 768px) {
  .page-banner {
    padding: 6rem 2rem;
  }
}

/* ---------- Hero Overlay ---------- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(88, 40, 130, 0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 165, 116, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(30, 20, 60, 0.15) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.45), rgba(10, 8, 25, 0.80));
  z-index: 1;
}

/* ---------- Swiper Customization ---------- */
.swiper-pagination-bullet {
  background: #94a3b8 !important;
  opacity: 0.5 !important;
  width: 10px !important;
  height: 10px !important;
}
.swiper-pagination-bullet-active {
  background: #d4a574 !important;
  opacity: 1 !important;
}
.swiper-button-next,
.swiper-button-prev {
  color: #d4a574 !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.25rem !important;
}

/* ---------- Pricing Card (推薦放大) ---------- */
.pricing-card-featured {
  transform: scale(1.05);
  border: 2px solid #d4a574;
  box-shadow: 0 0 30px rgba(212, 165, 116, 0.2);
}
@media (max-width: 767px) {
  .pricing-card-featured {
    transform: scale(1);
    order: -1;
  }
}

/* ---------- Timeline (callmei.html) ---------- */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #d4a574, #b8860b);
  transform: translateX(-50%);
}
@media (max-width: 767px) {
  .timeline-line {
    left: 1.5rem;
  }
}

.timeline-dot {
  width: 1rem;
  height: 1rem;
  background: linear-gradient(135deg, #d4a574, #b8860b);
  border-radius: 50%;
  border: 3px solid #0f172a;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
@media (max-width: 767px) {
  .timeline-dot {
    left: 1.5rem;
  }
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.faq-item:last-child {
  border-bottom: none;
}

/* ---------- Responsive Table → Card (mobile) ---------- */
@media (max-width: 767px) {
  .responsive-table thead {
    display: none;
  }
  .responsive-table tbody tr {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--glass-border);
  }
  .responsive-table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border: none !important;
  }
  .responsive-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #d4a574;
    margin-right: 1rem;
  }
}

/* ---------- Float Buttons ---------- */
.float-buttons {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.float-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
@media (max-width: 767px) {
  .float-btn {
    width: 3rem;
    height: 3rem;
  }
  .float-buttons {
    bottom: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }
}

/* ---------- Mobile Menu Dropdown ---------- */
.mobile-menu-dropdown {
  background: rgba(10, 8, 25, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 165, 116, 0.15);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #d4a574;
}
.breadcrumb span {
  color: #d4a574;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4a574;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(212, 165, 116, 0.3);
  color: #ffffff;
}

/* ---------- Loading Skeleton ---------- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}
