/* ==========================================================================
   MKS 台灣線上學習與成長社群平台 - Design System (北歐湖水綠 & 暖沙金)
   ========================================================================== */

:root {
  /* 品牌核心主色 - 北歐湖水綠 */
  --primary-teal: #0D9488;
  --primary-teal-dark: #0F766E;
  --primary-teal-darker: #115E59;
  --primary-teal-light: #14B8A6;
  --primary-teal-subtle: #F0FDFA;
  --primary-teal-border: rgba(13, 148, 136, 0.2);

  /* 輔助焦點色 - 晨曦暖沙金 */
  --accent-gold: #D97706;
  --accent-gold-hover: #B45309;
  --accent-gold-light: #FEF3C7;
  --accent-gold-soft: #FFFBEB;
  --accent-gold-glow: rgba(217, 119, 6, 0.25);

  /* 溫潤背景色系 */
  --bg-sand: #FAF6F0;
  --bg-sand-warm: #F4EFE6;
  --bg-sand-light: #FDFBF8;
  --bg-pure: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-dark-footer: #081917;
  --bg-dark-footer-card: #0F2826;

  /* 文字與中性色調 */
  --text-title: #132A27;
  --text-body: #334A47;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  /* 邊框與陰影 */
  --border-color: #E8E2D8;
  --border-light: #F0ECE4;
  --shadow-sm: 0 2px 8px rgba(19, 42, 39, 0.04);
  --shadow-md: 0 8px 24px rgba(19, 42, 39, 0.07);
  --shadow-lg: 0 20px 40px -10px rgba(13, 148, 136, 0.14);
  --shadow-hover: 0 24px 48px -12px rgba(19, 42, 39, 0.16);

  /* 圓角規範 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* 轉場 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
}

/* 基礎重設 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-pure);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 標題帶手繪底線特效 */
.highlight-word {
  position: relative;
  display: inline-block;
  color: var(--accent-gold);
  font-weight: 800;
}

.highlight-word::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 18' preserveAspectRatio='none'%3E%3Cpath d='M3 13.5C45 4.5 110 5.5 157 12.5' stroke='%23D97706' stroke-width='4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 100%;
  pointer-events: none;
}

/* ==========================================================================
   導覽列 (Navbar)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 226, 216, 0.6);
  transition: var(--transition);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.5px;
}

.brand-logo svg {
  height: 38px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-body);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-teal);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-teal);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-login {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
  padding: 10px 18px;
  border-radius: var(--radius-full);
}

.btn-login:hover {
  color: var(--primary-teal);
  background-color: rgba(13, 148, 136, 0.08);
}

.btn-register {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  background-color: var(--primary-teal);
  padding: 11px 26px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}

.btn-register:hover {
  background-color: var(--primary-teal-dark);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.38);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  font-size: 26px;
  color: var(--text-title);
}

/* ==========================================================================
   純英文字母品牌標誌 (Pure Typographic Brand Lettermark)
   ========================================================================== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-lettermark {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #132A27;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  user-select: none;
  white-space: nowrap;
}

.brand-lettermark .letter-gold {
  color: var(--accent-gold);
}

.brand-lettermark .letter-dot {
  color: var(--accent-gold);
  font-size: 32px;
  line-height: 0;
  margin-left: 2px;
}

.site-footer .brand-lettermark {
  color: #FFFFFF;
}

.site-footer .brand-lettermark .letter-gold {
  color: var(--accent-gold);
}

.drawer-brand .brand-lettermark {
  font-size: 26px;
  color: #132A27;
}

/* ==========================================================================
   Hero 主視覺區
   ========================================================================== */
.hero-section {
  background-color: var(--bg-sand);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 620px;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--accent-gold-soft);
  border: 1px solid var(--accent-gold-light);
  color: var(--accent-gold-hover);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-badge-tag span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.22;
  color: var(--text-title);
  letter-spacing: -1px;
  margin-bottom: 22px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 38px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
  background-color: var(--accent-gold);
  padding: 16px 36px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px var(--accent-gold-glow);
}

.btn-hero-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.35);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-title);
  padding: 15px 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-pure);
}

.btn-hero-secondary:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  background-color: var(--primary-teal-subtle);
}

/* 視覺拱形外框與浮動徽章 */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.portrait-frame-arch {
  position: relative;
  width: 380px;
  height: 520px;
  border-radius: 200px 200px 32px 32px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(19, 42, 39, 0.12);
  border: 3px solid #FFFFFF;
}

