/* 集簽工作圖書館 — Apple 風格黑白簡約 */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --black: #000000;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1024px;
  --wrap-wide: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Segoe UI", "Microsoft JhengHei", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12px; color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Global nav ---------- */
.gnav {
  position: sticky; top: 0; z-index: 50;
  height: 48px;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.gnav .wrap-wide { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: 0; }
.brand svg { width: 18px; height: 18px; }
.gnav nav { display: flex; gap: 28px; }
.gnav nav a { text-decoration: none; font-size: 13px; color: var(--ink); opacity: .8; transition: opacity .2s; }
.gnav nav a:hover, .gnav nav a[aria-current="page"] { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px 0; transition: transform .25s; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .gnav nav {
    position: fixed; inset: 48px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(251,251,253,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 8px 22px 22px; border-bottom: 1px solid var(--line-soft);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .gnav nav a { font-size: 22px; font-weight: 600; padding: 10px 0; opacity: 1; }
  body.nav-open .gnav nav { transform: none; opacity: 1; pointer-events: auto; }
  body.nav-open .nav-toggle span:first-child { transform: translateY(2.75px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
}

/* ---------- Ribbon (公告) ---------- */
.ribbon { background: var(--bg-alt); text-align: center; font-size: 14px; }
.ribbon a { display: block; padding: 12px 0; text-decoration: none; color: var(--ink); }
.ribbon a:hover .ribbon-more { text-decoration: underline; }
.ribbon-more { margin-left: 8px; font-weight: 500; white-space: nowrap; }
.rb-short { display: none; }
@media (max-width: 760px) { .rb-long { display: none; } .rb-short { display: inline; } .ribbon { font-size: 13px; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; }
.display { font-size: clamp(40px, 7vw, 80px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.headline { font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.02em; }
.title { font-size: clamp(26px, 3.6vw, 40px); }
.subhead { font-size: clamp(19px, 2.2vw, 24px); font-weight: 500; line-height: 1.4; color: var(--ink-2); letter-spacing: 0; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase; margin-bottom: 10px; }
p { margin: 0 0 1em; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--black); color: #f5f5f7; }
.section.dark .muted, .section.dark .subhead { color: #a1a1a6; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .subhead { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: #f5f5f7; text-align: center; padding: 104px 0 96px; overflow: hidden; }
.hero .subhead { color: #a1a1a6; max-width: 680px; margin: 20px auto 0; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.hero-stats span { font-size: 13px; color: #86868b; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 22px; border-radius: 980px;
  background: var(--ink); color: var(--white); text-decoration: none;
  font-size: 15px; font-weight: 500; border: 1px solid var(--ink); cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn:hover { background: #333336; }
.btn:active { transform: scale(.98); }
.btn.light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn.light:hover { background: #e8e8ed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.hero .btn.ghost { color: #f5f5f7; border-color: #f5f5f7; }
.hero .btn.ghost:hover { background: #f5f5f7; color: var(--black); }
.btn.sm { min-height: 34px; padding: 6px 16px; font-size: 14px; }
.link { text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
.link::after { content: " ›"; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 980px; font-size: 12px; font-weight: 500;
  background: var(--bg-alt); color: var(--ink); white-space: nowrap;
}
.section.alt .pill, .card .pill { background: var(--white); }
.pill.solid { background: var(--ink); color: var(--white); }
.pill.outline { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.pill.warn { background: transparent; border: 1px dashed var(--ink); color: var(--ink); }

/* ---------- Filters ---------- */
.finder { position: sticky; top: 48px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line-soft); }
.finder .wrap-wide { padding-top: 14px; padding-bottom: 14px; }
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-alt); border-radius: var(--radius-sm); padding: 0 16px; height: 48px;
}
.search svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.search input { flex: 1; border: 0; background: transparent; font-size: 17px; outline: none; min-width: 0; }
.chips { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 980px;
  border: 1px solid var(--line); background: var(--white); font-size: 14px; cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip-sep { flex: none; width: 1px; background: var(--line); margin: 6px 4px; }
.finder-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: var(--ink-2); gap: 12px; flex-wrap: wrap; }
.finder-meta select { border: 0; background: transparent; font-size: 13px; cursor: pointer; color: var(--ink); }

/* ---------- Job grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0;
  background: var(--bg-alt); border-radius: 22px; padding: 26px 26px 22px;
  text-decoration: none; color: inherit;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .35s;
}
.card:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.09), 0 0 0 1px rgba(0,0,0,.05); }
.card-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.card-title { min-width: 0; }
.card-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
.card .where { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.score-ring { position: relative; flex: none; width: 54px; text-align: center; }
.ring { width: 54px; height: 54px; display: block; transform: rotate(-90deg); }
.ring .rt { fill: none; stroke: rgba(0,0,0,.08); stroke-width: 3.5; }
.ring .rf { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.score-ring b { position: absolute; top: 0; left: 0; width: 54px; line-height: 54px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.score-ring span { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.specs { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid rgba(0,0,0,.07); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.specs li { min-width: 0; }
.specs span { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
.specs b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specs b.tbd { color: var(--ink-3); font-weight: 500; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; min-width: 0; }
.card .tags .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.card:hover .tags .pill:not(.outline) { background: var(--bg-alt); }
.empty { text-align: center; padding: 80px 0; color: var(--ink-2); }
.hidden { display: none !important; }


/* ---------- Region picker（黑底橫幅＋地圖） ---------- */
.hero.picker { text-align: left; padding: 72px 0 80px; }
.picker-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.picker .display { font-size: clamp(38px, 5.2vw, 64px); }
.picker .subhead { margin: 18px 0 0; max-width: none; }
.picker .eyebrow { color: #86868b; }
.pick-title { font-size: 21px; font-weight: 600; margin: 36px 0 0; color: #f5f5f7; letter-spacing: 0; }
.picker-map { position: relative; border-radius: 28px; overflow: hidden; isolation: isolate; }
/* 背景：中心微光＋淡淡的點陣，往外漸隱 */
.picker-map::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 62% 42%, rgba(255,255,255,.075), transparent 70%),
    radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.4px) 0 0 / 16px 16px;
  -webkit-mask-image: radial-gradient(75% 70% at 55% 50%, #000 35%, transparent 80%);
          mask-image: radial-gradient(75% 70% at 55% 50%, #000 35%, transparent 80%);
}
.aumap { width: 100%; height: auto; display: block; -webkit-tap-highlight-color: transparent; user-select: none; }
/* 海岸線發光：同一條邊界畫三層寬窄不同的白線，填色蓋住內側，只剩外側的光暈 */
.aumap .gl { fill: none; stroke: #fff; pointer-events: none; transition: stroke-opacity .35s ease; }
.aumap .gl1 { stroke-width: 22px; stroke-opacity: .028; }
.aumap .gl2 { stroke-width: 11px; stroke-opacity: .055; }
.aumap .gl3 { stroke-width: 4.5px; stroke-opacity: .13; }
.aumap .gl1.hot, .aumap .gl1.on { stroke-opacity: .06; }
.aumap .gl2.hot, .aumap .gl2.on { stroke-opacity: .12; }
.aumap .gl3.hot, .aumap .gl3.on { stroke-opacity: .32; }
.aumap.zoomed .gl:not(.on) { stroke-opacity: .02; }
.aumap .st { fill: url(#g-fill); cursor: pointer; }
.aumap .st.hot { fill: url(#g-hot); }
.aumap .st.none { cursor: default; }
.aumap .st.none.hot { fill: url(#g-fill); }
.aumap.zoomed .st { fill: #0e0e10; }
.aumap.zoomed .st.hot:not(.none) { fill: #1c1c1f; }
.aumap.zoomed .st.on { fill: url(#g-on); }
.aumap .ed { fill: none; stroke: rgba(255,255,255,.26); stroke-width: 1px; pointer-events: none; transition: stroke .3s; }
.aumap .ed.hot, .aumap .ed.on { stroke: rgba(255,255,255,.85); }
.aumap.zoomed .ed:not(.on) { stroke: rgba(255,255,255,.12); }
/* 工作地點光點 */
.aumap .dots { pointer-events: none; transition: opacity .3s; }
.aumap .dots .halo { fill: url(#g-halo); }
.aumap .dots .core { fill: #fff; }
.aumap.zoomed .dots { opacity: 0; }
.aumap .lbl { font-size: 17px; font-weight: 600; fill: #f5f5f7; text-anchor: middle; pointer-events: none; transition: opacity .2s; paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: 3px; stroke-linejoin: round; }
.aumap .lbl .n { font-size: 13px; font-weight: 500; fill: #a1a1a6; }
.aumap .lbl.zero { fill: #6e6e73; font-weight: 500; }
.aumap.zoomed .lbl { opacity: 0; }
/* 區域泡泡 */
.aumap .rg { display: none; cursor: pointer; outline: none; }
.aumap.zoomed .rg.vis { display: inline; }
.aumap .rg .rh { fill: url(#g-halo); opacity: .55; transition: opacity .25s; }
.aumap .rg .rc { fill: #f5f5f7; stroke: rgba(0,0,0,.6); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transition: transform .2s; }
.aumap .rg .num { fill: #000; font-size: 12px; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.aumap .rg .nm { fill: #f5f5f7; font-size: 15px; font-weight: 600; paint-order: stroke; stroke: #000; stroke-width: 4px; stroke-linejoin: round; }
.aumap .rg:hover .rc { transform: scale(1.18); }
.aumap .rg:hover .rh, .aumap .rg.on .rh { opacity: 1; }
.aumap .rg.on .rc { transform: scale(1.3); fill: #fff; }
.aumap .rg.dim { opacity: .35; }
.aumap .rg.nl .nm { opacity: 0; transition: opacity .15s; }
.aumap .rg.nl:hover .nm, .aumap .rg.nl.on .nm { opacity: 1; }
.aumap .rg:hover, .aumap .rg.on { isolation: isolate; }
.pick-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0 28px; }
.pick-btn { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid #2c2c2e; background: #1c1c1e; color: #f5f5f7; font-size: 15px; cursor: pointer; text-align: left; transition: background .15s, border-color .15s; }
.pick-btn .muted { color: #86868b; }
.pick-btn:hover { border-color: #86868b; }
.pick-btn[aria-pressed="true"] { background: #f5f5f7; color: #000; border-color: #f5f5f7; }
.pick-btn[aria-pressed="true"] .muted { color: #6e6e73; }
.pick-btn:disabled { opacity: .35; cursor: default; }
.pick-btn:disabled:hover { border-color: #2c2c2e; }
.pick-btn.back { grid-column: 1 / -1; background: transparent; border: 0; padding: 0; min-height: 30px; color: #a1a1a6; justify-content: flex-start; }
.pick-btn.back:hover { color: #fff; }
.pick-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pick-cta .link { color: #f5f5f7; font-size: 15px; }
.hero-meta { margin: 22px 0 0; font-size: 13px; color: #6e6e73; }
.region-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 4px 6px 4px 14px; border-radius: 980px; background: var(--ink); color: #fff; font-size: 13px; }
.region-pill button { border: 0; background: rgba(255,255,255,.18); color: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 11px; }
@media (max-width: 900px) {
  .hero.picker { padding: 40px 0 48px; text-align: center; }
  .picker-grid { grid-template-columns: 1fr; gap: 20px; }
  .picker-side { display: contents; }
  .picker .eyebrow { order: 1; margin: 0; }
  #pick-h1 { order: 2; }
  #pick-hint { order: 3; margin-top: 8px; }
  .picker-map { order: 4; margin: 0 -10px; }
  .pick-title { order: 5; margin: 0; }
  .pick-list { order: 6; grid-template-columns: repeat(2, 1fr); margin: 0; }
  .pick-cta { order: 7; justify-content: center; }
  .hero-meta { order: 8; margin: 0; }
  .pick-btn { flex-direction: column; justify-content: center; gap: 0; padding: 8px 6px; text-align: center; font-size: 14px; }
  .pick-btn.back { flex-direction: row; justify-content: center; }
  .aumap .rg .nm { font-size: 20px; }
  .aumap .lbl { font-size: 26px; }
  .aumap .lbl .n { font-size: 19px; }
  .aumap .rg .rc { r: 16px; }
  .aumap .rg .num { font-size: 14px; }
}

/* ---------- Job detail ---------- */
.job-hero { padding: 64px 0 40px; text-align: center; }
.crumbs { font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.job-hero .subhead { margin-top: 14px; }
.job-hero .tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.quick {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--line-soft); border-radius: var(--radius); overflow: hidden; margin-top: 36px;
}
.quick div { background: var(--bg-alt); padding: 20px 14px; text-align: center; }
.quick small { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.quick strong { font-size: 17px; font-weight: 600; line-height: 1.3; display: block; }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr 1fr; } .quick div:last-child { grid-column: span 2; } }

.toc { position: sticky; top: 48px; z-index: 15; background: #fff; border-bottom: 1px solid var(--line-soft); }
.toc .wrap { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; height: 46px; align-items: center; }
.toc .wrap::-webkit-scrollbar { display: none; }
.toc a { flex: none; font-size: 13px; text-decoration: none; color: var(--ink-2); }
.toc a:hover, .toc a.on { color: var(--ink); }

.block { padding: 64px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 100px; }
.block:last-of-type { border-bottom: 0; }
.block > .wrap > h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.block .lead { font-size: 19px; color: var(--ink-2); margin-bottom: 32px; max-width: 720px; }
.panel { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.panel + .panel { margin-top: 16px; }
.cols > .panel + .panel, .ranges > .panel + .panel { margin-top: 0; }
.panel h3 { font-size: 19px; margin-bottom: 12px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 12px 20px; margin: 0; }
.kv dt { color: var(--ink-2); font-size: 15px; }
.kv dd { margin: 0; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 12px; } }
.list { margin: 0; padding-left: 1.2em; }
.list li { margin: 4px 0; }
.list.check { list-style: none; padding: 0; }
.list.check li { padding-left: 26px; position: relative; }
.list.check li::before { content: "✓"; position: absolute; left: 0; font-weight: 600; }
.list.cross { list-style: none; padding: 0; }
.list.cross li { padding-left: 26px; position: relative; }
.list.cross li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }

.big-verdict { display: flex; gap: 24px; align-items: center; padding: 32px; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.big-verdict.no { background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.big-verdict.check { background: var(--white); color: var(--ink); border: 2px dashed var(--ink); }
.big-verdict .mark { font-size: 56px; font-weight: 300; line-height: 1; flex: none; width: 64px; text-align: center; }
.big-verdict h3 { font-size: 26px; margin-bottom: 6px; }
.big-verdict p { margin: 0; opacity: .85; }
@media (max-width: 600px) { .big-verdict { flex-direction: column; text-align: center; padding: 28px 22px; } }

.roles { display: grid; gap: 16px; }
.role { background: var(--bg-alt); border-radius: var(--radius); padding: 26px 28px; }
.role-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 10px; }
.role h3 { font-size: 21px; }
.role h3 small { font-size: 14px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.role .meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(0,0,0,.07); font-size: 15px; }
@media (max-width: 600px) { .role .meta { grid-template-columns: 1fr; } }
.role .meta h4 { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-bottom: 4px; letter-spacing: 0; }

.apply-box { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 20px; }
.apply-notes { margin-bottom: 16px; }

.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 8px; }
.months span { text-align: center; font-size: 11px; padding: 8px 0; border-radius: 6px; background: var(--white); color: var(--ink-3); }
.months span.on { background: var(--ink); color: var(--white); font-weight: 600; }

.climate { width: 100%; height: auto; }
.climate text { font-family: var(--font); fill: var(--ink-2); font-size: 11px; }
.climate .bar { fill: #d2d2d7; }
.climate .tmax { fill: none; stroke: var(--ink); stroke-width: 2; }
.climate .tmin { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 4 3; }
.climate .dot-max { fill: var(--ink); }
.climate .dot-min { fill: var(--white); stroke: var(--ink-3); stroke-width: 1.5; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; margin-top: 10px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--ink); vertical-align: middle; margin-right: 6px; }
.legend i.min { border-top: 2px dashed var(--ink-3); }
.legend i.rain { height: 10px; border: 0; background: #d2d2d7; width: 10px; }
.forecast { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 12px; }
.forecast div { background: var(--white); border-radius: 12px; padding: 12px 4px; text-align: center; font-size: 13px; }
.forecast b { display: block; font-size: 16px; }
@media (max-width: 600px) { .forecast { grid-template-columns: repeat(4, 1fr); } }

.score { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.score-num { text-align: center; }
.score-num b { font-size: 88px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; display: block; }
.score-num span { font-size: 15px; color: var(--ink-2); }
.score-num .grade { display: inline-block; margin-top: 12px; }
.bars { display: grid; gap: 12px; }
.bars .row { display: grid; grid-template-columns: 120px 1fr 44px; gap: 12px; align-items: center; font-size: 14px; }
.bars .track { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--ink); border-radius: 3px; }
.bars .why { grid-column: 2 / 4; font-size: 12px; color: var(--ink-3); margin-top: -8px; }
@media (max-width: 760px) { .score { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.rev-summary { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.rev-summary b { font-size: 56px; font-weight: 600; letter-spacing: -0.03em; }
.stars { letter-spacing: 2px; font-size: 16px; }
.reviews { display: grid; gap: 16px; }
.review { background: var(--bg-alt); border-radius: var(--radius); padding: 24px 26px; }
.review header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.review .who { font-weight: 600; }
.review .facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.review p { white-space: pre-wrap; margin: 0; }
.review .pc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; font-size: 15px; }
@media (max-width: 600px) { .review .pc { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.field input[type=text], .field input[type=email], .field input[type=number], .field input[type=month], .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: inline-flex; margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { padding: 8px 16px; border: 1px solid var(--line); border-radius: 980px; font-size: 14px; cursor: pointer; background: var(--white); transition: .15s; }
.seg input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.rate { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 28px; cursor: pointer; color: var(--line); margin: 0; line-height: 1; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--ink); }
.rate input:focus-visible + label { outline: 2px solid var(--ink); border-radius: 4px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--bg-alt); font-size: 14px; }
.notice.solid { background: var(--ink); color: var(--white); }
details.more { margin-top: 8px; }
details.more summary { cursor: pointer; font-size: 15px; font-weight: 500; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: " ＋"; color: var(--ink-3); }
details.more[open] summary::after { content: " －"; }

/* ---------- Checker ---------- */
.checker { max-width: 640px; margin: 0 auto; }
.checker form { display: flex; gap: 10px; }
.checker input {
  flex: 1; height: 64px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
  font-size: 28px; text-align: center; letter-spacing: .2em; font-weight: 600; outline: none; min-width: 0;
}
.checker input:focus { border-color: var(--ink); }
.checker .btn { height: 64px; padding: 0 28px; font-size: 17px; border-radius: var(--radius); }
.results { display: grid; gap: 12px; margin-top: 28px; }
.result { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-soft); }
.result .mk { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; }
.result.yes .mk { background: var(--ink); color: var(--white); }
.result.no .mk { border: 1.5px solid var(--ink-3); color: var(--ink-3); }
.result.no { color: var(--ink-2); }
.result h3 { font-size: 17px; margin-bottom: 2px; }
.result p { margin: 0; font-size: 14px; color: var(--ink-2); }

.ranges { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.ranges .panel h3 { display: flex; justify-content: space-between; }
.ranges code { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.9; word-spacing: 4px; }

/* ---------- Guide ---------- */
.guide h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }
.guide h3 { font-size: 21px; margin: 32px 0 10px; }
.guide .panel p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--bg-alt); border-radius: var(--radius); padding: 22px 24px 22px 74px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 24px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table th { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.table-wrap { overflow-x: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; padding: 32px 0 40px; }
.footer .wrap-wide > * + * { margin-top: 14px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { text-decoration: none; color: var(--ink); opacity: .8; }
.footer a:hover { text-decoration: underline; }
.footer .disclaimer { border-bottom: 1px solid var(--line); padding-bottom: 14px; line-height: 1.7; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card:hover { transition: none; transform: none; }
}

/* ---------- 長網址、長文字不撐破版面（手機） ---------- */
.block .wrap, .panel, .role, .notice, .review, .guide .wrap { min-width: 0; overflow-wrap: anywhere; }
.kv { grid-template-columns: 140px minmax(0, 1fr); }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
.roles { grid-template-columns: minmax(0, 1fr); }
.role { min-width: 0; }
.role-head h3 { min-width: 0; }
.cols > *, .grid > * { min-width: 0; }
#sources .list li, #sources .list a { overflow-wrap: anywhere; word-break: break-all; }
.job-hero .tags .pill { white-space: normal; max-width: 100%; text-align: center; line-height: 1.4; }
@media (max-width: 600px) {
  .kv { grid-template-columns: minmax(0, 1fr); }
  .role { padding: 22px 20px; }
  .panel { padding: 22px 20px; }
}

/* 招募狀態與季節（每天自動更新） */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; margin-right: 6px; vertical-align: 1px; }
.hire-line { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.hire-box { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line-soft); }
.hire-box p { margin: 0 0 4px; }
.soon { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.soon-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: center; background: var(--bg-alt); border-radius: var(--radius-sm); padding: 14px 18px; }
.soon-item b { display: block; }
.soon-item .muted { font-size: 13px; }
.months.mini { margin-top: 0; gap: 3px; }
.months.mini span { padding: 4px 0; font-size: 10px; }
.months span.now { outline: 2px solid var(--ink); outline-offset: -2px; }
@media (max-width: 760px) { .soon-item { grid-template-columns: 1fr; gap: 8px; } }

/* 網路評價 */
.wr-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.wr-rate { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px 18px; }
.wr-rate b { font-size: 32px; letter-spacing: -0.02em; }
.wr-rate > span { color: var(--ink-3); margin-left: 2px; }
.wr-rate p { margin: 6px 0 8px; font-size: 14px; }
.wr-story { border-top: 1px solid var(--line-soft); padding: 14px 0; }
.wr-story p { margin: 0 0 6px; }

/* 語言切換 */
.lang-switch { display: flex; gap: 2px; margin-left: 12px; flex: none; }
.lang-switch a { font-size: 12px; padding: 4px 7px; border-radius: 6px; color: var(--ink-2); text-decoration: none; }
.lang-switch a[aria-current] { background: var(--ink); color: var(--white); }
.notice.untranslated { border-radius: 0; margin: 0; font-size: 13px; text-align: center; }
@media (max-width: 760px) { .lang-switch { margin-left: auto; margin-right: 8px; } .lang-switch a { padding: 4px 5px; font-size: 11px; } }
