/* ==========================================
           1. CSS :ROOT 根变量全局配置
           ========================================== */
:root {
    /* 主体背景色深邃暗紫 */
    --bg-main: #0b071e;
    --bg-gradient-end: #05030f;
    --bg-darker: #0d0921;

    /* 面板与卡片背景 */
    --bg-panel: rgba(20, 14, 50, 0.6);
    --bg-panel-solid: #140e32;
    --bg-card-hover: #1b1245;

    /* 赛博朋克霓虹核心高亮色 */
    --cyan-neon: #00e5ff;
    --magenta-neon: #bc00dd;
    --warning-gold: #ffb700;

    /* 边框与阴影 */
    --border-purple: #23194c;
    --border-card: #251b54;
    --shadow-cyan: rgba(0, 229, 255, 0.15);
    --shadow-magenta: rgba(188, 0, 221, 0.3);

    /* 文字颜色层级 */
    --text-primary: #ffffff;
    --text-muted: #a49ebd;
    --text-dark: #645d80;
    --text-copyright: #433c5c;

    /* 布局与动画微调 */
    --radius-main: 12px;
    --radius-sub: 6px;
    --transition-speed: 0.3s;
    --box-bg: linear-gradient(147deg, #0c152c, #181a2f, #240c48);
    --box-bg2: linear-gradient(120deg, #110c23, #4f2975);
    --box-bg3: linear-gradient(120deg, #37275f, #354167);
    --box-bg4: linear-gradient(147deg, hsl(223deg 57% 11% / 85%), hsl(235deg 32% 14% / 85%), hsl(264deg 71% 16% / 85%));
}

/* ==========================================
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   2. 全局重置与基础样式
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

img {
    max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a,
a:hover,
a:link,
a:visited,
a:focus,
a:active {
    text-decoration: none;
    color: inherit;
}

button {
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
}


body {
    background: url("../images/bg.webp") no-repeat center center;
    background-size: cover;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-index {
    background: linear-gradient(90deg, rgba(43, 20, 74, 0) 0%, rgb(8 9 29 / 94%) 12%, rgb(8 9 29 / 92%) 88%, rgba(43, 20, 74, 0) 100%);
}

/* ==========================================
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   3. 顶部导航栏 (Header)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ========================================== */
header,
.site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    background: rgba(13, 9, 33, 0.95);
    border-bottom: 1px solid var(--border-purple);
    position: sticky;
    top: 0;
    z-index: 100;
    isolation: isolate;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--cyan-neon);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo span {
    color: var(--magenta-neon);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    position: relative;
    display: inline-block;
    color: #b8a9c9;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 25px 15px 30px;
    transition: color var(--transition-speed), text-shadow var(--transition-speed);
}

nav ul li a::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 130%;
    max-width: 110px;
    height: 52px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 100% 100% at 50% 100%,
            rgba(188, 0, 221, 0.5) 0%,
            rgba(188, 0, 221, 0.22) 38%,
            transparent 72%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed);
    z-index: -1;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #af73eb;
    border-radius: 2px;
    box-shadow: 0 0 10px rgb(173 113 235 / 55%), 0 -6px 22px rgb(173 113 235 / 68%);
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

nav ul li a:hover,
nav ul li a.active,
nav ul li:hover>a {
    color: #d8b8ff;
    text-shadow: 0 0 14px rgba(188, 0, 221, 0.55);
}

nav ul li a:hover::before,
nav ul li a.active::before,
nav ul li:hover>a::before,
nav ul li a:hover::after,
nav ul li a.active::after,
nav ul li:hover>a::after {
    opacity: 1;
}

nav ul li a:hover::after,
nav ul li a.active::after,
nav ul li:hover>a::after {
    transform: scaleX(1);
}

.nav-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 110;
    background: rgb(0 0 0 / 85%);
    border-top: 1px solid rgba(188, 0, 221, 0.2);
    border-bottom: 2px solid var(--magenta-neon);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(188, 0, 221, 0.12);
    pointer-events: none;
}

.nav-mega-menu.open {
    display: block;
    pointer-events: auto;
}

.nav-mega-panel {
    display: none;
}

.nav-mega-panel.active {
    display: block;
}

.nav-mega-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 40px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 24px;
}

.nav-mega-inner a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 0;
    transition: color var(--transition-speed), text-shadow var(--transition-speed);
}

.nav-mega-inner a:hover {
    color: #d8b8ff;
    text-shadow: 0 0 10px rgba(188, 0, 221, 0.4);
}

.nav-mega-inner--row10 {
    display: grid;
    grid-template-columns: repeat(10, minmax(72px, 96px));
    justify-content: center;
    gap: 12px 20px;
    padding: 28px 40px;
}