.portrait-frame-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.dashed-arch-outline {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 2px dashed rgba(13, 148, 136, 0.35);
  border-radius: 220px 220px 42px 42px;
  pointer-events: none;
  animation: rotateDashed 40s linear infinite;
}

/* 浮動標籤卡片 */
.floating-stat-badge {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10;
  animation: floatSlow 4s ease-in-out infinite alternate;
}

.badge-pos-left {
  left: -20px;
  bottom: 80px;
}

.badge-pos-right {
  right: -20px;
  top: 90px;
  animation-delay: -2s;
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-gold-soft);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.badge-icon.teal {
  background-color: var(--primary-teal-subtle);
  color: var(--primary-teal);
}

.badge-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 2px;
}

.badge-title.teal {
  color: var(--primary-teal);
}

.badge-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   三大特色卡片區 (Features)
   ========================================================================== */
.features-section {
  padding: 40px 0 80px;
  background-color: var(--bg-pure);
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-pill-card {
  background-color: var(--bg-sand);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.feature-pill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: var(--transition);
}

.feature-pill-card:hover {
  transform: translateY(-6px);
  background-color: #FFFFFF;
  box-shadow: var(--shadow-card);
  border-color: var(--primary-teal-border);
}

.feature-pill-card:hover::before {
  background: var(--primary-teal);
}

.card-icon-bubble {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--accent-gold-soft);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
  border: 1px solid var(--accent-gold-light);
}

.feature-pill-card:nth-child(2) .card-icon-bubble {
  background-color: var(--primary-teal-subtle);
  color: var(--primary-teal);
  border-color: var(--primary-teal-border);
}

.card-header-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 12px;
}

.card-copy {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   熱門類別 (Top Categories)
   ========================================================================== */
.categories-section {
  padding: 70px 0 90px;
  background-color: var(--bg-pure);
}

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-heading-lg {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.5px;
}

.section-link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
}

.section-link-more:hover {
  color: var(--accent-gold-hover);
  transform: translateX(4px);
}

.category-slider-wrapper {
  position: relative;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cat-photo-card {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.cat-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cat-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 42, 39, 0.05) 30%, rgba(19, 42, 39, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 22px;
  transition: var(--transition);
}

.cat-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold-light);
  background: rgba(217, 119, 6, 0.35);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  width: fit-content;
}

.cat-title-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}

.cat-subtitle {
  font-size: 13px;
  color: #D1D5DB;
  margin-top: 4px;
  opacity: 0.9;
}

.cat-photo-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.cat-photo-card:hover img {
  transform: scale(1.08);
}

/* 輪播切換圓形箭頭 */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
  z-index: 5;
  transition: var(--transition);
}

.slider-arrow-btn:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-50%) scale(1.1);
}

.arrow-prev { left: -20px; }
.arrow-next { right: -20px; }

/* ==========================================================================
   名師教學機構介紹 (Institution Showcase)
   ========================================================================== */
.institution-section {
  padding: 90px 0;
  background-color: var(--bg-sand);
}

.institution-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.inst-visual-box {
  position: relative;
  display: flex;
  justify-content: center;
}

.inst-portrait {
  width: 360px;
  height: 480px;
  border-radius: 190px 190px 28px 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #FFFFFF;
}

.inst-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}

.inst-badge-instructors {
  position: absolute;
  right: -10px;
  bottom: 40px;
  background: #FFFFFF;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inst-badge-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inst-badge-header i {
  color: var(--primary-teal);
  font-size: 18px;
}

.inst-badge-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-title);
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  margin-left: -8px;
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.inst-text-box h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.25;
  margin-bottom: 22px;
}

.inst-text-box p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 34px;
}

.inst-points-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.inst-point-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
}

.inst-point-item i {
  color: var(--primary-teal);
  font-size: 18px;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  background-color: var(--accent-gold);
  padding: 15px 36px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px var(--accent-gold-glow);
}

.btn-primary-action:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.35);
}

/* ==========================================================================
   熱門線上課程區 (Popular Courses)
   ========================================================================== */
.courses-section {
  padding: 90px 0 100px;
  background-color: var(--bg-pure);
}

.courses-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill-btn {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-sand);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.filter-pill-btn:hover,
.filter-pill-btn.active {
  background-color: var(--primary-teal);
  color: var(--text-white);
  border-color: var(--primary-teal);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}

