﻿/* ============================================================
   exam-v2.css — 考試資訊列表頁 exam.aspx 新版套版專用
   - 對應 01-3 原型 about-exam.html
   - 全部 class 加 iv2- 前綴,scope 在 .iv2-root 內(不污染 Bootstrap/其他頁)
   - 字體統一 Noto Sans Traditional Chinese(同 about-honors-v2 / about-story-v2)
   - 尺寸:.iv2-root 基準 17px,子元素用 em;clamp() 用 px
   - 中文文案全形標點;CSS 內一律半形
   - RWD 斷點:1024(wrap 90%)/ 900 / 760 / 600 / 560 / 460
   ============================================================ */

.iv2-root {
  --iv2-brand-navy: #0a1530;
  --iv2-brand-navy-mid: #1a2a52;
  --iv2-primary: #5645d4;
  --iv2-primary-pressed: #4534b3;
  --iv2-primary-deep: #3a2a99;
  --iv2-primary-soft: #ece9fb;
  --iv2-accent-red: #ff385c;
  --iv2-accent-amber: #f5d75e;
  --iv2-success: #1aae39;
  --iv2-warning: #dd5b00;
  --iv2-canvas: #ffffff;
  --iv2-surface: #f6f5f4;
  --iv2-surface-soft: #fafaf9;
  --iv2-hairline: #e5e3df;
  --iv2-hairline-soft: #ede9e4;
  --iv2-hairline-strong: #c8c4be;
  --iv2-ink: #1a1a1a;
  --iv2-charcoal: #37352f;
  --iv2-slate: #5d5b54;
  --iv2-steel: #787671;
  --iv2-muted: #bbb8b1;
  --iv2-tint-peach: #ffe8d4;
  --iv2-tint-mint: #d9f3e1;
  --iv2-tint-lavender: #e6e0f5;
  --iv2-tint-sky: #dcecfa;
  --iv2-tint-yellow: #fef7d6;
  --iv2-r-sm: 10px;
  --iv2-r-md: 14px;
  --iv2-r-lg: 20px;
  --iv2-r-xl: 28px;
  --iv2-r-pill: 999px;
  --iv2-s-2: 8px;
  --iv2-s-3: 12px;
  --iv2-s-4: 16px;
  --iv2-s-5: 24px;
  --iv2-s-6: 32px;
  --iv2-s-7: 48px;
  --iv2-s-8: 64px;
  --iv2-s-9: 96px;
  /* v2.11: 陰影 token 微提升,全公開頁一致,卡片更有浮起深度感 */
  --iv2-shadow-sm: 0 2px 5px rgba(15,23,48,0.07);
  --iv2-shadow-md: 0 6px 16px rgba(15,23,48,0.10);
  --iv2-shadow-lg: 0 16px 40px rgba(15,23,48,0.15);
  --iv2-shadow-xl: 0 24px 60px rgba(15,23,48,0.18);
  --iv2-font: 'Noto Sans Traditional Chinese', 'Noto Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', PingFangTC, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--iv2-font);
  font-size: 17px;
  color: var(--iv2-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.iv2-root * { box-sizing: border-box; }
.iv2-root img, .iv2-root svg { display: block; max-width: 100%; }
.iv2-root a { color: inherit; text-decoration: none; }
.iv2-root ul { padding: 0; margin: 0; list-style: none; }
.iv2-root h1, .iv2-root h2, .iv2-root h3, .iv2-root h4, .iv2-root p { margin: 0; }
.iv2-root button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.iv2-root dl, .iv2-root dt, .iv2-root dd { margin: 0; }

/* RWD 防溢位:本頁 body / nav / footer 一併套字體(同 about-honors-v2 規則) */
html, body { overflow-x: hidden; }
body,
body button,
body input,
body select,
body textarea {
  font-family: 'Noto Sans Traditional Chinese', 'Noto Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', PingFangTC, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============ 容器 / 共用 ============ */
/* 寬度占比:電腦 80% / 平板 90% / 手機 100% */
.iv2-root .iv2-wrap { width: 80%; max-width: none; margin-inline: auto; padding-inline: var(--iv2-s-5); }
@media (max-width: 1024px) { .iv2-root .iv2-wrap { width: 90%; } }
@media (max-width: 560px) { .iv2-root .iv2-wrap { width: 100%; padding-inline: 14px; } }

.iv2-root .iv2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: var(--iv2-r-pill); font-weight: 600; font-size: 0.95em; transition: all .15s; white-space: nowrap; border: none; cursor: pointer; font-family: inherit; }
.iv2-root .iv2-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iv2-root .iv2-btn-on-dark { background: #fff; color: var(--iv2-ink); }
.iv2-root .iv2-btn-on-dark:hover { background: var(--iv2-surface); }
.iv2-root .iv2-btn-outline-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.32); }
.iv2-root .iv2-btn-outline-dark:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* 麵包屑 */
.iv2-root .iv2-crumb { font-size: 0.85em; color: var(--iv2-slate); }
.iv2-root .iv2-crumb a:hover { color: var(--iv2-primary); }
.iv2-root .iv2-crumb .iv2-sep { margin: 0 8px; color: var(--iv2-muted); }

