/* ============================================================
   擇科指南 — 頁面布局（內容與屏幕邊距）
   ============================================================ */

.page-guide .navbar,
.page-guide .scroll-progress,
.page-guide .back-to-top {
  display: none;
}

.page-guide footer {
  display: none;
}

.page-guide .page-content,
.page-guide-hub .page-content > .ct-screen {
  padding-top: 0;
}

.page-guide .page-content {
  padding-bottom: calc(
    var(--bottom-nav-float-gap) * 2 + var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom)
  );
}

.page-guide .app-top-bar,
.page-guide-hub .app-top-bar,
.page-career-outlook .app-top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.page-guide .guide-screen {
  padding-top: 12px;
}

.guide-screen {
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 24px 16px 8px;
}

.page-guide-hub .guide-hub-screen {
  padding-top: 16px;
}

.page-guide-hub .guide-hub-screen > .guide-topic-list {
  margin-top: 24px;
}

/* --- 指南 / 職業測試目錄 hub：App 殼層 --- */
.page-guide-hub .navbar,
.page-guide-hub .scroll-progress,
.page-guide-hub .back-to-top,
.page-career-test .navbar,
.page-career-test .scroll-progress,
.page-career-test .back-to-top,
.page-career-outlook .navbar,
.page-career-outlook .scroll-progress,
.page-career-outlook .back-to-top {
  display: none;
}

.page-guide-hub footer,
.page-career-test footer,
.page-career-outlook footer {
  display: none;
}

.page-guide-hub .page-content,
.page-career-test .page-content,
.page-career-outlook .page-content {
  padding-top: 0;
  padding-bottom: calc(
    var(--bottom-nav-float-gap) * 2 + var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom)
  );
}

.page-guide-hub .page-content,
.page-career-test .page-content {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(99, 102, 241, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(14, 165, 233, 0.08), transparent),
    var(--bg-light);
}

.page-guide .page-content {
  background: linear-gradient(180deg, #f6f8fc 0%, var(--bg-light) 44%, #fff 100%);
}

.page-career-outlook .page-content {
  background: var(--bg-light, #f8fafc);
}

.guide-hub-screen {
  padding-top: calc(12px + env(safe-area-inset-top));
}

/* --- 主題列表（icon + 框卡片） --- */
.guide-topic-list-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 24px;
  font-family: 'Archivo Black', 'Noto Sans HK', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.2;
}

.guide-topic-list-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 79, 70, 229), 0.28);
}

.guide-topic-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.guide-topic-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: none;
}

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

.guide-topic-icon {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.9), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--topic-accent, var(--primary)) 20%, white), #fff 78%);
  color: var(--topic-accent, var(--primary));
  font-size: 1.1rem;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 22px color-mix(in srgb, var(--topic-accent, var(--primary)) 18%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.guide-topic-icon::after {
  content: '';
  position: absolute;
  inset: 6px 7px auto;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), transparent);
  pointer-events: none;
}

.guide-topic-icon-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 8px 9px rgba(15, 23, 42, 0.13));
  transition: transform 0.2s ease;
}

.guide-topic-row:active {
  transform: scale(0.99);
}

@media (hover: hover) {
  .page-guide-hub .guide-topic-row:hover,
  .page-career-test .guide-topic-row:hover,
  #careerModal .guide-topic-row:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--topic-accent, var(--primary)) 35%, var(--border));
    box-shadow: var(--shadow-md);
  }

  .page-guide-hub .guide-topic-row:hover .guide-topic-icon,
  .page-career-test .guide-topic-row:hover .guide-topic-icon,
  #careerModal .guide-topic-row:hover .guide-topic-icon {
    background:
      radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.96), transparent 40%),
      linear-gradient(145deg, color-mix(in srgb, var(--topic-accent, var(--primary)) 26%, white), #fff 74%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 14px 26px color-mix(in srgb, var(--topic-accent, var(--primary)) 24%, transparent);
    transform: translateY(-1px);
  }

  .page-guide-hub .guide-topic-row:hover .guide-topic-icon-img,
  .page-career-test .guide-topic-row:hover .guide-topic-icon-img,
  #careerModal .guide-topic-row:hover .guide-topic-icon-img {
    transform: scale(1.06) rotate(-2deg);
  }
}

.guide-topic-arrow {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-light);
  transition: color 0.2s ease, transform 0.2s ease;
}

