/* 流光之境 - 自定義樣式 */

/* ===== 品牌色彩 ===== */
:root {
  --primary-color: #d4a574;
  /* 溫暖的金色 */
  --secondary-color: #8b7355;
  /* 深棕色 */
  --accent-color: #f4e4c1;
  /* 淺金色 */
  --text-dark: #2c2c2c;
  /* 深色文字 */
  --text-light: #6c757d;
  /* 淺色文字 */
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --border-color: #e9ecef;
}

/* ===== 通用樣式 ===== */
body {
  font-family: 'Noto Sans TC', 'cwTeXYen', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.section-title {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
}

.brand-icon {
  color: var(--primary-color);
}

/* ===== 導航列 ===== */
.navbar-brand {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  height: 50px;
  width: auto;
  margin-right: -30px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* 桌面版 LOGO 更大 */
@media (min-width: 992px) {
  .navbar-brand img {
    height: 60px;
  }
}

.navbar-brand span {
  color: var(--secondary-color);
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* ===== Hero 區域 - 升級版 ===== */
.hero-section {
  background: linear-gradient(135deg,
      rgba(212, 165, 116, 0.95) 0%,
      rgba(139, 115, 85, 0.95) 50%,
      rgba(244, 228, 193, 0.9) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/><circle cx="700" cy="800" r="80" fill="url(%23a)"/></svg>');
  background-size: cover, 100% 100%;
  background-attachment: fixed;
  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(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-20px) rotate(1deg);
  }

  66% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

/* 背景遮罩層 */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.05) 50%,
      rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

/* 主視覺容器 */
.hero-main-visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 0;
}

/* LOGO 圖片 */
.hero-banner-img {
  max-width: 450px;
  min-width: 380px;
  width: auto;
  height: auto;
  margin-bottom: 0.1rem;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  }

  to {
    filter: drop-shadow(0 15px 40px rgba(212, 165, 116, 0.4));
  }
}

/* 內容區域 - 純文字版 */
.hero-card {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem 2rem 1rem;
  animation: cardSlideUp 1s ease-out;
  background: transparent;
  /* 完全透明，只有文字效果 */
}

/* 可選版本：輕微背景版 */
.hero-card.with-bg {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.03) 100%);
  border-radius: 20px;
  backdrop-filter: blur(3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 標題樣式 - 分層設計 */
.hero-title {
  font-family: 'Playfair Display', serif;
  margin-bottom: 2rem;
  line-height: 1.1;
  animation: titleFadeIn 1.2s ease-out 0.3s both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

/* 中文標題 */
.hero-title-zh {
  font-size: 3.2rem;
  font-weight: 700;
  color: white;
  text-shadow:
    0 3px 6px rgba(0, 0, 0, 0.4),
    0 6px 12px rgba(0, 0, 0, 0.3),
    0 12px 24px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.1em;
  display: block;
}

/* 英文標題 */
.hero-title-en {
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.05em;
  font-style: italic;
  display: block;
  margin-top: -0.5rem;
}

/* 可選：漸變文字版本 */
.hero-title.gradient-text {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 副標題樣式 */
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 3rem;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  animation: subtitleFadeIn 1.4s ease-out 0.6s both;
}

@keyframes subtitleFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 按鈕組 */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: buttonsFadeIn 1.6s ease-out 0.9s both;
}

@keyframes buttonsFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 按鈕組樣式 */
.btn-group-custom {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 576px) {
  .btn-group-custom {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* 漸變按鈕 */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(212, 165, 116, 0.4);
  color: white;
  text-decoration: none;
}

/* 輪廓按鈕 */
.btn-outline-gradient {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-outline-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-outline-gradient:hover::before {
  width: 100%;
}

.btn-outline-gradient:hover {
  color: white;
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  text-decoration: none;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .hero-card {
    padding: 0.25rem 1.5rem;
    margin: 0.25rem;
  }

  /* 手機版標題調整 */
  .hero-title-zh {
    font-size: 2.5rem;
    letter-spacing: 0.1rem;
  }


  .hero-title-en {
    font-size: 1rem;
    letter-spacing: 0.05rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.02rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-gradient,
  .btn-outline-gradient {
    width: 200px;
    text-align: center;
  }
}

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

  .hero-title-en {
    font-size: 1rem;
  }
}

/* ===== 卡片樣式 ===== */
/* 注意：精選服務卡片樣式在第2451行定義 */

/* ===== 按鈕樣式 (漸變背景版本) ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-outline-primary:hover::before {
  width: 100%;
}

.btn-outline-primary:hover {
  color: white;
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
}

/* ===== 標籤樣式 ===== */
.tag {
  display: inline-block;
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.25rem;
}

/* ===== 部落格卡片 ===== */
.blog-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-card.featured-post {
  border: 2px solid var(--primary-color);
  position: relative;
}

.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-title {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.75rem;
}

.blog-title a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  transition: all 0.3s ease;
  display: block;
  /* 單行截斷樣式 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 卡片 hover 時展開標題 */
.blog-card:hover .blog-title a {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.4;
}

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

.blog-excerpt {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.blog-tags .tag {
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-tags .tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.blog-actions {
  margin-top: auto;
}

.blog-actions .btn {
  border-radius: 20px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  width: 100%;
}

/* ===== 搜尋與篩選區域 ===== */
.search-box .input-group {
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-box .form-control {
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.search-box .form-control:focus {
  box-shadow: none;
  border-color: transparent;
}

.search-box .btn {
  border: none;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.25rem;
  transition: background 0.3s ease;
}

.search-box .btn:hover {
  background: var(--secondary-color);
}

.category-filter .form-select {
  border-radius: 25px;
  border: 2px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.category-filter .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(212, 165, 116, 0.25);
}

/* ===== 熱門標籤雲 ===== */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tag-item {
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tag-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

/* ===== 載入更多按鈕 ===== */
#load-more-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#load-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

#load-more-btn:hover::before {
  left: 100%;
}

#load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

/* ===== 電子報訂閱區域 ===== */
.newsletter-form .input-group {
  max-width: 400px;
  margin: 0 auto;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.newsletter-form .form-control {
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.newsletter-form .form-control:focus {
  box-shadow: none;
}

.newsletter-form .btn {
  border: none;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

.newsletter-form .btn:hover {
  background: var(--secondary-color);
}

/* ===== 部落格文章詳情頁面樣式 ===== */
.post-header {
  margin-bottom: 2rem;
}

.post-category .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.post-title {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-image {
  margin-bottom: 2rem;
}

.post-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-tags {
  border-top: 2px solid var(--border-color);
  padding-top: 1.5rem;
}

.post-tags .tag {
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.post-tags .tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.post-share {
  border-top: 2px solid var(--border-color);
  padding-top: 1.5rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-buttons .btn {
  border-radius: 25px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.share-buttons .btn:hover {
  transform: translateY(-2px);
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
  .blog-card img {
    height: 180px;
  }

  .blog-content {
    padding: 1rem;
  }

  .blog-title a {
    font-size: 1.1rem;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .tags-cloud {
    gap: 0.5rem;
  }

  .tag-item {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  .post-image img {
    height: 250px;
  }

  .post-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {

  .search-box,
  .category-filter {
    margin-bottom: 1rem;
  }

  .newsletter-form .input-group {
    flex-direction: column;
    border-radius: 0;
    box-shadow: none;
  }

  .newsletter-form .form-control,
  .newsletter-form .btn {
    border-radius: 25px;
    margin-bottom: 0.5rem;
  }
}

/* ===== 課程卡片 (質感增強版) ===== */
.course-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(212, 165, 116, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card:hover::before {
  opacity: 1;
}

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

.course-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover img {
  transform: scale(1.05);
}

/* ===== 課程圖片容器 ===== */
.course-image {
  position: relative;
  overflow: hidden;
  height: 220px;
  flex-shrink: 0;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== 課程內容區域 ===== */
.course-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.course-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.course-content p {
  color: var(--text-color);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-meta .price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.4rem;
}

.course-meta .duration {
  color: var(--text-muted);
  font-size: 1.2rem;
  background: rgba(212, 165, 116, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
}

.course-card-body {
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
}

.course-card-title {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.course-card-subtitle {
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-meta .badge {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.course-meta .badge.bg-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: white !important;
}

.course-meta .badge.bg-secondary {
  background-color: var(--secondary-color) !important;
  color: white !important;
}

.course-meta .badge.bg-info {
  background-color: var(--accent-color) !important;
  color: var(--secondary-color) !important;
  border: 1px solid var(--primary-color);
}

.course-meta .badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.course-features {
  margin-bottom: 1.5rem;
}

.course-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-tag {
  background: linear-gradient(135deg, var(--accent-color), rgba(244, 228, 193, 0.8));
  color: var(--secondary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0.2rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateY(-1px);
}

/* ===== 課程分類標題 ===== */
.course-category h3 {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.course-category h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* ===== 卡片載入動畫 ===== */
.service-card.fade-in,
.course-card.fade-in,
.blog-card.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.fade-in.animate,
.course-card.fade-in.animate,
.blog-card.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 表單樣式 ===== */
.form-control {
  border-radius: 10px;
  border: 2px solid var(--border-color);
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(212, 165, 116, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

/* ===== 載入動畫 ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

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

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

  .navbar-brand img {
    height: 40px;
  }

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

  .service-card {
    margin-bottom: 2rem;
  }

  .blog-card {
    margin-bottom: 2rem;
  }

  .course-card {
    margin-bottom: 2rem;
  }

  .course-card img,
  .course-image {
    height: 180px;
  }

  .course-content {
    padding: 1.2rem;
  }

  .course-content h3 {
    font-size: 1.4rem;
  }

  .course-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .service-card img {
    height: 180px;
  }

  .blog-card img {
    height: 180px;
  }
}

/* ===== 動畫效果 ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.8s ease forwards;
}

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

/* ===== 工具提示 ===== */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: var(--secondary-color);
  color: var(--white);
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ===== 進度條 ===== */
.progress {
  height: 8px;
  border-radius: 4px;
  background-color: var(--border-color);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.6s ease;
}

/* ===== 模態框 ===== */
.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem;
}

/* ===== 分頁 ===== */
.pagination .page-link {
  color: var(--primary-color);
  border-color: var(--border-color);
  border-radius: 5px;
  margin: 0 2px;
}

.pagination .page-link:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ===== 搜尋框 ===== */
.search-box {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.search-box input {
  padding-right: 40px;
  border-radius: 25px;
}

.search-box .search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

/* ===== 回到頂部按鈕 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

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

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* ===== 課程頁面專用樣式 ===== */
.course-nav-tabs {
  margin-bottom: 2rem;
}

.course-nav-tabs .nav-pills .nav-link {
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  margin: 0 0.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.course-nav-tabs .nav-pills .nav-link:hover {
  background-color: var(--accent-color);
  border-color: var(--primary-color);
  color: var(--secondary-color);
}

.course-nav-tabs .nav-pills .nav-link.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* 課程詳情模態框樣式 */
#courseModal .modal-content {
  border-radius: 15px;
  border: none;
}

#courseModal .modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border-radius: 15px 15px 0 0;
}

#courseModal .modal-title {
  font-weight: 600;
}

#courseModal .btn-close {
  filter: invert(1);
}

#courseModal .course-info p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

#courseModal .feature-list {
  margin-bottom: 1rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .course-nav-tabs .nav-pills {
    flex-direction: column;
    align-items: center;
  }

  .course-nav-tabs .nav-pills .nav-link {
    margin: 0.25rem 0;
    width: 100%;
    text-align: center;
    max-width: 300px;
  }

  .course-card-body {
    padding: 1rem;
  }

  .course-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .course-card .row {
    flex-direction: column;
  }

  .course-card .course-image {
    height: 200px;
    width: 100%;
  }
}

/* ===== 列印樣式 ===== */
@media print {

  .navbar,
  .footer,
  .back-to-top,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
}

/* ===== Bootstrap 格柵系統修復 ===== */
/* 確保部落格卡片容器使用正確的 flexbox 佈局 */
#featured-posts-container {
  display: flex;
  flex-wrap: wrap;
}

/* 確保所有 Bootstrap 欄位正確顯示 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.row>[class*="col-"] {
  display: flex;
  flex-direction: column;
  padding-right: 15px;
  padding-left: 15px;
}

/* 修復部落格卡片在 flexbox 中的顯示 */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 確保按鈕在底部對齊 */
.blog-card-body .btn {
  margin-top: auto;
}

/*---------------------------------------
  FOOTER 重新設計
-----------------------------------------*/
.site-footer {
  background-image: url('../images/timesweetContact.png') !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  padding: 80px 0 30px 0 !important;
  text-align: left !important;
  color: #ffffff;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 165, 116, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.site-footer::after {
  display: none !important;
}

.site-footer .container {
  position: relative;
  z-index: 2;
}

.site-footer h5 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  filter: drop-shadow(2px 2px 4px rgba(74, 73, 73, 0.8)) drop-shadow(0 0 8px rgba(74, 73, 73, 0.6));
  -webkit-text-stroke: 0.1px rgba(249, 135, 12, 0.2);
}

.site-footer p {
  color: rgba(1, 1, 1, 0.9);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* 社群連結樣式 */
.social-links {
  display: block;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

.social-links i {
  font-size: 1.2rem;
}

/* 頁尾連結樣式 */
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover::before {
  opacity: 1;
  left: -10px;
}

/* 頁尾聯絡資訊 */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: rgba(0, 0, 0, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.footer-contact i {
  margin-right: 12px;
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

/* 版權資訊 */
.copyright-text {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* 頁尾分隔線 */
.site-footer hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 100%);
  margin: 40px 0 30px 0;
}

/* ===== 部落格頁面修復 ===== */
/* 修復部落格卡片佈局 */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 2rem;
}

.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-excerpt {
  flex-grow: 1;
}

.blog-actions {
  margin-top: auto;
  padding-top: 1rem;
}

/* 搜尋結果提示 */
#search-results-row {
  margin-bottom: 2rem;
}

#search-results-alert {
  border-radius: 15px;
  border: none;
  background: linear-gradient(135deg, var(--accent-color), rgba(244, 228, 193, 0.8));
  color: var(--secondary-color);
  font-weight: 500;
  position: relative;
}

#search-results-alert.alert-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
}

/* 載入更多按鈕改進 */
#load-more-btn {
  min-width: 200px;
  position: relative;
}

#load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 部落格標籤改進 */
.blog-tags .tag {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.blog-tags .tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.3s;
}

.blog-tags .tag:hover::before {
  left: 100%;
}

/* 分類篩選改進 */
.category-filter .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d4a574' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* 響應式修復 */
@media (max-width: 768px) {
  .blog-card {
    margin-bottom: 1.5rem;
  }

  .search-box .input-group {
    margin-bottom: 1rem;
  }

  .category-filter {
    margin-bottom: 1rem;
  }

  .tags-cloud {
    justify-content: flex-start;
  }

  .tag-item {
    margin: 0.25rem 0.25rem 0.25rem 0;
  }
}

/* 部落格文章詳情頁面改進 */
.post-content {
  max-width: none;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
  background: var(--accent-color);
  padding: 1rem 1.5rem;
  border-radius: 0 10px 10px 0;
}

/* 相關文章區域 */
#related-posts-section {
  background: var(--light-bg);
}

/* 載入指示器 */
#loading-indicator {
  padding: 4rem 0;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* 錯誤訊息 */
#error-message .alert {
  border-radius: 15px;
  border: none;
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 清除搜尋按鈕樣式 */
.btn-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.btn-close:hover {
  opacity: 1;
}



.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

.social-links i {
  font-size: 1.2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #d4a574, #f4d03f);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, #c19653, #e6c236);
  box-shadow: 0 6px 20px rgba(212, 165, 116, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}

.social-links a:hover::before {
  left: 100%;
}

/* Footer 連結樣式 */

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
  filter: drop-shadow(2px 2px 3px rgba(71, 70, 70, 0.4)) drop-shadow(0 0 6px rgba(89, 79, 79, 0.5));
  -webkit-text-stroke: 0.1px rgba(75, 74, 74, 0.3);
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: #f4d03f;
  padding-left: 20px;
  filter: drop-shadow(2px 2px 3px rgba(80, 79, 79, 0.8)) drop-shadow(0 0 10px rgba(245, 90, 6, 0.924));
  -webkit-text-stroke: 0.1px rgba(70, 70, 70, 0.4);
}

.footer-links a:hover::before {
  transform: translateX(3px);
}

/* 聯絡資訊樣式 */

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #101010;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
  -webkit-text-stroke: 0.1px rgba(0, 0, 0, 0.3);
}

.footer-contact li i {
  color: #f4d03f;
  margin-right: 12px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* 分隔線樣式 */
.site-footer hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(212, 165, 116, 0.3) 20%,
      rgba(212, 165, 116, 0.6) 50%,
      rgba(212, 165, 116, 0.3) 80%,
      transparent 100%);
  margin: 50px 0 30px 0;
}

/* 版權文字 */
.copyright-text {
  color: #ffffff !important;
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
  font-weight: 500;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
  -webkit-text-stroke: 0.1px rgba(0, 0, 0, 0.3);
}

/* Footer 響應式設計 */
@media (max-width: 768px) {
  .site-footer {
    padding: 60px 0 20px 0 !important;
    text-align: center !important;
  }

  .site-footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

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

  .footer-links a::before {
    display: none;
  }

  .footer-links a {
    padding-left: 0;
  }

  .footer-links a:hover {
    padding-left: 0;
  }
}

/* ===== 下拉選單樣式 ===== */
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  background: var(--white);
  min-width: 220px;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  transform: translateX(5px);
}

.dropdown-item::before {
  content: '•';
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-weight: bold;
}

.dropdown-item:hover::before {
  color: var(--white);
}

/* 下拉選單動畫 */
.dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
  display: block;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
}

/* 下拉選單箭頭 */
.dropdown-toggle::after {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
}



/* 防止CTA區域按鈕變成全寬度 */
.text-center .btn {
  width: auto !important;
  display: inline-block !important;
  margin: 0 0.5rem;
}

@media (max-width: 576px) {
  .text-center .btn {
    margin: 0.25rem;
    min-width: 120px;
    max-width: 200px;
  }
}

/* ===== 文章詳情頁面樣式 ===== */
.post-header {
  margin-bottom: 3rem;
}

.post-category .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--primary-color) !important;
}

.post-title {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-image {
  text-align: center;
  margin-bottom: 3rem;
}

.post-image img {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content h4 {
  font-size: 1.3rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  background: var(--accent-color);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

.post-content strong {
  color: var(--secondary-color);
  font-weight: 600;
}

.post-tags {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.post-tags .tag {
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.post-tags .tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.post-share {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-buttons .btn {
  border-radius: 20px;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* ===== 載入指示器 ===== */
#loading-indicator {
  padding: 5rem 0;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* ===== 錯誤訊息 ===== */
#error-message {
  padding: 5rem 0;
}

#error-message .alert {
  max-width: 500px;
  margin: 0 auto;
  border-radius: 15px;
  padding: 2rem;
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
  .post-title {
    font-size: 2rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .post-image img {
    max-height: 250px;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
  }

  .post-content h3 {
    font-size: 1.3rem;
  }

  .post-content h4 {
    font-size: 1.1rem;
  }

  .share-buttons {
    justify-content: center;
  }
}

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

  .post-content {
    padding: 0 1rem;
  }

  .post-content ul,
  .post-content ol {
    padding-left: 1.5rem;
  }

  .share-buttons .btn {
    flex: 1;
    min-width: 100px;
  }
}

/* ===== 首頁動態內容樣式 ===== */

/* 服務卡片樣式 */
.service-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 280px;
}

.service-card-title {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card-subtitle {
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-light);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-meta {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.service-meta small {
  color: var(--text-light);
  font-size: 1.1rem;
}

.course-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
}

.course-card-title {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.course-card-subtitle {
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.course-description {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.course-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 0.5rem;
}

/* 部落格卡片樣式 */
.blog-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--border-color);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.blog-image {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
}

.blog-card-title {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-light);
}

.blog-tags {
  margin-bottom: 1rem;
}

.blog-tags .badge {
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
}

/* 響應式設計 */
@media (max-width: 768px) {

  .service-image-wrapper,
  .course-image-wrapper,
  .blog-image-wrapper {
    height: 180px;
  }

  .service-card-body,
  .course-card-body,
  .blog-card-body {
    padding: 1rem;
    height: calc(100% - 180px);
  }

  .service-card-title,
  .course-card-title,
  .blog-card-title {
    font-size: 1rem;
  }

  .blog-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {

  .service-image-wrapper,
  .course-image-wrapper,
  .blog-image-wrapper {
    height: 160px;
  }

  .service-card-body,
  .course-card-body,
  .blog-card-body {
    height: calc(100% - 160px);
  }
}

/* 載入狀態樣式 */
.loading-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 15px;
  height: 400px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* 空狀態樣式 */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

.empty-state i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.empty-state h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== 部落格標題樣式（單行截斷 + 卡片 Hover 展開）===== */
.blog-title a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  transition: all 0.3s ease;
  display: block;
  /* 單行截斷樣式 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

/* 卡片 hover 時展開標題 */
.blog-card:hover .blog-title a {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.4;
}

/* ===== 首頁部落格卡片標題樣式 ===== */
.blog-card-title {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  /* 單行截斷樣式 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-card-title:hover {
  color: var(--primary-color);
}

/* 卡片 hover 時展開標題 */
.blog-card:hover .blog-card-title {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.4;
}

/* ===== 響應式標題處理 ===== */
@media (max-width: 768px) {

  .blog-title a,
  .blog-card-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {

  .blog-title a,
  .blog-card-title {
    font-size: 1rem;
  }
}

/* 響應式設計 */
/* ===== Footer Logo 樣式 ===== */
.footer-logo {
  text-align: center;
  margin-bottom: 1rem;
}

.footer-logo-img {
  max-width: 140px;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.footer-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(212, 165, 116, 0.4));
}

/* Footer 第一欄的特殊樣式 */
.site-footer .col-lg-4:first-child {
  text-align: center;
}

.site-footer .col-lg-4:first-child h5 {
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.site-footer .col-lg-4:first-child p {
  margin-bottom: 1.5rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .footer-logo-img {
    max-width: 150px;
  }
}

/*=====Footer 快速連結 2欄佈局=====*/

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ===== Footer 聯絡資訊手機版置中 ===== */
.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

/* 手機版響應式設計 */
@media (max-width: 768px) {

  /* 快速連結在手機版改為單欄 */
  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* 聯絡資訊在手機版置中 */
  .site-footer .col-lg-4:last-child {
    text-align: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  /* Footer 標題在手機版也置中 */
  .site-footer h5 {
    text-align: center;
  }
}

/*
 ===== Footer 額外優化 ===== */
/* 確保快速連結在桌面版有適當間距 */
@media (min-width: 769px) {
  .site-footer .col-lg-4:nth-child(2) {
    text-align: left;
  }

  .footer-links {
    max-width: 300px;
  }
}

/* 平板版本的調整 */
@media (max-width: 992px) and (min-width: 769px) {
  .footer-links {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* 小螢幕優化 */
@media (max-width: 576px) {
  .site-footer .col-lg-4 {
    margin-bottom: 2rem;
  }

  .footer-contact li {
    font-size: 0.9rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }
}

/*=====Footer 快速連結強制 2欄佈局=====*/
.site-footer .footer-links {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-footer .footer-links li {
  margin-bottom: 0.5rem !important;
  padding: 0 !important;
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  display: block !important;
}

.site-footer .footer-links a:hover {
  color: var(--primary-color) !important;
}

/* 手機版強制單欄 */
@media (max-width: 768px) {
  .site-footer .footer-links {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
}

/* 
===== Footer 快速連結 Flexbox 2欄佈局 ===== */
.site-footer ul.footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  justify-content: space-between !important;
}

.site-footer ul.footer-links li {
  width: 48% !important;
  margin-bottom: 0.5rem !important;
  padding: 0 !important;
}

.site-footer ul.footer-links li a {
  color: rgba(0, 12, 255, 0.8) !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  display: block !important;
  padding: 0.25rem 0 !important;
}

.site-footer ul.footer-links li a:hover {
  color: var(--primary-color) !important;
}

/* 手機版單欄 */
@media (max-width: 768px) {
  .site-footer ul.footer-links {
    flex-direction: column !important;
    text-align: center !important;
  }

  .site-footer ul.footer-links li {
    width: 100% !important;
  }
}

/*=====覆蓋主要樣式檔案的 footer 設定=====*/
.site-footer {
  text-align: left !important;
}

.site-footer .col-lg-4:first-child {
  text-align: center !important;
}

.site-footer .col-lg-4:last-child {
  text-align: left !important;
}


/* 手機版調整 */
@media (max-width: 768px) {
  .site-footer .col-lg-4:nth-child(2) {
    text-align: center !important;
  }

  .site-footer .col-lg-4:nth-child(2) h5 {
    text-align: center !important;
  }

  .site-footer .col-lg-4:nth-child(2) ul.footer-links {
    flex-direction: column !important;
    text-align: center !important;
  }

  .site-footer .col-lg-4:nth-child(2) ul.footer-links li {
    width: 100% !important;
    padding-right: 0 !important;
  }

  .site-footer .col-lg-4:last-child {
    text-align: center !important;
  }
}

/* ===== 統一響應式設計區塊 (質感增強版) ===== */

/* 桌面版優化 */
@media (min-width: 992px) {
  .navbar-brand img {
    height: 60px;
  }

  .hero-title-zh {
    font-size: 3.5rem;
  }

  .course-card:hover {
    transform: translateY(-10px);
  }
}

/* 平板版響應式 (768px - 991px) */
@media (max-width: 991px) and (min-width: 769px) {
  .hero-title-zh {
    font-size: 3rem;
  }

  .course-nav-tabs .nav-pills .nav-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* 主要響應式斷點 - 768px */
@media (max-width: 768px) {

  /* 導航列響應式 */


  /* 卡片響應式 */
  .service-card,
  .blog-card,
  .course-card {
    margin-bottom: 2rem;
  }

  .service-card img,
  .blog-card img,
  .course-card img {
    height: 180px;
  }

  .course-card-body {
    padding: 1.5rem 1rem;
  }

  .course-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 部落格響應式 */
  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .blog-title a,
  .course-card-title {
    font-size: 1rem;
  }

  /* 搜尋與篩選響應式 */
  .search-box .input-group {
    margin-bottom: 1rem;
  }

  .category-filter {
    margin-bottom: 1rem;
  }

  .tags-cloud {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .tag-item {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
  }

  /* 文章詳情響應式 */
  .post-image img {
    height: 250px;
  }

  .post-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .post-content {
    font-size: 1rem;
  }

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

  .share-buttons {
    justify-content: center;
  }

  .share-buttons .btn {
    flex: 1;
    min-width: 100px;
  }

  /* 課程頁面響應式 */
  .course-nav-tabs .nav-pills {
    flex-direction: column;
    align-items: center;
  }

  .course-nav-tabs .nav-pills .nav-link {
    margin: 0.25rem 0;
    width: 100%;
    text-align: center;
    max-width: 300px;
  }

  /* Footer 響應式 (統一版本) */
  .site-footer {
    padding: 60px 0 20px 0 !important;
    text-align: center !important;
  }

  .footer-logo-img {
    max-width: 150px;
  }

  .footer-links {
    grid-template-columns: 1fr !important;
    gap: 0.25rem;
    text-align: center;
  }

  .footer-links a::before {
    display: none;
  }

  .footer-links a {
    padding-left: 0;
  }

  .footer-links a:hover {
    padding-left: 0;
  }

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

  .site-footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .site-footer .col-lg-4 {
    margin-bottom: 2rem;
    text-align: center !important;
  }

  .site-footer .col-lg-4:nth-child(2) h5,
  .site-footer .col-lg-4:nth-child(2) ul.footer-links {
    text-align: center !important;
  }

  .site-footer .col-lg-4:nth-child(2) ul.footer-links {
    flex-direction: column !important;
  }

  .site-footer .col-lg-4:nth-child(2) ul.footer-links li {
    width: 100% !important;
    padding-right: 0 !important;
  }
}

/* 手機版響應式 - 576px */
@media (max-width: 576px) {

  /* 按鈕組響應式 */
  .btn-group-custom {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Hero 區域手機版 */
  .hero-title-zh {
    font-size: 2rem;
  }

  .hero-title-en {
    font-size: 1rem;
  }

  /* 搜尋表單響應式 */
  .search-box,
  .category-filter {
    margin-bottom: 1rem;
  }

  .newsletter-form .input-group {
    flex-direction: column;
    border-radius: 0;
    box-shadow: none;
  }

  .newsletter-form .form-control,
  .newsletter-form .btn {
    border-radius: 25px;
    margin-bottom: 0.5rem;
  }

  /* 課程卡片手機版 */
  .course-card .row {
    flex-direction: column;
  }

  .course-card .course-image,
  .course-image {
    height: 200px;
    width: 100%;
  }

  .course-content {
    padding: 1rem;
  }

  .course-content h3 {
    font-size: 1.4rem;
  }

  .course-content p {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .course-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .course-meta .price {
    font-size: 1.4rem;
  }

  /* 按鈕手機版 */
  .text-center .btn {
    margin: 0.25rem;
    width: 100%;
  }

  /* 文章標題手機版 */
  .post-title {
    font-size: 1.8rem;
  }

  .blog-title a,
  .course-card-title {
    font-size: 0.95rem;
  }
}

/* 小螢幕優化 - 480px */
@media (max-width: 480px) {
  .hero-title-zh {
    font-size: 1.8rem;
  }

  .hero-title-en {
    font-size: 0.9rem;
  }

  .course-card-body {
    padding: 1rem;
  }

  .post-title {
    font-size: 1.6rem;
  }
}/*
 ===== Footer 快速連結分兩欄 - 最終修復 ===== */
/* 確保快速連結在桌面版顯示為兩欄 */
.site-footer .footer-links,
.site-footer ul.footer-links {
  grid-template-columns: 1fr 1fr !important;
  gap: 0.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-footer .footer-links li,
.site-footer ul.footer-links li {
  margin-bottom: 0.5rem !important;
  padding: 0 !important;
}

/* 手機版改為單欄 */
@media (max-width: 768px) {
  .site-footer .footer-links,
  .site-footer ul.footer-links {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
}