/* 重要：手機端問題修復 */
@media (max-width: 768px) {
  /* 強制修復手機版背景顯示問題 */
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .desktop-bg {
    display: none !important;
  }
  
  .mobile-bg {
    display: block !important;
    background: linear-gradient(135deg, 
      rgba(26,35,126,0.95) 0%, 
      rgba(26,35,126,0.85) 50%, 
      rgba(26,35,126,0.75) 100%
    ) !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
  }
  
  /* 修復標題區域文字顏色 */
  .hero-title {
    color: white !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    font-size: 2.3rem !important;
    text-align: center !important;
    line-height: 1.25 !important;
    margin-bottom: 1.2rem !important;
    z-index: 10 !important;
    position: relative !important;
  }
  
  .hero-subtitle {
    color: white !important;
    font-size: 1.4rem !important;
    text-align: center !important;
    z-index: 10 !important;
    position: relative !important;
  }
  
  .hero-desc {
    color: rgba(255,255,255,0.95) !important;
    font-size: 1.05rem !important;
    text-align: center !important;
    z-index: 10 !important;
    position: relative !important;
  }
  
  .hero-slogan {
    color: var(--accent-color) !important;
    z-index: 10 !important;
    position: relative !important;
    justify-content: center !important;
  }
  
  /* 修復講師區塊溢出問題 */
  .instructor-card-horizontal {
    flex-direction: column !important;
    text-align: center !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .instructor-info {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  .instructor-name-horizontal {
    font-size: 1.4rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .instructor-credentials li {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
}

:root {
  --primary-color: #1a237e;
  --accent-color: #ffd600;
  --text-dark: #222;
  --text-light: #fff;
  --bg-light: #f7f9fb;
  --hover-accent: #ffea00;
}

body { 
  font-family: 'Noto Sans TC', Arial, sans-serif; 
  margin: 0; 
  background: var(--bg-light); 
  color: var(--text-dark); 
  line-height: 1.6;
}

/* 基礎版面佈局 */
.container { 
  max-width: 700px;
  margin: 2rem auto; 
  background: #fff; 
  border-radius: 16px;
  box-shadow: 0 4px 24px #0001; 
  padding: 2rem 1.5rem; 
}

.section { 
  margin-bottom: 2.5rem; 
}

.divider { 
  border: none; 
  border-top: 1px solid #eee; 
  margin: 2rem 0; 
}

/* 頭部標題區塊樣式 */
header {
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
}

.hero-container {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: visible;
  min-height: 100vh;
}

/* 桌面版背景 */
.desktop-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://i.imgur.com/mxhwJN9.jpg');
  background-size: cover;
  background-position: center;
  display: block;
}

/* 桌面版背景漸層覆蓋 */
.desktop-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(26,35,126,0.95) 0%, 
    rgba(26,35,126,0.85) 30%,
    rgba(26,35,126,0.6) 60%, 
    rgba(26,35,126,0.3) 100%);
}

/* 手機版專用背景 - 默認隱藏 */
.mobile-bg {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26,35,126,0.95), rgba(26,35,126,0.7));
}

/* 內容包裹層 - 確保內容獨立 */
.hero-content-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 4rem 1rem;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  position: relative;
  letter-spacing: 1px;
  width: 100%;
  white-space: nowrap;
}

.hero-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  height: 6px;
  width: 180px;
  background: #ffd600;
  border-radius: 3px;
}

.hero-slogan {
  margin: 2.5rem 0 1.5rem 0;
  display: flex;
  align-items: center;
  font-size: 1.6rem;
}

.slogan-keyword {
  font-weight: 700;
  color: #ffd600;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  padding: 0.2em 0.5em;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.slogan-dot {
  margin: 0 10px;
  color: rgba(255,255,255,0.7);
}

.hero-subtitle {
  font-size: 2.2rem;
  color: white;
  margin: 2rem 0 1rem 0;
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
  max-width: 90%;
  white-space: nowrap;
}

.hero-desc {
  color: rgba(255,255,255,0.95);
  font-size: 1.6rem;
  margin-top: 1rem;
  max-width: 90%;
  line-height: 1.5;
  font-weight: 500;
}

