﻿:root {
    --bg0: #070b14;
    --bg1: #0b1220;
    --stroke: rgba(255,255,255,.12);
    --text: #eaf0ff;
    --muted: rgba(234,240,255,.72);
    --muted2: rgba(234,240,255,.52);
    --brand: #7c5cff;
    --brand2: #30d5c8;
    --good: #37d67a;
    --warn: #ffb020;
    --danger: #ff5c7a;
    --shadow: 0 18px 40px rgba(0,0,0,.45);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "PingFang SC","Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg1);
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

/* 固定背景，避免长页面拼接感 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(900px 520px at 18% -10%, rgba(124,92,255,.35), transparent 60%), radial-gradient(900px 520px at 88% 8%, rgba(48,213,200,.20), transparent 60%), radial-gradient(900px 640px at 50% 120%, rgba(55,214,122,.12), transparent 60%), linear-gradient(180deg, var(--bg0), var(--bg1));
    background-repeat: no-repeat;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 14px 18px;
}

/* 顶部 */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    box-shadow: 0 0 0 4px rgba(255,255,255,.06);
    flex: 0 0 auto;
}

.title {
    margin: 0;
    font-size: 18px;
    font-weight: 980;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ghost {
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.92);
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ghost svg {
    width: 16px;
    height: 16px;
    opacity: .9;
}

/* 说明卡 */
.hero {
    border-radius: calc(var(--radius));
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(48,213,200,.10));
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.hero:before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(220px 140px at 15% 35%, rgba(255,255,255,.12), transparent 60%), radial-gradient(260px 160px at 85% 18%, rgba(255,255,255,.10), transparent 62%);
    pointer-events: none;
}

.heroInner {
    position: relative;
    padding: 12px 12px 12px;
}

.sub {
    margin-top: 6px;
    color: rgba(234,240,255,.76);
    font-size: 12.5px;
    line-height: 1.6;
}

.metaRow {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: rgba(234,240,255,.62);
    font-size: 12px;
}

/* 列表 */
.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card {
    border-radius: calc(var(--radius));
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.10));
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    padding: 12px 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card:before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(220px 140px at 15% 30%, rgba(255,255,255,.10), transparent 60%), radial-gradient(260px 160px at 85% 18%, rgba(255,255,255,.08), transparent 62%);
    pointer-events: none;
    opacity: .30;
}

.rank {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    /*border-radius: 14px;*/
/*    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.12);*/
    display: grid;
    place-items: center;
    font-weight: 980;
    font-variant-numeric: tabular-nums;
}

.rank.top1 {
    background: rgba(255,176,32,.18);
    border-color: rgba(255,176,32,.35);
    border-radius: 90%;
}

.rank.top2 {
    background: rgba(48,213,200,.14);
    border-color: rgba(48,213,200,.30);
    border-radius: 90%;
}

.rank.top3 {
    background: rgba(124,92,255,.14);
    border-color: rgba(124,92,255,.28);
    border-radius: 90%;
}

.avatar {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 90%;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.avatar .ph {
    font-weight: 980;
    color: rgba(234,240,255,.85);
    font-size: 14px;
    letter-spacing: .2px;
}

.main {
    position: relative;
    min-width: 0;
    flex: 1;
}

.nameRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.name {
    font-weight: 980;
    letter-spacing: .2px;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62vw;
}

.uid {
    color: rgba(234,240,255,.50);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stats {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sbox {
    border-radius: 14px;
    /*border: 1px solid rgba(255,255,255,.12);*/
    background: rgba(0,0,0,.10);
    padding: 8px 8px;
    min-width: 0;
}

.sbox .k {
    color: rgba(234,240,255,.58);
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sbox .v {
    margin-top: 6px;
    font-weight: 980;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
}

.v.good {
    color: rgba(55,214,122,.92);
}

.v.warn {
    color: rgba(255,176,32,.92);
}

.foot {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: rgba(234,240,255,.58);
    font-size: 12px;
}

.cta {
    border-radius: 14px;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.92);
    font-weight: 950;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta svg {
    width: 16px;
    height: 16px;
    opacity: .9;
}

.empty {
    margin-top: 10px;
    padding: 18px 12px;
    border-radius: 18px;
    border: 1px dashed rgba(255,255,255,.16);
    background: rgba(0,0,0,.10);
    text-align: center;
    color: rgba(234,240,255,.62);
    display: none;
}
/*footer*/
.site-footer {
    margin-top: 22px;
    padding: 18px 12px calc(22px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 12px;
    color: rgba(234,240,255,.55);
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.8;
}

.footer-links a {
    color: rgba(234,240,255,.70);
    text-decoration: none;
    padding: 2px 4px;
}

.footer-links a:hover {
    color: rgba(234,240,255,.95);
}

.footer-links .sep {
    opacity: .35;
}

.footer-meta {
    margin-top: 10px;
    line-height: 1.6;
}

.footer-meta .slogan {
    margin-top: 4px;
    font-size: 11px;
    opacity: .65;
}