/* 應屆畢業生專區 — 四頁共用樣式（grad-*.html），搭配 site.css */

/* 主視覺：圖上已有標語，不再疊字；依原始比例完整顯示，不裁切 */
.grad-hero { background: #cfe6f7; }
.grad-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1800 / 795; }

/* 四頁分頁列 */
.grad-tabs { background: var(--navy-600); position: sticky; top: calc(var(--header-h) + 4px); z-index: 30; box-shadow: 0 2px 10px rgba(20,40,90,.18); }
.grad-tabs .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.grad-tabs a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: rgba(255,255,255,.82); text-decoration: none; border-bottom: 4px solid transparent; font-weight: 700; font-size: 15px; }
.grad-tabs a + a { border-left: 1px solid rgba(255,255,255,.14); }
.grad-tabs a:hover { color: #fff; background: rgba(255,255,255,.07); }
.grad-tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold-500); background: rgba(255,255,255,.1); }
.grad-tabs .no { font-size: 12px; letter-spacing: .1em; color: var(--gold-500); font-weight: 900; }
.grad-tabs .lb { display: inline-flex; align-items: center; gap: 6px; }

/* 頁首標題 */
.grad-head { padding: 36px 0 8px; }
.grad-head .crumbs { color: var(--ink-soft); }
.grad-head .crumbs a { color: var(--navy-600); }
.grad-head h1 { margin: 6px 0 8px; font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: .06em; }
.grad-head .lead { margin: 0; font-size: 16.5px; color: #374151; max-width: 46em; }

/* 頁內目錄 */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--navy-600); text-decoration: none; font-weight: 500; }
.jump a:hover { border-color: var(--navy-300); }
.jump b { color: var(--gold-700); }

/* 區段 */
.g-sec { padding: 36px 0; scroll-margin-top: 150px; }
.g-sec + .g-sec { border-top: 1px solid var(--line); }
.g-title { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.g-title .tag { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-600); color: #fff; font-size: 17px; }
.g-sub { margin: 0 0 20px 54px; color: var(--ink-soft); font-size: 15px; }
.g-h3 { font-size: 17px; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.g-h3::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--gold-500); }

/* 檢查工具卡 */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.tool { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tool .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--gold-700); }
.tool strong { font-size: 16px; line-height: 1.5; }
.tool p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.tool .acts { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }

/* 操作路徑（A ▸ B ▸ C） */
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.path li { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 9px; }
.path li + li::before { content: "▸"; color: var(--navy-300); margin: 0 6px 0 -4px; position: relative; left: -6px; }
.path li + li { margin-left: 10px; }

/* 提醒框 */
.note { display: flex; gap: 12px; padding: 14px 18px; border-radius: 10px; background: var(--gold-100); color: #5c4806; font-size: 14.5px; margin: 16px 0; }
.note::before { content: "!"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); font-weight: 900; display: grid; place-items: center; font-size: 13px; margin-top: 1px; }
.note.info { background: var(--navy-50); color: #26375c; }
.note.info::before { content: "i"; background: var(--navy-600); color: #fff; }
.note p { margin: 0; }
.note p + p, .note ul { margin-top: 6px; }
.note ul { padding-left: 18px; margin-bottom: 0; }

/* 標籤群 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; padding: 5px 12px; border-radius: 6px; background: var(--navy-100); color: var(--navy-700); font-weight: 500; }

/* 依序步驟 */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.flow li { counter-increment: s; background: #fff; border-radius: 10px; padding: 18px 16px; border-top: 3px solid var(--navy-600); box-shadow: var(--shadow); font-size: 14.5px; }
.flow li::before { content: "STEP " counter(s); display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--gold-700); margin-bottom: 6px; }
.flow strong { display: block; font-size: 16px; }

/* 單位表的外部連結 */
table.data a.go { white-space: nowrap; text-decoration: none; font-weight: 500; }
table.data a.go:hover { text-decoration: underline; }
table.data .ext-no { font-variant-numeric: tabular-nums; }

/* 問答 */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 4px; font-weight: 700; display: flex; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--gold-700); font-weight: 900; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--ink-soft); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 4px 18px 26px; color: #374151; font-size: 15px; }
.faq .a ul { margin: 0; padding-left: 18px; }

/* 下一步 */
.next-step { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.next-step a { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.next-step a:hover { border-color: var(--navy-300); box-shadow: var(--shadow); }
.next-step .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--navy-100); color: var(--navy-600); display: grid; place-items: center; }
.next-step strong { display: block; font-size: 15.5px; }
.next-step span { font-size: 13.5px; color: var(--ink-soft); }

.src { margin-top: 28px; font-size: 13px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grad-tabs .wrap { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .grad-tabs a { padding: 10px 14px; font-size: 14px; }
  .grad-tabs a:nth-child(3) { border-left: 0; }
  .grad-tabs a:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .grad-tabs { position: static; }
  .g-sub { margin-left: 0; }
}
@media (max-width: 600px) {
  .flow { grid-template-columns: 1fr; }
}

/* 影片主視覺（grad-check）：依影片原始比例完整顯示 */
.grad-hero.is-video { position: relative; }
.grad-hero .hero-media { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 624; background: #cfe6f7; }
.hero-ctrl { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 8px; }
.hero-ctrl button { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: rgba(20,40,90,.55); backdrop-filter: blur(4px); }
.hero-ctrl button:hover { background: rgba(20,40,90,.8); }
.hero-ctrl button[aria-pressed="true"] { background: var(--gold-500); color: var(--navy-900); }
@media (max-width: 760px) { .hero-ctrl { left: 10px; bottom: 8px; } .hero-ctrl button { width: 32px; height: 32px; } }
