/* ==========================================================================
   Vibe Coding 介紹網站 - 核心樣式表 (極致優化奢華金版)
   設計風格：現代暗黑科技風 (Modern Dark Sci-Fi) 搭配 奢華玻璃擬態 (Luxury Glassmorphism)
   主色調：高級琥珀金 (#E4AC5E)
   ========================================================================== */

/* 匯入現代感 Google 字型 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* 全域變數定義：以 #E4AC5E 作為主色，設計高質感的黃金美學 */
:root {
  /* 調色盤 - 極致高貴的暗黑金屬太空背景與溫暖金沙調 */
  --bg-primary: #0b0a08;       /* 頂級暖太空墨金黑，取代冰冷死黑 */
  --bg-secondary: #14120f;     /* 奢華暗金卡片底色 */
  --color-text-main: #fcfbf9;  /* 高亮象牙白，閱讀更舒適不刺眼 */
  --color-text-muted: #a59f95; /* 質感碳灰，降低刺眼對比 */
  
  /* 霓虹主色與點綴配色 */
  --neon-gold: #e4ac5e;        /* 使用者指定主色：耀眼琥珀金 */
  --neon-bronze: #b8823b;      /* 漸層古銅金，增加立體層次 */
  --neon-champagne: #fae8cb;   /* 香檳金，極細亮點 */
  --neon-emerald: #10b981;     /* 氛圍綠：依然保留 Vibe 的綠色點綴 */
  --neon-rose: #f43f5e;        /* 警示桃紅：點綴亮點 */

  /* 漸層組合：黃金流沙感，讓設計倍顯 premium */
  --grad-primary: linear-gradient(135deg, var(--neon-gold), var(--neon-bronze));
  --grad-vibe: linear-gradient(135deg, var(--neon-champagne), var(--neon-gold), var(--neon-bronze));
  --grad-glow: linear-gradient(135deg, rgba(228, 172, 94, 0.15), rgba(184, 130, 59, 0.05));
  
  /* 玻璃擬態邊框與陰影：精細優雅的金屬偏光邊框 */
  --glass-bg: rgba(20, 18, 15, 0.65);
  --glass-border: rgba(228, 172, 94, 0.12);
  --glass-border-hover: rgba(228, 172, 94, 0.35);
  --glass-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 50px -15px rgba(228, 172, 94, 0.08);
  
  /* 字型設定 */
  --font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  
  /* 動態過渡時間 */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. 基礎重置與背景設計
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  overflow-x: hidden;
  line-height: 1.7; /* 稍微拉大行高，提升閱讀體驗 */
  position: relative;
}

/* 背景動態極光光暈效果 (使用 CSS 偏光實現金屬光影) */
body::before,
body::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  animation: pulse-glow 15s infinite alternate ease-in-out;
}

/* 右上角琥珀金光暈 */
body::before {
  top: -150px;
  right: -100px;
  background: var(--neon-gold);
}

/* 左下角古銅金光暈 */
body::after {
  bottom: 15%;
  left: -150px;
  background: var(--neon-bronze);
  animation-delay: -7.5s;
}

/* 動態光暈呼吸動畫 */
@keyframes pulse-glow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.08;
  }
  100% {
    transform: translate(80px, 50px) scale(1.25);
    opacity: 0.18;
  }
}

/* 網頁寬度容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   2. 導覽列樣式 (Navbar)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 8, 0.75); /* 改為暖墨黑底色 */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  font-weight: 400;
  color: var(--color-text-main);
  -webkit-text-fill-color: var(--color-text-main);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-links a:hover {
  color: var(--neon-gold); /* 懸停改為金黃色 */
}

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

/* ==========================================================================
   3. 炫酷主視覺區 (Hero Section)
   ========================================================================== */
.hero {
  padding: 9rem 0 6rem; /* 增加上下間距，讓排版更有呼吸空間 */
  text-align: center;
  position: relative;
}

/* Vibe 氛圍光圈標籤：調整為精緻琥珀金 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  background: rgba(228, 172, 94, 0.08); /* 暖金色底 */
  border: 1px solid rgba(228, 172, 94, 0.25);
  color: var(--neon-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(228, 172, 94, 0.05);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--neon-gold); /* 改為亮金色呼吸點 */
  box-shadow: 0 0 12px var(--neon-gold);
  animation: pulse-dot 1.5s infinite alternate;
}

@keyframes pulse-dot {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 1; }
}

.hero-title {
  font-size: 4.2rem; /* 稍微放大標題 */
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 1.8rem;
}

