*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#1e293b;background:#fff;line-height:1.75;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
a{color:#2563eb;text-decoration:none}
a:hover{text-decoration:underline}
.shell{width:min(1140px,calc(100% - 36px));margin:0 auto}
section{scroll-margin-top:72px}

.site-top{position:sticky;top:0;z-index:90;background:rgba(255,255,255,.97);backdrop-filter:blur(8px);border-bottom:1px solid #e2e8f0}
.top-inner{display:flex;align-items:center;justify-content:space-between;min-height:58px;gap:14px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:16px;color:#0f172a}
.brand img{width:34px;height:34px;border-radius:8px}
.top-nav{display:flex;gap:18px}
.top-nav a{color:#64748b;font-size:14px;font-weight:500}
.top-nav a:hover{color:#0f172a;text-decoration:none}
.menu-btn{display:none;border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:7px 12px;cursor:pointer;font-size:14px}
.mobile-nav{display:none;flex-direction:column;padding:8px 18px 16px;border-top:1px solid #e2e8f0;background:#fff}
.mobile-nav.open{display:flex}
.mobile-nav a{padding:10px 0;border-bottom:1px solid #f1f5f9;color:#475569;font-size:14px}

.ads-wrap{border-bottom:1px solid #f1f5f9;background:#f8fafc}

/* Dashboard shell */
.dash{padding:24px 0 56px}
.dash-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px}
.dash-head h1{margin:0;font-size:clamp(22px,3.5vw,32px);line-height:1.25;color:#0f172a;font-weight:800}
.dash-head .sub{margin:6px 0 0;font-size:14px;color:#64748b;max-width:640px}
.live-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border:1px solid #bbf7d0;border-radius:999px;font-size:12px;font-weight:600;color:#15803d;background:#f0fdf4}
.live-badge .dot{width:8px;height:8px;border-radius:50%;background:#22c55e;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.45}}

.metric-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
.metric-card{border:1px solid #e2e8f0;border-radius:14px;padding:18px 20px;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.04)}
.metric-card .label{font-size:12px;color:#64748b;font-weight:500;margin-bottom:6px}
.metric-card .value{font-size:28px;font-weight:800;color:#0f172a;line-height:1.1}
.metric-card .delta{font-size:12px;margin-top:8px;color:#64748b}
.metric-card .delta.up{color:#16a34a}
.metric-card .delta.warn{color:#d97706}

.panel-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;margin-bottom:18px}
.panel{border:1px solid #e2e8f0;border-radius:14px;background:#fff;overflow:hidden}
.panel-hd{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #f1f5f9;background:#fafbfc}
.panel-hd h2{margin:0;font-size:15px;font-weight:700;color:#0f172a}
.panel-bd{padding:18px 20px}

.status-list{display:flex;flex-direction:column;gap:12px}
.status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}
.status-row .name{display:flex;align-items:center;gap:10px;color:#334155}
.status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.status-dot.ok{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.2)}
.status-dot.mid{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.2)}
.status-dot.off{background:#94a3b8}
.status-tag{font-size:11px;font-weight:600;padding:3px 10px;border-radius:999px}
.status-tag.ok{color:#15803d;background:#dcfce7}
.status-tag.mid{color:#b45309;background:#fef3c7}
.status-tag.off{color:#475569;background:#f1f5f9}

.progress-list{display:flex;flex-direction:column;gap:16px}
.progress-item .meta{display:flex;justify-content:space-between;font-size:13px;margin-bottom:6px;color:#475569}
.progress-item .meta strong{color:#0f172a;font-weight:600}
.progress-track{height:8px;border-radius:999px;background:#e2e8f0;overflow:hidden}
.progress-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#3b82f6,#2563eb);transition:width .8s ease}
.progress-fill.green{background:linear-gradient(90deg,#22c55e,#16a34a)}
.progress-fill.amber{background:linear-gradient(90deg,#fbbf24,#f59e0b)}

.content-grid{display:grid;grid-template-columns:1fr 320px;gap:18px;margin-top:22px}
.content-main .block{margin-bottom:20px;padding:22px 24px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
.content-main .block h2{margin:0 0 12px;font-size:18px;color:#0f172a}
.content-main .block p,.content-main .block li{font-size:15px;color:#475569;margin:0 0 12px}
.content-main .block ul{padding-left:20px;margin:0}
.content-main .block p:last-child{margin-bottom:0}

.side-stack{display:flex;flex-direction:column;gap:14px}
.side-card{border:1px solid #e2e8f0;border-radius:14px;padding:18px;background:#fafbfc}
.side-card h3{margin:0 0 10px;font-size:15px;color:#0f172a}
.side-card p{margin:0;font-size:13px;color:#64748b}
.side-card figure{margin:14px 0 0;border-radius:10px;overflow:hidden;border:1px solid #e2e8f0}

.link-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.chip{display:inline-flex;padding:7px 14px;border:1px solid #bfdbfe;border-radius:999px;font-size:13px;color:#1d4ed8;background:#eff6ff}
.chip:hover{text-decoration:none;background:#dbeafe}

.guide-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0 0}
.guide-row a{display:block;padding:18px 16px;border:1px solid #e2e8f0;border-radius:14px;font-size:14px;font-weight:600;color:#334155;background:#fff;transition:border-color .2s,box-shadow .2s}
.guide-row a:hover{border-color:#93c5fd;text-decoration:none;box-shadow:0 4px 16px rgba(37,99,235,.08)}
.guide-row a span{display:block;font-size:12px;font-weight:400;color:#94a3b8;margin-top:6px}

.ext-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid #f1f5f9}
.ext-links a{font-size:13px;padding:6px 12px;border:1px dashed #cbd5e1;border-radius:8px;color:#475569}
.ext-links a:hover{border-color:#93c5fd;color:#2563eb;text-decoration:none}

.prose{max-width:720px;margin:0 auto;padding:40px 0 52px}
.prose h1{font-size:clamp(26px,3vw,34px);margin:0 0 18px;line-height:1.3}
.prose h2{font-size:20px;margin:28px 0 10px}
.prose p,.prose li{color:#475569;font-size:15px}
.prose ul{padding-left:22px}

.site-foot{padding:36px 0 44px;background:#f8fafc;border-top:1px solid #e2e8f0;font-size:13px;color:#64748b}
.site-foot a{color:#475569;margin-right:14px}
.site-foot p{margin:10px 0 0}

.err-page{min-height:60vh;display:grid;place-items:center;text-align:center;padding:36px 20px}
.err-page h1{font-size:68px;margin:0;color:#cbd5e1;font-weight:800}
.err-page p{font-size:16px;color:#64748b}

@media(max-width:960px){
  .metric-row{grid-template-columns:repeat(2,1fr)}
  .panel-grid,.content-grid{grid-template-columns:1fr}
  .guide-row{grid-template-columns:1fr}
}
@media(max-width:640px){
  .metric-row{grid-template-columns:1fr}
  .menu-btn{display:inline-flex}
  .top-nav{display:none}
}
