﻿:focus-visible {
    outline: none;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
    font-size: 14px;
}

body {
    margin: 0;
    line-height: inherit;
    color: #fff;
    font-family: Montserrat, "Open Sans", "PingFang SC", "Microsoft YaHei", sans-serif !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(126, 34, 206, 0.55) 0, transparent 32%),
        radial-gradient(circle at 88% 14%, rgba(14, 165, 233, 0.35) 0, transparent 30%),
        radial-gradient(circle at 50% 92%, rgba(244, 63, 94, 0.25) 0, transparent 34%),
        linear-gradient(135deg, #050816 0%, #0b1024 38%, #151033 72%, #080b18 100%);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.11) 0 1px, transparent 2px),
        radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.09) 0 1px, transparent 2px),
        radial-gradient(circle at 34% 78%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px),
        radial-gradient(circle at 82% 74%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px);
    background-size: 260px 260px, 310px 310px, 280px 280px, 340px 340px;
    animation: bgFloat 18s linear infinite;
    opacity: 0.9;
}

@keyframes bgFloat {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-80px, 60px, 0);
    }
}

body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

body::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
}

body::-webkit-scrollbar-track {
    background: transparent;
}

button {
    font-family: inherit;
    font-size: 100%;
    cursor: pointer;
    background: transparent;
    padding: 0;
}

h2,
h5,
p {
    margin: 0;
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.content-wrapper > div {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
}

.ag-font,
.ag-font1 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}

/* 背景流星层 */
.star-container {
    position: fixed;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

.star-container2 {
    background: transparent;
}

.star-container .meteor {
    width: 1px;
    display: block;
    position: absolute;
    background-color: transparent;
    opacity: 0;
    animation: meteor 15s linear infinite;
}

.star-container .meteor::after {
    content: "";
    display: block;
    border: 1px solid #fff;
    border-width: 0 90px 2px 90px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.58);
    transform: rotate(-45deg);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
}

.star-container .change {
    width: 58px;
    height: 58px;
    position: absolute;
    left: 81.8%;
    top: 169px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 4px, rgba(147, 197, 253, 0.38) 5px 18px, transparent 32px);
    box-shadow: 0 0 32px rgba(147, 197, 253, 0.65);
    animation: myChange 8s linear;
}

@keyframes meteor {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(-800px, 100vh, 0);
    }
}

@keyframes myChange {
    0% {
        left: 41.8%;
        top: 669px;
        opacity: 0;
    }
    20% {
        left: 49.8%;
        top: 569px;
        opacity: 0.25;
    }
    40% {
        left: 57.8%;
        top: 469px;
        opacity: 0.45;
    }
    60% {
        left: 65.8%;
        top: 369px;
        opacity: 0.65;
    }
    80% {
        left: 73.8%;
        top: 269px;
        opacity: 0.85;
    }
    100% {
        left: 81.8%;
        top: 169px;
        opacity: 1;
    }
}

/* 顶部区域 */
.home-top-entry {
    margin: 0 auto;
    max-width: 1430px;
}

.home-top-entry .game-wrapper {
    margin-top: 64px;
    grid-template-columns: 950px 1fr;
    display: grid;
    gap: 20px;
}

.home-top-entry .game-wrapper .game-wrapper_agbox {
    grid-row: span 2;
    position: relative;
}

.home-top-entry .game-wrapper_ag {
    border-radius: 24px 58px 24px 24px !important;
    padding: 32px;
    cursor: pointer;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-top-entry .game-wrapper_ag::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.22) 0, transparent 20%),
        radial-gradient(circle at 92% 80%, rgba(168, 85, 247, 0.42) 0, transparent 28%),
        linear-gradient(135deg, rgba(67, 56, 202, 0.96), rgba(88, 28, 135, 0.9) 45%, rgba(15, 23, 42, 0.96));
}

.home-top-entry .game-wrapper_ag::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 520px;
    height: 520px;
    z-index: -1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(251, 191, 36, 0.28), transparent 58%),
        conic-gradient(from 180deg, rgba(34, 211, 238, 0.28), rgba(168, 85, 247, 0.28), rgba(244, 63, 94, 0.24), rgba(34, 211, 238, 0.28));
    filter: blur(2px);
    opacity: 0.9;
}

.home-top-entry .game-wrapper_ag:hover {
    transform: translateY(-4px);
    box-shadow:
        0 22px 70px rgba(88, 28, 135, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.home-top-entry .game-wrapper .game-wrapper_agbg {
    background: transparent;
}

.home-top-entry .game-wrapper_ag-list {
    display: flex;
    color: #f9f5f3;
    line-height: 28px;
}

.home-top-entry .game-wrapper_ag-list ul {
    display: flex;
    flex-wrap: wrap;
}

.home-top-entry .game-wrapper_ag-list ul li {
    margin-right: 12px;
}

.home-top-entry .game-wrapper_ag-list ul li i {
    margin-right: 8px;
    font-weight: 800;
    font-style: normal;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.home-top-entry .game-wrapper_ag-join {
    margin-top: 24px;
    max-width: 620px;
}

.home-top-entry .game-wrapper_ag-join h2 {
    font-size: 28px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.home-top-entry .game-wrapper_ag-join p {
    margin-top: 8px;
    font-size: 15px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.82);
}

/* 平台注册卡片 */
.ag-card1 {
    position: relative;
    display: flex;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 0 16px 16px;
    overflow: hidden;
    cursor: pointer;
    height: 156px;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
    transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ag-card1::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.12), transparent 24%),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 48%, transparent 58%);
    opacity: 0.65;
}

