:root {
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --blue-pale: #dbeafe;
    --sky: #0ea5e9;
    --bg: #eef4ff;
    --bg2: #f0f6ff;
    --white: rgba(255, 255, 255, 0.9);
    --card-bg: rgba(255, 255, 255, 0.82);
    --border: rgba(37, 99, 235, 0.13);
    --shadow: 0 8px 28px 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);
}

.logo-sub {
    font-size: 11px;
    color: #4b6288;
    font-weight: 500
}

.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;
}

.nav-dl-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25)
}

/* ── BANNER ── */
.banner-outer {
    position: relative;
    overflow: hidden;
    background: #0a1628;
    height: min(38vw, 420px);   /* PC 最大 420px */
}

.banner-slides {
    display: flex;
    width: 100%;
    height: 100%;        /* 关键：撑满外层容器高度 */
    will-change: transform;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.bslide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    height: 100%;        /* 继承父级高度 */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.bslide a {
    display: block;
    width: 100%;
    height: 100%;
}

.bslide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── 移动端 ── */
@media (max-width: 768px) {
    .banner-outer {
        height: clamp(140px, 48vw, 220px);
    }

    .bslide-content {
        padding: 0 16px;
    }

    .bslide-eyebrow {
        font-size: 11px;
    }

    .bslide-title {
        font-size: 18px;
    }

    .bslide-desc {
        font-size: 12px;
    }

    .ban-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .ban-dot {
        width: 6px;
        height: 6px;
    }
}

/* ── 小屏手机 ── */
@media (max-width: 390px) {
    .banner-outer {
        height: clamp(120px, 52vw, 180px);
    }
}

/* ── 大屏 PC ── */
@media (min-width: 1440px) {
    .banner-outer {
        height: 400px;
    }
}

.bslide-1 {
    background: linear-gradient(135deg, #051230 0%, #0d2d6e 45%, #0a1a40 100%)
}

.bslide-2 {
    background: linear-gradient(135deg, #12052e 0%, #3b0d6e 45%, #1a0a40 100%)
}

.bslide-3 {
    background: linear-gradient(135deg, #042e14 0%, #0d5e2a 45%, #0a3018 100%)
}

.bslide-content {
    padding: 0 40px;
    color: #fff;
    z-index: 2;
    animation: slideIn .6s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-24px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

.bslide-eyebrow {
    font-size: 11px;
    opacity: .6;
    margin-bottom: 6px;
    letter-spacing: 2px
}

.bslide-title {
    font-size: clamp(22px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.15
}

.bslide-title .hl {
    color: #fbbf24
}

.bslide-desc {
    font-size: 12px;
    opacity: .65;
    margin-top: 8px
}

.bslide-btn {
    margin-top: 14px;
    display: inline-block;
    background: #fbbf24;
    color: #000;
    font-weight: 800;
    font-size: 13px;
    padding: 8px 24px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}

.bslide-deco {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(60px, 10vw, 100px);
    opacity: .15;
    z-index: 1;
    user-select: none;
}

/* banner nav */
.ban-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 16px;
    z-index: 10;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.ban-btn:hover {
    background: rgba(255, 255, 255, 0.35)
}

.ban-prev {
    left: 10px
}

.ban-next {
    right: 10px
}

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

.ban-dot {
    width: 20px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all .3s
}

.ban-dot.active {
    background: #fbbf24;
    width: 28px
}

/* country flags bar */
.flag-row {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.flag-row span {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4))
}

/* ── 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 18s 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: 22px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--c1, #dbeafe), var(--c2, #bfdbfe));
    transition: transform .2s;
}

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

.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;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 6px;
    background: rgba(238, 244, 255, 0.8);
}

.tab-pill {
    padding: 6px 20px;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    background: #fff;
    color: #4b6288;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .22s;
}

.tab-pill.active {
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* ── SCROLL AREA ── */
.scroll-area {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(238, 244, 255, 0.5);
}

.scroll-area::-webkit-scrollbar {
    width: 4px
}

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

/* ── CARD GRID ── */
.cards-wrap {
    padding: 0 14px 14px
}

.card-row {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
    backdrop-filter: blur(8px);
}

.card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 10px 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 10px rgba(37, 99, 235, 0.08);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18)
}

.card-ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.card-name {
    font-size: 11px;
    color: #1e3a8a;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%
}

/* badges */
.badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    overflow: hidden;
}

.badge::before {
    content: attr(data-txt);
    position: absolute;
    top: 10px;
    left: -6px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 12px;
    transform: rotate(-45deg);
    transform-origin: center;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* game card / welfare card (same grid) */
.game-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 12px 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 10px rgba(37, 99, 235, 0.08);
    transition: transform .22s, box-shadow .22s;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18)
}

.game-card.hi {
    background: rgba(219, 234, 254, 0.7);
    border: 1.5px solid rgba(37, 99, 235, 0.3)
}

.game-ico {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.8), rgba(191, 219, 254, 0.6));
}

.game-name {
    font-size: 11px;
    color: #1e3a8a;
    font-weight: 600;
    text-align: center;
    line-height: 1.35
}

/* welfare */
.welf-ico {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
}

/* ── 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
}

/* hidden tab panels */
.tab-panel {
    display: none
}

.tab-panel.active {
    display: block
}