* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", Arial, sans-serif; color: #111827; background: #f9fafb; }
.site-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 22px 24px; background: white; border-bottom: 1px solid #e5e7eb; }
.site-header h1 { margin: 6px 0 4px; font-size: 26px; letter-spacing: 0; }
.site-header p { margin: 0; color: #667085; font-size: 14px; }
.back-link, a { color: #2563eb; text-decoration: none; }
.back-link:hover, a:hover { text-decoration: underline; }
.status { min-width: 220px; text-align: right; color: #475467; font-size: 13px; }
main { max-width: 1480px; margin: 0 auto; padding: 18px 22px 28px; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 1px; margin-bottom: 14px; background: #e5e7eb; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.metrics div { background: white; padding: 14px 16px; min-height: 76px; }
.metrics strong { display: block; font-size: 23px; color: #0f766e; }
.metrics span { display: block; margin-top: 4px; color: #667085; font-size: 12px; }
.panel { background: white; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.filters { display: grid; gap: 12px; padding: 16px; margin-bottom: 14px; }
.primary-filters { display: grid; grid-template-columns: minmax(320px, 35fr) minmax(190px, 25fr) minmax(150px, 20fr) minmax(150px, 20fr); gap: 12px; align-items: end; }
label { display: grid; gap: 6px; font-size: 13px; color: #475467; }
input, select { width: 100%; min-height: 42px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 11px; background: white; color: #111827; outline: none; }
input:focus, select:focus, .region-toggle:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.filter-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 30px; }
button { border: 0; border-radius: 10px; background: #2563eb; color: white; padding: 9px 13px; min-height: 38px; cursor: pointer; font-weight: 700; }
button:hover { background: #1d4ed8; }
button:disabled { background: #94a3b8; cursor: not-allowed; }
.text-btn { border: 0; background: transparent; color: #176b87; padding: 4px 2px; min-height: 28px; cursor: pointer; }
.text-btn:hover { color: #0f5871; text-decoration: underline; background: transparent; }
.advanced-filters { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 12px; padding: 12px; border: 1px solid #d8e0ea; background: #f8fafc; border-radius: 12px; overflow: hidden; animation: reveal .16s ease-out; }
.advanced-filters[hidden], .region-dropdown[hidden] { display: none !important; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.checkbox { display: flex; align-items: center; gap: 8px; min-height: 42px; padding-top: 20px; }
.checkbox input { width: auto; min-height: auto; }
.actions { display: flex; justify-content: flex-start; gap: 10px; }
.primary-action { min-width: 190px; }
.region-select { position: relative; min-width: 0; }
.region-toggle { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: white; color: #111827; border: 1px solid #cbd5e1; text-align: left; padding: 6px 10px; font-weight: 400; }
.region-toggle:hover { background: white; border-color: #94a3b8; }
.region-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.placeholder { color: #667085; }
.tag { display: inline-flex; align-items: center; gap: 5px; max-width: 120px; border-radius: 999px; background: #e6f4f1; color: #0f766e; padding: 3px 8px; font-size: 12px; }
.tag button { min-height: 0; padding: 0; background: transparent; color: #0f766e; line-height: 1; }
.chevron { color: #667085; }
.region-dropdown { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: min(520px, 70vh); overflow: hidden; border: 1px solid #cbd5e1; border-radius: 12px; background: white; box-shadow: 0 16px 32px rgba(15, 23, 42, .18); }
.region-search { border-width: 0 0 1px; border-radius: 12px 12px 0 0; }
.region-tools { display: flex; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid #edf2f7; }
.region-tools button { background: transparent; color: #2563eb; padding: 4px 6px; min-height: 28px; }
.region-options { max-height: 390px; overflow-y: auto; padding: 8px 10px 12px; }
.region-group { margin-bottom: 10px; }
.region-group-title { color: #667085; font-size: 12px; margin-bottom: 5px; font-weight: 700; }
.region-item { display: inline-flex; align-items: center; gap: 5px; width: 32%; min-width: 82px; padding: 5px 4px; color: #111827; }
.region-item input { width: auto; min-height: auto; }
.table-wrap { max-height: calc(100vh - 380px); overflow: auto; border: 1px solid #d0d7e2; background: white; border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 1180px; }
th, td { border-bottom: 1px solid #e5e7eb; padding: 10px; text-align: left; vertical-align: top; font-size: 13px; }
th { position: sticky; top: 0; background: #f3f4f6; z-index: 1; font-weight: 800; }
td.address { max-width: 330px; white-space: normal; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 8px; background: #edf2f7; color: #344054; white-space: nowrap; }
.empty { text-align: center; color: #667085; padding: 24px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; }
.site-footer { padding: 4px 16px 20px; text-align: center; color: #667085; font-size: 12px; }
.site-footer a { color: #667085; text-decoration: underline; text-underline-offset: 2px; }
.error { color: #b91c1c; }
@media (max-width: 1100px) {
  .primary-filters, .advanced-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .site-header { flex-direction: column; padding: 18px 16px; }
  .status { text-align: left; }
  main { padding: 14px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .primary-filters, .advanced-filters { grid-template-columns: 1fr; }
  .region-item { width: 48%; }
  .actions button { width: 100%; }
  .table-wrap { max-height: none; }
}
.notice-link { margin-top: 3px; font-size: 12px; }
.notice-link a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.notice-link a:visited { color: #7c3aed; }