/* 區塊抬頭(eyebrow / h2 / lead) */
.iv2-root .iv2-eyebrow { display: inline-block; font-size: 0.78em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--iv2-primary); }
.iv2-root .iv2-ex-head { max-width: 680px; }
.iv2-root .iv2-ex-head h2 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--iv2-ink); margin-top: var(--iv2-s-3); }
.iv2-root .iv2-ex-head .iv2-lead { font-size: 1.2em; line-height: 1.78; color: var(--iv2-slate); margin-top: var(--iv2-s-3); }

/* HERO 改用全站共用 .iv2-hero(iv2-ui.css);舊 .iv2-ex-hero 已移除 */

/* ============ 主要考試類別 ============ */
.iv2-root .iv2-ex-types-sec { padding-block: var(--iv2-s-7); }
/* 考試分類 篩選頁籤 */
.iv2-root .iv2-ex-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--iv2-s-6); }
.iv2-root .iv2-ex-tab { font-family: inherit; cursor: pointer; padding: 9px 20px; border-radius: var(--iv2-r-pill); border: 1.5px solid var(--iv2-hairline); background: var(--iv2-canvas); color: var(--iv2-slate); font-size: 0.95em; font-weight: 700; line-height: 1.2; transition: background .18s, border-color .18s, color .18s, box-shadow .18s; }
.iv2-root .iv2-ex-tab:hover { border-color: var(--iv2-primary); color: var(--iv2-primary); }
.iv2-root .iv2-ex-tab.is-active { background: var(--iv2-primary); border-color: var(--iv2-primary); color: #fff; box-shadow: 0 6px 16px rgba(86,69,212,0.25); }
.iv2-root .iv2-ex-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--iv2-s-5); margin-top: var(--iv2-s-6); }
/* 頁籤存在時，縮短頁籤與卡片間距 */
.iv2-root .iv2-ex-tabs + .iv2-ex-grid { margin-top: var(--iv2-s-4); }
@media (max-width: 760px) { .iv2-root .iv2-ex-grid { grid-template-columns: 1fr; } }