/* 漸層標題文字 */
.grad-text {
  background: var(--grad-vibe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine-grad 6s linear infinite;
}

@keyframes shine-grad {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* 打字機效果容器 */
.typing-container {
  font-size: 1.6rem;
  color: var(--color-text-muted);
  height: 3rem;
  margin-bottom: 3.5rem;
  font-weight: 400;
}

.typed-text {
  color: var(--neon-gold); /* 打字文字變為金色 */
  font-weight: 600;
  border-right: 2px solid var(--neon-gold);
  padding-right: 5px;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: var(--neon-gold); }
}

/* 霓虹按鈕組 */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.95rem 2.2rem;
  border-radius: 14px; /* 更圓潤、現代的圓角 */
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* 黃金發光按鈕 */
.btn-primary {
  background: var(--grad-primary);
  color: #14120f; /* 黑色字體與金背景形成高對比，極致高級 */
  border: none;
  box-shadow: 0 4px 20px rgba(228, 172, 94, 0.25);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(228, 172, 94, 0.45);
  color: #0b0a08;
}

/* 金邊霧面按鈕 */
.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(228, 172, 94, 0.08);
  border-color: var(--neon-gold);
  color: var(--neon-gold);
  transform: translateY(-4px);
}

/* ==========================================================================
   4. 核心概念區 (Concepts Section)
   ========================================================================== */
.section {
  padding: 7.5rem 0; /* 增加區塊上下間距 */
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4.5rem;
}

.section-tag {
  color: var(--neon-gold); /* 改為高貴金標籤 */
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
}

/* 玻璃擬態卡片網格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 26px; /* 更精緻的大圓角 */
  padding: 2.8rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(228, 172, 94, 0.04);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(228, 172, 94, 0.08); /* 統一金色調圖示框 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  color: var(--neon-gold);
  font-size: 1.5rem;
  border: 1px solid rgba(228, 172, 94, 0.2);
  transition: var(--transition-smooth);
}

/* 精緻化懸停圖示回饋 */
.card:hover .card-icon {
  background: var(--grad-primary);
  color: #14120f;
  transform: scale(1.05);
}

.card-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.card-text {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ==========================================================================
   5. 對比表格區 (Comparison Section)
   ========================================================================== */
.comparison-wrapper {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1.6rem 2.2rem;
  border-bottom: 1px solid var(--glass-border);
}

th {
  background: rgba(228, 172, 94, 0.02); /* 微金黃表格頭部 */
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--neon-gold);
}

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

.col-feature {
  font-weight: 600;
  width: 25%;
  color: var(--color-text-main);
}

.col-traditional {
  color: var(--color-text-muted);
  width: 37.5%;
}

.col-vibe {
  color: var(--color-text-main);
  background: rgba(228, 172, 94, 0.02); /* 表格內選中區域金色底 */
  font-weight: 500;
  width: 37.5%;
  border-left: 1px solid rgba(228, 172, 94, 0.08);
  border-right: 1px solid rgba(228, 172, 94, 0.08);
}

/* 表格內的氛圍綠勾 */
.vibe-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--neon-emerald);
  font-weight: 700;
}

/* ==========================================================================
   6. 互動式 Vibe 檢測器 (Interactive Widget)
   ========================================================================== */
.interactive-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* 調整左右寬度比例，更完美 */
  gap: 3.5rem;
  align-items: stretch; /* 保持等高，視覺更好看 */
}

@media (max-width: 968px) {
  .interactive-layout {
    grid-template-columns: 1fr;
  }
}

.quiz-container {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 2.8rem;
  box-shadow: var(--glass-shadow);
}

.quiz-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.quiz-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.2rem;
}

/* 狀態問題項目樣式 */
.quiz-item {
  margin-bottom: 1.8rem;
}

.quiz-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  color: var(--color-text-main);
}

.options-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}

/* 自訂仿按鈕單選選項：更精緻的金色懸停效果 */
.option-btn {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: var(--transition-smooth);
}

.option-btn:hover {
  border-color: rgba(228, 172, 94, 0.4);
  color: var(--color-text-main);
  background: rgba(228, 172, 94, 0.04);
}

/* 選中狀態：耀眼的暗金偏光效果 */
.option-btn.selected {
  background: rgba(228, 172, 94, 0.12);
  border-color: var(--neon-gold);
  color: var(--neon-gold);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(228, 172, 94, 0.15);
}

/* 計分與檢測按鈕 */
.submit-btn-wrapper {
  margin-top: 2.2rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* 右側結果儀表板 */
.result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, rgba(228, 172, 94, 0.06), rgba(184, 130, 59, 0.02)); /* 調整為金色底 */
  border: 1px solid rgba(228, 172, 94, 0.15);
  border-radius: 26px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

/* 結果區塊金色光暈 */
.result-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--neon-gold);
  filter: blur(80px);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.result-header {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--neon-gold); /* 改為耀眼金色 */
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  z-index: 1;
}

