﻿:root {
    --bg: #edf1f5;
    --card: #ffffff;
    --card-soft: #f6f9ff;
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #64748b;
    --line: #dbe4f0;
    --line-strong: #c9d7ea;
    --brand: #3b82f6;
    --brand-deep: #2563eb;
    --brand-soft: #dbeafe;
    --gold: #f59e0b;
    --gold-soft: #fef3c7;
    --silver: #60a5fa;
    --silver-soft: #dbeafe;
    --bronze: #fb923c;
    --bronze-soft: #ffedd5;
    --good: #16a34a;
    --warn: #ea580c;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, .05);
    --shadow-md: 0 8px 22px rgba(15, 23, 42, .07);
    --radius: 4px;
    --shell-accent: #3b82f6;
    --shell-accent-soft: #eff6ff;
}

* {
    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: #edf1f5;
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.site-app-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    width: 100%;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(229, 231, 235, .88);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-app-header-inner {
    max-width: 760px;
    min-height: 62px;
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-app-logo {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.site-app-logo-box {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    background: #e53935;
}

.site-app-logo-box img {
    width: 100%;
    height: 100%;
    display: block;
}

.site-app-logo-text {
    min-width: 0;
    display: block;
}

.site-app-logo-text strong,
.site-app-logo-text small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-app-logo-text strong {
    color: var(--text);
    font-size: 16px;
    line-height: 1.1;
    font-weight: 900;
}

.site-app-logo-text small {
    margin-top: 3px;
    color: var(--text-3);
    font-size: 11px;
    line-height: 1.1;
}

.site-app-header-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-app-header-action {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: var(--radius);
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 800;
}

.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 10px 10px 18px;
}

.nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(255,255,255,.16);
    border-radius: var(--radius);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.nav-btn svg {
    width: 18px;
    height: 18px;
}

.brand {
    min-width: 0;
    text-align: left;
}

.title {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
}

.title-sub {
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255,255,255,.82);
    line-height: 1;
}

.hero {
    margin-bottom: 10px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #3b82f6 0%, #5fa8ff 100%);
    box-shadow: 0 10px 24px rgba(59, 130, 246, .18);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 18%, rgba(255,255,255,.24), transparent 32%), radial-gradient(circle at 92% 10%, rgba(255,255,255,.12), transparent 28%);
    pointer-events: none;
}

.heroInner {
    position: relative;
    padding: 10px 12px 10px;
    color: #fff;
}

.heroNav {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.heroMeta {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.18);
    padding: 4px 7px;
    border-radius: 999px;
    white-space: nowrap;
}

.sub {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255,255,255,.9);
}

.list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    overflow: hidden;
}

.card.strong {
    background: linear-gradient(180deg, #fff8f7 0%, #fffdfc 100%);
    border-color: #f0c7c2;
}

.rank {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-radius: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: 0;
}

.rank.top1 {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: #7a3e00;
    background:
        radial-gradient(circle at 32% 24%, rgba(255,255,255,.95) 0 8%, transparent 18%),
        linear-gradient(135deg, #fff7c2 0%, #f7c948 38%, #f59e0b 100%);
    border: 1px solid rgba(180,83,9,.30);
    box-shadow: 0 8px 18px rgba(245,158,11,.24), inset 0 1px 0 rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 900;
}

.rank.top2 {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    color: #1e3a8a;
    background:
        radial-gradient(circle at 32% 24%, rgba(255,255,255,.92) 0 8%, transparent 18%),
        linear-gradient(135deg, #eef6ff 0%, #9cc8ff 42%, #3b82f6 100%);
    border: 1px solid rgba(37,99,235,.26);
    box-shadow: 0 7px 16px rgba(59,130,246,.20), inset 0 1px 0 rgba(255,255,255,.72);
    font-size: 13.5px;
    font-weight: 900;
}

.rank.top3 {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #7c2d12;
    background:
        radial-gradient(circle at 32% 24%, rgba(255,255,255,.90) 0 8%, transparent 18%),
        linear-gradient(135deg, #fff2df 0%, #fb923c 46%, #c2410c 100%);
    border: 1px solid rgba(194,65,12,.24);
    box-shadow: 0 6px 14px rgba(251,146,60,.20), inset 0 1px 0 rgba(255,255,255,.68);
    font-size: 13px;
    font-weight: 900;
}

.avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.avatar .ph,
.avatar img {
    width: 100%;
    height: 100%;
    display: block;
}

.main {
    min-width: 0;
    flex: 1;
}

.nameRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nameWrap {
    min-width: 0;
}

.name {
    font-size: 15px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jump {
    height: 22px;
    flex: 0 0 auto;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.jump svg {
    width: 13px;
    height: 13px;
}

.summaryLine {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

.summaryLine .sep {
    color: #c4ccd7;
    font-size: 12px;
}

.k {
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
}

.v {
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    white-space: nowrap;
}

.v.strong,
.rv.strong {
    color: #d93025;
}

.v.warn {
    color: var(--warn);
}

.v.weak,
.v.pending,
.rv.weak,
.rv.pending {
    color: var(--text-3);
}

.ratioItem {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.rk {
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
}

.rv {
    font-size: 11px;
    font-weight: 400;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.empty {
    margin-top: 10px;
    padding: 16px 12px;
    border-radius: var(--radius);
    border: 1px dashed #cbd5e1;
    background: rgba(255,255,255,.72);
    text-align: center;
    color: var(--text-3);
    display: none;
}

.site-footer {
    margin-top: 16px;
    padding: 12px 6px calc(14px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 11px;
    color: var(--text-3);
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.6;
}

.footer-links a {
    color: #475569;
    padding: 1px 3px;
}

.footer-links .sep {
    opacity: .35;
}

.footer-meta {
    margin-top: 6px;
    line-height: 1.45;
}

.footer-meta .slogan {
    margin-top: 2px;
    font-size: 10px;
    opacity: .8;
}

.app-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    width: 100%;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid rgba(229, 231, 235, .95);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, .10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.app-tabbar-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
}

.app-tab {
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: var(--radius);
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    transition: background .16s ease, color .16s ease;
}

.app-tab svg {
    width: 23px;
    height: 23px;
    display: block;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.app-tab span {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-tab:hover {
    color: var(--shell-accent);
    background: var(--shell-accent-soft);
}

.app-tab.active {
    color: var(--shell-accent);
    background: var(--shell-accent-soft);
}

@media (max-width: 640px) {
    body {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .site-app-header-inner {
        min-height: 56px;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 8px;
    }

    .wrap {
        padding: 8px 8px 16px;
    }

    .heroInner {
        padding: 10px 10px 9px;
    }

    .sub {
        font-size: 11.5px;
    }

    .card {
        gap: 8px;
        padding: 9px 9px 8px;
    }

    .card::after {
        top: 9px;
        bottom: 9px;
    }

    .rank {
        width: 22px;
        min-width: 22px;
        height: 24px;
        font-size: 11.5px;
    }

    .avatar {
        width: 38px;
        height: 38px;
    }

    .name {
        font-size: 14px;
    }

    .rv {
        font-size: 11.5px;
    }

    .site-footer {
        padding: 10px 6px calc(12px + env(safe-area-inset-bottom));
    }

    .law-note {
        margin-bottom: 5px !important;
        font-size: 10.5px;
        line-height: 1.25;
    }

    .footer-links a {
        font-size: 10.5px;
    }

    .app-tabbar-inner {
        padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
        gap: 2px;
    }

    .app-tab {
        min-height: 50px;
    }
}

@media (max-width: 360px) {
    .title {
        font-size: 16px;
    }
}

