:root{
  --bg:#f4f7f8;
  --surface:#fff;
  --surface-soft:#f8fafb;
  --text:#132332;
  --muted:#667787;
  --line:#dce4e8;
  --line-strong:#c8d4da;
  --primary:#087e8b;
  --primary-hover:#066b76;
  --primary-soft:#e8f7f8;
  --accent:#e86f2d;
  --accent-soft:#fff2e9;
  --danger:#b42318;
  --danger-bg:#fff1f0;
  --ok:#087a55;
  --ok-bg:#eaf9f2;
  --warning:#9a6700;
  --warning-bg:#fff7dd;
  --shadow:0 10px 28px rgba(19,35,50,.07);
}
*{box-sizing:border-box;letter-spacing:0}
html{min-width:0;background:var(--bg)}
body{
  margin:0;
  min-width:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;
}
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
}
.header-inner{
  width:min(1280px,100%);
  min-height:76px;
  margin:0 auto;
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand-lockup{display:flex;align-items:center;gap:12px;min-width:0}
.brand-logo{
  width:46px;
  height:46px;
  flex:0 0 46px;
  object-fit:contain;
  border:1px solid #b9dfe3;
  border-radius:8px;
  background:#fff;
}
.brand-title{font-size:19px;line-height:1.15;font-weight:850;color:var(--text)}
.brand-subtitle{margin-top:4px;font-size:12px;color:var(--muted)}
.header-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.header-contact{position:relative;flex:0 0 auto}
.contact-trigger{
  min-height:38px;
  padding:8px 14px;
  border-color:#efb28f;
  background:var(--accent-soft);
  color:#9b4319;
  font-size:14px;
  font-weight:850;
}
.contact-trigger:hover{border-color:#e38b59;background:#ffe9dc;color:#7f3413}
.contact-trigger[aria-expanded="true"]{border-color:var(--accent);background:var(--accent);color:#fff}
.contact-popover{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  z-index:40;
  width:340px;
  padding:16px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:#fff;
  box-shadow:0 18px 48px rgba(19,35,50,.18);
}
.contact-popover[hidden]{display:none}
.contact-popover::before{content:"";position:absolute;top:-6px;right:28px;width:10px;height:10px;border-top:1px solid var(--line-strong);border-left:1px solid var(--line-strong);background:#fff;transform:rotate(45deg)}
.contact-popover strong{display:block;font-size:13px;color:var(--muted)}
.contact-wechat{margin-top:5px;color:var(--text);font-size:21px;font-weight:900;line-height:1.3}
.contact-popover span{display:block;margin-top:8px;color:#526575;font-size:13px;line-height:1.55}
.contact-popover button{width:100%;margin-top:13px;border-color:#80c4cb;color:#086a75;background:#eef9fa}
.nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid transparent;
  border-radius:6px;
  color:#405161;
  background:transparent;
  text-decoration:none;
  font-size:14px;
  font-weight:750;
}
.nav a:hover{background:var(--surface-soft);color:var(--text)}
.nav a.external{border-color:var(--line);background:#fff}
.nav a.external:hover{border-color:#75bdc5;background:var(--primary-soft);color:#065d66}
.shell{width:min(1280px,100%);margin:0 auto;padding:26px 20px 44px}
.stats-band{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(220px,.72fr);
  align-items:stretch;
  margin-bottom:14px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:0 5px 18px rgba(19,35,50,.05);
}
.metric{
  display:flex;
  align-items:center;
  min-height:88px;
  padding:16px 22px;
  border-right:1px solid var(--line);
}
.metric-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  height:26px;
  margin-right:14px;
  border-radius:999px;
  background:var(--primary-soft);
  color:#066772;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}
.metric.accent .metric-mark{background:var(--accent-soft);color:#ac4d1f}
.metric-copy{display:flex;align-items:baseline;gap:12px;min-width:0}
.metric-label{color:var(--muted);font-size:14px;font-weight:750;white-space:nowrap}
.metric-value{color:var(--text);font-size:28px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums}
.health{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:88px;
  padding:16px 20px;
  border:0;
  border-radius:0;
  background:#fbfcfc;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  white-space:normal;
}
.health::before{content:"";width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#a8b4bc;box-shadow:0 0 0 4px #eef2f4}
.health.online{border:0;background:#f5fbf8;color:var(--ok)}
.health.online::before{background:#20ad7a;box-shadow:0 0 0 4px #dff6ec}
.health.offline{border:0;background:#fff8f7;color:var(--danger)}
.health.offline::before{background:#e05247;box-shadow:0 0 0 4px #fee8e6}
.page-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  margin-bottom:22px;
  padding:0;
  overflow:hidden;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:#fff;
  box-shadow:0 3px 12px rgba(19,35,50,.05);
}
.page-tabs a{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:12px 18px;
  border:0;
  border-right:1px solid var(--line);
  border-radius:0;
  color:#566778;
  background:#fff;
  text-decoration:none;
  font-size:16px;
  font-weight:850;
}
.page-tabs a:last-child{border-right:0}
.page-tabs a:hover{background:var(--surface-soft);color:var(--text)}
.page-tabs a.active{
  border:0;
  border-right:1px solid #096e79;
  background:var(--primary);
  color:#fff;
  box-shadow:none;
}
.page-tabs a.active::after{content:"";position:absolute;right:24px;bottom:0;left:24px;height:3px;background:#f7a16f}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 14px}
.page-head h1{margin:0;font-size:24px;line-height:1.25;font-weight:900;color:var(--text)}
.page-head .subtitle{margin-top:6px;color:var(--muted);font-size:14px;line-height:1.55}
.page-kicker{display:block;margin-bottom:6px;color:var(--primary);font-size:11px;font-weight:900;letter-spacing:.1em}
.surface{
  margin-top:0;
  padding:20px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.field.wide{grid-column:span 2}
.field.wide-3{grid-column:span 3}
.field.full{grid-column:1/-1}
label{font-size:13px;font-weight:750;color:#263746}
.required::after{content:' *';color:var(--danger)}
input,select{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--line-strong);
  border-radius:6px;
  background:#fbfcfd;
  color:var(--text);
  font:inherit;
}
input::placeholder{color:#96a2ad}
input[readonly]{background:#f1f5f6;color:#536574}
input:not([readonly]):hover,select:hover{border-color:#77b9c1}
input:focus,select:focus{outline:3px solid rgba(8,126,139,.12);border-color:#3b9da8;background:#fff}
.identity{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;align-items:end;margin-top:16px}
.notice{padding:12px 14px;border-left:3px solid var(--primary);border-radius:0 6px 6px 0;background:#eff8f9;color:#315d62;font-size:13px;line-height:1.65}
.verify{margin-top:10px;padding:11px 13px;border:1px solid var(--line);border-radius:6px;background:var(--surface-soft);color:var(--muted);font-size:13px}
.verify.ok{border-color:#9ee3c7;background:var(--ok-bg);color:var(--ok)}
.verify.error{border-color:#f2b8b5;background:var(--danger-bg);color:var(--danger)}
.actions{display:flex;align-items:center;gap:9px;margin-top:18px;flex-wrap:wrap}
button{
  min-height:40px;
  padding:8px 15px;
  border:1px solid var(--line-strong);
  border-radius:6px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-weight:750;
  cursor:pointer;
}
button:hover{border-color:#78bbc3;background:#f7fbfb}
button.primary{border-color:var(--primary);background:var(--primary);color:#fff}
button.primary:hover{border-color:var(--primary-hover);background:var(--primary-hover)}
button:disabled{opacity:.46;cursor:not-allowed}
.status{font-size:13px;color:var(--muted)}
.summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);flex-wrap:wrap}
.count{display:inline-flex;align-items:center;min-height:40px;padding:9px 14px;border:1px solid var(--line);border-radius:999px;background:#f1f5f6;color:#4d5f6d;font-weight:850;line-height:1.25}
.count.state-clear{border-color:#86d9b8;background:#e5f8ef;color:#11683f}
.count.state-hit{border-color:#f1aaa4;background:#fee9e7;color:#a62117}
.count.state-similar{border-color:#edcf72;background:#fff6d8;color:#855b00}
.count.state-error{border-color:#f1aaa4;background:#fff0ef;color:#a62117}
.pager{display:flex;align-items:center;gap:8px}
.pager select{width:auto;min-height:38px}
.table-wrap{margin-top:14px;max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:7px}
table{width:100%;min-width:1320px;border-collapse:collapse;background:#fff}
th,td{padding:11px 10px;border-bottom:1px solid #e8edef;text-align:left;vertical-align:top;font-size:13px}
th{position:sticky;top:0;z-index:1;background:#f2f6f7;color:#405363;font-weight:800}
tr:last-child td{border-bottom:0}
tr.exact-hit{background:var(--danger-bg)}
tr.record-row td{border-bottom:0}
tr.reason-row td{padding-top:8px;padding-bottom:13px;background:#fbfcfd;border-bottom:1px solid #e8edef}
tr.reason-row.exact-hit td{background:var(--danger-bg)}
.reason-content{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:start}
.reason-label{color:var(--muted);font-weight:800}
.reason-text{min-width:0;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.badge{display:inline-block;padding:4px 7px;border-radius:4px;background:#edf2f4;color:#4c5e6c;font-weight:750}
.badge.danger{background:#fee4e2;color:var(--danger)}
.empty{padding:34px;text-align:center;color:var(--muted)}
a{color:#087582}
.operation-result{display:flex;align-items:center;flex-basis:100%;min-height:48px;margin-top:5px;padding:11px 13px;border:1px solid var(--line);border-radius:7px;background:#f2f5f6;color:#4b5d6b;font-size:14px;font-weight:800;line-height:1.5}
.operation-result.state-info{border-color:#9fd4da;background:#edf9fa;color:#086772}
.operation-result.state-success{border-color:#86d9b8;background:#e5f8ef;color:#11683f}
.operation-result.state-warning{border-color:#edcf72;background:#fff6d8;color:#855b00}
.operation-result.state-error{border-color:#f1aaa4;background:#fee9e7;color:#a62117}
.upload-notice{width:min(560px,calc(100vw - 24px));padding:0;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:var(--text);box-shadow:0 24px 70px rgba(19,35,50,.28)}
.upload-notice::backdrop{background:rgba(19,35,50,.5)}
.notice-head{display:flex;align-items:center;gap:10px;min-height:56px;padding:9px 13px;border-bottom:1px solid var(--line);background:#f4f8f8}
.notice-head img{width:34px;height:34px;object-fit:contain;border:1px solid var(--line);border-radius:6px;background:#fff}
.notice-head strong{font-size:16px}
.notice-close{width:36px;min-width:36px;min-height:36px;margin-left:auto;padding:0;font-size:22px;line-height:1}
.notice-body{padding:18px 20px 8px}
.notice-lines{margin:0;padding:0;list-style:none;font-size:15px;line-height:1.8}
.notice-lines li{overflow-wrap:anywhere}
.notice-lines li:last-child{margin-top:8px;color:#155e67;font-weight:750}
.notice-actions{display:flex;align-items:center;gap:10px;padding:14px 20px 20px}
.notice-actions button{min-width:112px}
.notice-copy-state{flex:1;color:var(--ok);font-size:13px}
@media(max-width:980px){
  .stats-band{grid-template-columns:1fr 1fr}
  .metric:nth-child(2){border-right:0}
  .health{grid-column:1/-1;min-height:48px;border-top:1px solid var(--line)}
  .filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .field.wide,.field.wide-3{grid-column:span 2}
}
@media(max-width:720px){
  .header-inner{align-items:flex-start;flex-wrap:wrap;padding:10px 14px}
  .header-tools,.nav{width:100%}
  .nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .nav a{text-align:center}
  .shell{padding:16px 12px 30px}
  .stats-band{grid-template-columns:1fr 1fr}
  .metric{min-height:78px;padding:13px;border-right:1px solid var(--line)}
  .metric:nth-child(2){border-right:0}
  .metric-mark{display:none}
  .metric-copy{display:block}
  .metric-label{display:block;margin-bottom:6px;font-size:12px}
  .metric-value{font-size:24px}
  .header-tools{display:grid;grid-template-columns:1fr;gap:8px}
  .contact-trigger{width:100%}
  .contact-popover{right:auto;left:0;width:min(340px,calc(100vw - 28px))}
  .contact-popover::before{right:auto;left:28px}
  .page-tabs{margin-bottom:18px}
  .page-tabs a{min-height:52px}
  .page-head h1{font-size:21px}
  .filters,.grid{grid-template-columns:1fr}
  .field.wide,.field.wide-3,.field.full{grid-column:span 1}
  .identity{grid-template-columns:1fr}
  .surface{padding:14px}
  .summary{align-items:flex-start;flex-direction:column}
  .pager{width:100%;flex-wrap:wrap}
  .table-wrap{max-height:58vh}
  .reason-content{width:calc(100vw - 86px);grid-template-columns:1fr;gap:4px}
  .actions button{flex:1}
  .notice-body{padding:15px 14px 6px}
  .notice-actions{align-items:stretch;flex-wrap:wrap;padding:12px 14px 14px}
  .notice-actions button{flex:1}
  .notice-copy-state{order:3;flex-basis:100%;text-align:center}
}
@media(max-width:420px){
  .nav{grid-template-columns:1fr}
  .metric{padding:12px 10px}
  .metric-value{font-size:22px}
  .page-tabs a{font-size:15px}
}
