/* ============================================
   氤氳・私藏特調 - 全站共用樣式表
   Aura & Alchemy Private Blend - Global Styles
   ============================================ */

/* 色系定義 */
:root {
  --midnight-purple: #120A2A;
  --pearl-light: #F0EAD6;
  --liquid-gold: #D4AF37;
  --soft-gray: #E8E3D8;
  --deep-brown: #3D2817;
  --accent-rose: #C9A8A0;
  --text-dark: #2A1F35;
  --text-light: #F5F2ED;
}

/* 基礎重置與排版 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--pearl-light) 0%, #F8F5F0 50%, #F0EAD6 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

/* 粒子背景動畫 */
.particle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* 排版基礎 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--midnight-purple);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.8rem;
}

p {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

a {
  color: var(--liquid-gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--midnight-purple);
  text-decoration: underline;
}

/* 霧面玻璃效果 (Glassmorphism) */
.glass-effect {
  background: rgba(240, 234, 214, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(18, 10, 42, 0.1);
}

.glass-effect-dark {
  background: rgba(18, 10, 42, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
}

/* 導覽列樣式 */
.navbar {
  background: rgba(240, 234, 214, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(240, 234, 214, 0.8);
  box-shadow: 0 4px 20px rgba(18, 10, 42, 0.1);
}

.navbar-brand {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--midnight-purple) !important;
  letter-spacing: 0.1em;
}

.nav-link {
  color: var(--text-dark) !important;
  font-size: 0.95rem;
  margin: 0 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--liquid-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* 按鈕樣式 */
.btn {
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--liquid-gold) 0%, #E8C547 100%);
  color: var(--midnight-purple);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E8C547 0%, var(--liquid-gold) 100%);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  color: var(--midnight-purple);
}

.btn-secondary {
  background: transparent;
  color: var(--midnight-purple);
  border: 2px solid var(--liquid-gold);
}

.btn-secondary:hover {
  background: var(--liquid-gold);
  color: var(--midnight-purple);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.btn-outline-light:hover {
  background: var(--text-light);
  color: var(--midnight-purple);
}

/* 卡片樣式 */
.card {
  background: var(--pearl-light);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(18, 10, 42, 0.08);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(18, 10, 42, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

.card-body {
  padding: 2rem;
}

/* 區塊間距 */
.section {
  padding: 6rem 0;
  position: relative;
}

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

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--liquid-gold), transparent);
}

/* 表單樣式 */
.form-control, .form-select {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--liquid-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-label {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

/* 頁尾樣式 */
footer {
  background: var(--midnight-purple);
  color: var(--text-light);
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

footer h5 {
  color: var(--liquid-gold);
  margin-bottom: 1.5rem;
}

footer a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(245, 242, 237, 0.7);
}

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

  h2 {
    font-size: 1.8rem;
  }

  .section {
    padding: 4rem 0;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .nav-link {
    margin: 0.5rem 0;
  }
}

/* 動畫工具類 */
.fade-in {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

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

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

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

/* 實用工具類 */
.text-gold {
  color: var(--liquid-gold);
}

.text-purple {
  color: var(--midnight-purple);
}

.bg-purple {
  background: var(--midnight-purple);
}

.bg-light {
  background: var(--pearl-light);
}

.mt-large {
  margin-top: 4rem;
}

.mb-large {
  margin-bottom: 4rem;
}

/* 平滑過渡 */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
