﻿:root {
    --bg: #050716;
    --text: #fff;
    --muted: #b8c3ff;
    --shadow: 0 18px 45px rgba(0, 0, 0, .36);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 2%, rgba(113, 39, 255, .35), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(0, 198, 255, .18), transparent 24%),
        linear-gradient(180deg, #09152f 0%, #050716 58%, #02030a 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", PingFang SC, Microsoft YaHei, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

ul { list-style: none; }
img { display: block; max-width: 100%; }
button { border: 0; font: inherit; cursor: pointer; }

.c-red { color: #ff4040 !important; }
.c-pink { color: #ff35f6 !important; }
.c-green { color: #35ff73 !important; }
.c-cyan { color: #30f8ff !important; }
.c-purple { color: #bd54ff !important; }
.c-yellow { color: #fff221 !important; }

.star-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.star-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(255,255,255,.5), transparent 80%);
}

.meteor {
    position: absolute;
    top: 40px;
    width: 1px;
    opacity: 0;
    animation: meteor 15s linear infinite;
}

.meteor::after {
    content: "";
    display: block;
    border-style: solid;
    border-width: 0 90px 2px 90px;
    border-color: transparent transparent transparent rgba(255,255,255,.55);
    transform: rotate(-45deg);
}

.meteor-1 { left: 12%; animation-delay: 0s; }
.meteor-2 { left: 24%; animation-delay: .12s; }
.meteor-3 { left: 38%; animation-delay: 4.17s; }
.meteor-4 { left: 58%; animation-delay: .62s; }
.meteor-5 { left: 76%; animation-delay: .85s; }

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

.page {
    width: min(1420px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.home-top-entry,
.home_page,
.quick-entry-section {
    width: 100%;
}

.game-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(430px, .82fr);
    gap: 20px;
    align-items: stretch;
}

.game-wrapper_agbox {
    grid-row: span 2;
    min-height: 348px;
    cursor: pointer;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.game-wrapper_ag {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 26px 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
}

.game-wrapper_ag::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 8%, rgba(255,255,255,.12), transparent 24%),
        linear-gradient(135deg, rgba(101, 0, 255, .95) 0%, rgba(111, 25, 172, .92) 52%, rgba(32, 8, 82, .96) 100%);
    z-index: 0;
}

.game-wrapper_ag::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 8px;
    width: min(330px, 38%);
    height: 84%;
    background: no-repeat right bottom / contain url('../image/ag-66.png');
    z-index: 1;
    filter: drop-shadow(0 18px 28px rgba(0,0,0,.28));
}

.game-wrapper_ag-list,
.game-wrapper_ag-join {
    position: relative;
    z-index: 2;
}

.game-wrapper_ag-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    max-width: 64%;
}

.game-wrapper_ag-list i {
    font-style: normal;
    font-size: 17px;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(0,0,0,.32);
}

.game-wrapper_ag-join {
    margin-top: 76px;
    max-width: 54%;
}

.marquee-box {
    position: absolute;
    left: 0;
    top: -58px;
    width: 102%;
    color: #fff;
    font-size: 14px;
    line-height: 24px;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.game-wrapper_ag-join p {
    margin-top: 10px;
    color: #f2f5ff;
    font-size: 15px;
    line-height: 1.42;
    text-shadow: 0 2px 10px rgba(0,0,0,.28);
}

.brand-card {
    position: relative;
    min-height: 164px;
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr) 36px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.brand-card::before {
    content: "";
    position: absolute;
    right: -68px;
    top: -80px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    filter: blur(16px);
    opacity: .44;
}

.brand-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.16);
    background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
}

.brand-kaiyun::before { background: radial-gradient(circle, rgba(255, 73, 73, .9), transparent 68%); }
.brand-jiuyou::before { background: radial-gradient(circle, rgba(47, 255, 127, .8), transparent 68%); }

.brand-logo {
    position: relative;
    z-index: 1;
    width: 142px;
    height: 110px;
    border-radius: 18px;
    background-color: rgba(255,255,255,.08);
    background-position: center;
    background-size: 82%;
    background-repeat: no-repeat;
    border: 1px solid rgba(255,255,255,.08);
}

.logo-kaiyun { background-image: url('../image/kaiyunlogo.png'); }
.logo-jiuyou { background-image: url('../image/jiuyoulogo.png'); }
.logo-mk { background-image: url('../image/mk.png'); }
.logo-ayx { background-image: url('../image/ayxlogo.png'); }

.brand-info {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.brand-label {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #e9edff;
    background: rgba(255,255,255,.09);
    font-size: 12px;
}

.brand-info h3 {
    margin-top: 9px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
}

.brand-info p {
    margin-top: 8px;
    color: #eef2ff;
    font-size: 14px;
    line-height: 1.42;
}

.brand-info em {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.brand-arrow {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 100%;
    border-radius: 14px;
    color: #dbe2ff;
    background: rgba(255,255,255,.08);
    font-size: 38px;
    line-height: 1;
}

.quick-entry-section {
    margin-top: 18px;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.quick-entry-card {
    position: relative;
    min-height: 158px;
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr) 126px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    overflow: hidden;
    border-radius: 24px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.1);
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    box-shadow: var(--shadow);
    transition: transform .18s ease, border-color .18s ease;
}

.quick-entry-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.18);
}

.quick-entry-card::before {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(16px);
    opacity: .5;
}

.quick-mk::before { background: radial-gradient(circle, rgba(158, 82, 255, .95), transparent 68%); }
.quick-ayx::before { background: radial-gradient(circle, rgba(33, 207, 255, .95), transparent 68%); }

.quick-logo {
    position: relative;
    z-index: 1;
    width: 144px;
    height: 104px;
    border-radius: 18px;
    background-color: rgba(255,255,255,.08);
    background-position: center;
    background-size: 82%;
    background-repeat: no-repeat;
    border: 1px solid rgba(255,255,255,.08);
}

.quick-info {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.quick-info span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ecf0ff;
    background: rgba(255,255,255,.09);
    font-size: 12px;
}

.quick-info h3 {
    margin-top: 9px;
    font-size: 23px;
    line-height: 1.16;
    font-weight: 900;
}

.quick-info p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.quick-entry-card button {
    position: relative;
    z-index: 1;
    height: 46px;
    border-radius: 14px;
    color: #10172a;
    background: #fff;
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(0,0,0,.18);
}

.section-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 26px 0 18px;
    padding: 18px 22px;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.035)),
        radial-gradient(circle at 15% 10%, rgba(120, 76, 255, .34), transparent 32%);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow);
}

