:root {
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --blue-pale: #dbeafe;
    --bg: #eef4ff;
    --border: rgba(37, 99, 235, 0.13);
    --text: #0f1e3a;
    --muted: #4b6288;
    --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box }

html, body { height: 100%; overflow: hidden; }

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(150deg, #e8f0ff 0%, #eef4ff 50%, #e6f0ff 100%);
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
}

/* ── NAVBAR ── */
.navbar {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    background: linear-gradient(180deg, rgba(230,240,255,0.97), rgba(220,234,255,0.9));
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 18px rgba(37,99,235,0.1);
}

.nav-logo { display: flex; align-items: center; gap: 10px }

.logo-pill {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    padding: 5px 14px;
    border-radius: 12px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}

.nav-dl-btn {
    background: #fff;
    color: #1e3a8a;
    font-weight: 800;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37,99,235,0.18);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    display: inline-block;
}

.nav-dl-btn:active { transform: translateY(1px) }

/* ── BANNER ── */
.banner-outer {
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .banner-outer {
        height: 320px;
    }
}

@media (min-width: 1200px) {
    .banner-outer {
        aspect-ratio: 19 / 3;
        max-height: 420px;
    }
}

.banner-slides {
    display: flex;
    height: 100%;
}

.bslide {
    min-width: 100%;
    height: 100%;
}

.bslide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 按钮 */
.ban-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.3);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.ban-prev { left: 10px; }
.ban-next { right: 10px; }

/* dots */
.ban-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.ban-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
}

.ban-dots span.active {
    background: #fff;
}

/* ── NOTICE BAR ── */
.notice-bar {
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
    color: #fff; font-size: 12px; font-weight: 600;
    padding: 5px 16px; overflow: hidden; white-space: nowrap;
}

.notice-inner {
    display: inline-block;
    animation: marquee 22s linear infinite;
}

@keyframes marquee {
    0%   { transform: translateX(100vw) }
    100% { transform: translateX(-100%) }
}

/* ── ICON SCROLL ── */
.icon-strip {
    background: rgba(255,255,255,0.72);
    border-bottom: 1px solid var(--border);
    padding: 8px 0; overflow: hidden;
    backdrop-filter: blur(6px);
}

.icon-track {
    display: flex; gap: 10px; align-items: center;
    width: max-content;
    animation: scrollLeft 28s linear infinite;
    padding: 0 10px;
}

.icon-track:hover { animation-play-state: paused }

@keyframes scrollLeft {
    0%   { transform: translateX(0) }
    100% { transform: translateX(-50%) }
}