.nav-mega-inner--row10 a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    border-radius: 10px;
    background: rgba(188, 0, 221, 0.06);
    border: 1px solid rgba(188, 0, 221, 0.15);
    transition: background var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
}

.nav-mega-inner--row10 a:hover {
    color: inherit;
    text-shadow: none;
    background: rgba(188, 0, 221, 0.14);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
}

.nav-mega-inner-img {
    display: block;
    width: 100%;
    max-width: 88px;
    height: 115px;
    object-fit: contain;
    object-position: center;
    transition: filter var(--transition-speed), transform var(--transition-speed);
    border-radius: 10px;
}

.nav-mega-inner--row10 a:hover .nav-mega-inner-img {
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.45));
    transform: scale(1.04);
}

/* 移动端菜单按钮（默认隐藏） */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--cyan-neon);
    transition: var(--transition-speed);
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.flag-dropdown {
    position: relative;
}

.flag-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--magenta-neon);
}

.flag-globe svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 4px rgba(188, 0, 221, 0.6)) drop-shadow(0 0 8px rgba(188, 0, 221, 0.35));
}

.flag-chevron svg {
    width: 10px;
    height: 10px;
    filter: drop-shadow(0 0 3px rgba(188, 0, 221, 0.5));
    transition: transform var(--transition-speed);
}

.flag-dropdown.open .flag-chevron svg {
    transform: rotate(180deg);
}

.flag-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    list-style: none;
    background: rgb(20 14 50 / 90%);
    border: 1px solid rgb(0 229 255 / 40%);
    border-radius: var(--radius-sub);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition-speed), transform var(--transition-speed), visibility var(--transition-speed);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(188, 0, 221, 0.15);
    z-index: 120;
}

.flag-dropdown.open .flag-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.flag-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition-speed), color var(--transition-speed);
}

.flag-option:hover,
.flag-option.active {
    background: rgb(1 216 242 / 19%);
    color: var(--text-primary);
}

.flag-icon {
    font-size: 16px;
    line-height: 1;
}

.btn {
    padding: 8px 20px;
    border-radius: var(--radius-sub);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all var(--transition-speed);
}

.btn-login {
    background: transparent;
    border: 2px solid var(--cyan-neon);
    border-radius: 12px;
    color: var(--cyan-neon);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5), 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-login:hover {
    background: transparent;
    color: var(--cyan-neon);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.7), 0 0 30px rgba(0, 229, 255, 0.35);
}

.btn-signup {
    background: transparent;
    border: 2px solid var(--magenta-neon);
    border-radius: 12px;
    color: var(--cyan-neon);
    box-shadow: 0 0 10px rgba(188, 0, 221, 0.5), 0 0 20px rgba(188, 0, 221, 0.2);
}

.btn-signup:hover {
    background: transparent;
    color: var(--cyan-neon);
    box-shadow: 0 0 15px rgba(188, 0, 221, 0.7), 0 0 30px rgba(188, 0, 221, 0.35);
}

/* ==========================================
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   4. 主体布局 (Container)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ========================================== */
.container {
    max-width: 1400px;
    margin: 25px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 20px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    /* 防止 grid 子项溢出 */
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* ==========================================
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   5. 左侧组件: 横幅 / 跑马灯 / 游戏列表
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ========================================== */
.hero-banner {
    position: relative;
    border-radius: var(--radius-main);
    /* border: 1px solid var(--cyan-neon); */
    /* box-shadow: 0 0 20px var(--shadow-cyan); */
    overflow: hidden;
    width: 100%;
}

.hero-slider-track {
    position: relative;
    width: 100%;
}

.hero-slide {
    width: 100%;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.hero-slide picture,
.hero-banner-img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-slide .hero-banner-img.d-show {
    display: block;
}

.hero-slide .hero-banner-img.m-show {
    display: none;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 7, 30, 0.75);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 50%;
    color: var(--cyan-neon);
    cursor: pointer;
    z-index: 2;
    transition: background var(--transition-speed), box-shadow var(--transition-speed);
}

.hero-slider-btn svg {
    width: 12px;
    height: 12px;
}

.hero-slider-btn:hover {
    background: rgba(188, 0, 221, 0.35);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.hero-slider-prev {
    left: 15px;
}

.hero-slider-next {
    right: 15px;
}

.hero-slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
}

.hero-slider-dot.active {
    background: var(--cyan-neon);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
    transform: scale(1.15);
}

.hero-banner h1 {
    font-size: 28px;
    font-weight: 800;
    max-width: 500px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.hero-banner p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 400px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-adventure {
    align-self: flex-start;
    background: linear-gradient(90deg, var(--cyan-neon), var(--magenta-neon));
    border: none;
    color: white;
    padding: 12px 28px;
    font-weight: bold;
    border-radius: var(--radius-sub);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn-adventure:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 0, 221, 0.5);
}

.ticker-wrap {
    position: relative;
    background: linear-gradient(90deg,
            rgba(43, 20, 74, 0) 0%,
            rgba(43, 20, 74, 0.7) 12%,
            rgba(43, 20, 74, 0.7) 88%,
            rgba(43, 20, 74, 0) 100%);
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius-sub);
    font-size: 12px;
    color: #b8a9c9;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.ticker-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 242, 255, 0) 0%, #181818 20%, #a68bcd63 50%, rgb(255 255 255 / 0%) 100%);
    /* box-shadow: 0 0 8px rgba(0, 242, 255, 0.4), 0 0 8px rgba(224, 42, 255, 0.35); */
}

