/* ===== Reset & Base ===== */
@keyframes pulseButton {
    0%, to { transform: scale(1); }
    50% { transform: scale(1.09); }
}

@keyframes goldShine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

* { box-sizing: border-box; }

#app, body, html { min-height: 100%; }

body {
    margin: 0;
    zoom: 1 !important;
    background: #0a0e17;
    font-family: PingFang SC, Microsoft YaHei, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
button, input, textarea { font: inherit; }
::-webkit-scrollbar { display: none; }

/* ===== Main Container ===== */
.diversion {
    --primary: #ffb31a;
    --primary-light: #ffd04e;
    --primary-strong: #ff9f0a;
    --primary-dark: #e08900;
    --gold-gradient: linear-gradient(135deg, #ffd04e, #ff9f0a 50%, #e08900);
    --gold-gradient-vertical: linear-gradient(180deg, #ffe08a, #ffb31a 52%, #e08900);
    --surface: #141c2b;
    --surface-high: #1d2841;
    --surface-low: #0c1019;
    --outline: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 179, 26, 0.12);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 28px 48px 52px;
    color: #e8e8ef;
    background: linear-gradient(180deg, rgba(10, 14, 23, .5), rgba(10, 14, 23, .72) 42%, #0a0e17), url(../images/pc_bg.png) top/cover no-repeat fixed;
}

.diversion:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 8%, rgba(255, 179, 26, .18), transparent 28%), linear-gradient(180deg, rgba(10, 14, 23, 0), #0a0e17 86%), radial-gradient(ellipse at 30% 20%, rgba(255, 159, 10, .06), transparent 50%), radial-gradient(ellipse at 70% 50%, rgba(255, 208, 78, .04), transparent 50%);
}

.diversion > * { position: relative; z-index: 1; }

/* ===== Hero Section ===== */
.hero {
    max-width: 1440px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
}

.world-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 24px;
    color: var(--primary-light);
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
    opacity: .92;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 179, 26, .3);
}

.world-mark .year-code { margin-left: 4px; }

.crown-icon {
    width: 24px;
    height: 24px;
    margin: 0 2px;
    color: var(--primary-light);
    fill: rgba(255, 179, 26, .22);
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.hero-title {
    width: max-content;
    max-width: 100%;
    margin: 12px auto 0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    overflow: visible;
    color: #fff;
    font-size: 60px;
    line-height: 1.06;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 0 14px rgba(255, 179, 26, .6), 0 0 32px rgba(255, 159, 10, .35);
}

.hero-title span { display: inline-block; vertical-align: middle; }

.hero-keyword {
    font-family: Impact, Arial Black, PingFang SC, sans-serif;
    font-weight: 900;
    padding: 4px 12px 6px 14px;
    margin: -4px -12px -6px -14px;
    line-height: 1.14;
    background: var(--gold-gradient-vertical);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-name { color: #fff; }

.hero-badge {
    position: relative;
    width: min(44vw, 560px);
    min-width: 280px;
    aspect-ratio: 6/1;
    margin-top: 8px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.hero-badge-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 36px;
    background: rgba(20, 28, 43, .8);
    border: 1px solid rgba(255, 179, 26, .3);
    border-radius: 8px;
    box-shadow: 0 0 24px rgba(255, 159, 10, .15), inset 0 1px 0 rgba(255, 179, 26, .1);
}

.hero-badge-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.hero-badge-text {
    color: var(--primary-light);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    font-style: normal;
}

.hero-subtitle {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--primary-light);
    font-size: 20px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0;
}

.star-icon {
    color: rgba(255, 179, 26, .6);
    width: 28px;
    font-size: 0;
    line-height: 1;
}

.hero-subtitle .star-icon:first-child:before {
    content: "◆";
    font-size: 14px;
}

.hero-subtitle .star-icon:last-child:before {
    content: "◆";
    font-size: 14px;
}

/* ===== Swiper Banner ===== */
.banner-section {
    max-width: 1440px;
    margin: 32px auto 30px;
}

.swiper-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.swiper-slide {
    min-width: 100%;
    position: relative;
}

.swiper-slide-inner {
    width: 1430px;
    height: 300px;
    max-width: 100%;
    background-size: 1430px 300px;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
}

.swiper-slide:nth-child(1) .swiper-slide-inner { background-image: url(../images/banners/1.jpg); }
.swiper-slide:nth-child(2) .swiper-slide-inner { background-image: url(../images/banners/2.jpg); }
.swiper-slide:nth-child(3) .swiper-slide-inner { background-image: url(../images/banners/3.jpg); }
.swiper-slide:nth-child(4) .swiper-slide-inner { background-image: url(../images/banners/4.jpg); }
.swiper-slide:nth-child(5) .swiper-slide-inner { background-image: url(../images/banners/5.jpg); }

.slide-content {
    max-width: 70%;
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 10px rgba(0,0,0,.7);
}

.slide-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gold-gradient);
    border-radius: 4px;
    color: #0a0e17;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.slide-title {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.slide-desc {
    font-size: 15px;
    color: #d0d3e0;
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.slide-icon { display: none; }

.swiper-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.swiper-dot {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .2);
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    padding: 0;
}