.icon-ball {
    width: 48px; height: 48px; border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 14px rgba(37,99,235,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; color: #1e3a8a;
    cursor: pointer;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    transition: transform .2s;
    overflow: hidden;
}

.icon-ball:hover { transform: scale(1.1) }

.icon-ball img {
    width: 100%; height: 100%;
    border-radius: 50%; object-fit: cover;
}

.icon-lbl {
    font-size: 9px; color: #4b6288;
    text-align: center; width: 52px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.icon-wrap {
    display: flex; flex-direction: column;
    align-items: center; gap: 3px;
}

/* ── TABS ── */
.tabs-row {
    display: flex; align-items: center;
    padding: 0; background: #fff;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 2px solid #e8eef8;
}

.tabs-row::-webkit-scrollbar { display: none }

.tab-pill {
    flex-shrink: 0;
    padding: 11px 16px 10px;
    border: none; background: transparent;
    color: #7b8faf; font-size: 13px; font-weight: 600;
    cursor: pointer; position: relative;
    transition: color .22s; white-space: nowrap; letter-spacing: 0.2px;
}

.tab-pill::after {
    content: '';
    position: absolute; bottom: -2px; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%; height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}

.tab-pill.active { color: #1d4ed8; font-weight: 800 }
.tab-pill.active::after { transform: translateX(-50%) scaleX(1) }
.tab-pill:first-child { padding-left: 14px }

.tab-pill.active .tab-dot { display: inline-block }

.tab-dot {
    display: none;
    width: 5px; height: 5px;
    background: #3b82f6; border-radius: 50%;
    margin-left: 4px; vertical-align: middle;
    animation: dotPop .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes dotPop {
    from { transform: scale(0) }
    to   { transform: scale(1) }
}

/* ── SCROLL AREA ── */
.scroll-area {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #eef4ff;
    box-sizing: border-box;
}

.scroll-area::-webkit-scrollbar { width: 4px }
.scroll-area::-webkit-scrollbar-thumb {
    background: rgba(37,99,235,0.2); border-radius: 2px;
}

/* ── CARDS WRAP ── */
.cards-wrap {
    padding: 0 10px 14px;
    box-sizing: border-box;
}

/* ── TAB PANELS ── */
.tab-panel { display: none }
.tab-panel.active { display: block }

/* Section header */
.section-title {
    text-align: center; font-size: 18px; font-weight: 900;
    color: #0f1e3a; padding: 14px 0 12px; letter-spacing: 0.3px;
}
.section-title span { color: #2563eb }

/* ── PLATFORM CARDS (2-col) ── */
.plat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.plat-card {
    background: #fff; border-radius: 14px;
    padding: 12px 10px 10px;
    display: flex; flex-direction: column;
    cursor: pointer; position: relative;
    box-shadow: 0 3px 14px rgba(37,99,235,0.10);
    border: 1px solid rgba(210,225,255,0.9);
    transition: transform .18s;
    text-decoration: none; color: inherit;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-all;
}

.plat-card:active { transform: scale(0.97) }

.plat-top {
    display: flex; align-items: flex-start;
    gap: 8px; margin-bottom: 10px;
}

.plat-ico {
    width: 60px; height: 60px; min-width: 60px; border-radius: 13px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: #fff; text-align: center;
    line-height: 1.15;
    box-shadow: 0 4px 14px rgba(0,0,0,0.20);
    position: relative; overflow: hidden;
}

.plat-ico::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 42%;
    background: linear-gradient(180deg, rgba(255,255,255,0.28), transparent);
    border-radius: 14px 14px 60% 60%; z-index: 1;
    pointer-events: none;
}

.plat-ico img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 14px;
    display: block; position: relative; z-index: 0;
}

.plat-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 3px;
    overflow: hidden;
    padding-top: 1px;
}

.plat-name {
    display: flex; align-items: center;
    font-size: 15px; font-weight: 900;
    color: #0f1e3a; line-height: 1.25; overflow: hidden;
}

.plat-name-text {
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; min-width: 0;
}

.plat-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ef4444);
    color: #fff; font-size: 10px; font-weight: 800;
    padding: 2px 7px; border-radius: 20px;
    letter-spacing: 0.5px; margin-left: 5px;
    flex-shrink: 0; white-space: nowrap;
    box-shadow: 0 2px 6px rgba(239,68,68,0.35); line-height: 1.6;
}

.plat-sub {
    font-size: 11.5px; color: #7a90b5;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.plat-stars {
    display: flex; align-items: center;
    flex-wrap: nowrap; gap: 0; margin-top: 3px;
}

.plat-stars .star       { color: #f59e0b; font-size: 13px; line-height: 1; flex-shrink: 0 }
.plat-stars .star-empty { color: #d1d5db; font-size: 13px; flex-shrink: 0 }

.plat-score {
    display: block;
    font-size: 11px; color: #5a78a8;
    font-weight: 700; white-space: nowrap;
    margin-top: 2px;
}

.plat-btn {
    display: block; width: 100%; padding: 10px 0;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff; font-size: 14px; font-weight: 800;
    text-align: center; border: none; border-radius: 10px;
    cursor: pointer; letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(37,99,235,0.32);
    transition: filter .15s, transform .15s;
}

.plat-btn:active { filter: brightness(0.9); transform: scale(0.98) }

/* ── FOOTER ── */
.site-footer {
    text-align: center; padding: 14px;
    font-size: 11px; color: #7b8aa3;
    border-top: 1px solid var(--border);
}

.site-footer .brand {
    font-weight: 800; font-size: 13px;
    color: #4b6288; margin-bottom: 2px;
}

/* ── TELEGRAM FLOAT BTN ── */
.float-tg {
    position: fixed; bottom: 20px; right: 16px; z-index: 999;
    width: 48px; height: 48px;
    background: #2563eb; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; text-decoration: none;
    box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}