.ticker-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 242, 255, 0) 0%, #181818 20%, #a68bcd63 50%, rgb(255 255 255 / 0%) 100%);
}

.ticker-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    width: max-content;
    white-space: nowrap;
    color: #b8a9c9;
    animation: ticker-scroll var(--ticker-duration, 25s) linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.ticker-text {
    flex-shrink: 0;
    padding-right: 4rem;
}

@keyframes ticker-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(var(--ticker-distance, -50%), 0, 0);
    }
}

.ticker-wrap span.alert-icon {
    color: #ffcc00;
    flex-shrink: 0;
}

.game-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #af73eba1;
    padding-bottom: 8px;
}

.section-header h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.section-nav {
    display: flex;
    gap: 6px;
}

.carousel-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 14, 50, 0.9);
    border: 1px solid #af73eba1;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.carousel-btn svg {
    width: 10px;
    height: 10px;
}

.carousel-btn:hover:not(:disabled) {
    color: var(--cyan-neon);
    border-color: var(--cyan-neon);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.game-carousel {
    --visible-cards: 7;
    --card-gap: 10px;
    --card-width: 140px;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    width: 100%;
}

.game-carousel::-webkit-scrollbar {
    display: none;
}

.game-carousel.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.game-carousel.is-dragging .game-card {
    pointer-events: none;
}

.game-grid {
    display: flex;
    gap: var(--card-gap);
    width: max-content;
}

.game-card {
    flex: 0 0 var(--card-width);
    width: var(--card-width);
    min-width: var(--card-width);
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    /* aspect-ratio: 1 / 1.35; */
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    /* padding-bottom: 12px; */
}

.game-card:hover {
    border-color: var(--cyan-neon);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.2);
}

.game-card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 2;
    transition: background var(--transition-speed);
    pointer-events: none;
}

.game-card:hover::before {
    background: rgba(0, 0, 0, 0.5);
}

.game-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cyan-neon);
    color: #0b071e;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.6);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.game-card-play svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

.game-card:hover .game-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.game-card .provider-logo {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 0 4px;
}

