﻿/* ===============================
   12平台导航页 - 4323最终版
   HTML不用改，直接替换 main.css
================================ */

/* --- 全局重置 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(75, 122, 255, 0.34) 0%, rgba(75, 122, 255, 0) 36%),
        radial-gradient(circle at 82% 8%, rgba(255, 201, 60, 0.16) 0%, rgba(255, 201, 60, 0) 28%),
        linear-gradient(135deg, #050815 0%, #07142d 48%, #040713 100%);
    background-attachment: fixed;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: #fff;
    padding: 22px;
    overflow-x: hidden;
}

button {
    font-family: inherit;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    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: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.08));
}

/* ===============================
   主体布局：左边平台，右边活动
================================ */

.container {
    width: min(1420px, 100%);
    max-width: 1420px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

.main-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ===============================
   顶部标题
================================ */

.hero-header {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 28px 30px;
    min-height: 145px;
    background:
        linear-gradient(135deg, rgba(28, 80, 170, 0.72), rgba(8, 18, 46, 0.72)),
        radial-gradient(circle at 92% 12%, rgba(255, 228, 77, 0.18), transparent 28%);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 38px rgba(0,0,0,0.34);
}

.hero-kicker {
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-header h1 {
    margin-top: 4px;
    margin-bottom: 8px;
    color: #fff;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.hero-header p {
    color: rgba(255,255,255,0.86);
    font-size: 15px;
    line-height: 1.6;
}

.hero-header .btn-gold {
    margin-top: 12px;
}

/* ===============================
   4323 平台布局
================================ */

.platform-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.platform-row {
    width: 100%;
    display: grid;
    gap: 16px;
}

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

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

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

/* 兼容万一 HTML 里还残留 platform-grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* ===============================
   平台卡片
================================ */

.platform-card {
    position: relative;
    overflow: hidden;
    min-height: 158px;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow: 0 16px 34px rgba(0,0,0,0.34);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    isolation: isolate;
}

.platform-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.025) 42%, rgba(0,0,0,0.17)),
        radial-gradient(circle at 92% 16%, rgba(255,255,255,0.25), transparent 30%);
    pointer-events: none;
}

.platform-card::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 21px solid rgba(255,255,255,0.06);
    z-index: 0;
    pointer-events: none;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(0,0,0,0.48);
    border-color: rgba(255,234,118,0.55);
}