.highlight-text {
  background: rgba(255,214,0,0.3);
  color: #ffd600;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-weight: bold;
}

/* 手機版適配 */
@media (max-width: 768px) {
  /* 切換背景顯示 */
  .desktop-bg {
    display: none !important;
  }
  
  .mobile-bg {
    display: block !important;
    background: linear-gradient(135deg, 
      rgba(26,35,126,0.95) 0%, 
      rgba(26,35,126,0.85) 50%, 
      rgba(26,35,126,0.75) 100%
    ) !important;
  }
  
  .hero-container {
    min-height: auto;
    height: auto;
  }
  
  .hero-content-wrapper {
    align-items: flex-start;
    min-height: auto;
    padding: 2.5rem 1rem; /* 增加左右padding確保內容不會碰到邊緣 */
  }
  
  .hero-content {
    text-align: center;
    padding: 0; /* 移除多餘的padding */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .hero-title {
    font-size: 2.3rem !important;
    margin-top: 0;
    margin-bottom: 1.2rem;
    text-align: center;
    color: white !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .hero-title:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .hero-slogan {
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.2rem 0;
    font-size: 1.2rem;
    color: var(--accent-color) !important;
  }
  
  .hero-subtitle {
    font-size: 1.4rem !important;
    margin: 1.2rem 0 1rem 0;
    text-align: center;
    color: white !important;
    line-height: 1.3;
  }
  
  .hero-desc {
    font-size: 1.05rem !important;
    margin: 1rem 0 1.5rem 0;
    text-align: center;
    color: rgba(255,255,255,0.95) !important;
    line-height: 1.4;
  }
  
  /* 講師區塊手機版修復 */
  .instructor-card-horizontal {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .instructor-photo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
  }
  
  .instructor-avatar-horizontal {
    width: 120px !important;
    height: 120px !important;
  }
  
  .instructor-info {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  .instructor-name-horizontal {
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
  }
  
  .instructor-title-horizontal {
    font-size: 1rem !important;
    margin-bottom: 1rem;
  }
  
  .instructor-credentials {
    text-align: left;
    margin: 0 auto;
    max-width: 280px;
  }
  
  .instructor-credentials li {
    font-size: 0.9rem !important;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .instructor-highlight {
    text-align: center;
    margin: 1rem 0;
  }
  
  .instructor-highlight p {
    font-size: 0.95rem !important;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* 超小螢幕優化 */
@media (max-width: 480px) {
  .hero-content-wrapper {
    padding: 2rem 0.8rem;
  }
  
  .hero-title {
    font-size: 1.9rem !important;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .hero-slogan {
    font-size: 1.1rem;
    margin: 0.8rem 0;
  }
  
  .hero-subtitle {
    font-size: 1.2rem !important;
    margin: 0.8rem 0 0.6rem 0;
    line-height: 1.3;
  }
  
  .hero-desc {
    font-size: 1rem !important;
    margin: 0.6rem 0 1rem 0;
    line-height: 1.4;
  }
  
  /* 講師區塊超小螢幕優化 */
  .instructor-card-horizontal {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .instructor-avatar-horizontal {
    width: 100px !important;
    height: 100px !important;
  }
  
  .instructor-name-horizontal {
    font-size: 1.2rem !important;
  }
  
  .instructor-title-horizontal {
    font-size: 0.9rem !important;
  }
  
  .instructor-credentials {
    max-width: 260px;
  }
  
  .instructor-credentials li {
    font-size: 0.85rem !important;
  }
  
  .instructor-highlight p {
    font-size: 0.9rem !important;
  }
  
  /* 容器和文字框的通用修復 */
  .container {
    padding: 1rem 0.8rem;
    margin: 1rem auto;
  }
  
  .section {
    padding: 1rem 0.8rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* 確保所有文字元素不會溢出 */
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }
}
  }
  
  /* 關鍵視覺優化：移除過多留白 */
  .mobile-bg {
    display: block;
    height: auto !important; /* 確保高度自動調整 */
  }
  
  .questions-container {
    max-width: 100%;
    margin: 1.5rem auto;
    text-align: left;
  }
  
  /* 頁尾在手機上的樣式優化 */
  footer {
    padding: 1.5rem 0 0 0;
  }
  
  .footer-container {
    flex-direction: column;
    padding: 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 1rem;
    text-align: center;
    padding: 0;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .footer-bottom {
    padding: 0.8rem 0;
    margin-top: 0.5rem;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
    margin: 0.3rem 0;
  }
}

/* 更小螢幕適配 */
@media (max-width: 480px) {
  .hero-content-wrapper {
    padding: 1.5rem 0; /* 進一步減少上下留白 */
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-slogan {
    font-size: 1.2rem;
  }
  
  .slogan-keyword {
    margin: 0.25rem;
    padding: 0.1em 0.3em;
  }
  
  .slogan-dot {
    margin: 0 0.3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-desc {
    font-size: 1.1rem;
  }
  
  .questions-container ul {
    padding: 1rem 1rem 0.5rem 2rem; /* 調整內部間距 */
    margin: 0;
  }
  
  .questions-container li {
    margin-bottom: 0.5rem; /* 減少項目之間的間距 */
  }
  
  .questions-container ul {
    font-size: 0.95rem;
  }
  
  .hero-cta {
    margin: 1.2rem 0; /* 減少按鈕的上下間距 */
  }
  
  .questions-container ul {
    font-size: 0.95rem;
  }
  
  /* 頁尾在小螢幕上的進一步優化 */
  .footer-section {
    margin-bottom: 0.8rem;
  }
  
  .footer-bottom {
    padding: 0.6rem 0;
  }
  
  /* 確保所有重要按鈕在手機上易於點擊 */
  .cta-btn, .hero-cta, .promotion-cta-btn {
    min-height: 48px; /* Apple建議的最小觸控目標 */
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
  }
  
  /* 懸浮按鈕手機版優化 */
  .floating-btn {
    bottom: 15px;
    right: 15px;
    padding: 10px 16px;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  /* 倒數計時器手機版優化 */
  .countdown {
    padding: 0.8rem 1rem;
    margin: 1rem 0;
  }
  
  .countdown-display {
    min-width: 1.8em;
    font-size: 0.9rem;
  }
  
  /* 表單容器手機版優化 */
  .form-container iframe {
    height: 700px; /* 手機版稍微減少高度 */
  }
}

/* 平板版優化 */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    max-width: 90%;
    padding: 2rem 1.5rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .presentations-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* 桌面版背景 */
.desktop-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://i.imgur.com/mxhwJN9.jpg');
  background-size: cover;
  background-position: center;
  display: block;
}

/* 桌面版背景漸層覆蓋 */
.desktop-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(26,35,126,0.95) 0%, 
    rgba(26,35,126,0.85) 30%,
    rgba(26,35,126,0.6) 60%, 
    rgba(26,35,126,0.3) 100%);
}

/* 手機版專用背景 - 默認隱藏 */
.mobile-bg {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26,35,126,0.95), rgba(26,35,126,0.7));
}

/* 內容包裹層 - 確保內容獨立 */
.hero-content-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 4rem 1rem;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  position: relative;
  letter-spacing: 1px;
  width: 100%;
  white-space: nowrap;
}

.hero-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  height: 6px;
  width: 180px;
  background: #ffd600;
  border-radius: 3px;
}

.hero-subtitle {
  font-size: 2.2rem;
  color: white;
  margin: 2rem 0 1rem 0;
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
  max-width: 90%;
  white-space: nowrap;
}

/* 功能、特色卡片樣式 */
.features { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 1rem; 
  margin-top: 1rem; 
}

.feature-card { 
  flex: 1 1 220px; 
  background: #f1f6ff; 
  border-radius: 10px; 
  padding: 1.5rem; 
  margin-bottom: 1rem; 
  min-width: 200px; 
  transition: all 0.3s ease; 
  border-left: 3px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 8px 20px rgba(0,0,0,0.1); 
  border-left: 3px solid var(--accent-color);
}

/* 按鈕樣式 */
.cta-btn { 
  display: inline-block; 
  background: var(--accent-color); 
  color: var(--primary-color); 
  font-weight: bold; 
  font-size: 1.2rem; 
  padding: 0.9em 2em; 
  border: none; 
  border-radius: 8px; 
  margin: 1.5rem 0; 
  cursor: pointer; 
  text-decoration: none; 
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255,214,0,0.3);
}

.cta-btn:hover { 
  background: var(--hover-accent); 
  box-shadow: 0 4px 16px rgba(255,214,0,0.6);
  transform: translateY(-2px);
}

/* 懸浮按鈕樣式 */
.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ffd600, #ff9800);
  color: #1a237e;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,0.6);
  font-size: 1rem;
  display: flex;
  align-items: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
  50% { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
  100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
}

/* 優化表單容器樣式，修正空白問題 */
.form-container {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 2rem 0;
  overflow: hidden; /* 防止內容溢出 */
  position: relative;
  height: auto;
  min-height: 500px; /* 設定最小高度 */
}

.form-container iframe {
  width: 100%;
  border: none;
  overflow: hidden;
  background: #fff;
}

/* 修改社群支援區塊樣式 */
.highlight-box {
  background: linear-gradient(135deg, rgba(26,35,126,0.05), rgba(255,214,0,0.05));
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.highlight-box::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 20px;
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1px solid var(--accent-color);
  border-width: 1px 0 0 1px;
  transform: rotate(45deg);
  z-index: 1;
}

.highlight-box-header {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

/* 修改LINE加入區塊樣式 */
.line-join {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.1);
  padding: 1.5rem;
  border-radius: 12px;
}

.line-join img {
  width: 120px;
  margin: 1rem 0;
  border: 3px solid #fff;
  border-radius: 8px;
}

.line-join ul {
  background: rgba(255,255,255,0.15);
  padding: 1rem 1rem 1rem 2rem;
  border-radius: 8px;
  margin: 1rem 0;
  width: 80%;
  max-width: 400px;
}

/* 錨點目標突出顯示動畫 */
@keyframes highlight-target {
  0% { background-color: rgba(255, 214, 0, 0.1); }
  50% { background-color: rgba(255, 214, 0, 0.2); }
  100% { background-color: transparent; }
}

.highlight-section {
  animation: highlight-target 1.5s ease-out;
  scroll-margin-top: 20px; /* 防止固定標題遮擋 */
}

/* 確保所有有ID的區塊都有正確的滾動邊距 */
section[id] {
  scroll-margin-top: 20px;
}

/* 改進頁尾導覽連結樣式 */
.footer-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

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

/* 新增模組圖標樣式 */
.outline b {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: var(--primary-color);
}

.outline b:first-child {
  margin-top: 0.5rem;
}

/* 添加圈子人脈區塊的特殊樣式 */
.network-value {
  background: linear-gradient(135deg, rgba(26,35,126,0.03), rgba(255,214,0,0.07));
  border-radius: 10px;
  padding: 1.2rem;
  margin: 1.5rem 0;
  border-left: 3px solid #3949ab;
}

.network-value h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.network-value ul {
  margin-bottom: 0;
}

/* 課程價值區塊樣式 - 增強版 */
.value-proposition {
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 50%, #fff8e6 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 3rem -1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,35,126,0.1);
  border: 1px solid rgba(255,214,0,0.2);
}

.value-proposition::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

.value-proposition h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--primary-color);
  font-size: 2rem;
  position: relative;
}

