:root {
    --bg: #050B14;
    --fg: #E6F0FF
}

html {
    scroll-behavior: smooth
}

.nabag {
    background: #052c57;
    padding: 5px 10px;
}

body {
    background: var(--bg);
    color: var(--fg)
}

.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px)
}

.hero {
    position: relative;
    overflow: hidden
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 11, 20, 0.12), rgba(5, 11, 20, 0.45) 70%);
    pointer-events: none
}

.hero-inner {
    position: relative;
    z-index: 1
}

.nav-btn-primary {
    background: #2171ff;
    color: #000;
    font-weight: 600
}

.nav-btn-primary:hover {
    background: #2171ff;
    color: #000
}

.btn-glow {
    box-shadow: 0 14px 40px rgba(33, 113, 255, 0.35)
}

.btn-download-wrap {
    position: relative;
    display: inline-block
}

/* 约 1/3 的高亮沿边框旋转 */
.btn-download-wrap::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    padding: 2px;
    background: conic-gradient(from 0deg at 50% 50%, rgba(33, 113, 255, 0) 0deg, rgba(33, 113, 255, 0) 235deg, rgba(33, 113, 255, 0.15) 245deg, #2171ff 280deg, #4d91ff 325deg, #2171ff 355deg, rgba(33, 113, 255, 0) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spin 2.2s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.float {
    animation: floaty 7s ease-in-out infinite
}

@keyframes floaty {
    0%,
    100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-10px)
    }
}

.marquee {
    display: flex;
    gap: 3.5rem;
    white-space: nowrap;
    will-change: transform;
    animation: marquee 18s linear infinite
}

.marquee:hover {
    animation-play-state: paused
}

@keyframes marquee {
    from {
        transform: translateX(0)
    }
    to {
        transform: translateX(-50%)
    }
}

.dotPulse {
    box-shadow: 0 0 0 0 rgba(0, 209, 255, 0.5);
    animation: pulse 2.6s ease-out infinite
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 209, 255, 0.55)
    }
    70% {
        box-shadow: 0 0 0 26px rgba(0, 209, 255, 0)
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 209, 255, 0)
    }
}

.collapse {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    visibility: inherit !important
}

.collapse summary {
    cursor: pointer;
    list-style: none
}

.collapse summary::-webkit-details-marker {
    display: none
}

.collapse[open] .collapse-icon {
    transform: rotate(180deg)
}

.support-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.support-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, background .15s ease
}

.support-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16)
}

.nav1 {
    width: 60%;
}

nav>* {
    margin: 0px 40px;
}

header {
    padding: 10px 0px;
}

.cc.bg-base200 {
    background-image: linear-gradient(to right, rgb(0, 16, 33) 0%, rgb(3, 43, 138) 50%, rgb(0, 65, 135) 100%);
}

/* 地图节点：水波 + 悬停 tooltip */
.map-node {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    transform: translate(-50%, -50%);
}

.map-node .map-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(to bottom right, #93c5fd, #3b82f6);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transition: transform .5s ease;
    position: relative;
    z-index: 2;
}

.map-node .map-dot::before,
.map-node .map-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: #00D1FF;
}

.map-node .map-dot::after {
    filter: blur(4px);
}

.map-node:hover .map-dot {
    transform: scale(1.5);
}

.map-node:hover .map-dot::before,
.map-node:hover .map-dot::after {
    animation: core-pulse 1.2s ease-in-out infinite;
}

@keyframes core-pulse {
    0%,
    100% {
        opacity: 0.9
    }
    50% {
        opacity: 0.5
    }
}

.map-node .ripple-wrap {
    position: absolute;
    inset: -2.5rem;
    pointer-events: none;
    z-index: 1;
}

.map-node .ripple-wave {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: -0.25rem;
    margin-top: -0.25rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 209, 255, 0.6);
    opacity: 0;
    transform: scale(1);
}

.map-node:hover .ripple-wave {
    animation: ripple-out 2s ease-out infinite;
}

.map-node:hover .ripple-wave.ripple-2 {
    animation-delay: 0.4s;
}

.map-node:hover .ripple-wave.ripple-3 {
    animation-delay: 0.8s;
}

@keyframes ripple-out {
    0% {
        transform: scale(1);
        opacity: 0.7
    }
    100% {
        transform: scale(20);
        opacity: 0
    }
}

