: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-download-wrap {
    position: relative;
    display: inline-block;
    z-index: 10;  /* 确保整个容器在正常层级之上 */
}

.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;
    z-index: -1;           /* 让伪元素在按钮内容下方 */
    pointer-events: none;  /* 关键：让鼠标穿透伪元素 */
}

/* 确保按钮本身可点击 */
.btn-download-wrap .btn-primary {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

@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%);
}

/* 地图节点 */
.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
    }
}

/* 订阅区 */
#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
}

/* 评价卡片 */
.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%);
}

/* Font Awesome 图标加载（保持兼容） */
.fa-download:before {
    content: "\f019";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* ===== 自定义语义类（替代高频 Tailwind 长组合） ===== */

/* 1. 页面主标题（对应多处标题） */
.section-title {
    font-size: clamp(16px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
}
@media (min-width: 768px) {
    .section-title {
        font-size: clamp(16px, 3vw, 56px);
    }
}

/* 2. 主要按钮（如“立即下载”、“开始使用”） */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #2171ff;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: transform 0.15s ease;
    box-shadow: 0 14px 40px rgba(33, 113, 255, 0.35);
}
.btn-primary:hover {
    transform: scale(1.02);
}

/* 3. 圆角大按钮（如“订阅”、“开始使用”圆形样式） */
.btn-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #2171ff;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 14px 40px rgba(33, 113, 255, 0.35);
    transition: transform 0.15s ease;
    font-size: clamp(12px, 3.125vw, 20px);
}
@media (min-width: 768px) {
    .btn-rounded {
        font-size: 1.25rem;
        padding: 0.625rem 2.5rem;
    }
}
.btn-rounded:hover {
    transform: scale(1.02);
}

/* 4. FAQ 摘要（每个问题行） */
.faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* 5. FAQ 答案内容 */
.faq-answer {
    padding-left: 1.25rem;
    padding-bottom: 1.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.625;
    width: 91.6667%;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
    .faq-answer {
        width: 95.8333%;
    }
}

/* 6. 订阅页描述行（带圆点图标） */
.subs-desc {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem; /* 覆盖 clamp，直接用 16px */
}
.subs-desc .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #2171ff;
    flex-shrink: 0;
}

/* 7. 评价卡片容器（复用） */
.review-card {
    background: #041d47;
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.625;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}