.iv2-root .iv2-exam-card { background: var(--iv2-canvas); border: none; border-radius: var(--iv2-r-lg); padding: var(--iv2-s-6); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; min-width: 0; box-shadow: 0 1px 2px rgba(15,23,48,0.04), 0 10px 30px rgba(15,23,48,0.06); }
.iv2-root .iv2-exam-card:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(15,23,48,0.05), 0 22px 48px rgba(15,23,48,0.12); }
.iv2-root .iv2-ec-head { display: flex; align-items: center; gap: var(--iv2-s-4); }
.iv2-root .iv2-ec-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent); transition: transform .2s ease; }
.iv2-root .iv2-exam-card:hover .iv2-ec-ic { transform: scale(1.06) rotate(-2deg); }
.iv2-root .iv2-ec-ic svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.iv2-root .iv2-ec-title { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.iv2-root .iv2-ec-name { font-size: 1.3em; font-weight: 700; color: var(--iv2-ink); line-height: 1.25; word-break: break-word; }
/* 考試類別:標題上方的標籤 chip(實心紫+白字,呼應課程規劃班型卡標籤) */
.iv2-root .iv2-ec-type { display: inline-flex; align-items: center; margin: 0 0 7px; padding: 3px 11px; border-radius: var(--iv2-r-pill); font-size: 0.72em; font-weight: 700; letter-spacing: 0.03em; color: #fff; background: linear-gradient(135deg, var(--iv2-primary), var(--iv2-primary-deep)); box-shadow: 0 2px 6px rgba(15,23,48,0.16); }
.iv2-root .iv2-ec-type:empty { display: none; }
.iv2-root .iv2-ec-desc { color: var(--iv2-slate); margin-top: var(--iv2-s-4); line-height: 1.72; font-size: 1.1em; }
.iv2-root .iv2-ec-facts { margin-top: var(--iv2-s-4); border-top: 1px solid var(--iv2-hairline-soft); }
.iv2-root .iv2-ec-fact { display: grid; grid-template-columns: 88px 1fr; gap: var(--iv2-s-4); padding: var(--iv2-s-3) 0; border-bottom: 1px solid var(--iv2-hairline-soft); }
.iv2-root .iv2-ec-fact:last-child { border-bottom: none; }
.iv2-root .iv2-ec-fact dt { font-size: 0.88em; color: var(--iv2-steel); font-weight: 700; }
.iv2-root .iv2-ec-fact dd { font-size: 0.88em; color: var(--iv2-charcoal); line-height: 1.6; word-break: break-word; }
.iv2-root .iv2-ec-more { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--iv2-s-4); color: var(--iv2-primary); font-weight: 700; font-size: 0.88em; }
.iv2-root .iv2-ec-more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.iv2-root .iv2-exam-card:hover .iv2-ec-more svg { transform: translateX(3px); }

.iv2-root .iv2-ex-loading { padding: var(--iv2-s-7); text-align: center; color: var(--iv2-muted); font-size: 0.9em; }
.iv2-root .iv2-ex-empty { padding: var(--iv2-s-7); text-align: center; color: var(--iv2-slate); font-size: 0.95em; }

/* Notion 風 callout(info) */
.iv2-root .iv2-callout { display: flex; gap: var(--iv2-s-3); padding: var(--iv2-s-4) var(--iv2-s-5); margin-top: var(--iv2-s-6); border-radius: var(--iv2-r-md); border-left: 4px solid var(--iv2-hairline-strong); background: var(--iv2-surface-soft); }
.iv2-root .iv2-callout-info { background: var(--iv2-tint-sky); border-left-color: #0075de; }
.iv2-root .iv2-co-icon { font-size: 20px; flex-shrink: 0; line-height: 1.2; font-weight: 700; }
.iv2-root .iv2-callout p { margin: 0; font-size: 1.12em; color: var(--iv2-charcoal); line-height: 1.72; }
.iv2-root .iv2-callout strong { color: var(--iv2-ink); font-weight: 700; }

/* ============ 年度考程 ============ */
.iv2-root .iv2-ex-cal-sec { padding-block: var(--iv2-s-7); background: var(--iv2-surface-soft); border-block: 1px solid var(--iv2-hairline-soft); }
.iv2-root .iv2-ex-cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--iv2-s-4); margin-top: var(--iv2-s-6); }
@media (max-width: 760px) { .iv2-root .iv2-ex-cal { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .iv2-root .iv2-ex-cal { grid-template-columns: 1fr; } }
.iv2-root .iv2-cal-step { background: var(--iv2-canvas); border: none; border-radius: var(--iv2-r-lg); padding: var(--iv2-s-5); box-shadow: 0 1px 2px rgba(15,23,48,0.04), 0 10px 30px rgba(15,23,48,0.06); }
.iv2-root .iv2-cs-no { width: 36px; height: 36px; border-radius: 50%; background: var(--iv2-primary-soft); color: var(--iv2-primary-deep); display: grid; place-items: center; font-weight: 700; }
.iv2-root .iv2-cs-month { font-size: 0.78em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--iv2-primary); margin-top: var(--iv2-s-3); }
.iv2-root .iv2-cs-title { font-size: 1.05em; font-weight: 600; color: var(--iv2-ink); margin-top: 4px; }
.iv2-root .iv2-cs-desc { color: var(--iv2-slate); font-size: 0.88em; margin-top: 8px; line-height: 1.6; }
.iv2-root .iv2-ex-note { font-size: 0.85em; color: var(--iv2-slate); margin-top: var(--iv2-s-4); }