.swiper-dot.active {
    width: 48px;
    background: var(--primary-strong);
}

/* ===== Section Divider ===== */
.section-divider {
    max-width: 1440px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 179, 26, .3), transparent);
}

.section-divider-text {
    color: var(--primary-light);
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 2px;
}

/* ===== Game Types Grid ===== */
.game-types {
    max-width: 1440px;
    margin: 0 auto 30px;
}

.game-types-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    height: 270px;
}

.game-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: rgba(20, 28, 43, .7);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all .3s ease;
    text-decoration: none;
    overflow: hidden;
}

.game-type-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 179, 26, .35);
    box-shadow: 0 8px 24px rgba(255, 159, 10, .1);
}

.game-type-img {
    width: 272px;
    height: 213px;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.game-type-name {
    color: #e8e8ef;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    margin-top: 2px;
}

.game-type-count {
    color: #9196af;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

/* Hide old icon */
.game-type-icon { display: none; }

/* ===== Brand Cards Grid ===== */
.box { max-width: 1440px; margin: 0 auto 30px; }

.box-all {
    display: grid;
    grid-template-columns: repeat(6, 212px);
    gap: 16px;
    justify-content: center;
}

.diversion-btn { min-width: 0; cursor: pointer; text-decoration: none; display: block; }

.btn {
    width: 212px;
    height: 95px;
    max-width: 100%;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: #0c1019;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

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

.diversion-btn:hover .btn {
    transform: translateY(-4px);
    border-color: rgba(255, 179, 26, .4);
    box-shadow: 0 4px 16px rgba(255, 159, 10, .12);
}

/* Hide old card elements */
.brand-main, .brand-logo, .text, .brand-name, .title_t, .title_t-pc, .title_t-mobile, .addWeb, .btn:before { display: none; }

/* ===== Trust Banner ===== */
.trust-section {
    max-width: 1440px;
    margin: 0 auto 30px;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: rgba(20, 28, 43, .6);
    border: 1px solid rgba(255, 179, 26, .08);
    border-radius: 10px;
}

.trust-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 159, 10, .08);
    border-radius: 10px;
    color: var(--primary-light);
}

.trust-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.trust-text strong {
    display: block;
    color: #e8e8ef;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.trust-text small {
    display: block;
    margin-top: 2px;
    color: #9196af;
    font-size: 12px;
    font-weight: 500;
}

/* ===== Authority Badges ===== */
.certification-mobile, .mobile-guarantees, .section-title { display: none; }

.desktop-footer { max-width: 1440px; margin: 0 auto; }

.authority-section {
    max-width: 1440px;
    margin: 0 auto 16px;
}

.authority-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 28px;
    padding: 28px 24px;
    background: rgba(20, 28, 43, .45);
    border: 1px solid rgba(255, 179, 26, .08);
    border-radius: 12px;
}

.license-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100px;
}

.license-seal-icon {
    width: 80px;
    height: 80px;
    position: relative;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141c2b;
    border-radius: 50%;
    border: 2px solid rgba(255,179,26,.25);
    overflow: hidden;
}

