/* ========================================
   瑞士國際抗衰老集團 - 全域樣式
   高端奢華風格 - 象牙白、香檳金、深霧灰
======================================== */

/* 基礎變數 */
:root {
  --color-primary: #C9A96E; /* 香檳金 */
  --color-secondary: #3A3A3A; /* 深霧灰 */
  --color-background: #F8F5F0; /* 象牙白 */
  --color-white: #FFFFFF;
  --color-text-dark: #2C2C2C;
  --color-text-light: #666666;
  --color-accent: #8B7355;
  
  --font-primary: 'Noto Serif TC', 'Times New Roman', serif;
  --font-secondary: 'Noto Sans TC', 'Arial', sans-serif;
  
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-secondary);
  color: var(--color-text-dark);
  background-color: var(--color-background);
  line-height: 1.8;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--color-secondary);
  letter-spacing: 1px;
}

h1 { font-size: 3.5rem; line-height: 1.2; }
h2 { font-size: 2.5rem; line-height: 1.3; margin-bottom: 2rem; }
h3 { font-size: 1.8rem; line-height: 1.4; }
h4 { font-size: 1.4rem; }

p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

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

/* 頂部導航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 2px;
  font-family: var(--font-primary);
}

.logo span {
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-menu a {
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-primary);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* 手機選單按鈕 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* 容器與區塊 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section {
  padding: 6rem 0;
}

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

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--color-primary);
  margin: 1.5rem auto 0;
}

/* 按鈕樣式 */
.btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201, 169, 110, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-outline:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.btn-large {
  padding: 1.3rem 4rem;
  font-size: 1.1rem;
}

/* 卡片樣式 */
.card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* 網格系統 */
.grid {
  display: grid;
  gap: 3rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 頁尾 */
.footer {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 2;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* WhatsApp 浮動按鈕 */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  cursor: pointer;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: white;
}

/* 響應式設計 - 平板 */
@media (max-width: 1024px) {
  .nav-container {
    padding: 1.2rem 2rem;
  }
  
  .container {
    padding: 0 2rem;
  }
  
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* 響應式設計 - 手機 */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: calc(100vh - 80px);
    background: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    gap: 0;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin-bottom: 1.5rem;
  }
  
  .nav-menu a {
    font-size: 1.1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  
  .section {
    padding: 4rem 0;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 0.9rem 2.5rem;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* 載入動畫 */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hide {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(201, 169, 110, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
