/* Custom CSS for Alisa Hair Studio - 日系韓系偏冷調風格 */

:root {
  /* 偏冷調色系 */
  --primary-cool: #4a6078;        /* 冷藍灰 */
  --secondary-cool: #7a8fa8;      /* 淺冷藍 */
  --accent-pink: #d4b5b5;         /* 柔和粉 */
  --bg-light: #f8f9fa;           /* 淺灰白 */
  --bg-cream: #f5f3f0;           /* 米白 */
  --text-primary: #2c3e50;       /* 深灰藍 */
  --text-secondary: #6c757d;     /* 中性灰 */
  --border-light: #e9ecef;       /* 淺灰邊框 */
  --gradient-cool: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 整體字體與基礎樣式 */
body {
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
}

a {
  text-decoration: none;
  transition: color 0.3s ease;
}

/* 導航欄樣式 */
.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.3rem;
  color: var(--primary-cool) !important;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-icon {
  font-size: 1.5rem;
  margin-right: 8px;
  color: var(--accent-pink);
}

.brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-theme {
  /* background: var(--primary-cool); */
  backdrop-filter: blur(15px);
  box-shadow: 0 3px 25px rgba(74, 96, 120, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.navbar-theme.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 30px rgba(74, 96, 120, 0.2);
}

.navbar-theme.scrolled .navbar-nav .nav-link {
  /* color: var(--primary-cool) !important; */
  text-shadow: none;
}

.navbar-theme.scrolled .brand-text {
  /* color: var(--primary-cool); */
  text-shadow: none;
}

/* 導航連結樣式 */
.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: white !important;
  padding: 12px 18px !important;
  margin: 0 5px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.nav-icon {
  font-size: 1rem;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.nav-text {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* 特殊預約按鈕 */
.booking-link {
  background: var(--accent-pink) !important;
  color: white !important;
  font-weight: 700;
  margin-left: 10px;
  box-shadow: 0 3px 12px rgba(212, 181, 181, 0.4);
  border: 2px solid var(--accent-pink) !important;
  text-shadow: none;
}

.booking-link:hover {
  background: #c19a9a !important;
  color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 181, 181, 0.5);
  border-color: #c19a9a !important;
}

.booking-link .nav-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* 主標題區域 */
.hero-section {
  /* 備用漸層背景 */
  background: linear-gradient(
    135deg, 
    var(--primary-cool) 0%, 
    var(--secondary-cool) 50%, 
    var(--accent-pink) 100%
  );
  /* 主要背景圖片 */
  background-image: url('../images/hero-p.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* 如果圖片載入失敗，使用改進的漸層效果 */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(212, 181, 181, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(122, 143, 168, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary-cool) 0%, var(--secondary-cool) 100%);
  z-index: -1;
}

.hero-overlay {
  background: linear-gradient(
    135deg, 
    rgba(74, 96, 120, 0.4) 0%, 
    rgba(122, 143, 168, 0.3) 50%, 
    rgba(212, 181, 181, 0.2) 100%
  );
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* 品牌名稱樣式 */
.brand-title {
  font-size: 2.5rem;
  font-weight: 300;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  line-height: 1.2;
  letter-spacing: 1px;
}

.brand-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  margin-top: 20px;
  letter-spacing: 0.5px;
}

/* 品牌理念區塊 - 重新設計 */
.philosophy-section {
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 50%, #f8f9fb 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.philosophy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(74, 96, 120, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(212, 181, 181, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.philosophy-content {
  position: relative;
  z-index: 2;
}

/* 標題區域 */
.philosophy-header {
  text-align: center;
  margin-bottom: 60px;
}

.philosophy-title {
  font-size: 2.8rem;
  font-weight: 200;
  color: var(--primary-cool);
  margin-bottom: 15px;
  letter-spacing: 2px;
  position: relative;
}

.philosophy-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-pink), transparent);
  border-radius: 2px;
}

.philosophy-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* 主要內容區域 */
.philosophy-main {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 50px 40px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* 左側文字內容 */
.philosophy-text-content {
  padding-right: 10px;
}

/* 品牌理念核心文字區塊 */
.philosophy-core-text {
  margin-bottom: 10px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(74, 96, 120, 0.03), rgba(212, 181, 181, 0.05));
  border-radius: 18px;
  border-left: 4px solid var(--accent-pink);
  position: relative;
}

.philosophy-core-text::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 3rem;
  color: var(--accent-pink);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.philosophy-paragraph {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.philosophy-paragraph:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .philosophy-core-text {
    padding: 15px;
  }
}

/* 分隔線 */
.philosophy-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-light) 20%,
    var(--border-light) 80%,
    transparent
  );
  margin: 30px 0;
  position: relative;
}

