:root {
  --bg: #f5f7fb;
  --panel: #fff;
  --ink: #131a2a;
  --muted: #667085;
  --line: #dce4f0;
  --blue: #2f66f6;
  --green: #119462;
  --red: #d14343;
  --amber: #b7791f;
  --shadow: 0 18px 48px rgba(20, 27, 45, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Microsoft YaHei", Arial, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.site-header { min-height: 68px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 max(20px, calc((100vw - 1180px) / 2)); background:rgba(255,255,255,.94); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10; }
.brand { display:inline-flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; font-weight:900; }
.brand-mark { width:34px; height:34px; display:grid; place-items:center; border-radius:8px; color:#fff; background:var(--blue); }
.nav-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.status-pill { min-height:32px; display:inline-flex; align-items:center; padding:0 10px; border-radius:999px; background:#eef3ff; color:var(--blue); font-size:13px; font-weight:800; }
.wechat-btn,.primary-btn,.plain-btn { min-height:40px; border-radius:7px; padding:0 14px; border:1px solid transparent; font-weight:850; }
.wechat-btn { color:#fff; background:#16a34a; }
.primary-btn { color:#fff; background:var(--blue); }
.plain-btn { color:var(--ink); background:#fff; border-color:var(--line); }
.page { width:min(1180px, calc(100% - 40px)); margin:0 auto; padding:34px 0 56px; }
.hero { min-height:260px; display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; align-items:center; margin-bottom:20px; }
.eyebrow { margin:0 0 10px; color:var(--blue); font-size:12px; text-transform:uppercase; font-weight:900; }
h1,h2,p,dl,dd { margin:0; }
h1 { max-width:760px; font-size:clamp(34px, 5vw, 58px); line-height:1.05; }
h2 { font-size:19px; }
.summary-text,.muted,.form-message { color:var(--muted); font-size:14px; line-height:1.7; }
.summary-text { max-width:720px; margin-top:18px; font-size:16px; }
.health-box,.metric-card,.panel { background:var(--panel); border:1px solid var(--line); border-radius:8px; box-shadow:var(--shadow); }
.health-box { min-height:120px; display:flex; align-items:center; gap:14px; padding:20px; }
.health-dot { width:16px; height:16px; flex:0 0 16px; border-radius:50%; background:var(--amber); }
.health-dot.ok { background:var(--green); }
.health-dot.bad { background:var(--red); }
.health-box strong { display:block; font-size:22px; margin-bottom:6px; }
.health-box p { color:var(--muted); font-size:13px; line-height:1.5; }
.metrics-grid { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.metric-card { min-height:126px; display:grid; align-content:space-between; padding:18px; }
.metric-card span { color:var(--muted); font-size:13px; font-weight:800; }
.metric-card strong { font-size:clamp(28px, 4vw, 44px); line-height:1; overflow-wrap:anywhere; }
.panel { padding:20px; }
.customer-grid { display:grid; grid-template-columns:.92fr 1.08fr; gap:18px; align-items:start; }
.panel-title { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; }
.form-grid { display:grid; gap:14px; }
label { display:grid; gap:7px; color:var(--muted); font-size:13px; font-weight:800; }
input { width:100%; min-height:44px; border:1px solid var(--line); border-radius:6px; padding:10px 12px; outline:none; color:var(--ink); background:#fff; }
input:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(47,102,246,.14); }
.form-message { min-height:22px; margin:12px 0 18px; }
.info-list { display:grid; gap:12px; }
.info-list div { display:flex; justify-content:space-between; gap:14px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.info-list dt { color:var(--muted); font-weight:800; }
.info-list dd { text-align:right; font-weight:850; overflow-wrap:anywhere; }
.event-list { min-height:320px; max-height:620px; overflow:auto; display:grid; gap:10px; }
.event-item { border-left:3px solid var(--blue); background:#f9fbff; border-radius:6px; padding:12px; display:grid; gap:6px; }
.event-time,.event-url { color:var(--muted); font-size:13px; line-height:1.55; overflow-wrap:anywhere; }
.snapshot { margin:0; padding:8px; background:#eef2f7; border-radius:6px; color:#26364d; font-family:Consolas, monospace; font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.modal { position:fixed; inset:0; background:rgba(15,23,42,.55); display:grid; place-items:center; padding:20px; z-index:100; }
.modal-card { width:min(420px, 100%); background:#fff; border-radius:16px; border:1px solid #dce4f0; box-shadow:0 24px 64px rgba(20,27,45,.18); padding:24px; position:relative; display:grid; gap:14px; }
.modal-close { position:absolute; top:12px; right:12px; width:36px; height:36px; border:0; border-radius:999px; background:#eef2f7; color:#111827; font-size:22px; line-height:1; }
.qr-box { min-height:280px; display:grid; place-items:center; background:#f8fafc; border:1px dashed #dce4f0; border-radius:12px; padding:16px; }
.qr-box img { max-width:240px; width:100%; height:auto; display:block; }
@media (max-width: 920px) { .hero,.customer-grid { grid-template-columns:1fr; } .metrics-grid { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .site-header { padding:14px 18px; align-items:flex-start; flex-direction:column; } .page { width:min(100% - 28px, 1180px); padding-top:24px; } .metrics-grid { grid-template-columns:1fr; } }