.page-guide-hub .guide-topic-row:hover .guide-topic-arrow,
.page-career-test .guide-topic-row:hover .guide-topic-arrow,
#careerModal .guide-topic-row:hover .guide-topic-arrow {
  color: var(--topic-accent, var(--primary));
  transform: translateX(2px);
}

.guide-topic-headline {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.page-guide-hub .guide-topic-title {
  display: block;
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.page-guide-hub .guide-topic-desc {
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 首頁職業測試彈窗：列表字級與指南 hub 一致 */
#careerModal .guide-topic-title {
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#careerModal .guide-topic-desc {
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.45;
}

@media (min-width: 480px) {
  .page-guide-hub .guide-topic-title {
    font-size: 1.05rem;
  }

  .page-guide-hub .guide-topic-desc {
    font-size: 0.84rem;
  }

  .page-guide-hub .guide-topic-icon {
    width: 58px;
    height: 58px;
    font-size: 1.16rem;
  }

  .guide-topic-icon-img {
    width: 48px;
    height: 48px;
  }
}

.page-guide-hub .guide-hub-tip,
.page-career-test .guide-hub-tip {
  border-radius: 18px;
  border: 1px dashed rgba(79, 70, 229, 0.25);
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.9), rgba(255, 255, 255, 0.95));
}

.page-guide-hub .ct-tip-card a,
.page-career-test .ct-tip-card a {
  color: var(--primary);
  font-weight: 700;
}

.page-guide-hub .guide-screen,
.page-guide-hub .page-content > .container {
  padding-top: 24px;
  padding-bottom: calc(
    var(--bottom-nav-float-gap) * 2 + var(--bottom-nav-height) + 24px + env(safe-area-inset-bottom)
  );
}

@media (prefers-reduced-motion: reduce) {
  .guide-topic-row {
    animation: none;
  }
}

.guide-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   擇科指南 — 改選策略情境樣式 (2026 UI)
   ============================================================ */

/* 1. 頂部緊急提示（Urgency Banner）— 增加動態極光光暈 */
.urgency-banner {
  position: relative;
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(231, 76, 60, 0.3);
  box-shadow: 
    0 20px 40px -10px rgba(231, 76, 60, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 36px;
  overflow: hidden;
}

/* 增加 2026 流行的網格極光漸變背景動畫 */
.urgency-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 182, 193, 0.4), rgba(255, 255, 255, 0) 60%),
              radial-gradient(circle at 80% 20%, rgba(250, 128, 114, 0.3), rgba(255, 255, 255, 0) 50%);
  animation: aurora-move 10s infinite alternate ease-in-out;
  z-index: -1;
}

@keyframes aurora-move {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.05); }
  100% { transform: translate(-5%, -5%) scale(1); }
}