.philosophy-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--accent-pink);
  border-radius: 50%;
}

.philosophy-highlight {
  margin-bottom: 35px;
}

.philosophy-highlight h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-cool);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.philosophy-highlight h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 1px;
  background: var(--accent-pink);
}

.philosophy-highlight p {
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

.philosophy-personality {
  padding: 20px;
  background: rgba(74, 96, 120, 0.05);
  border-radius: 15px;
  border-left: 4px solid var(--accent-pink);
}

.philosophy-personality p {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0;
  font-style: italic;
  line-height: 1.6;
}

/* 右側CTA區域 */
.philosophy-cta-section {
  padding-left: 10px;
  text-align: center;
}

.location-badge {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 35px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.location-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-cool), var(--secondary-cool));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin-right: 20px;
  flex-shrink: 0;
}

.location-text {
  text-align: left;
  flex: 1;
}

.location-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-cool);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.location-text p {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

/* CTA按鈕 */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.philosophy-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 25px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.philosophy-cta-btn .btn-icon {
  margin-right: 12px;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.philosophy-cta-btn .btn-text {
  font-weight: 500;
}

.philosophy-cta-btn.primary {
  background: linear-gradient(135deg, var(--accent-pink), #c19a9a);
  color: white;
  box-shadow: 0 8px 25px rgba(212, 181, 181, 0.3);
}

.philosophy-cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 181, 181, 0.4);
  color: white;
}

.philosophy-cta-btn.secondary {
  background: transparent;
  color: var(--primary-cool);
  border-color: var(--primary-cool);
}

.philosophy-cta-btn.secondary:hover {
  background: var(--primary-cool);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 96, 120, 0.2);
}

.philosophy-cta-btn:hover .btn-icon {
  transform: scale(1.1);
}

/* 服務項目區塊 */
.services-section {
  padding: 100px 0;
  background: white;
}

.service-card {
  height: 100%;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 40px 30px;
  margin: 20px 0;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(74, 96, 120, 0.15);
  border-color: var(--secondary-cool);
}

.service-icon {
  width: auto !important;
  font-size: 1.5rem;
  color: var(--primary-cool);
  /* margin-right: 15px; */
  display: inline-block;
  vertical-align: top;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-cool);
  margin-bottom: 15px;
  display: inline-block;
  width: calc(100% - 50px);
  vertical-align: top;
}

.service-keywords {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 8px 0;
  color: var(--text-primary);
  position: relative;
  padding-left: 25px;
}

.service-features li::before {
  content: "✓";
  color: var(--secondary-cool);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 8px;
}

/* 髮色選擇區塊 */
.color-palette {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  flex-wrap: wrap;
}

.color-item {
  text-align: center;
  margin: 10px;
}

.color-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.color-milk-tea { background: #d4a574; }
.color-berry-purple { background: #8b4d7a; }
.color-ash-grey { background: #a8a8a8; }

/* 作品展示區塊 */
.portfolio-section {
  padding: 100px 0;
  background: var(--bg-cream);
}

/* 篩選導航 */
.portfolio-filter-nav {
  margin-bottom: 50px;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-cool);
  color: var(--primary-cool);
  padding: 12px 25px;
  margin: 5px 10px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-cool);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 96, 120, 0.3);
}

/* 作品集主容器 */
.portfolio-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* 分類區塊 */
.portfolio-category {
  opacity: 1;
  transition: all 0.5s ease;
  height: auto;
  overflow: hidden;
}

.portfolio-category.hidden {
  opacity: 0;
  height: 0;
  margin: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

/* 分類標題 */
.category-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
}

.category-title {
  font-size: 1.8rem;
  color: var(--primary-cool);
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
}

