:root {
  --ink: #172135;
  --muted: #697386;
  --line: #dfe5ec;
  --canvas: #f6f8fb;
  --card: #ffffff;
  --brand: #d72838;
  --green: #008f74;
  --red: #d85e50;
  --navy: #1d4d7b;
  --focus: #e59700;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 15px/1.55 "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.skip-link { position: fixed; z-index: 100; top: -5rem; left: 1rem; padding: .7rem 1rem; color: white; background: var(--ink); border-radius: .4rem; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 64px; padding: 0 clamp(1rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; color: white; background: #121c30; }
.brand { display: flex; gap: .65rem; align-items: center; font-size: 17px; font-weight: 700; }
.brand-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: white; background: var(--brand); font-size: 13px; }
.period { color: #d5dce8; font-size: 13px; }.period strong { padding-left: .3rem; color: white; }
main { width: min(1440px, calc(100% - 2rem)); margin: 0 auto; }
.hero { padding: clamp(2rem, 5vw, 4.5rem) clamp(.2rem, 2vw, 1rem) 1.5rem; max-width: 850px; }
.eyebrow { margin: 0 0 .35rem; color: var(--brand); font-size: 12px; letter-spacing: .11em; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; } h1 { margin-bottom: .75rem; font-size: clamp(28px, 5vw, 49px); line-height: 1.18; letter-spacing: -.03em; } h2 { margin-bottom: .3rem; font-size: 23px; line-height: 1.25; } h3 { font-size: 14px; }
.hero > p:last-child { max-width: 730px; color: #536073; font-size: 16px; }
.notice { margin-bottom: 1.1rem; padding: .85rem 1rem; display: flex; gap: .75rem; align-items: start; border-left: 4px solid #d68d00; color: #62490b; background: #fff8e6; }.notice strong { white-space: nowrap; }
.summary-grid { margin-bottom: 1.2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }.summary-grid article { padding: 1rem 1.05rem; min-height: 115px; border: 1px solid var(--line); border-radius: .7rem; background: var(--card); box-shadow: 0 3px 12px rgb(18 28 48 / 4%); }.summary-grid span, .summary-grid small { display: block; color: var(--muted); }.summary-grid strong { display: block; margin: .15rem 0; font-size: 31px; }.summary-grid .green strong { color: var(--green); }.summary-grid .red strong { color: var(--red); }.summary-grid .muted strong { color: #566274; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 350px); gap: 1rem; align-items: start; }.map-panel, .detail-panel, .table-section { border: 1px solid var(--line); border-radius: .75rem; background: var(--card); box-shadow: 0 3px 14px rgb(18 28 48 / 4%); }.map-panel, .detail-panel { padding: clamp(1rem, 2vw, 1.4rem); }.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }.section-heading > p { max-width: 320px; margin: .25rem 0 0; color: var(--muted); font-size: 13px; }.result-count { padding: .35rem .6rem; color: #36516e; background: #edf4fc; border-radius: 2rem; white-space: nowrap; font-size: 13px; }
.controls { margin: 1.05rem 0 .8rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }.controls label { color: #485568; font-size: 12px; font-weight: 700; }.controls select, .controls input { display: block; width: 100%; margin-top: .22rem; padding: .55rem .6rem; border: 1px solid #cbd5e1; border-radius: .36rem; color: var(--ink); background: #fff; font-weight: 400; }.search-field { grid-column: span 2; }.secondary-button { align-self: end; padding: .55rem .7rem; border: 1px solid #cbd5e1; border-radius: .36rem; color: #334155; background: #fff; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: .42rem .85rem; margin: .5rem 0 .8rem; min-height: 25px; }.legend-item { display: inline-flex; gap: .35rem; align-items: center; color: #435166; font-size: 12px; }.legend-swatch { width: 13px; height: 13px; border: 1px solid rgb(0 0 0 / 20%); border-radius: .15rem; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: .75rem; align-items: start; }.map-frame { padding: .65rem; border: 1px solid #e2e8f0; border-radius: .45rem; background: #fbfdff; }.map-frame h3 { margin: 0 0 .3rem; color: #39485d; }.map { display: block; width: 100%; height: auto; background: #f4f9fc; }.remote-frame p { color: var(--muted); font-size: 11px; line-height: 1.4; }.inset-grid { display: grid; gap: .5rem; }.inset-grid h4 { margin: .2rem 0; color: #536176; font-size: 11px; }.remote-map { min-height: 86px; }
.map-frame-main { position: relative; }.map-zoom-controls { position: absolute; z-index: 2; top: 2.1rem; right: 1rem; display: inline-flex; align-items: center; gap: .25rem; padding: .3rem; border: 1px solid #c9d5e2; border-radius: .42rem; background: rgb(255 255 255 / 94%); box-shadow: 0 2px 7px rgb(18 28 48 / 15%); }.map-zoom-controls button { min-width: 2rem; height: 2rem; padding: 0 .42rem; border: 1px solid #b9c8d7; border-radius: .28rem; color: #1e3a56; background: #fff; font-size: 1rem; font-weight: 800; line-height: 1; }.map-zoom-controls #map-zoom-reset { min-width: auto; font-size: 12px; }.map-zoom-controls button:disabled { cursor: not-allowed; opacity: .45; }.map-zoom-controls #map-zoom-level { min-width: 3.4rem; color: #36516e; font-size: 12px; font-weight: 800; text-align: center; }.interactive-map { touch-action: none; cursor: grab; }.interactive-map.is-panning { cursor: grabbing; user-select: none; }
.map-feature { stroke: #fff; stroke-width: .8; vector-effect: non-scaling-stroke; transition: opacity .12s, stroke-width .12s; }.remote-map .map-feature { stroke: #3f5872; stroke-width: 1.6; }.map-feature:hover { stroke: #182944; stroke-width: 1.5; }.map-feature:focus { outline: none; stroke: var(--focus); stroke-width: 2.5; }.map-feature.is-selected { stroke: #101f35; stroke-width: 2.5; }.map-feature.is-filtered { opacity: .16; }
.map-note { margin: .7rem 0 0; color: var(--muted); font-size: 12px; }.detail-panel { position: sticky; top: .8rem; }.detail-panel > p:not(.eyebrow) { color: var(--muted); }.detail-list { display: grid; grid-template-columns: 1fr; margin: 1rem 0 0; }.detail-list div { padding: .55rem 0; display: grid; grid-template-columns: minmax(110px, 42%) 1fr; gap: .6rem; border-top: 1px solid #ebeff4; }.detail-list dt { color: #657184; font-size: 12px; }.detail-list dd { margin: 0; font-weight: 700; }.reason-card { margin-top: 1rem; padding: .85rem; border-radius: .4rem; background: #f5f7fa; }.reason-card h3 { margin-bottom: .3rem; }.reason-card p { margin: 0; color: #4c596b; font-size: 13px; white-space: pre-line; }
.table-section { margin: 1.1rem 0 2rem; padding: clamp(1rem, 2vw, 1.4rem); }.table-wrap { overflow: auto; max-height: 590px; margin-top: .8rem; border: 1px solid #e2e8f0; border-radius: .42rem; }table { width: 100%; min-width: 880px; border-collapse: collapse; background: #fff; }th, td { padding: .7rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid #edf0f4; }th { position: sticky; top: 0; z-index: 1; background: #f5f8fc; }th button { padding: 0; border: 0; color: #304055; background: transparent; font-size: 12px; font-weight: 800; }th button::after { padding-left: .25rem; content: "↕"; color: #93a0b1; }tbody tr { cursor: pointer; }tbody tr:hover, tbody tr:focus-within { background: #eef5fc; }tbody tr.is-selected { background: #e1eefb; }td { color: #445268; font-size: 13px; }.cell-name { color: var(--ink); font-weight: 700; }.tag { display: inline-block; padding: .18rem .42rem; border-radius: .25rem; color: #26364a; background: #edf1f5; font-size: 12px; font-weight: 700; }.tag.green { color: #006d59; background: #d6f1e9; }.tag.red { color: #9c342b; background: #fde1dc; }.tag.warning { color: #76540b; background: #fff0c4; }
footer { padding: 1.3rem max(1rem, calc((100% - 1440px) / 2)); color: #cbd5e1; background: #18243a; font-size: 12px; }footer p { max-width: 1100px; margin: .35rem auto; }
button:focus-visible, select:focus-visible, input:focus-visible, tr:focus-visible { outline: 3px solid #f0a800; outline-offset: 2px; }
@media (max-width: 1040px) { .workspace { grid-template-columns: 1fr; }.detail-panel { position: static; }.map-layout { grid-template-columns: minmax(0, 1fr) 205px; } }
@media (max-width: 720px) { main { width: min(100% - 1rem, 1440px); }.site-header { min-height: 56px; padding: 0 .65rem; }.brand { font-size: 15px; }.period { font-size: 11px; }.hero { padding: 2rem .2rem 1rem; }.hero > p:last-child { font-size: 14px; }.notice { font-size: 13px; }.summary-grid { grid-template-columns: repeat(2, 1fr); gap: .55rem; }.summary-grid article { min-height: 95px; padding: .75rem; }.summary-grid strong { font-size: 25px; }.controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }.search-field { grid-column: span 2; }.secondary-button { grid-column: span 2; }.map-layout { grid-template-columns: 1fr; }.remote-frame h3, .remote-frame p { grid-column: 1 / -1; }.section-heading { display: block; }.result-count { display: inline-block; margin-top: .4rem; }.detail-list div { grid-template-columns: 1fr; gap: .1rem; } }
@media (max-width: 540px) { .period { display: none; }.map-panel, .detail-panel, .table-section { padding: .85rem; }.controls { grid-template-columns: 1fr; }.search-field, .secondary-button { grid-column: auto; }.summary-grid small { font-size: 11px; }.map-frame { padding: .35rem; }.table-section .section-heading > p { margin-top: .55rem; } }
@media (orientation: landscape) and (max-height: 520px) and (max-width: 950px) { .hero { padding: 1.15rem .2rem .45rem; }.hero h1 { margin-bottom: .35rem; font-size: 31px; }.hero > p:last-child { margin-bottom: 0; font-size: 13px; }.notice { margin-bottom: .55rem; padding: .55rem .75rem; font-size: 12px; }.summary-grid { margin-bottom: .55rem; }.summary-grid article { min-height: 74px; padding: .55rem .7rem; }.summary-grid strong { font-size: 21px; }.summary-grid small { font-size: 10px; } }