.g1 {
    background: radial-gradient(circle, #e024c3 0%, var(--bg-panel-solid) 100%);

    .provider-logo {
        color: #fff;
    }
}

.g2 {
    background: radial-gradient(circle, #1d62f0 0%, var(--bg-panel-solid) 100%);

    .provider-logo {
        color: var(--cyan-neon);
    }
}

.g3 {
    background: radial-gradient(circle, #601df0 0%, var(--bg-panel-solid) 100%);

    .provider-logo {
        color: #b196ff;
    }
}

.g4 {
    background: radial-gradient(circle, #f01d4b 0%, var(--bg-panel-solid) 100%);

    .provider-logo {
        color: #ffeb3b;
    }
}

.g5 {
    background: radial-gradient(circle, #1df0b4 0%, var(--bg-panel-solid) 100%);

    .provider-logo {
        color: #fff;
    }
}

.g6 {
    background: radial-gradient(circle, #f07e1d 0%, var(--bg-panel-solid) 100%);

    .provider-logo {
        color: #ff3d00;
    }
}

.g7 {
    background: radial-gradient(circle, #c71df0 0%, var(--bg-panel-solid) 100%);

    .provider-logo {
        color: #e024c3;
    }
}

/* ==========================================
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   6. 右侧组件: 快捷入口 / 签到 / 奖池
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ========================================== */
.widget-panel {
    background: var(--box-bg) padding-box, linear-gradient(135deg, #4f6090 0%, #5a6a9a 35%, #1a2036 70%, #5f2c89 100%) border-box;
    border: 1px solid rgba(191, 64, 255, 0.12);
    border-radius: var(--radius-main);
    padding: 20px;
}

.widget-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: bold;
}

.widget-title2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cdc7d2;
    margin-bottom: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    background: var(--box-bg3) padding-box, linear-gradient(135deg, #4f6090 0%, #5a6a9a 35%, #1a2036 70%, #9133de 100%) border-box;
    border: 1.5px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 0 0px rgb(0 0 0 / 20%), 2px 2px 0px rgb(0 0 0 / 35%);
}

.quick-access-panel {
    background: var(--box-bg) padding-box, linear-gradient(135deg, #4f6090 0%, #5a6a9a 35%, #000000 70%, #5f2c89 100%) border-box;
    border: 1px solid rgba(191, 64, 255, 0.12);
    /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                inset -30px -30px 60px rgba(191, 64, 255, 0.04); */
}

.quick-access-panel .widget-title {
    color: var(--text-muted);
    font-weight: 700;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.qa-item {
    background: var(--box-bg) padding-box, linear-gradient(140deg, #57689b 0%, #00000099 35%, #000000a1 70%, #9133de 100%) border-box;
    border: 1.5px solid transparent;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0px;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 0 0px rgb(0 0 0 / 20%), 2px 2px 0px rgb(0 0 0 / 35%);
    text-align: center;
}

.qa-item:hover {
    background:
        linear-gradient(147deg, #354060, #1e2038, #4a3568) padding-box,
        linear-gradient(135deg, #40e0ff 0%, #bf40ff 50%, #ff40ff 100%) border-box;
    box-shadow: 0 0 14px rgba(191, 64, 255, 0.4), 0 0 24px rgba(255, 64, 255, 0.2);
}

.qa-icon {
    font-size: 22px;
    line-height: 1;
}

.qa-icon img {
    max-width: 40px;
}

.qa-item:nth-child(1) .qa-icon {
    filter: drop-shadow(0 0 2px #bf40ff) drop-shadow(0 0 1px #ff40ff);
}

.qa-item:nth-child(2) .qa-icon {
    filter: drop-shadow(0 0 2px #40e0ff) drop-shadow(0 0 1px #bf40ff);
}

.qa-item:nth-child(3) .qa-icon {
    filter: drop-shadow(0 0 2px #40e0ff) drop-shadow(0 0 1px #ff40ff);
}

.qa-item:nth-child(4) .qa-icon {
    filter: drop-shadow(0 0 2px #ffcc00) drop-shadow(0 0 1px #ff8c00);
}

.qa-item:nth-child(5) .qa-icon {
    filter: drop-shadow(0 0 2px #40e0ff) drop-shadow(0 0 1px #bf40ff);
}

.qa-item:nth-child(6) .qa-icon {
    filter: drop-shadow(0 0 2px #ffcc00) drop-shadow(0 0 1px #ffb700);
}

.qa-item:nth-child(7) .qa-icon {
    filter: drop-shadow(0 0 2px #bf40ff) drop-shadow(0 0 1px #ffcc00);
}

.qa-item:nth-child(8) .qa-icon {
    filter: drop-shadow(0 0 2px #bf40ff) drop-shadow(0 0 1px #ffcc00);
}

.qa-item span {
    font-size: 11px;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
}

.checkin-subtitle {
    font-size: 11px;
    color: var(--text-dark);
    margin-top: -10px;
    margin-bottom: 15px;
}

.progress-bar-wrap {
    background: var(--box-bg) padding-box, linear-gradient(135deg, #4f6090 0%, #5a6a9a 35%, #1a2036 70%, #9133de 100%) border-box;
    border: 1.5px solid transparent;
    border-radius: 12px;
    aspect-ratio: 20 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 0 0px rgb(0 0 0 / 20%), 2px 2px 0px rgb(0 0 0 / 35%);
    padding: 0px 5px;
    margin-bottom: 15px;
}

.progress-bar-container {
    background: var(--bg-darker);
    height: 6px;
    border-radius: 3px;
    width: 100%;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--magenta-neon), var(--cyan-neon));
    box-shadow: 0 0 8px var(--cyan-neon);
    transition: width 0.5s ease-in-out;
}

.days-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.day-box {
    border: 1.5px solid transparent;
    border-radius: var(--radius-sub);
    padding: 6px 0;
    text-align: center;
    font-size: 10px;
    color: #ffffff;
    border-color: #465079;
    color: var(--text-primary);
    opacity: 0.5;
    background: var(--box-bg2) padding-box, linear-gradient(140deg, #6376af 0%, #4c2871 35%, #5c1991 70%, #9133de 100%) border-box;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: opacity var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
}

.day-box:not(.checked):hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

.day-box.checked {
    color: var(--text-primary);
    box-shadow: 0 0 0px rgb(0 0 0 / 20%), 2px 2px 0px rgb(0 0 0 / 35%);
    opacity: 1;
    background: var(--box-bg2) padding-box, linear-gradient(140deg, #6376af 0%, #4c2871 35%, #5c1991 70%, #9133de 100%) border-box;
    border: 1.5px solid transparent;
}

.day-box .check-mark {
    display: block;
    margin-top: 4px;
    color: var(--cyan-neon);
    font-size: 10px;
}

.checkin-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
}

.checkin-modal.open {
    opacity: 1;
    visibility: visible;
}

.checkin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 3, 15, 0.75);
    backdrop-filter: blur(4px);
}

.checkin-modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
    padding: 24px;
    border-radius: var(--radius-main);
    background: var(--box-bg) padding-box, linear-gradient(135deg, #4f6090 0%, #5a6a9a 35%, #1a2036 70%, #9133de 100%) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(188, 0, 221, 0.2);
    text-align: center;
}

.checkin-modal-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cyan-neon);
    margin-bottom: 10px;
}

.checkin-modal-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.checkin-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.checkin-modal-actions .btn-login {
    width: 100%;
    padding: 10px 20px;
}

.checkin-modal-cancel {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.checkin-modal-cancel:hover {
    color: var(--text-primary);
}

.jackpot-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--cyan-neon);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    /* margin-bottom: 15px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.winners-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    /* padding: 16px; */
    border-radius: 12px;
    /* background: linear-gradient(135deg, rgba(15, 11, 33, 0.95) 0%, rgba(26, 16, 48, 0.9) 100%); */
    /* border: 1px solid rgba(188, 0, 221, 0.15); */
    /* box-shadow: inset 0 0 24px rgba(188, 0, 221, 0.06); */
}

.winners-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.winner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.winner-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 11px;
}

.winner-rank {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.winner-rank-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(188, 0, 221, 0.55));
}

.winner-rank-num {
    position: absolute;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.winner-name {
    color: #d8d0e8;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-prize {
    color: #c84dff;
    font-weight: 800;
    font-size: 11px;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(200, 77, 255, 0.45);
    flex-shrink: 0;
}

.winner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.winner-icon-img {
    width: 165px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(188, 0, 221, 0.5));
}

.live-promo-panel {
    background: transparent;
    border: none;
    border-radius: var(--radius-main);
    padding: 0 0 28px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.promo-slider-track {
    position: relative;
    width: 100%;
}

.promo-slide {
    width: 100%;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.promo-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.promo-slide-card {
    position: relative;
    display: grid;
    border-radius: var(--radius-main);
    border: 1px solid rgba(188, 0, 221, 0.45);
    box-shadow: 0 4px 20px rgba(188, 0, 221, 0.25);
    overflow: hidden;
}

.promo-banner {
    grid-area: 1 / 1;
    width: 100%;
    line-height: 0;
    z-index: 0;
}

.promo-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.promo-content {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
    align-self: start;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    pointer-events: none;
}

.promo-content>* {
    pointer-events: auto;
}

.promo-brand {
    margin-bottom: 10px;
}

.promo-brand-title {
    line-height: 1;
    margin-bottom: 4px;
    opacity: 0;
}

.promo-brand-live {
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    color: var(--cyan-neon);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.promo-brand-num {
    font-size: 26px;
    font-weight: 800;
    font-style: italic;
    color: #ffb700;
    text-shadow: 0 0 10px rgba(255, 183, 0, 0.5);
}

.promo-brand-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, #1a8cff, #00e5ff);
    border-radius: 3px;
}

.promo-pool-box {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 10px;
    background: rgba(12, 6, 28, 0.75);
    border: 1px solid rgba(188, 0, 221, 0.25);
    border-radius: 10px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}

.promo-slider-dots {
    position: absolute;
    bottom: 15%;
    right: 5%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.promo-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
}

.promo-slider-dot.active {
    background: var(--cyan-neon);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
    transform: scale(1.15);
}

.promo-label {
    font-size: 10px;
    color: #9a8fb0;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.promo-pool {
    font-size: 22px;
    font-weight: 800;
    color: var(--cyan-neon);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
    line-height: 1.2;
}

.promo-timer {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.timer-unit {
    background: rgba(18, 8, 40, 0.9);
    border: 1px solid rgba(188, 0, 221, 0.2);
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #e8e0f5;
    text-align: center;
    min-width: 40px;
    line-height: 1.2;
}

.timer-unit div {
    font-size: 8px;
    font-weight: 600;
    color: #9a8fb0;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ==========================================
                                                                                                                                                                                                           SEO Content Block
                                                                                                                                                                                                           ========================================== */
.seo-content {
    margin-top: 10px;
}

.seo-content-inner {
    padding: 15px 28px;
    border-radius: var(--radius-main);
    border: 1px solid rgba(188, 0, 221, 0.35);
    background: rgba(11, 7, 30, 0.75);
    box-shadow: 0 0 18px rgba(188, 0, 221, 0.08), inset 0 0 24px rgba(0, 0, 0, 0.2);
}

.seo-block+.seo-block {
    margin-top: 20px;
}

.seo-title {
    font-size: 14px;
    font-weight: 700;
    color: #e8e0f5;
    line-height: 1.5;
    margin-bottom: 5px;
}

.seo-text {
    font-size: 12px;
    line-height: 1.75;
    color: #a49ebd;
}

.seo-content-more {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.35s ease;
    margin-top: 0;
}

.seo-content.is-expanded .seo-content-more {
    max-height: 800px;
    opacity: 1;
    margin-top: 22px;
}

.seo-content-toggle {
    display: block;
    margin: 20px auto 0;
    padding: 0;
    background: none;
    border: none;
    color: #d8b8ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color var(--transition-speed), text-shadow var(--transition-speed);
}

.seo-content-toggle:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(188, 0, 221, 0.45);
}

/* ==========================================
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   7. 底部信息栏 (Footer)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ========================================== */
footer {
    margin-top: 50px;
    background: #070414;
    padding: 30px 20px;
    border-top: 1px solid var(--bg-panel-solid);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--text-muted);
}

.copyright {
    font-size: 10px;
    color: var(--text-copyright);
    line-height: 1.6;
}

.m-show {
    display: none;
}

.quick-access {
    display: none;
    position: fixed;
    right: 14px;
    bottom: calc(72px + 12px + env(safe-area-inset-bottom, 0px));
    z-index: 210;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.quick-access-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(5, 3, 15, 0.72);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
    pointer-events: none;
}

.quick-access.is-open {
    pointer-events: auto;
}

.quick-access.is-open .quick-access-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.quick-icon {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    padding: 6px;
    border: 2px solid rgba(188, 0, 221, 0.55);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #6b2f9e59 0%, #2a1548 55%, #120a28 100%);
    box-shadow: 0 0 18px rgba(188, 0, 221, 0.55), 0 4px 14px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    pointer-events: auto;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}

@keyframes quick-icon-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.06);
    }
}

@keyframes quick-icon-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(188, 0, 221, 0.45)) drop-shadow(0 0 10px rgba(188, 0, 221, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(188, 0, 221, 0.85)) drop-shadow(0 0 16px rgba(0, 229, 255, 0.4));
    }
}

@keyframes quick-icon-ring {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.quick-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(188, 0, 221, 0.45);
    animation: quick-icon-ring 2.2s ease-out infinite;
    pointer-events: none;
}

.quick-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center bottom;
    animation:
        quick-icon-float 2.4s ease-in-out infinite,
        quick-icon-glow 2.4s ease-in-out infinite;
}

.quick-access.is-open .quick-icon {
    transform: scale(0.94);
    border-color: rgba(0, 229, 255, 0.55);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.35), 0 4px 14px rgba(0, 0, 0, 0.45);
}

.quick-access.is-open .quick-icon::before,
.quick-access.is-open .quick-icon img {
    animation: none;
}

.expand-widget {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: min(330px, calc(100vw - 28px));
    padding: 16px;
    transform: scale(0.35);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.38s cubic-bezier(0.34, 1.45, 0.64, 1),
        opacity 0.28s ease,
        visibility 0.28s ease;
}

.quick-access.is-open .expand-widget {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.expand-widget .quick-access-grid {
    gap: 8px;
}

.expand-widget .qa-icon img {
    max-width: 34px;
}

.expand-widget .qa-item span {
    font-size: 10px;
}

.footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    width: 100%;
    justify-content: space-around;
    align-items: flex-end;
    gap: 4px;
    padding: 0px 0px calc(0px + env(safe-area-inset-bottom, 0px));
    background: rgba(7, 4, 20, 0.98);
    border-top: 2px solid rgb(66 54 104);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45), 0 -1px 12px rgba(188, 0, 221, 0.12);
    top: auto;
    padding: 5px 0px;
}

.footer-menu.m-show {
    display: none;
}

.footer-menu-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-width: 0;
    padding: 4px 2px;
    color: #b8a9c9;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    transition: color var(--transition-speed);
}

.footer-menu-item::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    width: 46px;
    height: 46px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(188, 0, 221, 0.42) 0%, rgba(188, 0, 221, 0.12) 45%, transparent 72%);
    opacity: 0;
    transition: opacity var(--transition-speed);
    pointer-events: none;
}

.footer-menu-item.active {
    color: #d8b8ff;
}

.footer-menu-item.active::before {
    opacity: 1;
}

.footer-menu-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.footer-menu-icon svg {
    width: 26px;
    height: 26px;
    color: #8fdcff;
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.55));
    transition: color var(--transition-speed), filter var(--transition-speed);
}

.footer-menu-item.active .footer-menu-icon svg {
    color: #e8b8ff;
    filter: drop-shadow(0 0 7px rgba(188, 0, 221, 0.85));
}

.footer-menu-label {
    position: relative;
    z-index: 1;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.15);
}

.footer-menu-item.active .footer-menu-label {
    text-shadow: 0 0 10px rgba(188, 0, 221, 0.45);
}

/* 动画激活状态：汉堡菜单转换为 "X" */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.m-sidemenu a {
    background: var(--box-bg) padding-box, linear-gradient(140deg, #57689b 0%, #00000099 35%, #000000a1 70%, #9133de 100%) border-box;
    border: 1.5px solid transparent;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0px;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 0 0px rgb(0 0 0 / 20%), 2px 2px 0px rgb(0 0 0 / 35%);
    padding: 5px 0px;
    font-size: 10px;
}

.game-grid-all {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

/* ==========================================
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   8. RESPONSIVE MEDIA QUERIES (响应式断点)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ========================================== */

/* 中等屏幕 / 平板设备 (1024px 以下) */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        /* 双列改单列 */
        gap: 25px;
        margin: 10px auto;
        padding: 0 15px;
    }

}

/* 平板 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .game-carousel {
        --visible-cards: 4;
    }
}

/* 小型平板 / 移动端横屏 (768px 以下) */
@media (max-width: 768px) {
    .header-inner {
        padding: 15px 5px;
    }

    .nav-mega-menu {
        display: none !important;
    }

    /* 隐藏桌面端主菜单 */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--box-bg4) padding-box, linear-gradient(140deg, #57689b1a 0%, #bf40ff85 35%, #81818121 70%, #9133de 100%) border-box;
        border-bottom: 1px solid #512089;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border: 1.5px solid transparent;
        border-radius: 0px 0px 10px 10px;
    }

    /* JS 激活后的显示状态 */
    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .d-show {
        display: none;
    }

    .hero-slide .hero-banner-img.d-show {
        display: none;
    }

    .hero-slide .hero-banner-img.m-show {
        display: block;
    }

    .m-show {
        display: flex;
    }

    .footer-menu.m-show {
        display: flex;
        border-radius: 15px 15px 0px 0px;
    }

    .quick-access.m-show {
        display: flex;
    }

    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    footer {
        margin-bottom: 0;
        margin-top: 0px;
    }

    .menu-toggle {
        display: flex;
        /* 显示汉堡包按钮 */
        order: 3;
    }

    .auth-buttons {
        order: 2;
        margin-left: auto;
        margin-right: 5px;
        gap: 5px;
    }

    .game-carousel {
        --visible-cards: 4;
        --card-gap: 8px;
    }

    .game-card {
        aspect-ratio: 2 / 3;
    }

    .hero-banner h1 {
        font-size: 22px;
    }

    .mobile-widget {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-widget .quick-access-panel {
        padding: 0px;
        border: none;
        background: none;
    }

    .mobile-widget .quick-access-panel.mobile-scroll-wrap {
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        padding-bottom: 4px;
    }

    .mobile-widget .quick-access-panel.mobile-scroll-wrap::-webkit-scrollbar {
        display: none;
    }

    .mobile-scroll-wrap .quick-access-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
        width: max-content;
        max-width: none;
    }

    .mobile-scroll-wrap .qa-item {
        flex: 0 0 auto;
        width: 72px;
        min-width: 72px;
    }

    .mobile-scroll-wrap .qa-item a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        gap: 0;
    }

    .left-column {
        gap: 10px;
    }

    .widget-panel {
        padding: 10px 15px;
        position: relative;
    }

    .winners-wrap {
        position: absolute;
        right: 0px;
        top: 0px;
    }

    .winners-list {
        display: none;
    }

    .m-sidemenu {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .mobile-widget .qa-item {
        aspect-ratio: auto;
        padding: 5px 0px;
    }

    .mobile-scroll-wrap .qa-item {
        flex: 0 0 auto;
        width: 72px;
        min-width: 72px;
        aspect-ratio: 1 / 1;
        padding: 0;
    }

    .qa-item.active {
        background: linear-gradient(147deg, #354060, #1e2038, #4a3568) padding-box, linear-gradient(135deg, #40e0ff 0%, #bf40ff 50%, #ff40ff 100%) border-box;
        box-shadow: 0 0 14px rgba(191, 64, 255, 0.4), 0 0 24px rgba(255, 64, 255, 0.2);
    }

    .footer-menu-item img {
        height: 25px;
    }

    .game-grid-all {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

}

.logo img {
    height: 30px;
}

/* 纯移动端垂直屏 (480px 以下) */
@media (max-width: 480px) {
    .auth-buttons .btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .logo img {
        font-size: 18px;
        height: 20px;
    }

    .hero-slider-btn {
        width: 30px;
        height: 30px;
    }

    .hero-slider-prev {
        left: 8px;
    }

    .hero-slider-next {
        right: 8px;
    }

    .hero-banner h1 {
        font-size: 18px;
    }

    .hero-banner p {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .game-carousel {
        --visible-cards: 4;
        --card-gap: 8px;
    }

    .quick-access-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 快捷方式改为 3 列 */
    }

    .qa-icon img {
        max-width: 38px;
    }

    .days-row {
        grid-template-columns: repeat(7, 1fr);
        /* 签到天数流式换行 */
        gap: 4px;
    }

    .jackpot-amount {
        font-size: 20px;
    }

    .widget-title2 {
        flex-direction: column;
        align-items: flex-start;
        margin: 0px;
    }

    .winner-icon-img {
        /* display: none; */
    }
}

/* ==========================================
                                                                                                                                                           Auth / Login Page
                                                                                                                                                           ========================================== */
.container--auth {
    display: block;
    max-width: 865px;
    margin: 32px auto 48px;
}

.login-wrap {
    width: 100%;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
    align-items: stretch;
    gap: 30px;
    border-radius: 16px;
}

.auth-promo {
    position: relative;
    min-height: 0;
    align-self: stretch;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(188, 0, 221, 0.35);
    box-shadow: 0 0 24px rgba(188, 0, 221, 0.1);
}

.auth-promo-text {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(188, 0, 221, 0.35);
}

.auth-promo-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.auth-promo-img.m-show {
    display: none;
}

.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 620px;
    padding: 36px 40px;
    background: rgb(87 84 84 / 26%);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border: 1px solid rgb(188 0 221 / 38%);
    border-radius: 20px;
}

.auth-form-glass {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    padding: 32px 34px 28px;
    border-radius: 14px;
    background: rgb(255 255 255 / 0%);
    backdrop-filter: blur(26px) saturate(1.2);
    -webkit-backdrop-filter: blur(26px) saturate(1.2);
    border: 1px solid rgb(188 0 221 / 38%);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-radius: 20px;
}

.auth-form-title {
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 800;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.4;
    margin-bottom: 28px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px 0 44px;
    border-radius: 12px;
    border: none;
    background: transparent;
    isolation: isolate;
    transition: box-shadow var(--transition-speed);
}

.auth-field::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #75c7db 0%, #5b6dff 45%, #d397ff 100%);
    z-index: -2;
    box-shadow: 0 0 3px rgb(82 158 181), 0 0 6px 1px rgb(166 119 198);
}