.sort-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background-color: var(--accent-gold);
  color: var(--text-white);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.courses-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.course-item-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.course-item-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-teal-border);
}

.course-thumb-box {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.course-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-item-card:hover .course-thumb-box img {
  transform: scale(1.06);
}

.course-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(19, 42, 39, 0.75);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.course-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.course-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-rating-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
}

.course-instructor-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.course-instructor-text span {
  color: var(--text-title);
  font-weight: 600;
}

.course-meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.course-meta-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.course-price-wrap {
  display: flex;
  flex-direction: column;
}

.price-currency {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.price-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.btn-buy-course {
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  background-color: var(--primary-teal);
  color: var(--text-white);
  border-radius: var(--radius-full);
}

.btn-buy-course:hover {
  background-color: var(--primary-teal-dark);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* ==========================================================================
   線上評測區 (Examination Section)
   ========================================================================== */
.exam-section {
  padding: 90px 0;
  background-color: var(--bg-sand);
}

.exam-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.exam-content h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.25;
  margin-bottom: 22px;
}

.exam-content p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 34px;
}

.exam-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 38px;
}

.exam-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.exam-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-teal-subtle);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.exam-feature-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 2px;
}

.exam-feature-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   全球學員挑戰賽 & 報名表單 (Competition & Registration Form)
   ========================================================================== */
.competition-section {
  padding: 90px 0 100px;
  background-color: var(--bg-pure);
}

.comp-header-centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.comp-header-centered h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 14px;
}

.comp-header-centered p {
  font-size: 16px;
  color: var(--text-muted);
}

.comp-main-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 50px;
  background-color: var(--bg-sand);
  border-radius: var(--radius-xl);
  padding: 50px 60px;
  border: 1px solid var(--border-light);
}

.comp-form-card {
  background: #FFFFFF;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.form-badge-intro {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-sand-light);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-title);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}

.btn-form-submit {
  width: 100%;
  padding: 15px;
  background-color: var(--accent-gold);
  color: var(--text-white);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px var(--accent-gold-glow);
  margin-top: 6px;
}

.btn-form-submit:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   精選主題競賽 (Featured Competition Cards)
   ========================================================================== */
.featured-comp-section {
  padding: 60px 0 90px;
  background-color: var(--bg-pure);
}

/* ==========================================================================
   學術出版與專刊 (Publications Section)
   ========================================================================== */
.publications-section {
  padding: 90px 0;
  background-color: var(--bg-sand);
}

.pub-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 70px;
}

.pub-content h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.25;
  margin-bottom: 20px;
}

.pub-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 30px;
}

.pub-books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.book-card {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.book-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.book-card:hover img {
  transform: scale(1.08);
}

.book-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 25, 23, 0.1) 40%, rgba(8, 25, 23, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.book-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 6px;
}

.book-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
}

/* ==========================================================================
   學員好評心得 (Reviews / Testimonials)
   ========================================================================== */
.reviews-section {
  padding: 90px 0 100px;
  background-color: var(--bg-pure);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 50px;
}

.reviews-header-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.reviews-header-block h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.25;
  margin-bottom: 24px;
}

.reviews-nav-arrows {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.review-arrow-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.review-arrow-btn:hover {
  background-color: var(--accent-gold);
  color: #FFFFFF;
}

.testimonial-cards-container {
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.testimonial-card-item {
  background: var(--bg-sand);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card-item:hover {
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
  border-color: var(--primary-teal-border);
}

.testimonial-user-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-teal-light);
}

.user-info-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-title);
}

.user-info-role {
  font-size: 13px;
  color: var(--accent-gold);
  font-weight: 600;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: normal;
}

/* ==========================================================================
   合作夥伴企業 (Partners)
   ========================================================================== */
.partners-section {
  padding: 50px 0 60px;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-pure);
}

.partners-logos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  opacity: 0.75;
}