.value-proposition h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,214,0,0.05), rgba(26,35,126,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-color: rgba(255,214,0,0.3);
}

.value-icon {
  font-size: 2.2rem;
  margin-right: 1.5rem;
  background: linear-gradient(135deg, var(--accent-color), #ffea00);
  height: 60px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(255,214,0,0.3);
  transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
}

.value-content h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

.value-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.value-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

.value-testimonial {
  background: linear-gradient(135deg, rgba(255,214,0,0.1), rgba(255,214,0,0.05));
  border-left: 5px solid var(--accent-color);
  padding: 2rem;
  margin-top: 3rem;
  border-radius: 0 15px 15px 0;
  position: relative;
  box-shadow: 0 4px 15px rgba(255,214,0,0.1);
}

.value-testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-color);
  font-family: serif;
  line-height: 1;
  opacity: 0.6;
}

.value-testimonial blockquote {
  margin: 0;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: #333;
  padding-left: 2rem;
}

.highlight-quote {
  background: linear-gradient(135deg, rgba(255,214,0,0.3), rgba(255,214,0,0.1));
  padding: 0.2em 0.6em;
  border-radius: 6px;
  font-weight: bold;
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(255,214,0,0.2);
}

.testimonial-author {
  margin-top: 1.2rem;
  text-align: right;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
}