.map-node .map-tooltip {
    position: absolute;
    left: 50%;
    bottom: 100%;
    margin-bottom: 0.75rem;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: rgba(5, 20, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.map-node .map-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border: 4px solid transparent;
    border-top-color: rgba(5, 20, 50, 0.95);
}

.map-node:hover .map-tooltip {
    opacity: 1;
    visibility: visible;
}

.map-node .map-tooltip .name {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

.map-node .map-tooltip .status-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.map-node .map-tooltip .status-ok {
    color: #22c55e;
}

.map-title-in,
.map-subtitle-in {
    opacity: 0;
}

.map-title-in.animate__animated,
.map-subtitle-in.animate__animated {
    opacity: 1;
}

/* 流媒体区：滚动时背景从两边往中间缩，文字随滚动显隐 */
#streamSection {
    --stream-progress: 0;
}

#streamSection .stream-bg {
    background-image: url("static/images/moves.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: clip-path .25s ease-out;
}

#streamSection .stream-bg {
    clip-path: inset(0 calc(var(--stream-progress) * 25%) 0 calc(var(--stream-progress) * 25%));
}

#streamSection .stream-content {
    opacity: var(--stream-progress);
    transform: translateY(calc((1 - var(--stream-progress)) * 28px));
    transition: opacity .25s ease-out, transform .25s ease-out;
}

@media (min-width:768px) {
    #streamSection .stream-bg {
        background-size: contain
    }
}

/* 订阅区：占一屏、右侧 -50% 发光圈 */
#subs {
    min-height: 100vh;
    display: flex;
    align-items: center
}

#subs .subs-inner {
    background-image: url("static/images/subs_bg.chi0s3mg.webp");
    background-repeat: no-repeat;
    background-color: transparent;
    min-height: 100px
}

#subs .subs-inner {
    background-position: bottom left -46.59vw;
    background-size: 200%
}

@media (min-width:768px) {
    #subs .subs-inner {
        background-size: cover;
        background-position: center left 200px
    }
}

#subs .subs-discount-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(160px, 40vw, 280px);
    height: clamp(160px, 40vw, 280px);
    border-radius: 50%;
    border: 2px solid rgba(0, 209, 255, 0.5);
    box-shadow: 0 0 60px rgba(0, 209, 255, 0.35), inset 0 0 40px rgba(0, 209, 255, 0.08)
}

#subs .subs-discount-num {
    display: inline-block;
    min-width: 1.2em;
    text-align: left
}

/* 游戏低延迟：三图重叠轮播 */
#gameSection .game-title,
#gameSection .game-subtitle {
    opacity: 0;
    transform: translateX(-200px);
    transition: opacity .5s ease-out, transform .5s ease-out
}

#gameSection .game-subtitle {
    transform: translateX(-300px)
}

#gameSection .game-title.is-visible,
#gameSection .game-subtitle.is-visible {
    opacity: 1;
    transform: translateX(0)
}

.game-cards-wrap {
    position: relative;
    width: 100%;
    min-height: clamp(320px, 50vw, 500px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: clamp(24px, 4vw, 56px);
    overflow: hidden
}

.game-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    border-radius: clamp(12px, 0.625vw, 12px);
    border: 0.5px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    transition: transform .5s ease-out, opacity .5s ease-out, z-index .5s ease-out, box-shadow .5s ease-out;
    user-select: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5)
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: clamp(12px, 0.625vw, 12px);
    user-select: none;
    transition: opacity .3s
}

.game-card p {
    position: absolute;
    bottom: 0.5rem;
    padding: 0 1.25rem;
    font-size: clamp(7px, 1vw, 16px);
    opacity: .9;
    text-align: center;
    line-height: 1.6
}

.game-card[data-pos="center"] {
    z-index: 30;
    width: 100%;
    max-width: 58%;
    aspect-ratio: 881/496;
    transform: translateX(0) scale(1);
    opacity: 1
}

.game-card[data-pos="left"],
.game-card[data-pos="right"] {
    z-index: 10;
    width: 58%;
    max-width: 58%;
    aspect-ratio: 881/496;
    opacity: .65;
    transform: scale(0.82)
}

.game-card[data-pos="left"] {
    transform: translateX(-62%) scale(0.82)
}

.game-card[data-pos="right"] {
    transform: translateX(62%) scale(0.82)
}

.game-card:hover {
    transform: translateX(var(--tx, 0)) scale(var(--scale, 1));
    opacity: 1
}

.game-card[data-pos="center"]:hover {
    --scale: 1.02
}

.game-card[data-pos="left"]:hover {
    --tx: -62%;
    --scale: 0.88
}

.game-card[data-pos="right"]:hover {
    --tx: 62%;
    --scale: 0.88
}