.partner-logo-item {
  font-size: 20px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.partner-logo-item:hover {
  opacity: 1;
  color: var(--primary-teal);
  transform: translateY(-2px);
}

/* ==========================================================================
   深邃墨綠質感頁尾 (Dark Footer)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark-footer);
  color: #E2E8F0;
  padding: 90px 0 40px;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-box .footer-logo {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}

.footer-brand-box p {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.75;
  max-width: 340px;
  margin-bottom: 22px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}

.social-circle-btn:hover {
  background: var(--primary-teal);
  color: #FFFFFF;
  transform: translateY(-3px);
}

.footer-col-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-box h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--accent-gold);
  border-radius: 2px;
}

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

.footer-links-list a {
  font-size: 13.5px;
  color: #94A3B8;
  transition: var(--transition);
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--primary-teal-light);
  transform: translateX(4px);
}

.footer-security-badges {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sec-badge-item {
  font-size: 12px;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sec-badge-item i {
  color: var(--accent-gold);
}

.footer-newsletter-wrap {
  text-align: center;
  max-width: 600px;
  margin: 60px auto 40px;
}

.footer-newsletter-wrap h3 {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.newsletter-form-inline {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.newsletter-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-title);
  outline: none;
  font-family: inherit;
}

.btn-newsletter-sub {
  background-color: var(--accent-gold);
  color: #FFFFFF;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.btn-newsletter-sub:hover {
  background-color: var(--accent-gold-hover);
}

.footer-bottom-copy {
  text-align: center;
  font-size: 13px;
  color: #64748B;
}

/* ==========================================================================
   購物與課程詳情彈窗 (Course Purchase Modal)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 42, 39, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-sand);
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #E2E8F0;
}

.modal-body {
  padding: 36px 36px 32px;
}

/* ==========================================================================
   實盤模擬能力評測彈窗 (Trading Simulation Examination Modal)
   ========================================================================== */
.exam-modal-dialog {
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
}

.exam-quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.exam-step-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-teal);
  background: var(--primary-teal-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.exam-chart-wrapper {
  background: #0B1917;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.chart-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #94A3B8;
  font-size: 12px;
  font-family: monospace;
}

.chart-title-tag {
  color: #F1F5F9;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-canvas-box {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  position: relative;
}

/* K 線柱體 (台灣慣用: 紅漲綠跌) */
.k-candle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 100%;
  justify-content: flex-end;
}

.k-wick {
  width: 2px;
  background-color: currentColor;
  position: absolute;
}

.k-body {
  width: 100%;
  max-width: 16px;
  background-color: currentColor;
  border-radius: 2px;
  z-index: 2;
}