.urgency-banner-icon {
  background: linear-gradient(135deg, #ff6b6b, #e74c3c);
  color: white;
  box-shadow: 0 8px 16px rgba(231, 76, 60, 0.3);
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.urgency-banner-content h3 {
  color: #c0392b;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.urgency-banner-content p {
  color: #d35400;
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* 2. 情境卡片（Scenario Cards）— 升級為現代 Bento Box 邊框與浮雕感 */
.scenario-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px; /* 更圓潤的 2026 邊角 */
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.scenario-card::before {
  display: none; /* 移除舊版的頂部色條 */
}

.scenario-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 24px 48px -12px rgba(0, 0, 0, 0.12),
    0 12px 24px -8px rgba(0, 0, 0, 0.08);
}

/* 利用偽元素製作邊框發光效果 (Glow Border) */
.scenario-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px; /* 邊框寬度 */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

.scenario-card.success::after { background: linear-gradient(135deg, #10b981, transparent); }
.scenario-card.warning::after { background: linear-gradient(135deg, #f59e0b, transparent); }
.scenario-card.danger::after { background: linear-gradient(135deg, #ef4444, transparent); }

.scenario-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.scenario-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.scenario-card.success .scenario-icon { background: #ecfdf5; color: #10b981; }
.scenario-card.warning .scenario-icon { background: #fffbeb; color: #f59e0b; }
.scenario-card.danger .scenario-icon  { background: #fef2f2; color: #ef4444; }

.scenario-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* 優化 Badge (標籤) 的視覺 */
.scenario-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  margin-left: auto;
  line-height: 1.2;
}
.scenario-card.success .scenario-badge { color: #059669; background: #d1fae5; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
.scenario-card.warning .scenario-badge { color: #b45309; background: #fef3c7; box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3); }
.scenario-card.danger .scenario-badge  { color: #b91c1c; background: #fee2e2; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); }

.scenario-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
.scenario-desc strong {
  color: var(--text-dark);
  font-weight: 800;
}

.scenario-tip {
  margin-top: 20px;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--bg-light);
  color: var(--text-mid);
  position: relative;
  z-index: 2;
}
.scenario-tip i {
  margin-top: 3px;
  font-size: 0.9rem;
}
.scenario-card.success .scenario-tip i { color: #10b981; }
.scenario-card.warning .scenario-tip i { color: #f59e0b; }
.scenario-card.danger .scenario-tip i  { color: #ef4444; }

/* ============================================================
   擇科指南 — 組件樣式
   ============================================================ */

body.page-icon-entry .guide-toc,
body.page-icon-entry .mobile-bottom-nav {
  display: none;
}

body.page-icon-entry.page-guide .page-content,
body.page-icon-entry.page-career-outlook .page-content {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.guide-toc {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: -8px -16px 20px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(248, 250, 252, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.guide-toc-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 4px;
  scrollbar-width: none;
}

.guide-toc-inner::-webkit-scrollbar {
  display: none;
}

.guide-toc-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-mid);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.guide-toc-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.guide-toc-item.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.guide-section-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: none;
}

.strategy-card { background:white; border-radius:18px; border:1px solid var(--border); padding:24px; margin-bottom:16px; transition:var(--transition); box-shadow:var(--shadow-sm); }
.strategy-card:hover { border-color:var(--primary); box-shadow:var(--shadow-md); transform:translateY(-2px); }
.strategy-card-header { display:flex; align-items:flex-start; gap:14px; margin-bottom:12px; }
.strategy-icon { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1.3rem; flex-shrink:0; }
.strategy-card h4 { font-size:1rem; font-weight:800; color:var(--text-dark); margin-bottom:4px; }
.strategy-card p { font-size:0.88rem; color:var(--text-mid); line-height:1.75; }
.strategy-tip { background:rgba(79,209,197,0.15); border:1px solid rgba(13,148,136,0.25); border-radius:var(--radius-sm); padding:10px 14px; margin-top:12px; font-size:0.83rem; color:var(--primary-dark); font-weight:600; }
.strategy-tip i { margin-right:6px; }

.dos-donts { display:grid; grid-template-columns:1fr; gap:16px; }
.dos-list, .donts-list { background:white; border-radius:var(--radius-md); padding:22px; border:1px solid var(--border); }
.dos-list h4 { color:var(--success); font-weight:800; margin-bottom:14px; font-size:0.95rem; }
.donts-list h4 { color:var(--danger); font-weight:800; margin-bottom:14px; font-size:0.95rem; }
.check-item { display:flex; align-items:flex-start; gap:10px; margin-bottom:10px; font-size:0.87rem; color:var(--text-mid); line-height:1.6; }
.check-item i { margin-top:3px; flex-shrink:0; }

/* 3. 時間軸（Timeline）— 改為懸浮節點與毛玻璃軸線 */
.timeline-page-head {
  margin: 6px 0 14px;
  padding: 0 2px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.timeline-page-head h1 {
  margin: 0 0 4px;
  color: var(--text-dark);
  font-size: 1.28rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.timeline-page-head p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.86rem;
  line-height: 1.55;
}

.timeline-full {
  --tf-icon-size: 28px;
  position: relative;
  padding: 12px 0 20px;
  margin-top: 0;
  margin-bottom: 40px;
}

.timeline-full::before {
  content: '';
  position: absolute;
  left: 14px;
  top: calc(12px + var(--tf-icon-size) / 2);
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #cbd5e1, #e2e8f0 85%);
  border-radius: 4px;
  opacity: 0.85;
}

.tf-item { position: relative; margin-bottom: 40px; padding-left: 40px; width: 100%; display: block; gap: 0; }
.tf-item:last-child { margin-bottom: 0; }
.tf-item::before { display: none; }

.tf-icon-wrapper { 
  position: absolute; 
  left: 2px; 
  top: 0; 
  width: 28px; 
  height: 28px; 
  border-radius: 50%; 
  background: white; 
  border: 2px solid var(--border); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 2; 
  transition: all 0.3s ease; 
  color: var(--text-light); 
  font-size: 0.75rem; 
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.tf-item.past .tf-icon-wrapper { border-color: #94a3b8; background: #94a3b8; color: white; }
.tf-item.current .tf-icon-wrapper { border-color: #f59e0b; background: white; color: #d97706; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12); }
.tf-item.upcoming .tf-icon-wrapper { border-color: var(--border); background: var(--bg-light); }

.tf-card { 
  --tf-badge-icon: 0.95rem;
  --tf-badge-gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 1);
  padding: 24px; 
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08); 
  position: relative; 
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
  overflow: visible; 
}
.tf-item:hover .tf-card { transform: translateY(-3px); box-shadow: 0 16px 40px -12px rgba(0,0,0,0.12); }

.tf-card::before {
  display: none;
}

.tf-date-badge { display: inline-flex; align-items: center; gap: var(--tf-badge-gap); font-family: 'Space Mono', 'Noto Sans HK', sans-serif; font-size: 0.88rem; font-weight: 700; color: var(--text-mid); margin-bottom: 8px; padding: 6px 0; background: rgba(0, 0, 0, 0.04); border-radius: 10px; width: fit-content; letter-spacing: 0; }
.tf-item.past .tf-date-badge { color: var(--text-light); background: none; }
.tf-item.current .tf-date-badge { color: #d97706; background: none; }
.tf-item.upcoming .tf-date-badge { color: var(--text-mid); background: none; }
.tf-date-badge i { font-size: var(--tf-badge-icon); flex-shrink: 0; width: var(--tf-badge-icon); text-align: center; }

.tf-card > .tf-title,
.tf-card > .tf-desc { padding-left: calc(var(--tf-badge-icon) + var(--tf-badge-gap)); }

.tf-title { font-size: 1.15rem; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; line-height: 1.4; }
.tf-desc { font-size: 0.92rem; color: var(--text-mid); line-height: 1.6; }

.tf-warning { margin-top: 16px; padding: 16px; background: #fffbeb; border-radius: 12px; border: none; font-size: 0.85rem; color: #334155; display: flex; align-items: flex-start; gap: 10px; }
.tf-warning i { color: #f59e0b; margin-top: 2px; font-size: 1.1rem; }

.timeline-group-title { font-size: 1.25rem; font-weight: 800; color: var(--primary-dark); margin: 0 0 10px; display: inline-flex; align-items: center; gap: 8px; }
.timeline-group-title i { color: var(--primary); }

.past-timeline { margin-top: 0; }
.past-timeline .tf-card { background: var(--bg-light); border-color: transparent; box-shadow: none; opacity: 0.8; }
.past-timeline .tf-item:hover .tf-card { transform: none; box-shadow: none; border-color: transparent; }
.past-timeline .tf-title { color: var(--text-mid); }
.past-timeline .tf-desc { color: var(--text-light); }
.past-timeline .tf-date-badge { color: var(--text-light); }
.past-timeline .tf-icon-wrapper { border-color: var(--border); background: var(--bg-light); color: var(--text-light); }

@media (min-width: 768px) {
  .timeline-full::before { left: 50%; transform: translateX(-50%); }
  .tf-item { width: 50%; padding-left: 0; padding-right: 36px; }
  .tf-icon-wrapper { left: 100%; transform: translateX(-50%); }
  .tf-item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 36px; }
  .tf-item:nth-child(even) .tf-icon-wrapper { left: 0; }
}

.choice-framework { display:grid; grid-template-columns:1fr; gap:16px; }
.cf-card { background:white; border-radius:var(--radius-md); border:1px solid var(--border); padding:20px; text-align:center; }
.cf-num { font-size:2.5rem; font-weight:900; color:var(--primary); opacity:0.15; margin-bottom:8px; }
.cf-title { font-size:0.92rem; font-weight:800; color:var(--text-dark); margin-bottom:8px; }
.cf-desc { font-size:0.82rem; color:var(--text-mid); line-height:1.65; }

.faq-section { background:white; border-radius:var(--radius-lg); border:1px solid var(--border); overflow:hidden; }

/* ============================================================
   常見問題 (FAQ) 優化
   ============================================================ */
.faq-header {
  text-align: center;
  margin-bottom: 36px;
  padding-top: 12px;
}

.faq-header-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 16px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 10%, transparent),
    color-mix(in srgb, var(--primary) 4%, transparent)
  );
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  box-shadow:
    0 8px 20px color-mix(in srgb, var(--primary) 12%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.faq-header h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.faq-header p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 80%;
  margin: 0 auto;
}

.faq-section {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-section .accordion-item {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.faq-section .accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  border-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.faq-section .accordion-item.open {
  background: #fff;
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--primary) 10%, transparent);
}

.faq-section .accordion-header {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.faq-q-badge {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  font-family: 'Archivo Black', 'Space Mono', sans-serif;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 30%, transparent);
  margin-top: 1px;
}

.faq-q-text {
  flex: 1;
}

.faq-section .accordion-icon {
  margin-top: 2px;
  background: rgba(0,0,0,0.04);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-mid);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.faq-section .accordion-item:hover .accordion-icon {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--primary);
}

.faq-section .accordion-item.open .accordion-icon {
  background: var(--primary);
  color: white;
  transform: rotate(180deg);
  box-shadow: 0 4px 8px color-mix(in srgb, var(--primary) 25%, transparent);
}

.faq-section .accordion-content {
  padding: 0 24px 24px 70px; /* Align with text: 24px padding + 30px badge + 16px gap */
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  position: relative;
}

.faq-a-badge {
  position: absolute;
  left: 24px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  font-family: 'Archivo Black', 'Space Mono', sans-serif;
  transition: all 0.3s;
}

.faq-section .accordion-item.open .faq-a-badge {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

@media (max-width: 480px) {
  .faq-section .accordion-header {
    padding: 18px 16px;
    gap: 14px;
  }
  .faq-section .accordion-content {
    padding: 0 16px 20px 60px; /* 16 + 30 + 14 */
  }
  .faq-a-badge {
    left: 16px;
  }
  .faq-header-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }
  .faq-header h2 {
    font-size: 1.4rem;
  }
}

.priority-table { width:100%; border-collapse:collapse; }
.priority-table th { background:var(--primary); color:white; padding:12px 16px; text-align:left; font-size:0.83rem; font-weight:700; }
.priority-table td { padding:11px 16px; border-bottom:1px solid var(--border); font-size:0.87rem; color:var(--text-mid); }
.priority-table tr:hover td { background:var(--bg-light); }
.priority-table tr:last-child td { border-bottom:none; }
.rank-badge { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; font-weight:900; font-size:0.85rem; }
.rank-1 { background:#ffd700; color:#7a5c00; }
.rank-2 { background:#e8e8e8; color:#444; }
.rank-3 { background:#cd7f32; color:#fff; }
.rank-n { background:var(--bg-light); color:var(--text-light); }

.cf-card {
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cf-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cf-num {
  opacity: 0.2;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 640px) {
  .choice-framework { grid-template-columns: repeat(3, 1fr); }
  .dos-donts { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   升學資料
   ============================================================ */
.guide-main--resources {
  padding-top: 4px;
}

.guide-main--resources .guide-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.guide-main--resources .guide-section-title:not(:first-child) {
  margin-top: 24px;
}

.guide-main--resources .guide-resources {
  margin-bottom: 0;
}

.guide-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guide-resources .resource-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.guide-resources .resource-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.guide-resources .resource-thumb {
  width: 100%;
  min-height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
}

.guide-resources .resource-thumb img {
  display: block;
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.guide-resources .resource-thumb--yt-banner {
  min-height: 72px;
  padding: 0;
  overflow: hidden;
}

.guide-resources .resource-thumb--yt-banner img {
  width: 100%;
  max-width: none;
  max-height: none;
  height: 72px;
  object-fit: cover;
  object-position: center;
}

.guide-resources .resource-body {
  padding: 10px 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-resources .resource-type {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.guide-resources .resource-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 4px;
  flex: 1;
}

.guide-resources .resource-meta {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.guide-resources--platforms {
  grid-template-columns: 1fr;
  gap: 10px;
}

.guide-resources--platforms .resource-card--row {
  flex-direction: row;
  align-items: stretch;
}

.guide-resources--platforms .resource-thumb {
  width: 88px;
  min-height: 88px;
  border-bottom: none;
  border-right: 1px solid var(--border);
  padding: 12px;
  flex-shrink: 0;
}

.guide-resources--platforms .resource-thumb img {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}

.guide-resources--platforms .resource-body {
  justify-content: center;
  padding: 12px 14px;
}