.card-inner {
    position: relative;
    z-index: 2;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-img-bg {
    position: absolute;
    right: -2px;
    bottom: -4px;
    z-index: 1;
    width: auto;
    height: auto;
    max-width: 58%;
    max-height: 94%;
    opacity: 0.94;
    pointer-events: none;
    filter: drop-shadow(0 12px 14px rgba(0,0,0,0.3));
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.platform-card:hover .card-img-bg {
    transform: scale(1.04) translateX(-4px);
    opacity: 1;
}

.platform-tag {
    position: absolute;
    right: 14px;
    top: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.24);
    color: rgba(255,255,255,0.92);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
}

.brand-en {
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.68);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
    color: #fff;
    font-size: 22px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.sub-desc {
    position: relative;
    z-index: 2;
    width: 58%;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.45;
}

/* ===============================
   品牌颜色
================================ */

.bg-mk {
    background: linear-gradient(135deg, #2465bd 0%, #4eb5ff 100%);
}

.bg-aitiyu {
    background: linear-gradient(135deg, #1d3557 0%, #43a5ff 100%);
}

.bg-jy {
    background: linear-gradient(135deg, #004bcc 0%, #5578ff 100%);
}

.bg-ky {
    background: linear-gradient(135deg, #5b40e8 0%, #9588ff 100%);
}

.bg-leyu {
    background: linear-gradient(135deg, #071a39 0%, #1747bb 100%);
}

.bg-ayx {
    background: linear-gradient(135deg, #232d3d 0%, #566172 100%);
}

.bg-milan {
    background: linear-gradient(135deg, #9c1e29 0%, #ec4343 100%);
}

.bg-od {
    background: linear-gradient(135deg, #2f3c4d 0%, #65748c 100%);
}

.bg-xk {
    background: linear-gradient(135deg, #151b2c 0%, #33435e 100%);
}

.bg-lj {
    background: linear-gradient(135deg, #19324a 0%, #08a4a7 100%);
}

.bg-amb {
    background: linear-gradient(135deg, #2b244f 0%, #b163ff 100%);
}

.bg-gf {
    background: linear-gradient(135deg, #174b38 0%, #27c17d 100%);
}

/* 如果 HTML 里还有华体会颜色，保留兼容但不会显示 */
.bg-hth {
    background: linear-gradient(135deg, #5120a4 0%, #8c35ff 100%);
}

/* ===============================
   按钮
================================ */

.btn-gold,
.btn-glass {
    position: relative;
    z-index: 3;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 118px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff8b9 0%, #ffe44d 36%, #f5b704 100%);
    border: 1px solid rgba(255,250,166,0.95);
    color: #482c00;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.45);
    box-shadow:
        0 8px 18px rgba(0,0,0,0.28),
        inset 0 -3px 5px rgba(180,115,0,0.32),
        inset 0 2px 4px rgba(255,255,255,0.86);
}

.btn-main {
    min-width: 166px;
    height: 46px;
    font-size: 16px;
}

.btn-full {
    margin-top: auto;
}

.btn-gold:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow:
        0 12px 24px rgba(245,183,4,0.36),
        inset 0 -3px 5px rgba(180,115,0,0.32),
        inset 0 2px 4px rgba(255,255,255,0.86);
}

.btn-gold:active,
.btn-glass:active {
    transform: scale(0.96);
}

.btn-glass {
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.26);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-arrow {
    font-family: Arial, sans-serif;
    font-size: 1.05em;
    opacity: 0.86;
}

/* ===============================
   右侧活动介绍
================================ */

.sidebar {
    position: sticky;
    top: 18px;
    min-height: calc(100vh - 44px);
    overflow: hidden;
    border-radius: 24px;
    padding: 24px 20px;
    background:
        linear-gradient(180deg, rgba(24,72,148,0.96) 0%, rgba(10,31,76,0.96) 100%),
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.2), transparent 38%);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 38px rgba(0,0,0,0.34);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar::before {
    content: "";
    position: absolute;
    left: -60px;
    top: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.sidebar-titlebox {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-titlebox h3 {
    margin-bottom: 8px;
    font-size: 24px;
    letter-spacing: 2px;
}

.sidebar-titlebox p {
    color: rgba(255,255,255,0.86);
    font-size: 14px;
}

.sidebar-titlebox strong {
    color: #ffe44d;
    font-size: 26px;
    font-weight: 900;
    padding: 0 3px;
}

.mini-title {
    margin-bottom: 6px;
    color: rgba(255,228,77,0.95) !important;
    font-size: 11px !important;
    font-weight: 900;
    letter-spacing: 2px;
}

.sidebar-logos {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 6px;
}

.logo-bubble {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 5px 10px rgba(0,0,0,0.18);
}

.bubble-blue {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
}

.bubble-purple {
    background: linear-gradient(135deg, #614385 0%, #516395 100%);
}

.bubble-pink {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
}

.bubble-green {
    background: linear-gradient(135deg, #18d27e 0%, #0b8fca 100%);
}

.bonus-table {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 18px 0 22px;
    overflow: hidden;
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
}

.bonus-table th {
    padding: 12px 8px;
    color: #ffe44d;
    background: rgba(255,255,255,0.06);
    font-weight: 900;
}

.bonus-table td {
    padding: 10px 8px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
}

.bonus-table tr:hover td {
    background: rgba(255,255,255,0.04);
}

.highlight-num {
    color: #ffe44d !important;
    font-size: 15px;
    font-weight: 900;
}

.service-box {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: auto;
    padding: 16px;
    border-radius: 18px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.09);
    text-align: center;
}

.service-title {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 900;
}

.service-desc {
    margin-bottom: 14px;
    color: rgba(255,255,255,0.62);
    font-size: 12px;
}

.service-btn {
    width: 100%;
    height: 46px;
    font-size: 15px;
}

/* ===============================
   客服按钮
================================ */

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(247, 188, 4, 0.42);
    }
    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 12px rgba(247, 188, 4, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(247, 188, 4, 0);
    }
}

.btn-pulse,
.local-tg-bubble {
    animation: pulse 2s infinite;
}

.btn-pulse:hover,
.local-tg-bubble:hover {
    animation: none;
}

.local-tg-bubble {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 999999;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(180deg, #fff8b9 0%, #ffe44d 36%, #f5b704 100%);
    color: #4a2e00;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.local-tg-bubble span {
    margin-bottom: 2px;
    font-size: 20px;
}

/* ===============================
   响应式
================================ */

@media (max-width: 1280px) {
    .container {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 18px;
    }

    .platform-card {
        min-height: 150px;
        padding: 18px;
    }

    h3 {
        font-size: 20px;
    }

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

@media (max-width: 1120px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
        min-height: auto;
    }

    .row-4,
    .row-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

@media (max-width: 860px) {
    body {
        padding: 14px;
    }

    .hero-header {
        padding: 24px 22px;
        min-height: 135px;
    }

    .hero-header h1 {
        font-size: 32px;
    }

    .row-4,
    .row-3,
    .row-2,
    .platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .platform-layout,
    .main-content {
        gap: 12px;
    }

    .platform-card {
        min-height: 148px;
        border-radius: 18px;
        padding: 18px;
    }

    .card-img-bg {
        max-width: 145px;
        max-height: 90%;
    }

    .sub-desc {
        width: 62%;
    }
}

@media (max-width: 560px) {
    body {
        padding: 12px;
    }

    .hero-header {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .hero-header h1 {
        font-size: 28px;
    }

    .hero-header p {
        font-size: 13px;
    }

    .row-4,
    .row-3,
    .row-2,
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .platform-card {
        min-height: 148px;
        border-radius: 18px;
        padding: 20px;
    }

    h3 {
        font-size: 22px;
    }

    .brand-en {
        font-size: 10px;
    }

    .sub-desc {
        width: 62%;
    }

    .card-img-bg {
        right: -8px;
        max-width: 145px;
        max-height: 92%;
        opacity: 0.92;
    }

    .btn-full {
        min-width: 118px;
        height: 40px;
        padding: 0 16px;
        font-size: 14px;
    }

    .sidebar {
        border-radius: 20px;
        padding: 20px 14px;
    }

    .bonus-table {
        font-size: 12px;
    }

    .bonus-table td,
    .bonus-table th {
        padding: 9px 5px;
    }

    .local-tg-bubble {
        width: 58px;
        height: 58px;
        right: 14px;
        bottom: 16px;
        font-size: 12px;
    }
}