.k-bullish { color: #EF4444; } /* 台灣紅漲 */
.k-bearish { color: #10B981; } /* 台灣綠跌 */

.k-mystery-zone {
  flex: 2;
  height: 100%;
  border-left: 2px dashed var(--accent-gold);
  background: rgba(217, 119, 6, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-light);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 10px;
}

.exam-question-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 16px;
  line-height: 1.5;
}

.exam-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.exam-option-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px;
  background: var(--bg-sand);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.exam-option-item:hover {
  background: #FFFFFF;
  border-color: var(--primary-teal);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.exam-option-item.selected {
  background: var(--primary-teal-subtle);
  border-color: var(--primary-teal);
}

.option-badge-key {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-title);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.exam-option-item.selected .option-badge-key {
  background: var(--primary-teal);
  color: #FFFFFF;
  border-color: var(--primary-teal);
}

.option-text-desc {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.5;
}

.exam-feedback-box {
  display: none;
  background: #FAF7F2;
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 4px solid var(--primary-teal);
  margin-bottom: 22px;
  animation: fadeIn 0.3s ease;
}

.exam-feedback-box.active {
  display: block;
}

.feedback-status {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feedback-status.correct { color: #0D9488; }
.feedback-status.caution { color: #D97706; }

.feedback-analysis {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 12px;
}

.feedback-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.feedback-stats-row span strong {
  color: var(--primary-teal);
}

/* 評測最終綜合報告卡 */
.exam-report-card {
  display: none;
  text-align: center;
  padding: 20px 10px;
}

.exam-report-card.active {
  display: block;
}

.report-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
}

.report-title-lg {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 12px;
}

.report-score-box {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.score-metric-item {
  background: var(--bg-sand);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  min-width: 160px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.metric-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-teal);
  line-height: 1;
}

.metric-number.gold { color: var(--accent-gold); }

.report-advice-box {
  background: var(--primary-teal-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
  text-align: left;
}

.report-advice-box h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-teal-darker);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-advice-box p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

.report-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   深度課程詳情展示系統 (Direct Full-Display Course Detail Modal - 無左右滑動)
   ========================================================================== */
.course-detail-overlay {
  z-index: 2200;
  padding: 16px;
  overflow: hidden;
}

.course-detail-dialog.direct-view-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  box-shadow: 0 30px 80px rgba(19, 42, 39, 0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

/* 頂部 Hero 資訊橫幅 */
.cd-hero-banner {
  background: linear-gradient(135deg, #092622 0%, #115E59 100%);
  color: #FFFFFF;
  padding: 28px 34px 24px;
  position: relative;
  flex-shrink: 0;
  border-bottom: 2px solid var(--accent-gold);
}

.cd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #99F6E4;
  margin-bottom: 12px;
}

.breadcrumb-arrow {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.cd-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12px;
}

.cd-badge-year {
  background: rgba(217, 119, 6, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FDE047;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 11.5px;
}

.cd-title {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.35;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.cd-subtitle {
  font-size: 14px;
  color: #CCFBF1;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cd-meta-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #E2E8F0;
}

.cd-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cd-rating-stars {
  color: #F59E0B;
  font-size: 12px;
}

.cd-badge-safe {
  color: #99F6E4;
  background: rgba(13, 148, 136, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* 完整直接垂直滾動容器 (無左右滑動) */
.cd-scrollable-body.direct-scroll-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 0;
  background: #FAF8F5;
  -webkit-overflow-scrolling: touch;
}

.cd-inner-content {
  padding: 28px 34px 34px;
}

/* 核心指標卡 (四欄均勻排列) */
.cd-features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

.cd-feat-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.feat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-teal-subtle);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.cd-feat-box strong {
  display: block;
  font-size: 13px;
  color: var(--text-title);
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.25;
}

.cd-feat-box span {
  font-size: 11px;
  color: var(--text-muted);
}

/* 獨立區塊架構 */
.cd-direct-section {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border-light);
}

.cd-section-h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-teal-darker);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-section-h3 i {
  color: var(--primary-teal);
}

.section-sub-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-sand);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* 課綱完整展示清單 */
.cd-syllabus-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.syllabus-chapter-block {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FCFDFD;
}

.chapter-title-bar {
  background: var(--bg-sand);
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.chapter-title-bar .badge-chap {
  font-size: 11.5px;
  background: var(--primary-teal);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
}

.lessons-direct-list {
  padding: 6px 18px 12px;
}

.lesson-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 13.5px;
}

.lesson-row-card:last-child {
  border-bottom: none;
}

.lesson-name-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-title);
  font-weight: 500;
}

.lesson-name-info i {
  color: var(--primary-teal);
  font-size: 12px;
}

.lesson-time-chip {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 導師卡片 */
.cd-instructor-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.inst-avatar-sq {
  width: 95px;
  height: 95px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--primary-teal);
  box-shadow: var(--shadow-sm);
}

.inst-details h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 3px;
}

.inst-details .inst-subtitle {
  font-size: 13.5px;
  color: var(--primary-teal);
  font-weight: 600;
  margin-bottom: 10px;
}

.inst-details p {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 12px;
}

.inst-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inst-badge-chip {
  font-size: 12px;
  background: var(--bg-sand);
  color: var(--text-title);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* 適合與不適合對象 */
.cd-audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.audience-box {
  background: #FAF8F5;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border-light);
}

.audience-box.suitable {
  border-left: 4px solid var(--primary-teal);
}

.audience-box.not-suitable {
  border-left: 4px solid #EF4444;
}

.audience-box h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audience-box.suitable h4 { color: var(--primary-teal-dark); }
.audience-box.not-suitable h4 { color: #DC2626; }

.audience-box ul li {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.audience-box ul li::before {
  content: '•';
  color: var(--text-muted);
  font-weight: bold;
}

.cd-takeaways-box {
  background: #F0FDFA;
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.cd-takeaways-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-teal-darker);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-takeaways-box ul li {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-takeaways-box ul li i {
  color: var(--accent-gold);
}

/* 學員評價清單 */
.cd-reviews-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cd-review-card {
  background: #FAF8F5;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.review-user-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.review-user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-pill {
  font-size: 11px;
  background: #DCFCE7;
  color: #166534;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.review-date {
  font-size: 12px;
  color: var(--text-muted);
}

.cd-review-card p {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
}

/* 常見問答清單 */
.cd-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-card-item {
  background: #FAF8F5;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.faq-question-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-question-title i {
  color: var(--primary-teal);
}

.faq-answer-text {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  padding-left: 22px;
}

/* 底部置底結帳行動列 (Sticky Bottom Bar) */
.cd-sticky-bottom-bar {
  padding: 16px 34px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -6px 20px rgba(19, 42, 39, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
}

.bottom-price-info {
  display: flex;
  flex-direction: column;
}

.bottom-tag-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.price-discount-tag {
  background: #FEF2F2;
  color: #DC2626;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #FECACA;
}

.bottom-price-val {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.bottom-price-val .cur {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-gold);
}

.bottom-price-val strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.bottom-price-val .orig {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.bottom-action-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.btn-enroll-bottom {
  padding: 13px 36px;
  background-color: var(--accent-gold);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px var(--accent-gold-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-enroll-bottom:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

.bottom-security-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}


.btn-confirm-checkout {
  padding: 14px 34px;
  background-color: var(--accent-gold);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px var(--accent-gold-glow);
}

.btn-confirm-checkout:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

/* Toast 提示通知 */
.toast-notice {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #FFFFFF;
  border-left: 4px solid var(--primary-teal);
  box-shadow: var(--shadow-lg);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 20px;
  color: var(--primary-teal);
}

.toast-msg {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-title);
}

/* ==========================================================================
   行動裝置抽屜式導覽 (Mobile Drawer Navigation)
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 38, 34, 0.65);
  backdrop-filter: blur(8px);
  z-index: 3500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-pane {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: #FFFFFF;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer-overlay.open .mobile-drawer-pane {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 20px;
  background: var(--bg-sand);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.drawer-brand .brand-lettermark {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #132A27;
}

.drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close-btn:active {
  background: var(--bg-sand);
}

.drawer-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.drawer-menu-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-title);
  font-size: 14.5px;
  font-weight: 600;
  transition: var(--transition);
}

.drawer-link i {
  width: 20px;
  color: var(--primary-teal);
  font-size: 15px;
}

.drawer-link:active,
.drawer-link:hover {
  background: var(--primary-teal-subtle);
  color: var(--primary-teal-darker);
}

.drawer-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.btn-drawer-exam {
  width: 100%;
  padding: 12px;
  background: var(--accent-gold);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.btn-drawer-courses {
  width: 100%;
  padding: 11px;
  background: #FFFFFF;
  color: var(--primary-teal-dark);
  border: 1.5px solid var(--primary-teal);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.drawer-footer-note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-security-tag {
  font-size: 11px;
  color: var(--primary-teal-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.drawer-social-row {
  display: flex;
  gap: 12px;
}

.drawer-social-row a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-sand);
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none;
}

/* ==========================================================================
   響應式設計 (Responsive Queries)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 40px; }
  .section-heading-lg { font-size: 32px; }
  .category-cards-grid,
  .pub-books-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .institution-grid,
  .exam-grid,
  .comp-main-grid,
  .pub-intro-grid,
  .reviews-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait-frame-arch { width: 320px; height: 420px; }
  .inst-portrait { width: 320px; height: 420px; }
  .footer-top-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .cd-audience-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  /* 基礎排版與容器安全距離 */
  .container {
    padding: 0 16px;
  }

  /* 導覽列與行動標誌 */
  .site-header {
    height: 64px;
  }
  .site-header .container {
    height: 64px;
  }
  .site-logo svg {
    width: 165px;
    height: 36px;
  }
  .nav-menu,
  .nav-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-sand);
    border: 1px solid var(--border-color);
    color: var(--text-title);
    font-size: 18px;
    cursor: pointer;
  }

  /* 頂部合規告示小條 */
  .compliance-top-strip {
    font-size: 11px;
    padding: 6px 12px;
    line-height: 1.4;
  }

  /* Hero 主視覺區 */
  .hero-section {
    padding: 28px 0 35px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-badge-tag {
    font-size: 11.5px;
    padding: 4px 10px;
    margin-bottom: 12px;
  }
  .hero-title {
    font-size: 28px;
    line-height: 1.32;
    margin-bottom: 12px;
  }
  .hero-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero-cta-group .btn-primary-action,
  .hero-cta-group .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 15px;
  }
  .hero-trust-metrics {
    gap: 16px;
    padding-top: 18px;
  }
  .trust-metric-item strong {
    font-size: 20px;
  }
  .trust-metric-item span {
    font-size: 11.5px;
  }

  /* 肖像拱門圖片自適應：保持完整等比例縮放 */
  .inst-visual-box {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .portrait-frame-arch {
    width: 100%;
    max-width: 310px;
    height: 380px;
    margin: 0 auto;
  }
  .portrait-frame-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .floating-stat-badge {
    padding: 8px 12px;
  }
  .floating-stat-badge.badge-pos-left {
    bottom: 15px;
    left: 8px;
  }
  .floating-stat-badge.badge-pos-right {
    top: 15px;
    right: 8px;
  }
  .badge-title {
    font-size: 12.5px;
  }
  .badge-desc {
    font-size: 10px;
  }

  /* 特色服務卡片 (3 大保證) */
  .features-section {
    padding: 35px 0;
  }
  .feature-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card {
    padding: 22px 18px;
  }

  /* 機構介紹區 */
  .institution-section {
    padding: 45px 0;
  }
  .institution-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .inst-portrait {
    width: 100%;
    max-width: 310px;
    height: 380px;
    margin: 0 auto;
  }
  .inst-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .inst-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 課程專區與分類篩選列 */
  .courses-section {
    padding: 45px 0;
  }
  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-heading-lg {
    font-size: 25px;
  }
  .courses-filter-bar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .filter-tabs-group {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .filter-tabs-group::-webkit-scrollbar {
    display: none;
  }
  .filter-tab-btn {
    white-space: nowrap;
    padding: 8px 15px;
    font-size: 13px;
    flex-shrink: 0;
  }
  .btn-filter-sort {
    align-self: flex-start;
    font-size: 13px;
    padding: 8px 14px;
  }

  /* 課程卡片 */
  .courses-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .course-thumb-box {
    height: 180px;
  }
  .course-body {
    padding: 16px 18px 20px;
  }
  .course-card-title {
    font-size: 16px;
  }
  .course-meta-row {
    font-size: 12px;
    gap: 14px;
  }
  .course-footer-row {
    padding-top: 14px;
  }
  .price-val {
    font-size: 20px;
  }
  .btn-buy-course {
    padding: 9px 18px;
    font-size: 13.5px;
  }

  /* 模擬評測區 */
  .examination-section {
    padding: 45px 0;
  }
  .exam-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .exam-features-list {
    margin: 20px 0;
  }

  /* 進階專題系列 & 競賽卡片輪播 (手機端支援自然手勢橫向滑動) */
  .publications-section,
  .featured-comp-section {
    padding: 45px 0;
  }
  .category-slider-wrapper {
    position: relative;
  }
  .category-cards-grid,
  .pub-books-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .cat-photo-card,
  .book-card {
    min-width: 260px;
    width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .slider-arrow-btn {
    display: none; /* 行動端直接使用手指左右滑動，移除佔空間箭頭 */
  }

  /* 模擬挑戰賽表單區 */
  .competitions-section {
    padding: 45px 0;
  }
  .comp-main-grid {
    padding: 24px 16px;
  }
  .comp-form-card {
    padding: 20px 16px;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .form-group input,
  .form-group select {
    font-size: 15px; /* 防止 iOS 點擊輸入框自動放大頁面 */
    height: 46px;
  }

  /* 學員心得區 */
  .reviews-section {
    padding: 45px 0;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .testimonial-cards-container {
    flex-direction: column;
    gap: 16px;
  }

  /* 合作夥伴條 */
  .partners-section {
    padding: 24px 0;
  }
  .partners-logos-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
  }

  /* 頁尾 */
  .site-footer {
    padding: 40px 0 24px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-newsletter-wrap {
    padding: 24px 18px;
    margin: 32px 0 24px;
  }
  .newsletter-form-inline {
    flex-direction: column;
    gap: 10px;
  }
  .newsletter-input {
    width: 100%;
    font-size: 15px;
  }
  .btn-newsletter-sub {
    width: 100%;
  }

  /* ==========================================================================
     課程詳情彈窗行動端原生全螢幕 Sheet (Course Detail Modal Mobile UI)
     ========================================================================== */
  .course-detail-overlay {
    padding: 0;
  }
  .course-detail-dialog.direct-view-dialog {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }

  /* 行動端關閉按鈕：固定於右上角 */
  .modal-close-btn {
    top: 12px;
    right: 12px;
    position: fixed;
    z-index: 2500;
    background: rgba(15, 23, 42, 0.75);
    color: #FFFFFF;
    backdrop-filter: blur(8px);
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* 頂部 Hero 橫幅緊湊排版 */
  .cd-hero-banner {
    padding: 20px 16px 18px;
  }
  .cd-breadcrumb {
    font-size: 11.5px;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    padding-right: 36px; /* 避開關閉按鈕 */
  }
  .cd-badge,
  .cd-badge-year {
    font-size: 10.5px;
    padding: 2px 8px;
  }
  .cd-title {
    font-size: 18.5px;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .cd-subtitle {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 12px;
  }
  .cd-meta-strip {
    gap: 8px 12px;
    font-size: 11.5px;
  }

  /* 內部主體內容容器 */
  .cd-inner-content {
    padding: 16px 14px 90px;
  }

  /* 核心權益指標：2x2 緊湊精美網格 */
  .cd-features-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
  }
  .cd-feat-box {
    padding: 10px 8px;
    gap: 8px;
  }
  .feat-icon-wrap {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .cd-feat-box strong {
    font-size: 12px;
  }
  .cd-feat-box span {
    font-size: 10px;
  }

  /* 獨立區塊 */
  .cd-direct-section {
    padding: 16px 14px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
  }
  .cd-section-h3 {
    font-size: 15.5px;
  }
  .section-sub-tag {
    font-size: 11px;
    padding: 2px 8px;
  }

  /* 導師卡 */
  .cd-instructor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .inst-avatar-sq {
    width: 80px;
    height: 80px;
  }
  .inst-badges-list {
    justify-content: center;
  }

  /* 適合對象 */
  .cd-audience-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .audience-box {
    padding: 14px;
  }
  .cd-takeaways-box {
    padding: 14px;
  }

  /* 底部固定結帳行動列：防折行、防擠壓、舒適點擊 */
  .cd-sticky-bottom-bar {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }
  .bottom-price-info {
    min-width: 105px;
  }
  .bottom-tag-line span:nth-child(2) {
    display: none; /* 行動端隱藏倒數輔助字，防止排版折行 */
  }
  .price-discount-tag {
    font-size: 10px;
    padding: 1px 5px;
    white-space: nowrap;
  }
  .bottom-price-val .cur {
    font-size: 13px;
  }
  .bottom-price-val strong {
    font-size: 21px;
  }
  .bottom-price-val .orig {
    font-size: 11px;
    margin-left: 2px;
  }
  .btn-enroll-bottom {
    padding: 11px 16px;
    font-size: 14px;
    gap: 6px;
    white-space: nowrap;
    border-radius: var(--radius-full);
  }
  .bottom-security-hint {
    display: none;
  }

  /* ==========================================================================
     模擬評測彈窗行動端優化 (Exam Modal Mobile UI)
     ========================================================================== */
  .modal-overlay {
    padding: 0;
  }
  .modal-dialog.exam-modal-dialog {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  .exam-chart-wrapper {
    padding: 12px 10px;
  }
  .chart-canvas-box {
    height: 170px;
  }
  .exam-question-text {
    font-size: 15px;
  }
  .exam-option-card {
    padding: 11px 12px;
  }
  .option-label-circle {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .option-title {
    font-size: 13.5px;
  }
  .option-desc {
    font-size: 11.5px;
  }
  .report-score-box {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .score-metric-item {
    padding: 12px 10px;
  }
  .metric-number {
    font-size: 22px;
  }
}

/* ==========================================================================
   結帳資料填寫彈窗 (Checkout Modal)
   ========================================================================== */
.checkout-dialog {
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.checkout-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-title);
  margin: 0 48px 18px 0;
  line-height: 1.5;
}

.checkout-summary {
  background: var(--bg-sand);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.checkout-course {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.6;
}

.checkout-price {
  margin-top: 6px;
  font-size: 14px;
  color: var(--accent-gold);
  font-weight: 700;
}

.checkout-price strong {
  font-size: 20px;
}

.checkout-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 6px;
}

.checkout-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkout-error {
  display: none;
  font-size: 14px;
  color: #B91C1C;
  background: #FEF2F2;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.checkout-error.show {
  display: block;
}

#checkoutSubmit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.checkout-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .checkout-dialog .modal-body {
    padding: 28px 22px 24px;
  }
}

@media (max-width: 600px) {
  .toast-notice {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
