﻿:root {
    --bg: #0b1020;
    --panel: rgba(255,255,255,.06);
    --panel2: rgba(255,255,255,.09);
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.66);
    --line: rgba(255,255,255,.25);
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --radius2: 8px;
    --radius: 8px;
    --good: rgba(41, 255, 169, .95);
    --mid: rgba(255, 214, 102, .95);
    --bad: rgba(255, 120, 120, .95);
    --brand1: rgba(124,92,255,.55);
    --brand2: rgba(25,211,255,.40);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    font: 15px/1.6 system-ui, -apple-system, Segoe UI, Roboto, PingFang SC, Microsoft YaHei, sans-serif;
}
/* 背景只渲染一次，避免 repeat/拼接伪影 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(900px 520px at 12% 10%, rgba(124,92,255,.35), transparent 60%), radial-gradient(720px 470px at 90% 18%, rgba(25,211,255,.22), transparent 55%), radial-gradient(920px 520px at 50% 102%, rgba(255,255,255,.06), transparent 60%);
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0);
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 14px 26px;
}

/* 顶栏 */
.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(11,16,32,.86), rgba(11,16,32,.55));
    border-bottom: 1px solid var(--line);
}

.topbar .wrap {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124,92,255,1), rgba(25,211,255,1));
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
}

.logo::after {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 55%);
    transform: rotate(18deg);
}

.brand h1 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    color: var(--muted);
    font-size: 12px;
    user-select: none;
    white-space: nowrap;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
}

/* ✅ Tab 导航 */
.tabsWrap {
    margin-top: 12px;
    padding: 10px;
    display: flex;
    gap: 8px;
    overflow: auto;
    scrollbar-width: none;
}

.tabsWrap::-webkit-scrollbar {
    display: none;
}

.tab {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: .15s ease;
    white-space: nowrap;
}

.tab:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.20);
}

.tab.active {
    color: rgba(255,255,255,.95);
    border-color: rgba(124,92,255,.55);
    background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(25,211,255,.12));
}

/* 搜索/提示栏 */
.toolbar {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
}

.search svg {
    width: 22px;
    height: 22px;
    opacity: .85;
    flex: 0 0 auto;
}

.search input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--text);
    font-size: 15px;
}

.hintRow {
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.hintRow .left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.hintRow .dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--brand1), var(--brand2));
    box-shadow: 0 0 0 4px rgba(124,92,255,.12);
}

.btn {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    color: var(--text);
    padding: 9px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: .15s ease;
    font-size: 13px;
    user-select: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.20);
}

/* 榜单 */
.list {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.card {
    border-radius: var(--radius2);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
    box-shadow: var(--shadow);
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.rank {
    width: 38px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: .3px;
    border-radius: 8px;
    /*border: 1px solid rgba(255,255,255,.12);*/
    background: rgba(255,255,255,.03);
    color: rgba(255,255,255,.88);
    height: 48px;
}

.rank.medal1 {
    background: linear-gradient(135deg, rgba(255,215,0,.22), rgba(255,255,255,.06));
    /*border-color: rgba(255,215,0,.30);*/
}

.rank.medal2 {
    background: linear-gradient(135deg, rgba(192,192,192,.20), rgba(255,255,255,.06));
    /*border-color: rgba(192,192,192,.28);*/
}

.rank.medal3 {
    background: linear-gradient(135deg, rgba(205,127,50,.22), rgba(255,255,255,.06));
    /*border-color: rgba(205,127,50,.30);*/
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    flex: 0 0 auto;
}

.avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.main {
    flex: 1 1 auto;
    min-width: 0;
}

.nameRow {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.name {
    font-size: 15px;
    font-weight: 850;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .2px;
}

.badge {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    color: var(--muted);
    user-select: none;
    white-space: nowrap;
}

.stats {
    margin-top: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat {
/*    border: 1px solid rgba(255,255,255,.12);*/
    background: rgba(255,255,255,.03);
    border-radius: 8px;
    padding: 9px 10px;
    min-width: 0;
}

.stat .k {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat .v {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .2px;
}

.subv {
    font-size: 12px;
    color: var(--muted);
    font-weight: 650;
    white-space: nowrap;
}

.v.good {
    color: var(--good);
}

.v.mid {
    color: var(--mid);
}

.v.bad {
    color: var(--bad);
}

@media (min-width: 760px) {
    .toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .card {
        padding: 14px;
    }

    .avatar {
        width: 56px;
        height: 56px;
        border-radius: 90%;
    }

    .rank {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }
}
/*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;
}