﻿: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;
    --shadow: 0 18px 40px rgba(0,0,0,.45);
    --radius: 8px;
    --hitBg: rgba(255,92,122,.18);
    --hitStroke: rgba(255,92,122,.28);
    --hitText: rgba(255,220,230,.96);
}

* {
    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;
    min-height: 100vh;
    position: relative;
    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;
}*/

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 14px 18px;
}
/* 顶部卡片（查询条件） */
.hero {
    border: 1px solid var(--stroke);
    background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(48,213,200,.10));
    box-shadow: var(--shadow);
    border-radius: calc(var(--radius) + 8px);
    overflow: hidden;
    position: relative;
}

.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;
}

.hero-inner {
    position: relative;
    padding: 14px 14px 12px;
}
.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;
}

/* 条件摘要区 */
.filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 720px) {
    .filters {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.fcard {
    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;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.fcard:before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(220px 140px at 15% 25%, rgba(255,255,255,.10), transparent 60%), radial-gradient(260px 160px at 85% 10%, rgba(255,255,255,.08), transparent 62%);
    pointer-events: none;
    opacity: .55;
}

.fhead {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fhead .k {
    font-size: 13px;
    font-weight: 980;
    letter-spacing: .2px;
    color: rgba(234,240,255,.86);
}

.fhead .edit {
    font-size: 12px;
    color: rgba(234,240,255,.62);
    font-weight: 850;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fhead .edit svg {
    width: 14px;
    height: 14px;
    opacity: .85;
}

.fval {
    position: relative;
    margin-top: 8px;
    color: rgba(234,240,255,.72);
    font-size: 12.5px;
    line-height: 1.55;
    min-height: 20px;
    word-break: break-word;
}

/* 汇总 */
.summary {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}

@media (max-width: 520px) {
    .summary {
        grid-template-columns: 1fr;
    }
}

.sbox {
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.10);
    padding: 10px 10px;
    min-width: 0;
}

.sbox .k {
    color: rgba(234,240,255,.62);
    font-size: 12px;
}

.sbox .v {
    margin-top: 7px;
    font-size: 16px;
    font-weight: 980;
    letter-spacing: .2px;
    font-variant-numeric: tabular-nums;
}

/* 结果表 */
.resultCard {
    margin-top: 12px;
    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);
    overflow: hidden;
}

.rhead {
    padding: 12px 12px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    color: rgba(234,240,255,.80);
    font-weight: 950;
    font-size: 13px;
}

.rhead .muted {
    color: rgba(234,240,255,.58);
    font-weight: 800;
    font-size: 12px;
}

.scrollX {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.table th, .table td {
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    vertical-align: top;
}

.table th {
    text-align: left;
    color: rgba(234,240,255,.58);
    font-weight: 900;
    font-size: 12px;
    background: rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.row-hit {
    background: var(--hitBg);
    outline: 1px solid var(--hitStroke);
}

.row-hit td {
    color: var(--hitText);
}

.leagueBadge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.leagueDot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,255,255,.06);
    flex: 0 0 auto;
}

.teams {
    line-height: 1.45;
    white-space: nowrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.10);
    color: rgba(234,240,255,.78);
    font-size: 12px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    margin-right: 6px;
}

.empty {
    padding: 18px 12px;
    text-align: center;
    color: rgba(234,240,255,.62);
    display: none;
}

/* Bottom Sheet（弹出面板） */
.sheetOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
    display: none;
    z-index: 999;
}

.sheetOverlay.show {
    display: block;
}

.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px 8px 0 0;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(10,14,25,.92);
    box-shadow: 0 -18px 60px rgba(0,0,0,.55);
    transform: translateY(110%);
    transition: transform .22s ease;
    z-index: 1000;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sheet.show {
    transform: translateY(0);
}

.sheetTop {
    padding: 10px 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.grab {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    margin: 2px auto 0;
}

.sheetTitle {
    font-weight: 980;
    letter-spacing: .2px;
    font-size: 14px;
    color: rgba(234,240,255,.92);
}

.sheetClose {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.92);
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: 950;
    cursor: pointer;
}

.sheetBody {
    padding: 12px 12px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.section {
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.14);
    padding: 12px 12px;
    margin-bottom: 12px;
}

.section h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 980;
    color: rgba(234,240,255,.86);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.section h4 small {
    color: rgba(234,240,255,.58);
    font-weight: 850;
}

.chips {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    user-select: none;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    padding: 8px 10px;
    font-size: 12.5px;
    color: rgba(234,240,255,.82);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.chip i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    box-shadow: 0 0 0 3px rgba(255,255,255,.05);
    flex: 0 0 auto;
}

.chip.active {
    border-color: rgba(255,255,255,.22);
    background: linear-gradient(135deg, rgba(124,92,255,.88), rgba(48,213,200,.88));
    color: rgba(234,240,255,.95);
}

.chip.active i {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
}

.tabs {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab {
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    padding: 8px 10px;
    font-size: 12.5px;
    color: rgba(234,240,255,.82);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab.active {
    border-color: rgba(255,255,255,.22);
    background: linear-gradient(135deg, rgba(124,92,255,.88), rgba(48,213,200,.88));
    color: rgba(234,240,255,.95);
}

.sheetFooter {
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,.10);
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,.08);
}

.btn {
    flex: 1;
    min-width: 120px;
    border-radius: 4px;
    padding: 11px 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;
    justify-content: center;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.btn.primary {
    background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(48,213,200,.12));
    border-color: rgba(255,255,255,.18);
}
/*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;
}
