/* ============================================
   Alice 健體顧問 - 設計系統
   ============================================ */

/* === 設計變數 === */
:root {
  /* 色彩系統 - 黑金白三色調 */
  --color-bg-dark: #0d0d0d;
  --color-bg-card: #1a1a1a;
  --color-bg-section-alt: #121212;
  --color-bg-light: #f8f8f8;
  --color-bg-white: #ffffff;
  --color-bg-card-light: #ffffff;
  --color-accent: #f5a623;
  --color-accent-hover: #ffd54f;
  --color-accent-glow: rgba(245, 166, 35, 0.3);
  --color-text-primary: #ffffff;
  --color-text-dark: #1a1a1a;
  --color-text-secondary: #b0b0b0;
  --color-text-secondary-dark: #666666;
  --color-border: #2a2a2a;
  --color-border-light: #e0e0e0;

  /* 字型 */
  --font-heading: "Oswald", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans TC", sans-serif;

  /* 間距 */
  --section-padding: 80px 5%;
  --section-padding-mobile: 50px 4%;
  --card-radius: 4px;
  --btn-radius: 4px;
  --card-shadow: 0 8px 32px rgba(245, 166, 35, 0.15);

  /* 動畫 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* === 導航列 === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(13, 13, 13, 0.98);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.nav-logo {
  text-decoration: none;
}

.nav-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.nav-logo .accent {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-menu a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-fast);
}

/* === 通用元件 === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
}

.section-alt {
  background-color: var(--color-bg-section-alt);
}

/* 淺色區塊（白底）*/
.section-light {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

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

.section-light .section-title::after {
  background: linear-gradient(90deg, var(--color-accent), #e6941c);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-hover)
  );
  margin: 15px auto 0;
  border-radius: 2px;
}

/* === 按鈕 === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #e6941c);
  color: #000;
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #000;
}

/* === 圖片佔位容器 === */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-bg-card) 0%, #252525 100%);
  border: 2px dashed var(--color-border);
  border-radius: var(--card-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 166, 35, 0.05),
    transparent
  );
  animation: shimmer 2s infinite;
}

.img-placeholder i {
  font-size: 3rem;
  color: var(--color-accent);
  opacity: 0.5;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* ============================================
   Section 1: Hero Banner - 健身風格增強版
   ============================================ */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 動態光暈背景 */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(245, 166, 35, 0.12) 0%,
    transparent 70%
  );
  animation: heroGlow 4s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

@keyframes heroGlow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 13, 0.5) 0%,
    rgba(13, 13, 13, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--color-accent), #ffcc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-cta {
  padding: 16px 40px;
  font-size: 1.1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 20px var(--color-accent-glow);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 8px 50px rgba(245, 166, 35, 0.6);
    transform: translateY(-3px);
  }
}

/* ============================================
   Section 2: 個人介紹
   ============================================ */
.about {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-avatar {
  flex: 0 0 280px;
}

.avatar-wrapper {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-hover)
  );
  box-shadow: 0 0 40px var(--color-accent-glow);
  transition: transform var(--transition-normal);
}

.avatar-wrapper:hover {
  transform: scale(1.05);
}

.avatar-wrapper .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: none;
}

/* 實際頭像圖片 - 圓形 */
.avatar-wrapper .avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.about-content {
  flex: 1;
}

.about-name {
  font-size: 2rem;
  margin-bottom: 10px;
}

.about-role {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.about-text {
  color: var(--color-text-secondary);
  margin-bottom: 25px;
  line-height: 1.8;
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.credential-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(
    135deg,
    rgba(245, 166, 35, 0.1),
    rgba(245, 166, 35, 0.05)
  );
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 30px;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

.credential-badge:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 25px rgba(245, 166, 35, 0.2);
}

.credential-badge i {
  color: var(--color-accent);
  font-size: 1.1rem;
}

/* ============================================
   Section 3: 服務特色
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--color-bg-card-light);
  padding: 40px 30px;
  border-radius: var(--card-radius);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(245, 166, 35, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(
    135deg,
    rgba(245, 166, 35, 0.15),
    rgba(245, 166, 35, 0.05)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  font-size: 2rem;
  color: var(--color-accent);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--color-text-dark);
}

.service-card p {
  color: var(--color-text-secondary-dark);
  font-size: 0.95rem;
}

/* ============================================
   Section 4: 場館環境
   ============================================ */
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: -10px;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 10px;
}

.gallery-item {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* 大小交錯排列 — 每隔幾張有一張大的 */
.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item:nth-child(5) {
  grid-row: span 2;
}
.gallery-item:nth-child(8) {
  grid-column: span 2;
}
.gallery-item:nth-child(11) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Hover overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-zoom {
  transform: scale(1);
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: lightboxFadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

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

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: lightboxImgIn 0.3s ease;
}

@keyframes lightboxImgIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-family: "Oswald", sans-serif;
  letter-spacing: 2px;
}

/* ============================================
   Section 5: 班表資訊
   ============================================ */