.license-seal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.license-seal-icon svg {
    width: 100%;
    height: 100%;
}

.license-seal-icon svg {
    width: 100%;
    height: 100%;
}

.license-seal-name {
    color: #a8aabe;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.5px;
    max-width: 100px;
}

/* Legacy cert elements - keep for mobile compat */
.certification { display: none; }
.certification-mobile { display: none; }
.cert-banner-img { display: none; }
.certification-desktop { display: none; }

.pc-guarantees {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    color: #a8aabe;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
    margin-top: 20px;
}

.pc-guarantees div {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pc-guarantees svg {
    width: 18px;
    height: 18px;
    color: var(--primary-light);
    stroke-width: 1.8;
}

.pc-guarantees i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #3d4668;
    font-style: normal;
}

/* ===== Responsive - Tablet ===== */
@media only screen and (max-width: 1180px) {
    .box-all { grid-template-columns: repeat(4, 212px); }
    .game-types-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Responsive - Mobile ===== */
@media only screen and (max-width: 767px) {
    .diversion {
        padding: 10px 16px 0;
        background: linear-gradient(180deg, rgba(10, 14, 23, .2), rgba(10, 14, 23, .42) 40%, rgba(10, 14, 23, .85) 82%, #0a0e17), url(../images/h5_bg.png) top/100% auto no-repeat #0a0e17;
    }

    .diversion:before {
        background: linear-gradient(180deg, rgba(8, 12, 22, .6), rgba(8, 12, 22, .42) 58px, rgba(8, 12, 22, .18) 150px, rgba(8, 12, 22, 0) 260px), radial-gradient(circle at 50% 0, rgba(255, 179, 26, .1), transparent 40%), linear-gradient(180deg, rgba(10, 14, 23, .04), rgba(10, 14, 23, .2) 50%, #0a0e17 94%);
    }

    .box, .hero, .section-title {
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero { isolation: isolate; margin-bottom: 0; }
    .hero:before { content: ""; display: none; }

    .world-mark {
        gap: 8px;
        min-height: 18px;
        color: rgba(255, 208, 78, .9);
        font-size: 13px;
        opacity: 1;
        text-shadow: 0 2px 8px rgba(0, 0, 0, .42);
    }

    .crown-icon { width: 18px; height: 18px; margin: 0; }

    .hero-title {
        display: flex;
        width: calc(100% + 18px);
        max-width: 448px;
        margin: 2px -9px 0;
        gap: 4px;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        line-height: 1.08;
        overflow: visible;
        white-space: nowrap;
        text-shadow: 0 0 16px rgba(255, 159, 10, .6), 0 3px 14px rgba(0, 0, 0, .44);
    }

    .hero-title span { padding: 0 4px; margin: 0 -2px; }

    .hero-keyword {
        background: linear-gradient(180deg, #ffe08a, #ffb31a 44%, #e08900);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-stroke: .5px rgba(255, 208, 78, .35);
        filter: drop-shadow(0 0 4px rgba(255, 159, 10, .4));
    }

    .hero-name { white-space: nowrap; color: #fff; background: none; -webkit-text-fill-color: #fff; }

    .hero-badge { width: min(57vw, 233px); min-width: 0; margin-top: 4px; }

    .hero-badge-inner { padding: 8px 20px; gap: 8px; }
    .hero-badge-icon { width: 18px; height: 18px; }
    .hero-badge-text { font-size: 15px; }

    .hero-subtitle {
        width: 100%;
        margin-top: 4px;
        gap: 6px;
        color: #eef2ff;
        font-size: 13px;
        line-height: 1.2;
        text-shadow: 0 2px 8px rgba(0, 0, 0, .48);
    }

    .star-icon { width: auto; color: rgba(255, 179, 26, .5); font-size: 14px; }
    .hero-subtitle .star-icon:first-child:before,
    .hero-subtitle .star-icon:last-child:before { font-size: 10px; }

    /* Swiper mobile */
    .banner-section { margin: 16px auto 20px; }
    .swiper-slide-inner { padding: 16px 16px; height: 130px; width: auto; background-size: auto 130px; background-position: center; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
    .slide-content { max-width: 100%; }
    .slide-tag { font-size: 10px; padding: 3px 10px; margin-bottom: 6px; }
    .slide-title { font-size: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
    .slide-desc { font-size: 11px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
    .slide-icon { display: none; }

    /* Game types mobile */
    .game-types-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: auto; }
    .game-type-item { padding: 0; }
    .game-type-img { width: 100%; height: auto; aspect-ratio: 272/213; }
    .game-type-name { font-size: 13px; margin-top: 4px; }
    .game-type-count { display: none; }

    /* Section divider */
    .section-divider { margin-bottom: 18px; }
    .section-divider-text { font-size: 14px; }

    /* Trust mobile */
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .trust-item { padding: 14px; gap: 10px; }
    .trust-icon { width: 40px; height: 40px; flex-basis: 40px; }
    .trust-text strong { font-size: 12px; }
    .trust-text small { font-size: 10px; }

    /* Authority mobile */
    .authority-grid { gap: 14px 18px; padding: 20px 12px; }
    .license-seal { width: 80px; }
    .license-seal-icon { width: 60px; height: 60px; }
    .license-seal-name { font-size: 9px; max-width: 80px; }

    .section-title {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        margin-bottom: 4px;
        color: var(--primary-light);
    }

    .section-title span {
        width: 58px;
        height: 3px;
        border-radius: 999px;
        background: rgba(255, 179, 26, .35);
    }

    .section-title strong {
        font-size: 18px;
        line-height: 1;
        font-weight: 800;
        letter-spacing: 0;
    }

    .box { margin-bottom: 0; overflow: visible; position: relative; z-index: 2; }
    .box-all { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .btn { width: 100%; height: auto; aspect-ratio: 212/95; }
    .diversion-btn:hover .btn { transform: none; }
    .btn-img { width: 100%; height: 100%; }

    .mobile-guarantees {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        margin: 6px -16px 0;
        padding: 30px 16px 52px;
        background: rgba(12, 16, 25, .96);
        border-top: 1px solid rgba(61, 70, 104, .45);
    }

    .guarantee-item {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        color: #e8e8ef;
    }

    .guarantee-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-light);
        background: #1d2841;
        border: 1px solid rgba(61, 70, 104, .65);
        border-radius: 50%;
        box-shadow: 0 6px 13px rgba(0, 0, 0, .28);
    }

    .guarantee-icon svg { stroke-width: 1.9; }

    .guarantee-item strong {
        max-width: 100%;
        color: #e8e8ef;
        font-size: 13px;
        line-height: 1.25;
        font-weight: 900;
        letter-spacing: 0;
    }

    .guarantee-item small {
        margin-top: 8px;
        color: #9196af;
        font-size: 11px;
        line-height: 1.2;
        font-weight: 700;
        letter-spacing: 0;
    }

    .desktop-footer { display: none; }
}

/* ===== Responsive - Small Mobile ===== */
@media only screen and (max-width: 390px) {
    .diversion { padding-left: 12px; padding-right: 12px; }
    .world-mark { gap: 6px; font-size: 11px; }
    .hero-title { font-size: 24px; }
    .hero-badge { width: min(59vw, 213px); }
    .hero-badge-inner { padding: 6px 16px; }
    .hero-badge-text { font-size: 13px; }
    .hero-subtitle { font-size: 12px; }
    .authority-grid { gap: 10px 12px; padding: 14px 8px; }
    .license-seal { width: 70px; }
    .license-seal-icon { width: 52px; height: 52px; }
    .license-seal-name { font-size: 8px; max-width: 70px; }
    .box-all { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .game-types-grid { gap: 6px; }
    .game-type-name { font-size: 11px; }
    .trust-grid { gap: 6px; }
    .trust-item { padding: 10px; gap: 8px; }
    .mobile-guarantees { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; gap: 6px; }
    .guarantee-icon { width: 50px; height: 50px; padding: 14px; }
    .guarantee-item strong { font-size: 12px; }
    .guarantee-item small { font-size: 10px; }
}
