/* ===== 設計系統顏色變量 ===== */
:root {
  /* 主要顏色系統 - 基於 ColorRule.txt */
  --primary-blue: #0184ff;
  --primary-blue-light: #33a1ff;
  --primary-blue-lighter: #66b8ff;
  --primary-blue-dark: #0066cc;
  --primary-blue-darker: #004799;
  
  /* 輔助色系統 */
  --accent-yellow: #FAD75A;
  --accent-yellow-light: #fbe485;
  --accent-yellow-lighter: #fcf1b0;
  --accent-yellow-dark: #f8ca2b;
  --accent-yellow-darker: #d4a614;
  
  /* 黑白灰階系統 */
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --background-primary: #FFFFFF;
  --background-secondary: #F8F9FA;
  --background-tertiary: #F1F3F4;
  --border-color: #E0E0E0;
  
  /* 陰影系統 */
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.16);
  --shadow-blue: 0 4px 16px rgba(1, 132, 255, 0.2);
  --shadow-yellow: 0 4px 16px rgba(250, 215, 90, 0.3);
  
  /* 圓角 */
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --radius-xl: 20px;
  
  /* 字體家族 */
  --font-family: 'Noto Sans TC', 'Noto Sans', 'Microsoft JhengHei', 'PingFang TC', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--background-secondary);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-weight: 400;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ===== 主容器 ===== */
.main-container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  background: transparent;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  padding: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 區段通用樣式 ===== */
.main-container > div {
  padding: 24px 32px;
  margin-bottom: 16px;
}

.main-container h2 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ===== 卡片容器樣式 ===== */
.pain-points-section,
.curriculum-section,
.social-proof-section,
.instructor-section,
.course-info-section,
.pricing-section,
.refund-policy-section,
.faq-section {
  background: transparent;
  margin: 0;
}

/* ===== 退費機制特殊樣式 ===== */
.refund-policy-section .refund-circle-shape {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* ===== 響應式設計 ===== */
@media screen and (max-width: 768px) {
  .main-container {
    padding: 0;
  }
  
  .main-container > div {
    padding: 20px 20px;
    margin-bottom: 12px;
  }
}

@media screen and (max-width: 480px) {
  .main-container {
    padding: 0;
  }
  .main-container > div {
    padding: 16px 16px;
    margin-bottom: 8px;
  }
  
  .main-container h2 {
    font-size: 2em;
    margin-bottom: 24px;
  }
}

/* ===== 通用樣式覆蓋 ===== */
.main-container h1, 
.main-container h2, 
.main-container h3, 
.main-container h4, 
.main-container p, 
.main-container li, 
.main-container span, 
.main-container div {
  color: inherit !important;
}

.main-container p, 
.main-container li {
  line-height: 1.6;
  margin-bottom: 12px;
  text-align: justify;
}

.main-container strong {
  font-weight: 600;
}

/* ===== 提升可讀性 ===== */
.main-container,
.blog-main-container,
.main-content {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

@media screen and (max-width: 768px) {
  .main-container,
  .blog-main-container,
  .main-content {
    font-size: 15px;
  }
}

@media screen and (max-width: 480px) {
  .main-container,
  .blog-main-container,
  .main-content {
    font-size: 15px;
  }
}

/* ===== 現代化增強效果 ===== */
.hero-section,
.stat-item,
.info-item {
  transition: all 0.3s ease;
}

/* ===== 文字樣式優化 ===== */
h1, h2, h3, h4 {
  font-feature-settings: 'liga' 1, 'kern' 1;
  text-rendering: optimizeLegibility;
}

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