:root { font-family: "Segoe UI", "Noto Sans TC", sans-serif; color: #243128; background: #f3f6f2; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
header { padding: 1.1rem max(1rem, calc((100% - 1180px)/2)); background: #234e38; color: white; display: flex; align-items: baseline; gap: 1rem; }
header h1 { margin: 0; font-size: 1.45rem; } header span { opacity: .85; font-size: .9rem; }
main { width: min(1180px, calc(100% - 2rem)); margin: 1.2rem auto 3rem; display: grid; gap: 1rem; }
.panel, .summary article, .cards article { background: white; border: 1px solid #dce5dc; border-radius: 12px; padding: 1rem; box-shadow: 0 2px 8px #2038280b; }
h2 { margin: 0 0 .85rem; font-size: 1.05rem; } label { display: grid; gap: .35rem; font-size: .9rem; }
input, select, button { font: inherit; min-height: 2.5rem; border: 1px solid #bdcbbf; border-radius: 7px; padding: .45rem .6rem; background: white; color: inherit; }
button { border: 0; background: #28764b; color: white; font-weight: 650; padding: .55rem .95rem; cursor: pointer; } button:hover { background: #1c603a; }
button.danger { background: #a23a32; margin-top: .45rem; }
.filters, .inline { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; } .filters label { min-width: 135px; flex: 1; } .inline label { min-width: 180px; }
details { margin-top: .65rem; } summary { cursor: pointer; color: #276643; }
.stack { display: grid; gap: .7rem; } .compact { min-width: 220px; padding: .5rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.summary, .cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; }
.summary article, .cards article { display: grid; gap: .35rem; } .summary span, .cards span { color: #5b6b60; font-size: .85rem; } .summary strong, .cards strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.hint, footer { color: #617066; font-size: .85rem; } .alert { padding: .8rem 1rem; border: 1px solid #e3a7a0; background: #fff0ed; border-radius: 8px; color: #822c24; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: .9rem; } th, td { padding: .6rem .5rem; border-bottom: 1px solid #e6ece6; text-align: left; vertical-align: top; } th { color: #506257; white-space: nowrap; }
.category-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid #e6ece6; }
.chart-bars { display: grid; gap: .8rem; }
.chart-row { display: grid; grid-template-columns: minmax(130px, 220px) minmax(80px, 1fr) 90px; gap: .75rem; align-items: center; }
.chart-label { overflow-wrap: anywhere; }
.bar-track { height: 1rem; border-radius: 999px; background: #e8efe9; overflow: hidden; }
.bar-fill { display: block; height: 100%; min-width: .2rem; border-radius: inherit; background: #28764b; }
.button-link { display: inline-block; border-radius: 7px; padding: .65rem .95rem; background: #28764b; color: white; font-weight: 650; text-decoration: none; }
.button-link:hover { background: #1c603a; }
footer { text-align: center; padding: 0 1rem 1.4rem; }
@media (max-width: 680px) { header { display: block; } header span { display: block; margin-top: .25rem; } main { width: min(100% - 1rem, 600px); margin-top: .5rem; gap: .65rem; min-width: 0; } .panel, .grid, .filters, .inline { min-width: 0; max-width: 100%; } .grid { grid-template-columns: minmax(0,1fr); gap: .65rem; } .summary, .cards { grid-template-columns: minmax(0,1fr); } .summary article, .cards article { grid-template-columns: minmax(0,1fr) auto; align-items: center; } .filters { display: grid; grid-template-columns: minmax(0,1fr); } .filters label, .inline label { min-width: 0; } input, select, button { max-width: 100%; min-width: 0; } .filters button { grid-column: 1 / -1; } .chart-row { grid-template-columns: minmax(0,1fr) auto; } .chart-label { font-weight: 600; } .bar-track { grid-column: 1 / -1; } .table-wrap { max-width: 100%; } .table-wrap table { min-width: 620px; } .alert { overflow-wrap: anywhere; } }
