/* Akira iPAS AI 應用規劃師 考古題考證地圖 — 設計語言沿用 AKIRAI／AKIRAS（膠囊按鈕、圓形節點、流動虛線），主色配合 IPASC 首頁的藍紫色 */
:root {
  --bg: #f5f5f5;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --line: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);
  --header-grad: linear-gradient(90deg, #4338ca, #667eea, #764ba2);
  --tab-active: linear-gradient(135deg, #667eea, #764ba2);
  --cta: linear-gradient(135deg, #0d7a6a, #14b8a6);
  --heat: #F97316;
  --header-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', 'Microsoft JhengHei', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-text-size-adjust: 100%; }
a { color: #0369a1; }
button { font-family: inherit; }
.hidden { display: none !important; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-grad); box-shadow: 0 2px 10px var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); padding: 8px 20px; }
.header-side { display: flex; align-items: center; gap: 8px; flex: 1 1 0; }
.header-right { justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: 0 1 auto; min-width: 0; }
.brand-shield { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-title { font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.brand-tag { display: inline-block; background: #fde68a; color: #4338ca; font-size: .78rem; font-weight: 800; padding: 1px 8px; border-radius: 6px; margin-right: 8px; transform: rotate(-4deg) translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.brand-sub { font-size: .76rem; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid rgba(255,255,255,.55); border-radius: 20px; padding: 7px 14px; font-size: .88rem; font-weight: 700; color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.14); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.hbtn:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,.22); }
.hbtn:active { transform: translateY(0); }
.hbtn-ai { background: linear-gradient(135deg, #0d7a6a, #14b8a6); }
.hbtn-heat { background: rgba(255,255,255,.2); }
.hbtn-heat::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fde68a; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.hbtn-heat[aria-pressed="true"] { background: linear-gradient(135deg, #F97316, #EA580C); border-color: #fff; }
.hbtn-heat[aria-pressed="true"]::before { background: #fff; }
.hbtn-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: #0369a1; }

.search-pop { position: absolute; right: 20px; top: calc(100% + 6px); width: min(420px, calc(100vw - 32px)); background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 10px; z-index: 60; }
.search-pop input { width: 100%; border: 2px solid #bae6fd; border-radius: 20px; padding: 9px 16px; font-size: .95rem; outline: none; }
.search-pop input:focus { border-color: #0EA5E9; }
.search-results { max-height: 60vh; overflow-y: auto; margin-top: 6px; }
.sr-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: var(--text); }
.sr-item:hover, .sr-item.active { background: #f0f9ff; }
.sr-item b { font-size: .95rem; }
.sr-item .sr-meta { display: block; font-size: .75rem; color: var(--text-light); }
.sr-empty { padding: 10px; color: var(--text-light); font-size: .88rem; }

/* ===== Tabs ===== */
.tab-bar { display: flex; justify-content: center; gap: 8px; padding: 12px 16px 0; background: var(--white); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-btn { position: relative; border: 0; border-radius: 12px 12px 0 0; padding: 9px 18px 8px; background: #eef2f6; color: #475467; font-size: 1rem; font-weight: 800; cursor: pointer; white-space: nowrap; transition: background .2s ease, color .2s ease, transform .2s ease; }
.tab-btn:hover { background: #e0f2fe; color: #0369a1; }
.tab-btn .lv { display: inline-block; font-size: .68rem; font-weight: 800; padding: 1px 6px; border-radius: 8px; margin-right: 6px; vertical-align: 2px; background: #fff; color: #64748b; }
.tab-btn .lv.d1 { color: #2563eb; }
.tab-btn .lv.d2 { color: #7c3aed; }
.tab-btn .lv.d3 { color: #ea580c; }
.tab-btn .lv.d4 { color: #059669; }
.tab-btn .lv.d5 { color: #dc2626; }
.tab-btn.active { background: var(--tab-active); color: #fff; box-shadow: 0 -2px 10px rgba(236,114,17,.25); }
.tab-btn.active .lv { background: rgba(255,255,255,.25); color: #fff; }

.mobile-bar { display: none; gap: 8px; padding: 10px 12px; background: var(--white); border-bottom: 1px solid var(--line); }
.mobile-bar select { flex: 1 1 0; min-width: 0; font-size: .95rem; padding: 8px 10px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; color: var(--text); }

.sub-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 16px; }
.pill { border: 0; border-radius: 20px; padding: 7px 15px; font-size: .9rem; font-weight: 700; color: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.12); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,.18); }
.pill .w { font-size: .72rem; opacity: .9; margin-left: 4px; font-weight: 600; }
.pill.all { background: #64748b; }

/* ===== Map ===== */
.map-wrap { position: relative; }
.map { width: 100%; height: 640px; background: var(--bg); overflow: hidden; cursor: grab; touch-action: none; }
.map:active { cursor: grabbing; }
.map svg { display: block; }
.region-rect { fill-opacity: .09; stroke-opacity: .28; stroke-width: 1.5; }
.region-title { font-size: 16px; font-weight: 800; }
.region-weight { font-size: 12px; font-weight: 700; opacity: .85; }
.link { fill: none; stroke: #94a3b8; stroke-width: 1.6; stroke-dasharray: 10 5; animation: flow 1.4s linear infinite; }
.link.chain { stroke: #7c3aed; stroke-width: 2.2; stroke-dasharray: none; animation: pulse 2.4s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -15; } }
@keyframes pulse { 0%, 100% { stroke-opacity: .45; } 50% { stroke-opacity: 1; } }
.node { cursor: pointer; }
.node circle.dot { stroke: #fff; stroke-width: 2.5; transition: r .2s ease; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.node:hover circle.dot { filter: drop-shadow(0 6px 10px rgba(0,0,0,.28)); }
.node text.lbl { font-size: 12px; fill: #334155; font-weight: 600; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.node.sec text.lbl { font-size: 12.5px; font-weight: 800; }
.node text.ico { fill: #fff; font-size: 15px; font-weight: 800; pointer-events: none; }
.node text.check { fill: #fff; font-size: 16px; font-weight: 900; pointer-events: none; display: none; }
.node.done text.check { display: block; }
.node.done text.ico { display: none; }
.node.done circle.dot { stroke: #22c55e; stroke-width: 3.5; }
.node .badge { display: none; pointer-events: none; }
.heat-on .node .badge { display: block; }
.badge circle { fill: var(--heat); stroke: #fff; stroke-width: 2; }
.badge text { fill: #fff; font-size: 11px; font-weight: 800; }
.heat-on .node.cold { opacity: .38; }
.node.hit circle.dot { animation: glow 1.2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 2px #facc15); } 50% { filter: drop-shadow(0 0 12px #facc15) drop-shadow(0 0 4px #f59e0b); } }

.map-tools { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.map-tools button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #334155; font-size: 1.15rem; font-weight: 800; cursor: pointer; box-shadow: 0 3px 10px var(--shadow); transition: transform .2s ease; }
.map-tools button:hover { transform: translateY(-2px); }
.progress-chip { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.95); border-radius: 20px; padding: 6px 14px; font-size: .82rem; font-weight: 700; color: #475467; box-shadow: 0 3px 10px var(--shadow); }
.progress-chip .bar { display: inline-block; width: 80px; height: 7px; border-radius: 4px; background: #e2e8f0; margin-left: 8px; vertical-align: 1px; overflow: hidden; }
.progress-chip .bar i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.heat-legend { position: absolute; left: 16px; bottom: 16px; max-width: min(340px, calc(100% - 84px)); background: rgba(255,255,255,.96); border-radius: 14px; padding: 10px 14px; font-size: .8rem; color: #475467; box-shadow: 0 3px 10px var(--shadow); border-left: 4px solid var(--heat); }
.heat-legend b { color: #c2410c; }

.tooltip { position: fixed; z-index: 80; max-width: 280px; background: rgba(15,23,42,.92); color: #fff; font-size: .82rem; line-height: 1.5; padding: 8px 12px; border-radius: 10px; pointer-events: none; transform: translate(-50%, -100%); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.tooltip b { color: #7dd3fc; }

/* ===== Modal ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { position: relative; background: #fff; border-radius: 20px; box-shadow: 0 8px 32px rgba(0,0,0,.3); width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; transform: scale(.92); transition: transform .3s ease; }
.modal-overlay.open .modal { transform: scale(1); }
.modal-close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1f5f9; font-size: 1.3rem; cursor: pointer; color: #334155; z-index: 2; }
.modal-close:hover { background: #e2e8f0; }
.modal-body { overflow-y: auto; padding: 28px 32px 26px; -webkit-overflow-scrolling: touch; }
.p-crumb { font-size: .78rem; color: var(--text-light); margin-bottom: 4px; padding-right: 40px; }
.p-crumb .lvchip { display: inline-block; padding: 1px 8px; border-radius: 8px; font-weight: 800; margin-right: 6px; color: #fff; }
.p-title { font-size: 1.5rem; font-weight: 800; margin: 0; line-height: 1.35; padding-right: 40px; }
.p-en { color: var(--text-light); font-size: .9rem; margin: 2px 0 14px; }
.p-desc { font-size: 1.02rem; color: #1e293b; margin: 0 0 16px; }
.p-sec { margin: 18px 0 0; padding: 12px 16px; border-left: 3px solid var(--c, #0EA5E9); background: #f8fafc; border-radius: 0 12px 12px 0; }
.p-sec h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; color: #0f172a; }
.p-sec p { margin: 0; }
.p-sec ul { margin: 0; padding: 0; list-style: none; }
.p-sec li { position: relative; padding-left: 16px; margin: 5px 0; }
.p-sec li::before { content: '•'; position: absolute; left: 2px; color: var(--c, #0EA5E9); font-weight: 900; }
.p-sec.analogy { background: #fffbeb; border-left-color: #F59E0B; }
.p-sec.exam { background: #eff6ff; border-left-color: #3B82F6; }
.p-sec.confuse { background: #fdf2f8; border-left-color: #EC4899; }
.heat-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 4px 0 6px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.heat-card .hc-num { font-size: 1.8rem; font-weight: 900; color: #c2410c; line-height: 1; }
.heat-card .hc-lbl { font-size: .78rem; color: #7c2d12; }
.heat-card .hc-note { flex-basis: 100%; font-size: .74rem; color: #5b21b6; }
.heat-card svg { display: block; }
.heat-card.none { background: #f1f5f9; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { border: 1.5px solid #cbd5e1; background: #fff; border-radius: 16px; padding: 4px 12px; font-size: .85rem; cursor: pointer; color: #334155; transition: transform .2s ease, border-color .2s ease; text-decoration: none; }
.chip:hover { transform: translateY(-2px); border-color: #0EA5E9; color: #0369a1; }
.chip .tabname { color: var(--text-light); font-size: .72rem; margin-left: 4px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.act { border: 0; border-radius: 20px; padding: 9px 18px; font-size: .92rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: transform .2s ease, box-shadow .2s ease; }
.act:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,.18); }
.act.primary { background: var(--cta); color: #fff; }
.act.done { background: #dcfce7; color: #166534; }
.act.todo { background: #f1f5f9; color: #334155; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.p-sec .rank li { display: flex; align-items: center; gap: 10px; padding: 6px 0; margin: 0; border-bottom: 1px dashed #e2e8f0; }
.p-sec .rank li::before { position: static; counter-increment: r; content: counter(r); width: 24px; height: 24px; flex: none; border-radius: 50%; background: #fed7aa; color: #5b21b6; font-size: .78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.p-sec .rank li:nth-child(-n+3)::before { background: #F97316; color: #fff; }
.rank .rk-name { flex: 1 1 auto; min-width: 0; }
.rank .rk-name button { border: 0; background: none; padding: 0; color: #0369a1; font-weight: 700; cursor: pointer; font-size: .95rem; text-align: left; }
.rank .rk-name small { display: block; color: var(--text-light); font-size: .74rem; }
.rank .rk-bar { width: 90px; height: 8px; border-radius: 4px; background: #f1f5f9; flex: none; overflow: hidden; }
.rank .rk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FDBA74, #F97316); }
.rank .rk-n { width: 42px; text-align: right; font-weight: 800; color: #c2410c; font-size: .9rem; flex: none; }
.cf-group h4 { margin: 14px 0 4px; font-size: .92rem; color: #0f172a; }
.cf-item { margin: 4px 0; font-size: .92rem; }
.cf-item button { border: 0; background: none; padding: 0; color: #0369a1; cursor: pointer; font-size: .78rem; margin-left: 4px; }
.bank-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bank-table th, .bank-table td { padding: 6px 8px; border-bottom: 1px solid #e2e8f0; text-align: center; }
.bank-table th { background: #f1f5f9; }

/* ===== Static index ===== */
.all-topics { background: #fff; border-top: 1px solid var(--line); }
.all-inner { max-width: 1100px; margin: 0 auto; padding: 36px 20px 20px; }
.all-inner h2 { margin: 0 0 6px; font-size: 1.4rem; }
.all-lead { color: var(--text-light); margin: 0 0 18px; }
.idx-tab { border: 1px solid var(--line); border-radius: 16px; margin: 12px 0; background: #fff; overflow: hidden; }
.idx-tab > summary { cursor: pointer; padding: 14px 18px; font-weight: 800; font-size: 1.05rem; background: #f8fafc; list-style: none; }
.idx-tab > summary::-webkit-details-marker { display: none; }
.idx-tab > summary::after { content: '＋'; float: right; color: #94a3b8; }
.idx-tab[open] > summary::after { content: '－'; }
.idx-body { padding: 4px 18px 16px; columns: 2 320px; column-gap: 28px; }
.idx-sec { break-inside: avoid; margin: 12px 0; }
.idx-sec h3 { font-size: .98rem; margin: 0 0 4px; border-left: 4px solid var(--c); padding-left: 8px; }
.idx-sec h3 small { color: var(--text-light); font-weight: 600; margin-left: 6px; }
.idx-sec ul { margin: 0; padding-left: 18px; }
.idx-sec li { font-size: .88rem; margin: 3px 0; color: #475467; }
.idx-sec li a { font-weight: 700; text-decoration: none; }
.idx-sec li a:hover { text-decoration: underline; }
.site-footer { max-width: 1100px; margin: 0 auto; padding: 18px 20px 40px; font-size: .8rem; color: var(--text-light); }
.site-footer p { margin: 6px 0; }

/* ===== RWD ===== */
@media (max-width: 1023px) {
  .brand-title { font-size: 1.1rem; }
  .hbtn { padding: 6px 11px; font-size: .8rem; }
  .brand-sub { display: none; }
}
@media (max-width: 767px) {
  :root { --header-h: auto; }
  .header-inner { flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .header-side { display: contents; }
  .brand { order: 1; flex: 1 1 calc(100% - 52px); }
  .brand-shield { width: 30px; height: 30px; }
  .brand-title { font-size: 1rem; white-space: normal; line-height: 1.3; }
  .brand-tag { font-size: .7rem; }
  #search-btn { order: 2; flex: none; }
  .hbtn-heat { order: 3; }
  .hbtn-ai { order: 5; }
  .hbtn { font-size: .76rem; padding: 5px 10px; flex: 1 1 0; }
  .hbtn-icon { width: 36px; height: 36px; flex: none; }
  .search-pop { right: 12px; left: 12px; width: auto; }
  .tab-bar { display: none; }
  .mobile-bar { display: flex; }
  .sub-nav { display: none; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; max-height: 86vh; max-height: calc(100dvh - 24px); width: 100%; }
  .modal::before { content: ''; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #cbd5e1; }
  .modal-close { width: 44px; height: 44px; right: 10px; top: 10px; font-size: 1.7rem; line-height: 1; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 2px 10px rgba(15,23,42,.22); }
  .modal-body { padding: 22px 18px 24px; }
  .p-title { font-size: 1.25rem; }
  .heat-legend { font-size: .74rem; }
  .progress-chip { font-size: .74rem; }
  .progress-chip .bar { width: 50px; }
  .rank .rk-bar { width: 50px; }
}

/* ===== 服務地圖：其他雲的對應服務 ===== */
.p-sec.peers { background: #f5f3ff; border-left-color: #7c3aed; }
.peer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.peer-cloud { display: inline-block; min-width: 6.5em; font-size: .78rem; font-weight: 800; color: #5b21b6; }
.vchip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid #cbd5e1; border-radius: 16px; padding: 4px 12px; font-size: .88rem; color: #334155; }
a.vchip { text-decoration: none; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
a.vchip:hover { transform: translateY(-2px); border-color: #7c3aed; color: #5b21b6; box-shadow: 0 4px 10px rgba(124,58,237,.18); }
a.vchip .ext { font-size: .72rem; color: #94a3b8; }
.v-note { font-size: .78rem; color: #475467; margin-top: 8px !important; }

/* ===== 題型分布 ===== */
.type-bars { display: flex; flex-direction: column; gap: 4px; min-width: 200px; flex: 1 1 220px; }
.type-bars div { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: #7c2d12; }
.type-bars span.t { width: 5.5em; flex: none; }
.type-bars span.b { flex: 1 1 auto; height: 7px; border-radius: 4px; background: rgba(249,115,22,.15); overflow: hidden; }
.type-bars span.b i { display: block; height: 100%; background: #F97316; }
.type-bars span.v { width: 2em; text-align: right; font-weight: 800; flex: none; }
.bank-table td:first-child, .bank-table th:first-child { text-align: left; }
.bank-table small { display: block; color: var(--text-light); font-size: .74rem; }
.bank-table tr.grp td { background: #fff7ed; }
.mini-bar { display: block; height: 6px; border-radius: 3px; background: #ffedd5; margin-top: 4px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: #7c3aed; }

/* ===== 資安證照：考試資訊表 ===== */
.facts { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: .9rem; border-radius: 12px; overflow: hidden; background: #fffbeb; }
.facts th, .facts td { padding: 8px 12px; border-bottom: 1px solid #fde68a; text-align: left; vertical-align: top; }
.facts th { width: 7.5em; color: #92400e; font-weight: 800; white-space: nowrap; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
@media (max-width: 767px) { .facts th { width: 1%; padding-right: 8px; } .facts th, .facts td { padding-left: 10px; } }

/* ===== 互動教學入口 ===== */
.node path.play { fill: #fff; pointer-events: none; }
.node.done path.play { display: none; }
.node.has-lesson circle.dot { stroke: #fde68a; stroke-width: 3; }
.lesson-btn { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 18px; border-radius: 16px; background: linear-gradient(135deg, #0EA5E9, #6366F1); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.02rem; box-shadow: 0 6px 16px rgba(99,102,241,.28); transition: transform .2s ease, box-shadow .2s ease; }
.lesson-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(99,102,241,.36); }
.lesson-btn .lb-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.lesson-btn small { display: block; font-size: .72rem; font-weight: 700; opacity: .9; letter-spacing: .06em; }

/* ===== Akira 介紹分頁（內容與樣式沿用 AKIRAI 的 Akira 分頁） ===== */
.akira-profile { padding: 40px; overflow-y: auto; -webkit-overflow-scrolling: touch; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.akira-profile[hidden] { display: none; }
.akira-intro { max-width: 900px; margin: 0 auto 40px; text-align: center; }
.akira-intro h2 { font-size: 2.5rem; margin: 0 0 20px; text-shadow: 2px 2px 4px rgba(0,0,0,.2); }
.akira-intro p { font-size: 1.1rem; line-height: 1.8; margin: 0 0 15px; }
.akira-intro .highlight { font-size: 1.3rem; font-weight: bold; color: #ffd700; margin: 20px 0; }
.akira-intro .email { font-size: 1rem; margin-top: 20px; }
.akira-intro .email a { color: #ffd700; text-decoration: none; }
.akira-intro .email a:hover { text-decoration: underline; }
.akira-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.akira-section { background: rgba(255,255,255,.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 25px; box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.akira-section h3 { font-size: 1.3rem; margin: 0 0 15px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.3); }
.akira-section ul { list-style: none; padding: 0; margin: 0; }
.akira-section li { padding: 8px 0; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.akira-section li:last-child { border-bottom: none; }
.akira-section li strong { color: #ffd700; }
.cert-group { margin-bottom: 16px; }
.cert-group:last-child { margin-bottom: 0; }
.cert-vendor { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffd700; background: rgba(255,215,0,.14); border: 1px solid rgba(255,215,0,.35); border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.cert-group ul { list-style: none; padding: 0; margin: 0; }
.cert-group li { padding: 6px 0 6px 14px; font-size: .9rem; line-height: 1.55; border-bottom: 1px solid rgba(255,255,255,.1); position: relative; }
.cert-group li::before { content: ''; position: absolute; left: 2px; top: .95em; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); }
.cert-group li:last-child { border-bottom: 0; }
.cert-note { display: block; font-style: normal; font-size: .72rem; opacity: .62; letter-spacing: .02em; margin-top: 1px; }
body.is-profile .map-wrap, body.is-profile .sub-nav, body.is-profile #m-sec, body.is-profile #heat-btn, body.is-profile .heat-legend { display: none !important; }
@media (max-width: 767px) {
  .akira-profile { padding: 20px; }
  .akira-intro h2 { font-size: 1.8rem; }
  .akira-intro p { font-size: 1rem; }
  .akira-sections { grid-template-columns: 1fr; }
}

/* ===== 節點題目（樣式沿用 AKIRAI 的 iPAS 考題卡片） ===== */
.heat-card .hc-jump { border: 0; border-radius: 20px; padding: 7px 16px; font-size: .86rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #F97316, #EA580C); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.14); }
.heat-card .hc-jump:hover { filter: brightness(1.06); }
.p-sec.quiz { background: #f8f7ff; border-left-color: #764ba2; scroll-margin-top: 8px; }
.qz-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.qz-top h3 { margin: 0; }
.qz-lang { display: inline-flex; background: #e9e5f5; border-radius: 20px; padding: 3px; }
.qz-lang button { border: 0; background: none; border-radius: 16px; padding: 4px 12px; font-size: .8rem; font-weight: 700; color: #5b4a8a; cursor: pointer; }
.qz-lang button.on { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.qz-stat { margin: 8px 0 2px !important; font-size: .86rem; font-weight: 700; color: #4c1d95; }
.qz-note { margin: 0 0 12px !important; font-size: .76rem; color: #6b7280; }
.qz-loading { margin: 18px 0 0; padding: 12px; border-radius: 10px; background: #f5f6fa; border: 1px dashed #c9cede; color: #666; font-size: .88rem; text-align: center; }
.qz-sub-title { margin: 16px 0 8px !important; font-size: .86rem; font-weight: 700; color: #475467; }
.qz-grp { margin: 8px 0; border: 1.5px solid #ddd6fe; border-radius: 10px; background: #fff; }
.qz-grp > summary { cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; list-style: none; }
.qz-grp > summary::-webkit-details-marker { display: none; }
.qz-grp > summary::before { content: '▶'; font-size: .7rem; color: #764ba2; transition: transform .2s ease; }
.qz-grp[open] > summary::before { transform: rotate(90deg); }
.qz-gstat { font-size: .76rem; color: #6b7280; }
.qz-grp > .qz-list { padding: 0 12px 12px; }

.qz-card { margin: 0 0 22px; border: 1.5px solid #ddd; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.qz-card:last-child { margin-bottom: 4px; }
.qz-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding: 8px 14px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; font-size: .88rem; font-weight: 700; }
.qz-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .74rem; font-weight: 500; opacity: .95; }
.qz-type { background: rgba(255,255,255,.22); border-radius: 8px; padding: 1px 7px; font-weight: 700; }
.qz-prev { border-radius: 8px; padding: 1px 7px; font-weight: 700; }
.qz-prev.ok { background: #dcfce7; color: #166534; }
.qz-prev.bad { background: #fee2e2; color: #991b1b; }
.qz-q { padding: 12px 14px; background: #f8f9fc; font-weight: 500; line-height: 1.7; }
.qz-body { padding: 10px 12px 4px; }
.qz-tip { font-size: .8rem; color: #92400e; background: #fffbeb; border-left: 3px solid #f59e0b; border-radius: 6px; padding: 6px 10px; margin: 0 0 8px; }
.qz-opts { display: flex; flex-direction: column; gap: 8px; }
.qz-opt { display: flex; align-items: flex-start; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border: 2px solid #e5e7eb; border-radius: 8px; background: #f8f9fc; color: #444; font-size: .93rem; line-height: 1.5; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.qz-opt:hover:not(:disabled) { border-color: #667eea; background: rgba(102,126,234,.1); }
.qz-opt:disabled { cursor: default; }
.qz-opt.selected { border-color: #667eea; background: rgba(102,126,234,.15); }
.qz-opt.correct { border-color: #22c55e; background: rgba(56,239,125,.15); }
.qz-opt.wrong { border-color: #ff6b6b; background: rgba(255,107,107,.15); }
.qz-radio { width: 20px; height: 20px; min-width: 20px; margin-top: 1px; border: 2px solid #cbd5e1; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .2s ease; }
.qz-opts.multi .qz-radio { border-radius: 5px; }
.qz-radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0; }
.qz-opts.multi .qz-radio::after { content: '✓'; width: auto; height: auto; background: none; color: #fff; font-size: .72rem; font-weight: 900; line-height: 1; }
.qz-opt.selected .qz-radio { border-color: #667eea; background: #667eea; }
.qz-opt.correct .qz-radio { border-color: #22c55e; background: #22c55e; }
.qz-opt.wrong .qz-radio { border-color: #ff6b6b; background: #ff6b6b; }
.qz-opt.selected .qz-radio::after, .qz-opt.correct .qz-radio::after, .qz-opt.wrong .qz-radio::after { opacity: 1; }
.qz-let { font-weight: 800; color: #667eea; min-width: 18px; }
.qz-opt.correct .qz-let { color: #16a34a; }
.qz-opt.wrong .qz-let { color: #e74c3c; }
.qz-txt { flex: 1; }
.qz-subs { display: flex; flex-direction: column; gap: 10px; }
.qz-sub { padding: 10px 12px; border: 2px solid #e5e7eb; border-radius: 8px; background: #f8f9fc; }
.qz-sub.ok { border-color: #22c55e; background: rgba(56,239,125,.1); }
.qz-sub.bad { border-color: #ff6b6b; background: rgba(255,107,107,.08); }
.qz-subt { white-space: pre-wrap; line-height: 1.6; font-size: .93rem; }
.qz-blank { display: inline-block; color: #667eea; font-weight: 800; letter-spacing: -1px; }
.qz-sel { display: block; width: 100%; max-width: 100%; margin-top: 8px; padding: 8px 10px; font-size: .9rem; border: 1.5px solid #c7d2fe; border-radius: 8px; background: #fff; color: #333; }
.qz-sel:disabled { opacity: 1; background: #f1f5f9; color: #333; }
.qz-yn { display: flex; gap: 8px; margin-top: 8px; }
.qz-ynb { flex: 0 0 auto; min-width: 72px; padding: 6px 16px; border: 2px solid #c7d2fe; border-radius: 18px; background: #fff; color: #4338ca; font-weight: 800; font-size: .88rem; cursor: pointer; }
.qz-ynb.selected { background: #667eea; border-color: #667eea; color: #fff; }
.qz-ynb.correct { background: #22c55e; border-color: #22c55e; color: #fff; }
.qz-ynb.wrong { background: #ff6b6b; border-color: #ff6b6b; color: #fff; }
.qz-ynb:disabled { cursor: default; }
.qz-fix { font-size: .84rem; color: #166534; margin-top: 6px; }
.qz-fix:empty { display: none; }
.qz-ctl { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px 12px; }
.qz-ctl:empty { display: none; }
.qz-btn { border: 0; border-radius: 18px; padding: 7px 16px; font-size: .86rem; font-weight: 800; cursor: pointer; }
.qz-btn.submit { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.qz-btn.submit:disabled { opacity: .5; cursor: default; }
.qz-btn.hint { background: #fffbeb; color: #92400e; border: 1.5px solid #fcd34d; }
.qz-hint { margin: 0 12px 12px; padding: 8px 12px; border-left: 3px solid #f59e0b; background: #fffbeb; border-radius: 6px; font-size: .86rem; color: #78350f; }
.qz-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 9px 14px; font-weight: 800; text-align: center; }
.qz-result.ok { background: rgba(56,239,125,.2); color: #15803d; }
.qz-result.bad { background: rgba(255,107,107,.2); color: #c0392b; }
.qz-result.warn { background: #fef3c7; color: #92400e; }
.qz-redo { border: 1.5px solid currentColor; background: #fff; color: inherit; border-radius: 16px; padding: 3px 12px; font-size: .78rem; font-weight: 800; cursor: pointer; }
.qz-toggle { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 0; background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); color: #fff; font-size: .9rem; font-weight: 800; cursor: pointer; }
.qz-toggle:hover { opacity: .92; }
.qz-ans { padding: 12px 18px 14px; border-top: 3px solid #38ef7d; background: linear-gradient(135deg, rgba(56,239,125,.05), rgba(17,153,142,.05)); font-size: .92rem; line-height: 1.75; }

/* 題幹、提示、解析的 Markdown 排版 */
.md p { margin: 0 0 8px; }
.md p:last-child { margin-bottom: 0; }
.md .md-h { margin: 14px 0 6px; color: #0f172a; line-height: 1.4; }
.md h4.md-h { font-size: 1.02rem; color: #15803d; margin-top: 2px; }
.md h5.md-h { font-size: .95rem; }
.md h6.md-h { font-size: .9rem; }
.md ul.md-ul, .md ol.md-ol { margin: 4px 0 10px; padding-left: 1.3em; }
.p-sec .md ul.md-ul { list-style: disc; padding-left: 1.3em; }
.p-sec .md li { padding-left: 0; margin: 4px 0; }
.p-sec .md li::before { content: none; }
.md code { font-family: Consolas, 'Courier New', monospace; font-size: .86em; background: #eef2ff; color: #3730a3; padding: 1px 5px; border-radius: 4px; word-break: break-word; }
.md pre.md-code { margin: 8px 0; padding: 10px 12px; background: #1e293b; color: #e2e8f0; border-radius: 8px; overflow-x: auto; font-size: .82rem; line-height: 1.55; }
.md pre.md-code code { background: none; color: inherit; padding: 0; font-size: inherit; word-break: normal; }
.md blockquote.md-quote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid #f59e0b; background: #fffbeb; border-radius: 0 6px 6px 0; color: #78350f; font-size: .88rem; }
.md .md-table { overflow-x: auto; margin: 6px 0 10px; }
.md table { border-collapse: collapse; width: 100%; font-size: .84rem; background: #fff; }
.md th, .md td { border: 1px solid #e2e8f0; padding: 6px 8px; text-align: left; vertical-align: top; }
.md th { background: #f1f5f9; font-weight: 800; }
@media (max-width: 767px) {
  .qz-ans { padding: 10px 12px 12px; }
  .qz-q, .qz-body { padding-left: 10px; padding-right: 10px; }
}

/* ===== 節點內文排版：分段、條列、粗體、英文術語 ===== */
.p-sec { padding: 14px 18px; line-height: 1.8; }
.p-sec h3 { margin-bottom: 8px; }
.p-sec .rt > p + p, .p-sec .rt > p + ul, .p-sec .rt > ul + p, .p-sec .rt > ul + ul { margin-top: 10px; }
.p-sec .rt ul { margin: 6px 0 0; }
.p-sec .rt li { margin: 6px 0; }
.p-sec strong { color: #0f172a; font-weight: 800; }
.p-sec.analogy strong { color: #78350f; }
.p-sec .en, .p-desc .en { color: #64748b; font-size: .92em; }
.p-sec.exam li, .p-sec.confuse li { margin: 8px 0; }
.p-sec.confuse li strong { color: #9d174d; }
.cf-item strong { color: #9d174d; }

/* 熱度說明（AK-LEGEND-MINI）：顯示 3 秒後縮成角落的小圓圈；點小圓圈再展開 3 秒。
   尺寸由 JS 以 px 寫在行內樣式，這裡只負責過場與小圓圈的外觀。 */
.heat-legend { box-sizing: border-box; overflow: hidden; transition: width .45s ease, height .45s ease, padding .45s ease, border-radius .45s ease, border-left-width .45s ease, box-shadow .3s ease; }
.heat-legend.lg-fade, .heat-legend.lg-fade * { color: transparent !important; transition: color .18s ease; }
.heat-legend.lg-mini { padding: 0; border-radius: 50%; border-left-width: 0; font-size: 0; cursor: pointer; white-space: nowrap; box-shadow: 0 3px 12px rgba(249, 115, 22, .35); }
.heat-legend.lg-mini::after { content: 'i'; display: block; width: 40px; line-height: 40px; text-align: center; font: italic 700 20px/40px Georgia, 'Times New Roman', serif; color: var(--heat, #F97316); }
.heat-legend.lg-mini:hover { box-shadow: 0 4px 16px rgba(249, 115, 22, .5); }

/* modal-mobile-fix */
.p-actions .p-close { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
@media (max-width: 767px) {
  .modal-body { padding-top: 26px; }
  .p-crumb { padding-right: 52px; }
}