.home-top-entry .game-wrapper .ag-card1:hover {
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.34), rgba(14, 165, 233, 0.12));
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.home-top-entry .game-wrapper .ag-card-img {
    width: 164px;
    border-radius: 14px;
    background-color: rgba(0, 0, 0, 0.28);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    z-index: 2;
}

.home-top-entry .game-wrapper .ag-card1:hover .ag-card-img {
    transform: scale(1.035);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

.home-top-entry .game-wrapper .ag-card-content {
    flex: 1 1;
    padding-left: 20px;
    padding-right: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.home-top-entry .game-wrapper .ag-card-content h5 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.home-top-entry .game-wrapper .ag-card-content ul {
    display: flex;
}

.home-top-entry .game-wrapper .ag-card-content ul li {
    white-space: pre-wrap;
    font-size: 13px;
    color: #dbeafe;
}

.home-top-entry .game-wrapper .ag-card-content p {
    font-size: 12px;
    color: #93c5fd;
    margin-top: 4px;
}

.home-top-entry .game-wrapper .ag-card-arrow {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    right: 0;
    top: 0;
    background-color: rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
    z-index: 3;
}

.home-top-entry .game-wrapper .ag-card-arrow span.iconfont {
    color: transparent !important;
    position: relative;
    width: 24px;
    height: 24px;
}

.home-top-entry .game-wrapper .ag-card-arrow span.iconfont::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 25%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #a5b4fc;
    border-right: 2px solid #a5b4fc;
    transform: translateY(-50%) rotate(45deg);
    transition: all 0.25s ease;
}

.home-top-entry .game-wrapper .ag-card1:hover .ag-card-arrow {
    background-color: rgba(255, 255, 255, 0.13);
}

.home-top-entry .game-wrapper .ag-card1:hover .ag-card-arrow span.iconfont::after {
    border-color: #fff;
    transform: translateY(-50%) rotate(45deg) scale(1.12);
}

/* 底部 APP 区域 */
.home_page {
    max-width: 1424px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.home_page .sports-and-lottery {
    display: flex;
    margin-top: 20px;
}

.home_page .sports-and-lottery .home_sports_game {
    margin-bottom: 64px;
    width: 100%;
}

.home_page .sports-and-lottery .home_sports_game .home_sports_game-content {
    display: flex;
    gap: 16px;
}

.home_page .game_item {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 18px;
    position: relative;
    margin-bottom: 16px;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
    flex: 1 1;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.home_page .game_item::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 28%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 52%);
    opacity: 0.82;
    pointer-events: none;
}

.home_page .game_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
    filter: brightness(1.05);
}

.home_page .game_item .img-right {
    display: none;
}

.home_page .game_item_active {
    flex: 1.97 1;
}

.home_page .game_item_active .img-right {
    display: block;
    animation: fadeIn 250ms linear;
}

.home_page .game_item > img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    transition: transform 0.3s ease;
    z-index: 1;
}

.home_page .game_item:hover > img {
    transform: scale(1.05) translateX(-5px);
}