.schedule-container {
  max-width: 900px;
  margin: 0 auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.schedule-table th,
.schedule-table td {
  padding: 18px 15px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.schedule-table th {
  background: linear-gradient(135deg, var(--color-accent), #e6941c);
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tr:hover td {
  background: rgba(245, 166, 35, 0.05);
}

.time-slot {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(245, 166, 35, 0.15);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.slot-available {
  color: #4caf50;
}

.slot-busy {
  color: var(--color-text-secondary);
  opacity: 0.5;
}

/* 月曆表頭 */
.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 15px;
  background: var(--color-bg-card);
  padding: 15px 10px;
  border-radius: 12px;
}

.calendar-weekday {
  text-align: center;
  padding: 8px;
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1rem;
}

/* 月曆主體 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  cursor: default;
}

.calendar-day.empty {
  background: transparent;
  border: none;
}

/* 過去日期 - 明確灰化 */
.calendar-day.past {
  opacity: 0.35;
  background: rgba(30, 30, 30, 0.5);
}

.calendar-day.past .day-number {
  color: var(--color-text-secondary);
}

/* 今日 - 強烈高亮 */
.calendar-day.today {
  border-color: var(--color-accent);
  box-shadow:
    0 0 20px var(--color-accent-glow),
    inset 0 0 15px rgba(245, 166, 35, 0.1);
  background: linear-gradient(
    135deg,
    rgba(245, 166, 35, 0.15),
    rgba(245, 166, 35, 0.05)
  );
}

.calendar-day.today .day-number {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.calendar-day.today::after {
  content: "今日";
  position: absolute;
  bottom: 8px;
  font-size: 0.65rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* 可預約 - 綠色強調 */
.calendar-day.available {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.25),
    rgba(76, 175, 80, 0.1)
  );
  border-color: #4caf50;
  cursor: pointer;
}

.calendar-day.available:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.calendar-day.available .day-number {
  color: #4caf50;
  font-weight: 600;
}

.calendar-day.available::after {
  content: "可預約";
  position: absolute;
  bottom: 8px;
  font-size: 0.65rem;
  color: #4caf50;
  font-weight: 600;
}

/* 已額滿 - 紅色提示 */
.calendar-day.booked {
  background: linear-gradient(
    135deg,
    rgba(244, 67, 54, 0.15),
    rgba(244, 67, 54, 0.05)
  );
  border-color: rgba(244, 67, 54, 0.3);
}

.calendar-day.booked .day-number {
  color: #f44336;
}

.calendar-day.booked::after {
  content: "已滿";
  position: absolute;
  bottom: 8px;
  font-size: 0.65rem;
  color: #f44336;
  opacity: 0.8;
}

/* 休息日 - 灰色 */
.calendar-day.rest {
  background: linear-gradient(
    135deg,
    rgba(158, 158, 158, 0.2),
    rgba(158, 158, 158, 0.1)
  );
  border-color: rgba(158, 158, 158, 0.5);
}

.calendar-day.rest .day-number {
  color: #9e9e9e;
}

.calendar-day.rest::after {
  content: "休息";
  position: absolute;
  bottom: 8px;
  font-size: 0.65rem;
  color: #9e9e9e;
  font-weight: 600;
}

.day-number {
  font-size: 1.1rem;
  font-weight: 500;
}

/* 隱藏原本的小點 */
.day-dot {
  display: none;
}

/* 圖例 - 更清晰 */
.calendar-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
  padding: 20px;
  background: var(--color-bg-card);
  border-radius: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid;
}

.legend-dot.available {
  background: rgba(76, 175, 80, 0.3);
  border-color: #4caf50;
}

.legend-dot.booked {
  background: rgba(244, 67, 54, 0.3);
  border-color: #f44336;
}

.legend-dot.today {
  background: rgba(245, 166, 35, 0.3);
  border-color: var(--color-accent);
}

.legend-dot.rest {
  background: rgba(158, 158, 158, 0.3);
  border-color: #9e9e9e;
}

/* ============================================
   Section 6: FAQ
   ============================================ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg-card);
  border-radius: var(--card-radius);
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-fast);
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--color-accent);
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
}

.faq-question span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-question .q-mark {
  color: var(--color-accent);
  font-weight: 700;
}

.faq-question i {
  transition: transform var(--transition-normal);
  color: var(--color-accent);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer-inner {
  padding: 0 25px 20px 45px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   Section 7: 會員好評
   ============================================ */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 30px;
  transition: transform var(--transition-slow);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 20px);
  background: var(--color-bg-card-light);
  padding: 30px;
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-rating {
  color: var(--color-accent);
  margin-bottom: 15px;
}

.testimonial-text {
  color: var(--color-text-secondary-dark);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #000;
}

.author-name {
  font-weight: 600;
  color: var(--color-text-dark);
}

/* ============================================
   Section 8: 聯絡資訊
   ============================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
}

.contact-list i {
  width: 40px;
  height: 40px;
  background: var(--color-bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--color-bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-accent);
  color: #000;
  transform: translateY(-5px);
}

.contact-qr {
  text-align: center;
}

.qr-wrapper {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  background: #fff;
  padding: 15px;
  border-radius: var(--card-radius);
}

.qr-wrapper .img-placeholder {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  border: none;
}

.contact-qr p {
  color: var(--color-text-secondary);
}

/* ============================================
   Section 9: Footer
   ============================================ */
.footer {
  background: #080808;
  padding: 40px 5%;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer-logo {
  width: 150px;
  height: 50px;
  margin: 0 auto 20px;
}

.footer-logo .img-placeholder {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

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

.footer-copyright {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

.footer-copyright span {
  color: var(--color-accent);
}

/* ============================================
   導航列
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 5%;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

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

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-menu a {
  color: var(--color-text-primary);
  font-weight: 500;
  position: relative;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-fast);
}

/* ============================================
   浮動 LINE 按鈕 - 側邊展開
   ============================================ */
.floating-line-btn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  background: #06c755;
  color: #fff;
  text-decoration: none;
  border-radius: 30px 0 0 30px;
  padding: 12px 15px;
  box-shadow: -4px 0 20px rgba(6, 199, 85, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
  overflow: hidden;
}

.floating-line-btn i {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.floating-line-btn .line-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  margin-left: 0;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* 點擊展開狀態 */
.floating-line-btn.expanded .line-text {
  max-width: 120px;
  opacity: 1;
  margin-left: 10px;
}

.floating-line-btn.expanded {
  padding-right: 20px;
  box-shadow: -8px 0 30px rgba(6, 199, 85, 0.6);
}

/* 回到頂部按鈕 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-normal);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-accent);
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--color-accent-glow);
}

/* ============================================
   動畫效果
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
.stagger-4 {
  transition-delay: 0.4s;
}

/* ============================================
   RWD 響應式
   ============================================ */
@media (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery-item:nth-child(5) {
    grid-row: span 1;
  }
  .gallery-item:nth-child(8) {
    grid-column: span 1;
  }
  .gallery-item:nth-child(11) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }

  .section-title {
    font-size: 2rem;
  }

  /* Navbar Mobile */
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-normal);
    pointer-events: none;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero Mobile */
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* About Mobile */
  .about {
    flex-direction: column;
    text-align: center;
  }

  .about-avatar {
    flex: none;
  }

  .avatar-wrapper {
    width: 200px;
    height: 200px;
  }

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

  /* Services Mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 8px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gallery-item:nth-child(5) {
    grid-row: span 1;
  }
  .gallery-item:nth-child(8) {
    grid-column: span 1;
  }
  .gallery-item:nth-child(11) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-overlay {
    display: none;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }

  /* Schedule Mobile */
  .schedule-container {
    overflow-x: auto;
  }

  .schedule-table {
    min-width: 600px;
  }

  /* Testimonials Mobile */
  .testimonial-card {
    flex: 0 0 100%;
  }

  /* Contact Mobile */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .contact-list {
    display: inline-block;
    text-align: left;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(11) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ============================================
   輪播圖區塊
   ============================================ */
.slides-section {
  padding: 40px 0;
  background: var(--color-bg-dark);
}

.slides-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
}

.slides-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.slide-item.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 1.2rem;
  font-weight: 500;
}

.slides-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.slide-prev,
.slide-next {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-prev:hover,
.slide-next:hover {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
}

.slides-dots {
  display: flex;
  gap: 8px;
}

.slides-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slides-dots .dot.active,
.slides-dots .dot:hover {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* ============================================
   動態班表區塊
   ============================================ */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.schedule-day {
  background: var(--color-bg-card);
  border-radius: 8px;
  padding: 20px 15px;
  text-align: center;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border);
}

.schedule-day:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}

.schedule-day.available {
  border-color: var(--color-accent);
}

.schedule-day.rest,
.schedule-day.no-data {
  opacity: 0.6;
}

.day-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.day-status {
  margin-bottom: 10px;
}

.day-times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.time-tag {
  font-size: 0.75rem;
  background: rgba(245, 166, 35, 0.15);
  color: var(--color-accent);
  padding: 4px 8px;
  border-radius: 4px;
}

.time-slot.slot-pending {
  background: rgba(128, 128, 128, 0.2);
  color: #888;
}

.time-slot.slot-full {
  background: rgba(255, 100, 100, 0.2);
  color: #ff6464;
}

.schedule-note {
  text-align: center;
  margin-top: 25px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.schedule-note i {
  margin-right: 8px;
  color: var(--color-accent);
}

.schedule-empty {
  text-align: center;
  padding: 40px;
  color: var(--color-text-secondary);
}

.schedule-empty i {
  font-size: 2rem;
  margin-bottom: 15px;
  display: block;
  color: var(--color-accent);
}

/* 班表響應式 */
@media (max-width: 900px) {
  .schedule-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slides-track {
    aspect-ratio: 16/9;
  }

  .slide-caption {
    font-size: 1rem;
    padding: 30px 15px 15px;
  }
}