.category-title::after {
  content: '';
  width: 50px;
  height: 3px;
  background: var(--secondary-cool);
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.category-description {
  color: var(--text-secondary);
  font-size: 1rem;
  font-style: italic;
}

/* Swiper 輪播容器 */
.portfolio-swiper {
  width: 100%;
  height: auto;
  padding: 20px 0 70px 0;
  margin: 0;
  overflow: visible;
}

.portfolio-swiper .swiper-wrapper {
  align-items: center;
  height: auto;
}

.portfolio-swiper .swiper-slide {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* 作品項目 */
.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(74, 96, 120, 0.12);
  transition: all 0.4s ease;
  background: white;
  width: 300px;
  height: 350px;
  margin: 0;
  flex-shrink: 0;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(74, 96, 120, 0.2);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.08);
}

/* 輪播中的影片樣式 */
.portfolio-item .portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  border-radius: 0;
}

.portfolio-item:hover .portfolio-video {
  transform: scale(1.08);
}

/* 懸停覆蓋層 */
.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(74, 96, 120, 0.95), rgba(74, 96, 120, 0.3));
  color: white;
  padding: 25px 20px 15px;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.portfolio-description {
  font-size: 0.85rem;
  opacity: 0.95;
  line-height: 1.4;
}

/* 影片網格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 影片項目 */
.video-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(74, 96, 120, 0.15);
  transition: all 0.3s ease;
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(74, 96, 120, 0.2);
}

.portfolio-video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  display: block;
}

.video-info {
  padding: 20px;
  text-align: center;
}

.video-info h4 {
  color: var(--primary-cool);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.video-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Swiper 導航按鈕樣式 */
.portfolio-swiper .swiper-button-next,
.portfolio-swiper .swiper-button-prev {
  color: var(--primary-cool);
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(74, 96, 120, 0.2);
  transition: all 0.3s ease;
}

.portfolio-swiper .swiper-button-next:hover,
.portfolio-swiper .swiper-button-prev:hover {
  background: var(--primary-cool);
  color: white;
  transform: scale(1.1);
}

.portfolio-swiper .swiper-button-next::after,
.portfolio-swiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}

/* Swiper 分頁樣式 */
.portfolio-swiper .swiper-pagination {
  position: static;
  margin-top: 30px;
  padding-top: 10px;
}

.portfolio-swiper .swiper-pagination-bullet {
  background: var(--border-light);
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio-swiper .swiper-pagination-bullet:hover {
  background: var(--secondary-cool);
  transform: scale(1.1);
}

.portfolio-swiper .swiper-pagination-bullet-active {
  background: var(--primary-cool);
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(74, 96, 120, 0.3);
}

/* 大螢幕優化 */
@media (min-width: 1200px) {
  .video-grid {
    max-width: 900px;
    gap: 30px;
  }
  
  .video-item {
    max-width: 420px;
  }
  
  .portfolio-video {
    height: 240px;
  }
}

/* 響應式優化 */
@media (max-width: 992px) {
  .portfolio-section {
    padding: 80px 0;
  }
  
  .portfolio-item {
    width: 280px;
    height: 320px;
    margin: 0;
  }
  
  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 700px;
  }
  
  .video-item {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .portfolio-video {
    height: 200px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    margin: 3px 5px;
    font-size: 0.9rem;
  }
  
  .portfolio-container {
    gap: 40px;
  }
}

/* 手機版優化 */
@media (max-width: 768px) {
  .portfolio-container {
    gap: 30px;
  }
  
  .portfolio-item {
    width: 260px;
    height: 300px;
    margin: 0;
  }
  
  .video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 20px auto 0;
  }
  
  .video-item {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .portfolio-video {
    height: 180px;
    width: 100%;
  }
  
  .category-title {
    font-size: 1.4rem;
  }
  
  .filter-btn {
    display: block;
    margin: 5px auto;
    width: 200px;
  }
  
  .portfolio-filter-nav {
    margin-bottom: 30px;
  }
  
  .portfolio-swiper {
    padding: 15px 0 60px 0;
  }
  
  .portfolio-swiper .swiper-pagination {
    margin-top: 25px;
  }
  
  .portfolio-swiper .swiper-button-next,
  .portfolio-swiper .swiper-button-prev {
    width: 35px;
    height: 35px;
  }
  
  .portfolio-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
}

/* 聯絡資訊區塊 - 優化美化設計 */
.contact-section {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f5f7fa 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(74, 96, 120, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 181, 181, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.contact-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-title {
  font-size: 3.2rem;
  font-weight: 200;
  color: var(--primary-cool);
  margin-bottom: 15px;
  letter-spacing: 3px;
  position: relative;
  text-shadow: 0 1px 3px rgba(74, 96, 120, 0.1);
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-pink), transparent);
  border-radius: 2px;
}

.contact-title::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-pink);
  border-radius: 50%;
}

