/* =========================================================
   TOPlayer · 高阶玩家 — V8 status page
   Hyperping-style system status / uptime monitor.
   Loads on top of home.css.
   ========================================================= */

.st-wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ---- header row ---- */
.st-hero { padding: 104px 0 0; }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.st-logo { display: flex; align-items: center; gap: 10px; font-family: 'Aboreto', var(--font); font-size: 20px; letter-spacing: .03em; }
.st-logo .brand-mark { width: 28px; height: 28px; }
.st-sub-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font-size: 13.5px; font-weight: 600; transition: border-color .15s ease, background .15s ease; }
.st-sub-btn:hover { border-color: var(--border-2); background: var(--panel-2); }

/* ---- overall banner ---- */
.st-banner { margin-top: 30px; display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 16px; border: 1px solid rgba(188, 255, 47, .42); background: radial-gradient(420px 160px at 0% 0%, rgba(188,255,47,.16), transparent 70%), rgba(188, 255, 47, .07); }
.st-banner .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #0a1400; font-size: 20px; }
.st-banner .bn-txt h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.st-banner .bn-txt p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.st-banner .upd { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.st-banner .upd .st-live { color: #BCFF2F; font-weight: 600; margin-bottom: 5px; }
.st-banner .upd .st-live i { display: inline-block; vertical-align: middle; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #BCFF2F; box-shadow: 0 0 0 4px rgba(188,255,47,.18); animation: st-pulse 1.8s ease infinite; }
@keyframes st-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- legend ---- */
.st-legend { display: flex; gap: 20px; margin-top: 26px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.st-legend .k { display: inline-flex; align-items: center; gap: 7px; }
.st-legend .dot { width: 9px; height: 9px; border-radius: 2px; }
.dot.ok, .bar.ok { background: #BCFF2F; }
.dot.deg, .bar.deg { background: #f5b62f; }
.dot.down, .bar.down { background: #ff5a6e; }
.dot.none, .bar.none { background: var(--panel-2); }

/* ---- section label ---- */
.st-sec-label { margin-top: 40px; margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--dim); }

/* ---- monitor rows ---- */
.mon { padding: 22px 0; border-bottom: 1px solid var(--border); }
.mon-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mon-name { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.mon-name i { color: var(--dim); font-size: 14px; width: 18px; text-align: center; }
.mon-status { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mon-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.mon-status.ok { color: #BCFF2F; } .mon-status.ok::before { background: #BCFF2F; }
.mon-status.deg { color: #f5b62f; } .mon-status.deg::before { background: #f5b62f; }
.mon-status.down { color: #ff5a6e; } .mon-status.down::before { background: #ff5a6e; }
.mon-bars { margin-top: 14px; display: flex; gap: 2px; height: 34px; align-items: stretch; }
.bar { flex: 1 1 0; min-width: 0; border-radius: 2px; transition: transform .12s ease, filter .12s ease; }
.bar:hover { transform: scaleY(1.12); filter: brightness(1.18); }
.mon-foot { margin-top: 11px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--dim); }
.mon-foot .line { flex: 1; height: 1px; background: var(--border); margin: 0 12px; }
.mon-foot .mon-pct { color: var(--muted); font-weight: 600; }

/* ---- metrics (response time) ---- */
.st-metrics { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.st-metric { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); padding: 20px; }
.st-metric .m-k { font-size: 12.5px; color: var(--muted); }
.st-metric .m-v { margin-top: 6px; font-size: 26px; font-weight: 800; font-family: var(--mono); }
.st-metric .m-v .u { font-size: 14px; color: var(--dim); font-weight: 600; }
.st-metric .m-spark { margin-top: 14px; display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.st-metric .m-spark > i { flex: 1; background: var(--grad); border-radius: 2px 2px 0 0; opacity: .85; }

/* ---- incidents ---- */
.st-incidents { margin-top: 54px; }
.st-incidents > h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.st-incidents > .hint { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.inc-day { padding: 20px 0; border-bottom: 1px solid var(--border); }
.inc-day h4 { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.inc-none { color: var(--dim); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.inc-none i { color: #BCFF2F; }
.inc-item { padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid #f5b62f; border-radius: 10px; background: var(--panel); }
.inc-item.resolved { border-left-color: #BCFF2F; }
.inc-item .inc-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inc-item .inc-t h5 { font-size: 14.5px; font-weight: 600; }
.inc-item .inc-badge { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.inc-badge.resolved { color: #0a1400; background: #BCFF2F; }
.inc-badge.monitoring { color: #f5b62f; background: rgba(245,182,47,.16); border: 1px solid rgba(245,182,47,.4); }
.inc-item p { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.inc-item .inc-time { margin-top: 8px; font-size: 12px; color: var(--dim); font-family: var(--mono); }

.st-foot { text-align: center; padding: 44px 0 92px; color: var(--dim); font-size: 13px; }
.st-foot a { color: var(--muted); }

@media (max-width: 640px) {
    .st-metrics { grid-template-columns: 1fr; }
    .mon-bars { gap: 1px; }
}