.home_page .game_item_1 {
    background:
        radial-gradient(circle at 85% 40%, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #f97316 0%, #facc15 100%);
}

.home_page .game_item_2 {
    background:
        radial-gradient(circle at 85% 40%, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #1e1b4b 0%, #7c3aed 100%);
}

.home_page .game_item_3 {
    background:
        radial-gradient(circle at 85% 40%, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #7f1d1d 0%, #e11d48 100%);
}

.home_page .game_item_4 {
    background:
        radial-gradient(circle at 85% 40%, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #0c4a6e 0%, #06b6d4 100%);
}

.home_page .game_item_5 {
    background:
        radial-gradient(circle at 85% 40%, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #14532d 0%, #22c55e 100%);
}

.home_page .sports-and-lottery .home_sports_game .top_game_tit {
    position: absolute;
    max-width: 100%;
    left: 8%;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 2;
}

.home_page .sports-and-lottery .home_sports_game .top_game_tit h5 {
    font-family: Montserrat, sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.38);
}

.home_page .sports-and-lottery .home_sports_game .top_game_tit p {
    font-family: Montserrat, sans-serif;
    max-width: 250px;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* 响应式 */
@media screen and (max-width: 1300px) {
    .home-top-entry .game-wrapper {
        grid-template-columns: 9.5fr 3.5fr;
    }
}

@media screen and (max-width: 960px) {
    .home-top-entry .game-wrapper .game-wrapper_agbox {
        height: 329px;
    }

    .home-top-entry .game-wrapper {
        margin-top: 24px;
        height: auto;
        grid-template-columns: 1fr;
    }

    .home-top-entry .game-wrapper .ag-card1 {
        padding: 25px 0 25px 16px;
        height: 130px;
    }

    .home_page .sports-and-lottery .home_sports_game .top_game_tit h5 {
        font-size: 18px;
        padding-left: 16px;
    }

    .home_page .sports-and-lottery .home_sports_game .top_game_tit p {
        font-size: 12px;
        padding-left: 16px;
    }

    .home_page .sports-and-lottery .home_sports_game .game_item {
        height: 159.6px;
    }

    .home_page .sports-and-lottery .home_sports_game .game_item .top_game_tit {
        font-size: 26px;
        left: 20.8px;
        top: 29.2px;
    }
}

@media screen and (max-width: 768px) {
    body {
        background:
            radial-gradient(circle at 20% 8%, rgba(126, 34, 206, 0.5) 0, transparent 32%),
            radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.28) 0, transparent 30%),
            linear-gradient(135deg, #050816 0%, #0b1024 48%, #110b2e 100%);
    }

    .home-top-entry .game-wrapper .game-wrapper_agbox {
        height: 246px;
    }

    .home-top-entry .game-wrapper_ag {
        display: grid;
        justify-items: start;
        padding: 16px 16px 32px;
        border-radius: 18px !important;
    }

    .home-top-entry .game-wrapper_ag-join {
        margin-top: 0;
        grid-row-start: 1;
    }

    .home-top-entry .game-wrapper_ag-join h2 {
        font-size: 18px;
        padding-left: 16px;
        line-height: 1.5;
    }

    .home-top-entry .game-wrapper_ag-join p {
        white-space: pre-wrap;
        padding-left: 16px;
        font-size: 12px;
    }

    .home-top-entry .game-wrapper_ag-list {
        padding: 0;
        margin-top: 8px;
        flex-direction: column-reverse;
        padding-left: 16px;
    }

    .home-top-entry .game-wrapper_ag-list ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0;
    }

    .home-top-entry .game-wrapper_ag-list ul li {
        font-size: 12px;
        line-height: 28px;
        color: rgba(255, 255, 255, 0.72);
        margin-right: 8px;
    }

    .home_page .sports-and-lottery {
        display: block;
    }

    .home_page .sports-and-lottery .home_sports_game {
        flex: initial;
        margin-right: 0;
        margin-bottom: 32px;
    }

    .home_page .sports-and-lottery .home_sports_game .home_sports_game-content {
        display: inherit;
    }

    .home_page .sports-and-lottery .home_sports_game .game_item {
        height: 130px;
    }

    .home_page .sports-and-lottery .home_sports_game .game_item .img-right {
        display: block;
    }

    .home_page .sports-and-lottery .home_sports_game .game_item .top_game_tit {
        font-size: 18px;
        top: 24px;
        left: 16px;
    }
}

@media screen and (max-width: 468px) {
    .home-top-entry .game-wrapper .ag-card-img {
        width: 106px;
    }

    .home-top-entry .game-wrapper .ag-card-content h5 {
        font-size: 18px;
        line-height: 26px;
    }

    .home-top-entry .game-wrapper .ag-card-content ul,
    .home-top-entry .game-wrapper .ag-card-content p {
        font-size: 12px;
    }
}

/* =====================================================
   顶部大横幅：财神明显增强版
===================================================== */

.home-top-entry .game-wrapper .game-wrapper_agbg {
    background:
        no-repeat right center / 68% auto url("/static/image/ag-66.png"),
        radial-gradient(circle at 82% 48%, rgba(255, 198, 80, 0.42) 0%, transparent 30%),
        linear-gradient(135deg, rgba(67, 56, 202, 0.96), rgba(88, 28, 135, 0.88) 42%, rgba(15, 23, 42, 0.92)) !important;
    background-repeat: no-repeat, no-repeat, no-repeat !important;
    background-position: right center, 82% 48%, center !important;
    background-size: 68% auto, auto, cover !important;
}

/* 关掉原来的伪元素光圈，避免盖住财神 */
.home-top-entry .game-wrapper_ag::after {
    display: none !important;
}

/* 增加右侧财神区域的视觉对比 */
.home-top-entry .game-wrapper_ag::before {
    background:
        linear-gradient(90deg, rgba(25, 12, 70, 0.88) 0%, rgba(73, 25, 126, 0.55) 42%, rgba(0, 0, 0, 0.08) 100%) !important;
}

/* 文字保持在上层 */
.home-top-entry .game-wrapper_ag-list,
.home-top-entry .game-wrapper_ag-join {
    position: relative;
    z-index: 2;
}