/* 评价卡片：横向滚动一行（可见区域约 5 个卡片） */
.review-marquee {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
    animation: reviewMarquee 38s linear infinite
}

.review-marquee:hover {
    animation-play-state: paused
}

.review-marquee .reviews-row {
    display: flex;
    gap: 1.5rem
}

.review-marquee article {
    flex: 0 0 240px;
    max-width: 240px
}

.reviewSwiper article {
    height: 200px;
}

@media (max-width:767px) {
    .game-card[data-pos="center"] {
        max-width: 85%
    }
    .game-card[data-pos="left"],
    .game-card[data-pos="right"] {
        max-width: 70%
    }
    #subs {
        min-height: auto;
    }
}

/* QuickQ 是最佳选择：悬浮下拉描述 */
.dotseffect {
    position: relative
}

.dotseffect .item {
    position: relative
}

.dotseffect .feature-icon-wrap {
    border-radius: 9999px;
    padding: 1px;
    background: radial-gradient(circle at 30% 0, #00D1FF, transparent 60%);
    transition: box-shadow .25s ease, transform .25s ease, background .25s ease
}

.dotseffect .feature-icon {
    border-radius: 9999px;
    background: radial-gradient(circle at 30% 0, #02142f, #020818 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(60px, 4.6875vw, 70px);
    height: clamp(60px, 4.6875vw, 70px);
    position: relative;
    z-index: 0
}

.dotseffect .feature-desc {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5vw;
    z-index: 30;
    display: none;
    max-width: 80%;
    width: clamp(180px, 19.5vw, 340px);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #088CE9;
    background: #00184A;
    font-size: clamp(8px, 0.8vw, 32px);
    text-align: justify;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45)
}

.dotseffect .title {
    margin-top: clamp(8px, 2vw, 24px)
}

.dotseffect .item label {
    cursor: pointer
}

.dotseffect .group:hover .feature-icon-wrap,
.dotseffect .peer:checked+label .feature-icon-wrap {
    box-shadow: 0 0 0 1px rgba(0, 209, 255, 0.6), 0 0 40px rgba(0, 209, 255, 0.5);
    background: radial-gradient(circle at 30% 0, #00D1FF, transparent 65%)
}

.dotseffect .group:hover .feature-desc,
.dotseffect .peer:checked~.feature-desc {
    display: block
}

.dotseffect .feature-title {
    font-size: clamp(8px, 0.8vw, 32px);
    white-space: nowrap
}

.submenu-item:hover .submenu-icon {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(31%) sepia(99%) saturate(1978%) hue-rotate(210deg) brightness(101%) contrast(103%);
}

/* 统一下载按钮样式（完全匹配你的按钮结构） */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    min-width: 200px;
    background: linear-gradient(135deg, #2171ff 0%, #1a5fd9 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(33, 113, 255, 0.30);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.download-btn i {
    font-size: 18px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.download-btn i:last-child {
    font-size: 16px;
}

.download-btn span {
    line-height: 1;
    white-space: nowrap;
}

.download-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 36px rgba(33, 113, 255, 0.50);
    background: linear-gradient(135deg, #3382ff 0%, #1a5fd9 100%);
    color: #fff;
}

.download-btn:hover i:first-child {
    transform: translateY(-2px);
}

.download-btn:hover i:last-child {
    transform: translateX(4px);
}

.download-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 16px rgba(33, 113, 255, 0.35);
}

/* 按钮外层容器（仅用于显示标签，按钮本身完全一致） */
.download-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.download-btn-wrap .download-btn {
    width: 100%;
    max-width: 280px;
}

.download-btn-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    letter-spacing: 0.2px;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .download-btn {
        padding: 12px 20px;
        min-width: 160px;
        font-size: 14px;
        gap: 10px;
    }
    .download-btn i {
        font-size: 16px;
    }
    .download-btn i:last-child {
        font-size: 14px;
    }
    .download-btn-wrap .download-btn {
        max-width: 100%;
    }
}

/* ===== download-tab 样式（从 </main> 后提取） ===== */
.download-tab {
    border-bottom-width: 3px;
}
.download-tab.active {
    border-bottom-color: #2171ff;
    color: #2171ff;
}
.download-tab:not(.active) {
    border-bottom-color: transparent;
    color: #fff;
}
.download-tab.active img {
    opacity: 1;
}
.download-tab:not(.active) .tab-icon {
    opacity: 0.8;
}
.download-tab:hover .tab-icon {
    opacity: 1;
}