/* 資訊網格優化 */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 60px 0 50px;
  padding: 20px 0;
  position: relative;
}

.contact-info-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, var(--border-light), transparent);
}

.contact-block {
  text-align: left;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  min-width: 180px;
}

.contact-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-cool), var(--secondary-cool), var(--accent-pink));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 18px 18px 0 0;
}

.contact-block:hover::before {
  opacity: 1;
}

.contact-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
}

.contact-block h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-cool);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  position: relative;
}

.contact-block h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 25px;
  height: 1px;
  background: var(--accent-pink);
}

.contact-block p {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

/* 特定控制Location區塊的文字不換行 */
.contact-block:first-child p {
  white-space: nowrap;
}

/* 聯絡連結優化 */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  border-radius: 22px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 20px;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 12px;
  margin-bottom: 6px;
}

.contact-link:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-cool), var(--secondary-cool));
  opacity: 0;
  border-radius: 15px;
  transition: all 0.4s ease;
  z-index: -1;
}

.contact-link:hover::before {
  opacity: 0.05;
}

.contact-link:hover {
  color: var(--primary-cool);
  padding-left: 35px;
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-link:hover .link-arrow {
  transform: translateX(15px) scale(1.1);
  color: var(--primary-cool);
}

.link-text {
  font-size: 1.15rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.link-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-cool);
  transition: width 0.3s ease;
}

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