/* ============ FAQ ============ */
.iv2-root .iv2-ex-faq-sec { padding-block: var(--iv2-s-7); }
.iv2-root .iv2-ex-faq-head { max-width: 720px; margin: 0 auto; text-align: center; }
.iv2-root .iv2-ex-faq-head h2 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem); font-weight: 700; line-height: 1.25; color: var(--iv2-ink); margin-top: var(--iv2-s-3); }
.iv2-root .iv2-qa { max-width: 720px; margin: var(--iv2-s-6) auto 0; border-top: 1px solid var(--iv2-hairline); }
.iv2-root .iv2-qa details { border-bottom: 1px solid var(--iv2-hairline); }
.iv2-root .iv2-qa summary { padding: var(--iv2-s-5) 0; font-weight: 600; color: var(--iv2-ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--iv2-s-4); font-size: 1.05em; }
.iv2-root .iv2-qa summary::-webkit-details-marker { display: none; }
.iv2-root .iv2-qa summary::after { content: "+"; color: var(--iv2-primary); font-size: 1.5em; line-height: 1; transition: transform .2s ease; flex-shrink: 0; }
.iv2-root .iv2-qa details[open] summary::after { transform: rotate(45deg); }
.iv2-root .iv2-qa-body { padding-bottom: var(--iv2-s-5); color: var(--iv2-slate); line-height: 1.85; font-size: 1.15em; }
.iv2-root .iv2-qa-body strong { color: var(--iv2-ink); font-weight: 600; }
.iv2-root .iv2-qa-body p { margin: 0; font-size: inherit; }
.iv2-root .iv2-qa-body p + p { margin-top: var(--iv2-s-3); }
.iv2-root .iv2-qa-body a { color: var(--iv2-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============ CTA ============ */
.iv2-root .iv2-ex-cta-sec { padding-block: var(--iv2-s-8); }
.iv2-root .iv2-ex-cta { background: linear-gradient(135deg, var(--iv2-primary-deep) 0%, var(--iv2-brand-navy) 80%); color: #fff; border-radius: var(--iv2-r-xl); padding: clamp(40px, 5vw, 72px); text-align: center; position: relative; overflow: hidden; }
.iv2-root .iv2-ex-cta-eye { display: inline-block; font-size: 0.78em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--iv2-accent-amber); }
.iv2-root .iv2-ex-cta h2 { color: #fff; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem); font-weight: 700; line-height: 1.25; margin-top: var(--iv2-s-3); word-break: break-word; }
.iv2-root .iv2-ex-cta p { color: rgba(255,255,255,0.8); margin-top: var(--iv2-s-3); max-width: 520px; margin-inline: auto; line-height: 1.7; }
.iv2-root .iv2-ex-cta-btns { display: flex; gap: var(--iv2-s-3); justify-content: center; margin-top: var(--iv2-s-6); flex-wrap: wrap; }

/* ============ 免責聲明(統一加註,置頂明顯處) ============ */
.iv2-root .iv2-ex-disclaimer-sec { padding-block: var(--iv2-s-6) 0; }
.iv2-root .iv2-ex-disclaimer { display: flex; gap: var(--iv2-s-3); align-items: flex-start; max-width: 980px; margin: 0 auto; padding: var(--iv2-s-4) var(--iv2-s-5); border: 1px solid #f0c84a; border-left: 5px solid var(--iv2-accent-amber); border-radius: var(--iv2-r-lg, 12px); background: #fff9e6; color: var(--iv2-ink); font-size: 1.25em; line-height: 1.9; box-shadow: 0 2px 10px rgba(176,137,0,0.08); }
.iv2-root .iv2-ex-disclaimer-ic { flex-shrink: 0; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--iv2-accent-amber); color: #5a4300; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.95em; line-height: 1; }
.iv2-root .iv2-ex-disclaimer p { margin: 0; font-size: inherit; }
.iv2-root .iv2-ex-disclaimer strong { color: #8a5a00; }