/* 課程時間與地點區塊視覺化樣式 */
.course-info-section {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #fff9f0 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(26,35,126,0.1);
  border: 2px solid rgba(255,214,0,0.2);
}

.course-info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, 
    var(--primary-color) 0%, 
    var(--accent-color) 25%, 
    var(--primary-color) 50%, 
    var(--accent-color) 75%, 
    var(--primary-color) 100%);
  background-size: 400% 100%;
  animation: courseInfoShimmer 4s ease-in-out infinite;
}

@keyframes courseInfoShimmer {
  0%, 100% { background-position: 400% 0; }
  50% { background-position: -400% 0; }
}

.course-info-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--primary-color);
  font-size: 2.2rem;
  font-weight: 700;
  position: relative;
  text-shadow: 0 2px 4px rgba(26,35,126,0.1);
}

.course-info-section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #ffea00);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(255,214,0,0.3);
}

.course-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.course-info-list li {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,249,255,0.9));
  border-radius: 15px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  transition: all 0.3s ease;
  border: 1px solid rgba(26,35,126,0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.course-info-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-info-list li:hover::before {
  opacity: 1;
}

.course-info-list li:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(26,35,126,0.15);
  border-color: rgba(255,214,0,0.3);
}

.course-info-list .icon {
  font-size: 1.8rem;
  margin-right: 1rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,214,0,0.2), rgba(255,214,0,0.1));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  border: 2px solid rgba(255,214,0,0.3);
}