.auth-field::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: 10.5px;
    background: rgba(16, 12, 32, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

.auth-field:focus-within {
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.28), 0 0 16px rgba(188, 0, 221, 0.28);
}

.auth-field:focus-within::before {
    background: linear-gradient(90deg, #40efff 0%, #7b8cff 45%, #d420ff 100%);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.35), 0 0 14px rgba(188, 0, 221, 0.35);
}

.auth-field-icon {
    position: absolute;
    left: 14px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #b8a9d8;
    pointer-events: none;
}

.auth-field-icon svg {
    width: 18px;
    height: 18px;
}

.auth-field input {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 12px 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.auth-field input::placeholder {
    color: #7d7494;
}

.auth-field-toggle {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 4px;
    padding: 0;
    border: none;
    background: transparent;
    color: #b8a9d8;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.auth-field-toggle svg {
    width: 18px;
    height: 18px;
}

.auth-field-toggle:hover {
    color: #d8b8ff;
}

.auth-submit-btn {
    margin-top: 10px;
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #bfd8fcb0;
    border-radius: 10px;
    background: linear-gradient(90deg, #00e5ff 0%, #bc00dd 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.35), 0 0 30px rgba(188, 0, 221, 0.25);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), filter var(--transition-speed);
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.45), 0 0 36px rgba(188, 0, 221, 0.35);
}

.auth-switch {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: #c8bdd8;
}

.auth-switch a {
    color: var(--cyan-neon);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
    transition: color var(--transition-speed);
}

.auth-switch a:hover {
    color: #fff;
}

.promo-slider-track h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #bc00dd57;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .container--auth {
        margin: 16px auto 32px;
        padding: 0 12px;
    }

    .auth-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .auth-form-panel {
        order: 1;
        min-height: auto;
        padding: 20px 16px 24px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
    }

    .auth-promo {
        order: 2;
        min-height: auto;
        border: none;
        border-radius: 0 0 16px 16px;
        height: auto;
    }

    .auth-promo-img {
        position: absolute;
        inset: 0;
        height: 100%;
        object-fit: contain;
        object-position: bottom center;
    }

    .auth-promo-text {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .auth-promo-img.d-show {
        display: none;
    }

    .auth-promo-img.m-show {
        display: block;
        position: relative;
    }

    .auth-form-glass {
        max-width: 100%;
        padding: 24px 18px 20px;
    }

    .auth-form-title {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .ticker-wrap {
        font-size: 10px;
        padding: 5px 15px;
    }
}