.link-arrow {
  font-size: 1.4rem;
  font-weight: 300;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 預約按鈕 */
.booking-btn {
  background: var(--accent-pink);
  border: none;
  padding: 15px 35px;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.booking-btn:hover {
  background: #c19a9a;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 181, 181, 0.3);
  color: white;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .brand-title {
    font-size: 1.8rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 30px 20px;
  }
  
  /* 手機版品牌理念區塊 */
  .philosophy-section {
    padding: 80px 0;
  }
  
  .philosophy-header {
    margin-bottom: 40px;
  }
  
  .philosophy-title {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }
  
  .philosophy-subtitle {
    font-size: 0.9rem;
  }
  
  .philosophy-main {
    padding: 30px 25px;
  }
  
  .philosophy-text-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  /* 手機版核心文字區塊 */
  .philosophy-core-text {
    padding: 20px;
    margin-bottom: 25px;
  }

  .philosophy-core-text::before {
    font-size: 2.5rem;
    top: 8px;
    left: 12px;
  }

  .philosophy-paragraph {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 7px;
  }

  .philosophy-divider {
    margin: 25px 0;
  }

  .philosophy-highlight {
    margin-bottom: 25px;
  }
  
  .philosophy-highlight h3 {
    font-size: 1rem;
  }
  
  .philosophy-highlight p {
    font-size: 1.1rem;
  }
  
  .philosophy-personality {
    padding: 18px;
  }
  
  .philosophy-personality p {
    font-size: 1rem;
  }
  
  .philosophy-cta-section {
    padding-left: 0;
  }
  
  .location-badge {
    padding: 20px;
    margin-bottom: 25px;
  }
  
  .location-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    margin-right: 15px;
  }
  
  .location-text h4 {
    font-size: 0.9rem;
  }
  
  .location-text p {
    font-size: 1rem;
  }
  
  .philosophy-cta-btn {
    padding: 16px 20px;
    font-size: 1rem;
  }
  
  .philosophy-cta-btn .btn-icon {
    font-size: 1.1rem;
    margin-right: 10px;
  }
  
  .service-icon {
    font-size: 1.3rem;
    /* margin-right: 12px; */
  }
  
  .service-title {
    font-size: 1.2rem;
    width: calc(100% - 40px);
  }
  
  /* 手機版導航 */
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .brand-text {
    display: none;
  }
  
  .navbar-brand::after {
    content: "Alisa Hair";
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  }
  
  /* 手機版選單展開樣式 */
  .navbar-collapse {
    background: linear-gradient(135deg, var(--primary-cool) 0%, var(--secondary-cool) 100%);
    border-radius: 15px;
    margin-top: 15px;
    padding: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateY(-20px);
  }
  
  .navbar-collapse.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .navbar-collapse.collapsing {
    opacity: 0.7;
    transform: translateY(-10px);
  }
  
  .navbar-nav .nav-link {
    padding: 16px 25px !important;
    margin: 2px 15px;
    font-size: 1.1rem;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .nav-icon {
    margin-right: 10px;
    font-size: 1.1rem;
  }
  
  .nav-text {
    margin-left: 0;
  }
  
  .booking-link {
    margin: 15px 15px 10px 15px !important;
    background: var(--accent-pink) !important;
    border-radius: 25px !important;
    padding: 16px 25px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(212, 181, 181, 0.3);
  }
  
  .booking-link:hover {
    background: #c19a9a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 181, 181, 0.4);
  }
  
  /* 選單項目動畫效果 */
  .navbar-nav .nav-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.3s ease-out;
  }
  
  .navbar-collapse.show .nav-item {
    opacity: 1;
    transform: translateX(0);
  }
  
  .navbar-collapse.show .nav-item:nth-child(1) { transition-delay: 0.1s; }
  .navbar-collapse.show .nav-item:nth-child(2) { transition-delay: 0.15s; }
  .navbar-collapse.show .nav-item:nth-child(3) { transition-delay: 0.2s; }
  .navbar-collapse.show .nav-item:nth-child(4) { transition-delay: 0.25s; }
  .navbar-collapse.show .nav-item:nth-child(5) { transition-delay: 0.3s; }
}

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

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

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

/* 載入動畫優化 */
.preloader {
  background: var(--bg-light);
}

.spinner-white-only {
  border-color: var(--primary-cool);
}

/* 導航切換按鈕樣式 */
.navbar-toggler {
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
  outline: none;
}

.navbar-toggler-icon {
  width: 1.3em;
  height: 1.3em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: all 0.3s ease;
}

.navbar-toggler .navbar-toggler-icon {
  transform: rotate(0deg);
}

/* 區塊標題樣式 */
.section-title {
  font-size: 2rem;
  font-weight: 300;
  color: var(--primary-cool);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 3px;
  background: var(--secondary-cool);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  /* 手機版聯絡區塊優化 - 美化設計 */
  .contact-section {
    padding: 80px 0 60px;
  }
  
  .contact-content {
    max-width: 90%;
  }
  
  .contact-title {
    font-size: 2.4rem !important;
    margin-bottom: 20px;
    letter-spacing: 2px;
  }
  
  .contact-title::after {
    width: 50px;
    bottom: -12px;
  }
  
  .contact-title::before {
    bottom: -17px;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 50px 0 40px;
    padding: 20px 0;
  }
  
  .contact-block {
    text-align: center;
    padding: 20px 18px;
    border-radius: 16px;
  }
  
  .contact-block:hover {
    transform: translateY(-3px);
  }
  
  .contact-block h3 {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
  }
  
  .contact-block h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-block p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .contact-links {
    max-width: 100%;
    padding: 20px 18px;
    border-radius: 18px;
  }
  
  .contact-link {
    padding: 22px 20px;
    border-radius: 12px;
    margin-bottom: 6px;
  }
  
  .contact-link:hover {
    padding-left: 25px;
    transform: translateX(2px);
  }
  
  .contact-link:hover .link-arrow {
    transform: translateX(10px) scale(1.05);
  }
  
  .link-text {
    font-size: 1.05rem;
  }
  
  .link-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

/* 平滑滾動 */
html {
  scroll-behavior: smooth;
}

/* 導航活動狀態 */
.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.25);
  color: white !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 50px;
  line-height: 1.6;
}

.footer {
  background-color: var(--primary-cool) !important;
}