.course-info-list li:hover .icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(255,214,0,0.4), rgba(255,214,0,0.2));
}

.course-info-list li > span:not(.icon) {
  flex: 1;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #333;
  font-weight: 600;
}

/* 修復文字內容的排版 */
.course-info-list li {
  align-items: center;
}

.course-info-list li > span:not(.icon):not(.highlight) {
  display: flex;
  align-items: center;
  min-height: 50px;
}

/* 地點資訊的特殊處理 */
.course-info-list li:nth-child(2) {
  align-items: flex-start;
  flex-direction: row;
}

.course-info-list li:nth-child(2) > span:not(.icon) {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  min-height: 50px;
}

/* 特殊樣式 - 免費參加高亮 */
.course-info-list li:has(.highlight) {
  background: linear-gradient(135deg, rgba(255,214,0,0.1), rgba(255,255,255,0.9));
  border-color: rgba(255,214,0,0.4);
}

.course-info-list li:has(.highlight)::before {
  background: linear-gradient(180deg, var(--accent-color), #ff9800);
  opacity: 1;
}

/* 地點資訊特殊樣式 */
.course-info-list li:has([class*="📍"]) {
  flex-direction: column;
  align-items: flex-start;
}

.course-info-list li:has([class*="📍"]) .icon {
  margin-bottom: 0.5rem;
}

/* 價格顯示特殊效果 */
.course-info-list li:has([class*="💰"]) {
  background: linear-gradient(135deg, rgba(255,240,230,0.9), rgba(255,255,255,0.9));
}

/* 地圖區塊樣式 */
.location-map {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,249,255,0.9));
  border-radius: 15px;
  border: 1px solid rgba(26,35,126,0.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.location-map h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 600;
}

.map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.location-map-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-map-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.map-caption {
  text-align: center;
  background: rgba(26,35,126,0.05);
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
}

.map-caption p {
  margin: 0.5rem 0;
  color: #333;
  line-height: 1.6;
}

