:root {
    --fun88-blue-900: #083b5c;
    --fun88-blue-800: #075985;
    --fun88-blue-700: #0369a1;
    --fun88-blue-100: #e0f2fe;
    --fun88-blue-50: #f0f9ff;
    --fun88-ink: #172b4d;
    --fun88-text: #26394d;
    --fun88-muted: #526579;
    --fun88-border: #cbd9e6;
    --fun88-surface: #ffffff;
    --fun88-page: #f5f8fb;
    --fun88-warning: #fff8db;
    --fun88-warning-border: #8a5a00;
    --fun88-focus: #facc15;
    --fun88-radius: 14px;
    --fun88-shadow: 0 8px 24px rgba(8, 59, 92, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--fun88-page);
    color: var(--fun88-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--fun88-blue-800);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--fun88-blue-900);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--fun88-focus);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #111827;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.fun88-site-shell,
.fun88-global-main {
    width: 100%;
}

.fun88-global-main {
    min-height: 55vh;
}

.fun88-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-inline: 20px;
}

.fun88-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    padding: 10px 16px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 6px;
    transform: translateY(-180%);
}

.fun88-skip-link:focus {
    transform: translateY(0);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fun88-header {
    position: relative;
    z-index: 1000;
    background: var(--fun88-blue-800);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(8, 59, 92, 0.18);
}

.fun88-nav-wrap,
.fun88-nav-inner {
    min-height: 78px;
}

.fun88-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.fun88-site-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-width: 120px;
    min-height: 48px;
}

.fun88-logo-image {
    width: auto;
    max-width: 210px;
    height: 52px;
    object-fit: contain;
}

.fun88-primary-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.fun88-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.fun88-menu::-webkit-scrollbar {
    display: none;
}

.fun88-menu > li {
    flex: 0 0 auto;
    margin: 0;
}

.fun88-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 13px;
    color: #ffffff;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.fun88-menu > li > a:hover,
.fun88-menu > li.current-menu-item > a,
.fun88-menu > li.current-menu-ancestor > a {
    background: rgba(255, 255, 255, 0.12);
    border-bottom-color: #ffffff;
    color: #ffffff;
}

.fun88-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 48px;
    min-height: 48px;
    padding: 8px 12px;
    color: #ffffff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    cursor: pointer;
}

.menu-text {
    font-size: 14px;
    font-weight: 700;
}

.menu-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-bars > span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.fun88-menu-toggle.is-active .menu-bars > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.fun88-menu-toggle.is-active .menu-bars > span:nth-child(2) {
    opacity: 0;
}

.fun88-menu-toggle.is-active .menu-bars > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.fun88-card-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fun88-blue-900), var(--fun88-blue-700));
    color: #ffffff;
    font-size: clamp(24px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.fun88-table-scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.fun88-table-scroll table {
    min-width: 640px;
}

.fun88-space-top {
    margin-top: 22px;
}

.fun88-global-main caption {
    padding: 0 0 12px;
    color: var(--fun88-text);
    font-weight: 700;
    text-align: left;
}

.fun88-footer {
    margin-top: 48px;
    padding: 40px 0 20px;
    background: var(--fun88-blue-900);
    color: #ffffff;
}

.fun88-footer a {
    color: #ffffff;
}

.fun88-footer a:hover {
    color: #ffffff;
    text-decoration-thickness: 0.12em;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
    gap: 40px;
    padding-bottom: 26px;
}

.footer-col-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.footer-col h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.4;
}

.footer-col p {
    margin: 0;
    max-width: 58ch;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.75;
}

.footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 7px;
}

.footer-links a,
.footer-links span {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.copyright,
.footer-bottom-links {
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-warning {
    max-width: 88ch;
    margin: 18px auto 0;
    padding: 12px 16px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.22);
    border-left: 4px solid #fbbf24;
    font-size: 13px;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .fun88-container {
        padding-inline: 14px;
    }

    .fun88-nav-wrap,
    .fun88-nav-inner {
        min-height: 68px;
    }

    .fun88-logo-image {
        max-width: 170px;
        height: 44px;
    }

    .fun88-menu-toggle {
        display: inline-flex;
    }

    .fun88-primary-nav {
        position: absolute;
        top: 68px;
        left: 0;
        display: none;
        width: 100%;
        padding: 8px 14px 14px;
        background: var(--fun88-blue-900);
        box-shadow: var(--fun88-shadow);
    }

    .fun88-primary-nav.is-active {
        display: block;
    }

    .fun88-menu {
        display: block;
        overflow: visible;
    }

    .fun88-menu > li > a {
        width: 100%;
        min-height: 48px;
        padding-inline: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    }

    .footer-grid,
    .footer-col-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}
