﻿/* ============================================================
   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.05em; line-height: 1.7; color: var(--iv2-slate); margin-top: var(--iv2-s-3); }

/* ============ HERO ============ */
.iv2-root .iv2-ex-hero { padding-block: var(--iv2-s-8) var(--iv2-s-7); background: linear-gradient(180deg, var(--iv2-surface) 0%, var(--iv2-canvas) 100%); border-bottom: 1px solid var(--iv2-hairline); }
.iv2-root .iv2-ex-hero .iv2-crumb { padding-bottom: var(--iv2-s-5); }
.iv2-root .iv2-hero-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-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--iv2-ink); max-width: 880px; margin-top: var(--iv2-s-3); word-break: break-word; }
.iv2-root .iv2-ex-hero h1 .iv2-em { color: var(--iv2-primary); }
.iv2-root .iv2-ex-hero .iv2-lead { color: var(--iv2-slate); margin-top: var(--iv2-s-4); font-size: 1.1em; line-height: 1.8; max-width: 660px; word-break: break-word; }

/* ============ 主要考試類別 ============ */
.iv2-root .iv2-ex-types-sec { padding-block: var(--iv2-s-7); }
.iv2-root .iv2-ex-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--iv2-s-5); margin-top: var(--iv2-s-6); }
@media (max-width: 760px) { .iv2-root .iv2-ex-grid { grid-template-columns: 1fr; } }

.iv2-root .iv2-exam-card { background: var(--iv2-canvas); border: 1px solid var(--iv2-hairline); border-radius: var(--iv2-r-lg); padding: var(--iv2-s-6); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; min-width: 0; }
.iv2-root .iv2-exam-card:hover { transform: translateY(-4px); box-shadow: var(--iv2-shadow-lg); border-color: transparent; }
.iv2-root .iv2-ec-head { display: flex; align-items: center; gap: var(--iv2-s-4); }
.iv2-root .iv2-ec-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 1.25em; }
.iv2-root .iv2-ec-title { min-width: 0; }
.iv2-root .iv2-ec-name { font-size: 1.3em; font-weight: 700; color: var(--iv2-ink); line-height: 1.25; word-break: break-word; }
.iv2-root .iv2-ec-type { font-size: 0.8em; color: var(--iv2-slate); margin-top: 3px; }
.iv2-root .iv2-ec-desc { color: var(--iv2-slate); margin-top: var(--iv2-s-4); line-height: 1.7; font-size: 0.92em; }
.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: 0.9em; color: var(--iv2-charcoal); line-height: 1.65; }
.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: 1px solid var(--iv2-hairline); border-radius: var(--iv2-r-lg); padding: var(--iv2-s-5); }
.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.75; font-size: 0.95em; }
.iv2-root .iv2-qa-body strong { color: var(--iv2-ink); font-weight: 600; }
.iv2-root .iv2-qa-body p { margin: 0; }
.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; }
