﻿:root {
    --bg: #0b1020;
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.65);
    --line: rgba(255,255,255,.10);
    --shadow: 0 12px 30px rgba(0,0,0,.35);
    --radius: 8px;
    --up: #46e39a;
    --down: #ff6b6b;
    --flat: rgba(255,255,255,.55);
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC","Hiragino Sans GB","Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: radial-gradient(900px 520px at 20% -10%, rgba(105,165,255,.25), transparent 60%), radial-gradient(900px 520px at 100% 10%, rgba(255,125,200,.18), transparent 55%), radial-gradient(700px 480px at 50% 110%, rgba(70,227,154,.12), transparent 55%), var(--bg);
    min-height: 100vh;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 14px 26px;
}

.topbar {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 12px;
}

.brand {
    flex: 1;
    min-width: 220px
}

.brand h1 {
    margin: 0;
    font-size: 16px;
    letter-spacing: .3px
}

.brand p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55
}

.metaBox {
    flex: 1;
    min-width: 260px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.pill {
    padding: 8px 10px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    font-size: 12.5px;
    color: rgba(255,255,255,.82);
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.pill .k {
    color: rgba(255,255,255,.65)
}

.pill .v {
    font-family: var(--mono);
    color: rgba(255,255,255,.90)
}

.search {
    flex: 1;
    min-width: 260px;
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.18);
    color: rgba(255,255,255,.90);
    outline: none;
    font-size: 13px;
}

.panel {
    margin-top: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ===== 桌面表格 ===== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0
}

thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(0,0,0,.24);
    border-bottom: 1px solid rgba(255,255,255,.10);
    font-size: 12px;
    color: rgba(255,255,255,.70);
    text-align: left;
    padding: 12px 12px;
    white-space: nowrap;
}

tbody td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 13.5px;
    color: rgba(255,255,255,.88);
    vertical-align: middle;
}

tbody tr:hover {
    background: rgba(255,255,255,.03)
}

.col-rank {
    width: 72px;
    font-family: var(--mono);
    color: rgba(255,255,255,.75)
}

.flag {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 16px;
    line-height: 1;
}

.country {
    font-weight: 700
}

.score {
    font-family: var(--mono);
    font-size: 13.5px
}

.delta {
    font-family: var(--mono);
    padding: 6px 8px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.delta.up {
    color: var(--up)
}

.delta.down {
    color: var(--down)
}

.delta.flat {
    color: var(--flat)
}

.tiny {
    color: rgba(255,255,255,.55);
    font-size: 12px
}
.teamflag {
    width:44px;
    height :44px;
    border-radius:90%;
}
/* ===== 移动端：表格变卡片 ===== */
@media (max-width: 620px) {
    .flag {
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        font-size: 12px;
        line-height: 1;
    }
    .teamflag {
        width: 24px;
        height: 24px;
        border-radius: 90%;
    }
    .panel {
        padding: 8px
    }

    tbody tr {
        border: 1px solid rgba(255,255,255,.10);
        border-radius: var(--radius);
        overflow: hidden;
        margin: 10px 0;
        background: rgba(0,0,0,.14);
    }

    tbody td {
        border-bottom: 1px solid rgba(255,255,255,.08);
        padding: 5px 6px;
    }
    .rowTop {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .rowMid {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .rowGrid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .kv {
        background: rgba(255,255,255,.04);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: var(--radius);
        padding: 8px 10px;
    }

    .kv .k {
        font-size: 12px;
        color: rgba(255,255,255,.65)
    }

    .kv .v {
        margin-top: 4px;
        font-family: var(--mono);
        font-size: 13px;
        color: rgba(255,255,255,.90)
    }
}
/*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;
}
/*回到顶部CSS*/
#backToTop {
    position: fixed;
    right: 24px;
    bottom: 32px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    /* 深色背景适配 */
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(120, 160, 255, 0.25);
    color: #9fb6ff;
    /* 微科技感 */
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 0 0 rgba(255, 255, 255, 0);
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, box-shadow 0.25s ease;
}

#backToTop.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#backToTop:hover {
    background: rgba(120, 160, 255, 0.18);
    box-shadow: 0 10px 28px rgba(80, 120, 255, 0.35), inset 0 0 12px rgba(120, 160, 255, 0.25);
    color: #dbe3ff;
}