/* 巨型計分環 */
.score-circle {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(20, 18, 15, 0.4);
  border: 4px dashed rgba(228, 172, 94, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  z-index: 1;
  transition: var(--transition-smooth);
}

.score-circle.active {
  border: 4px solid var(--neon-gold); /* 活化狀態改為耀眼金邊 */
  box-shadow: 0 0 30px rgba(228, 172, 94, 0.25);
}

.score-num {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-vibe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.score-unit {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  letter-spacing: 1.5px;
}

.result-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  z-index: 1;
}

.result-quote {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 400px;
  font-style: italic;
  line-height: 1.7;
  z-index: 1;
}

.result-quote::before {
  content: '“';
  font-size: 2.2rem;
  color: var(--neon-gold); /* 改為金色雙引號 */
  line-height: 0;
  display: inline-block;
  vertical-align: -12px;
  margin-right: 6px;
}

.result-quote::after {
  content: '”';
  font-size: 2.2rem;
  color: var(--neon-gold);
  line-height: 0;
  display: inline-block;
  vertical-align: -12px;
  margin-left: 6px;
}

/* ==========================================================================
   6.5. 導師介紹區 (Instructor Section Styles)
   ========================================================================== */
.instructor-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 3.5rem; /* 稍微放大邊距 */
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 3.5rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.instructor-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(228, 172, 94, 0.05);
}

/* 局部極光背景 (金色極光) */
.instructor-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: var(--neon-gold);
  filter: blur(110px);
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

/* 霓虹頭像容器 (金箔光環) */
.instructor-avatar {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(228, 172, 94, 0.08), rgba(184, 130, 59, 0.05));
  border: 3px solid rgba(228, 172, 94, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(228, 172, 94, 0.15);
  position: relative;
  z-index: 1;
  overflow: hidden; /* 確保頭像圖片不會超出圓形外框 */
  animation: float-avatar 4s infinite alternate ease-in-out;
}

@keyframes float-avatar {
  0% { transform: translateY(0); box-shadow: 0 0 20px rgba(228, 172, 94, 0.15); }
  100% { transform: translateY(-8px); box-shadow: 0 0 35px rgba(228, 172, 94, 0.35); }
}

.instructor-avatar span {
  font-size: 4.5rem;
  font-weight: 900;
  color: white;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
}

/* 導師照片圖片樣式 */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 確保照片按比例填滿，不變形 */
  border-radius: 50%;
  display: block;
  transition: var(--transition-smooth);
}

.instructor-card:hover .avatar-img {
  transform: scale(1.05); /* 懸停時稍微放大，極具生動感 */
}

.instructor-info {
  position: relative;
  z-index: 1;
}

.instructor-name {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  background: var(--grad-vibe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.instructor-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--neon-gold); /* 修改為金色標題 */
  margin-bottom: 1.4rem;
  letter-spacing: 0.8px;
}

.instructor-bio {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

.instructor-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.inst-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1.1rem;
  border-radius: 10px;
  background: rgba(228, 172, 94, 0.03); /* 微金底色 */
  border: 1px solid var(--glass-border);
  color: var(--color-text-main);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.inst-badge i {
  width: 14px;
  height: 14px;
  color: var(--neon-gold); /* 修改圖示為金色 */
}

.instructor-card:hover .inst-badge {
  border-color: rgba(228, 172, 94, 0.3);
  background: rgba(228, 172, 94, 0.06);
}

/* ==========================================================================
   7. 頁尾與其它細節 (Footer)
   ========================================================================== */
footer {
  padding: 5rem 0 4rem; /* 增加上方邊距 */
  border-top: 1px solid var(--glass-border);
  background: rgba(11, 10, 8, 0.95); /* 與整體墨金黑背景一致 */
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.footer-text {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.heart-icon {
  color: var(--neon-gold); /* 愛心改為溫暖的金色 */
  display: inline-block;
  animation: heart-beat 1s infinite alternate;
}

@keyframes heart-beat {
  0% { transform: scale(1); }
  100% { transform: scale(1.25); }
}

/* ==========================================================================
   8. 響應式排版與極致優化 (Responsive & Mobile First)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 平板更彈性 */
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5.5rem 0; /* 縮減手機版上下間距，視覺更緊湊 */
  }
  .section-title {
    font-size: 2.1rem;
  }
  .hero {
    padding: 7rem 0 4.5rem;
  }
  .hero-title {
    font-size: 2.6rem; /* 手機版標題尺寸調整，絕不超出畫面 */
    letter-spacing: -1px;
  }
  .typing-container {
    font-size: 1.25rem;
    height: auto;
    min-height: 3rem; /* 避免打字跳行造成跳動 */
    margin-bottom: 2.5rem;
  }
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 1.5rem 0;
    gap: 1.2rem;
  }
  .nav-links {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.8rem;
  }
  .instructor-card {
    flex-direction: column;
    text-align: center;
    padding: 2.8rem 1.5rem;
    gap: 2.2rem;
  }
  .instructor-badges {
    justify-content: center;
  }
  th, td {
    padding: 1.2rem 1rem; /* 壓縮表格手機版 padding，防止左右滾動爆版 */
    font-size: 0.88rem;
  }
  .col-feature {
    width: 30%;
  }
  .quiz-container {
    padding: 2rem 1.5rem; /* 壓縮手機版測驗容器 padding */
  }
  .options-group {
    grid-template-columns: 1fr; /* 手機版選項單欄排列，更好點擊 */
    gap: 0.7rem;
  }
  .result-container {
    padding: 2.5rem 1.5rem;
    min-height: 360px;
  }
}

/* 針對極小螢幕優化 */
@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem; /* 縮小極窄螢幕邊距 */
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
}