.section-title::before {
    content: "";
    position: absolute;
    right: 80px;
    top: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 213, 255, .5), transparent 70%);
    filter: blur(10px);
}

.section-title-left,
.section-title-right {
    position: relative;
    z-index: 1;
}

.section-title-left span {
    color: #91a7ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.section-title-left h2 {
    margin-top: 6px;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
}

.section-title-right {
    min-width: 132px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.08);
}

.section-title-right b {
    font-size: 32px;
    line-height: 1;
}

.section-title-right small {
    margin-top: -10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.app-card {
    position: relative;
    min-height: 222px;
    overflow: hidden;
    border-radius: 24px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow);
    transition: transform .18s ease, border-color .18s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.18);
}

.app-kaiyun { background: linear-gradient(135deg, #f77b00 0%, #f1c631 100%); }
.app-jiuyou { background: linear-gradient(135deg, #12652b 0%, #22d75c 100%); }
.app-mk { background: linear-gradient(135deg, #211b94 0%, #6428f2 100%); }
.app-ayx { background: linear-gradient(135deg, #0871aa 0%, #0cd4dd 100%); }

.app-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: no-repeat right bottom / auto 100% url('../image/sport-item-bg.png');
    opacity: .76;
}

.app-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 58%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.34));
}

.app-img {
    position: absolute;
    right: -8px;
    bottom: 0;
    z-index: 1;
    height: 100%;
    max-width: 58%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 16px 22px rgba(0,0,0,.28));
}

.app-content {
    position: relative;
    z-index: 2;
    padding: 20px 18px 84px;
    max-width: 68%;
}

.app-content span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.16);
    color: rgba(255,255,255,.86);
    font-size: 12px;
    font-weight: 800;
}

.app-content h3 {
    margin-top: 12px;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(0,0,0,.22);
}

.app-content p {
    margin-top: 9px;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    line-height: 1.45;
}

.app-card button {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 3;
    min-width: 118px;
    height: 42px;
    border-radius: 14px;
    color: #10172a;
    background: #fff;
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(0,0,0,.16);
}

@media screen and (max-width: 1280px) {
    .game-wrapper {
        grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    }

    .brand-card {
        grid-template-columns: 128px minmax(0, 1fr) 34px;
    }

    .brand-logo {
        width: 128px;
        height: 102px;
    }

    .quick-entry-card {
        grid-template-columns: 132px minmax(0, 1fr) 118px;
    }

    .quick-logo {
        width: 132px;
        height: 98px;
    }

    .app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 980px) {
    .game-wrapper {
        grid-template-columns: 1fr;
    }

    .game-wrapper_agbox {
        min-height: 338px;
    }

    .quick-entry-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .page {
        width: calc(100% - 24px);
        padding: 18px 0 34px;
    }

    .game-wrapper {
        gap: 14px;
    }

    .game-wrapper_agbox {
        min-height: 314px;
        border-radius: 22px;
    }

    .game-wrapper_ag {
        padding: 18px;
    }

    .game-wrapper_ag::after {
        right: -18px;
        bottom: 0;
        width: 58%;
        height: 78%;
    }

    .game-wrapper_ag-list ul {
        max-width: 100%;
        gap: 5px 10px;
    }

    .game-wrapper_ag-list i {
        font-size: 13px;
    }

    .game-wrapper_ag-join {
        margin-top: 84px;
        max-width: 58%;
    }

    .marquee-box {
        top: -62px;
        width: 150%;
        font-size: 12px;
        line-height: 22px;
    }

    .game-wrapper_ag-join p {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.38;
    }

    .brand-card {
        grid-template-columns: 112px minmax(0, 1fr) 30px;
        gap: 12px;
        min-height: 124px;
        padding: 12px;
        border-radius: 18px;
    }

    .brand-logo {
        width: 112px;
        height: 90px;
        border-radius: 14px;
    }

    .brand-label {
        min-height: 24px;
        padding: 0 8px;
        font-size: 11px;
    }

    .brand-info h3 {
        margin-top: 7px;
        font-size: 20px;
    }

    .brand-info p {
        margin-top: 6px;
        font-size: 12px;
    }

    .brand-info em {
        margin-top: 6px;
        font-size: 12px;
    }

    .brand-arrow {
        width: 30px;
        font-size: 32px;
    }

    .quick-entry-card {
        grid-template-columns: 104px minmax(0, 1fr);
        min-height: 126px;
        padding: 12px;
        border-radius: 18px;
    }

    .quick-logo {
        width: 104px;
        height: 84px;
        border-radius: 14px;
    }

    .quick-info span {
        min-height: 24px;
        padding: 0 8px;
        font-size: 11px;
    }

    .quick-info h3 {
        margin-top: 7px;
        font-size: 19px;
    }

    .quick-info p {
        margin-top: 6px;
        font-size: 12px;
    }

    .quick-entry-card button {
        grid-column: 1 / -1;
        height: 40px;
        border-radius: 12px;
        font-size: 13px;
    }

    .section-title {
        margin: 22px 0 14px;
        padding: 16px;
        border-radius: 18px;
    }

    .section-title-left h2 {
        font-size: 24px;
    }

    .section-title-right {
        min-width: 86px;
        height: 62px;
        border-radius: 14px;
    }

    .section-title-right b {
        font-size: 26px;
    }

    .section-title-right small {
        font-size: 8px;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .app-card {
        min-height: 150px;
        border-radius: 18px;
    }

    .app-img {
        max-width: 52%;
    }

    .app-content {
        padding: 16px 14px 64px;
        max-width: 66%;
    }

    .app-content span {
        min-height: 24px;
        font-size: 11px;
    }

    .app-content h3 {
        margin-top: 10px;
        font-size: 20px;
    }

    .app-content p {
        margin-top: 6px;
        font-size: 12px;
    }

    .app-card button {
        left: 14px;
        bottom: 14px;
        min-width: 108px;
        height: 38px;
        border-radius: 12px;
        font-size: 13px;
    }
}

@media screen and (max-width: 390px) {
    .game-wrapper_ag::after {
        opacity: .85;
        width: 66%;
    }

    .game-wrapper_ag-join {
        max-width: 62%;
    }

    .brand-card {
        grid-template-columns: 94px minmax(0, 1fr) 28px;
    }

    .brand-logo {
        width: 94px;
        height: 80px;
    }

    .brand-info h3,
    .quick-info h3 {
        font-size: 18px;
    }

    .quick-entry-card {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .quick-logo {
        width: 94px;
        height: 76px;
    }
}