.map-caption p:first-child {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .location-map {
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  .location-map h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .map-container {
    gap: 1rem;
  }
  
  .map-caption {
    padding: 1rem;
  }
  
  .map-caption p:first-child {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 480px) {
  .location-map {
    padding: 1rem;
  }
  
  .map-caption {
    padding: 0.8rem;
  }
}

/* 講師詳細簡介摺疊樣式 */
.instructor-details-toggle {
  margin-top: 1.5rem;
}

.details-toggle-btn {
  background: linear-gradient(135deg, var(--accent-color), #ffea00);
  color: var(--primary-color);
  border: none;
  border-radius: 25px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.details-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,214,0,0.3);
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.details-toggle-btn.active {
  background: linear-gradient(135deg, #1a237e, #3949ab);
  color: white;
}

.details-toggle-btn.active .toggle-icon {
  transform: rotate(180deg);
}

.instructor-details-content {
  background: rgba(248,249,255,0.5);
  border-radius: 15px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(26,35,126,0.1);
  max-height: 0;
  opacity: 0;
}

.instructor-details-content.show {
  padding: 2rem;
  margin-top: 1rem;
  max-height: 2000px;
  opacity: 1;
}

.details-section {
  margin-bottom: 2rem;
}

.details-section:last-child {
  margin-bottom: 0;
}

.details-section h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.details-section h5 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

/* 多重角色標籤 */
.multi-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.role-tag {
  background: linear-gradient(135deg, rgba(26,35,126,0.1), rgba(26,35,126,0.05));
  color: var(--primary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(26,35,126,0.2);
}

/* 課程亮點列表 */
.course-highlights {
  list-style: none;
  padding: 0;
}

.course-highlights li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.course-highlights li::before {
  content: "✅";
  position: absolute;
  left: 0;
  color: #4CAF50;
}

/* 優勢網格 */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.advantage-item {
  background: rgba(255,255,255,0.7);
  padding: 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--accent-color);
}

.advantage-item strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.advantage-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* 書籍展示 */
.books-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.book-category {
  background: rgba(255,255,255,0.8);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(26,35,126,0.1);
}

.books-list {
  list-style: none;
  padding: 0;
}

.books-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(26,35,126,0.1);
  font-size: 0.9rem;
}

.books-list li:last-child {
  border-bottom: none;
}

/* 課程分類 */
.course-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.category-column {
  background: rgba(255,255,255,0.8);
  padding: 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(26,35,126,0.1);
}

.category-column ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.category-column li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
  color: #555;
}

.category-column li::before {
  content: "▸ ";
  color: var(--accent-color);
  font-weight: bold;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .instructor-details-content.show {
    padding: 1.5rem;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .books-showcase {
    grid-template-columns: 1fr;
  }
  
  .course-categories {
    grid-template-columns: 1fr;
  }
  
  .multi-role-list {
    justify-content: center;
  }
  
  .details-toggle-btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
  
  /* 講師詳細資訊手機版優化 */
  .details-section {
    margin-bottom: 1.5rem;
  }
  
  .details-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .details-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .role-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    margin: 0.2rem;
  }
  
  .advantage-item {
    padding: 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .advantage-item h5 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }
  
  .advantage-item p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .instructor-details-content.show {
    padding: 1rem;
  }
  
  .details-section h4 {
    font-size: 1.1rem;
  }
  
  .advantage-item {
    padding: 0.8rem;
  }
  
  .book-category {
    padding: 1rem;
  }
  
  /* 確保所有重要按鈕在手機上易於點擊 */
  .cta-btn, .hero-cta, .promotion-cta-btn {
    min-height: 48px; /* Apple建議的最小觸控目標 */
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
  }
  
  /* 懸浮按鈕手機版優化 */
  .floating-btn {
    bottom: 15px;
    right: 15px;
    padding: 10px 16px;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  /* 倒數計時器手機版優化 */
  .countdown {
    padding: 0.8rem 1rem;
    margin: 1rem 0;
  }
  
  .countdown-display {
    min-width: 1.8em;
    font-size: 0.9rem;
  }
  
  /* 表單容器手機版優化 */
  .form-container iframe {
    height: 700px; /* 手機版稍微減少高度 */
  }
}
