/* 马善政毛笔楷书（SIL OFL，可免费商用），已子集化为仅含标题用字「多人协力自走养成」 */
@font-face {
    font-family: 'Ma Shan Zheng';
    src: url('../assets/fonts/MaShanZheng-subset.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 导航英文副标题字体（窄体加粗拉丁字体），复刻示例站 col.jfydgame.com 导航效果 */
@font-face {
    font-family: 'KARIBUNARROW';
    src: url('../assets/fonts/KARIBUNARROW-BOLD.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
}

.navbar-container {
    padding: 1rem 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.navbar-logo img {
    height: 130px;
    width: 130px;
    object-fit: cover;
    border-radius: 12px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 600;
    /* 暖橘色:取自"多人协力"渐变下半部分(琥珀橙 → 深橙) */
    background: linear-gradient(180deg, #eba85f 0%, #d9824a 55%, #c46a39 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* 浮雕:顶部浅高光提亮 + 底部浅棕暗边,描边减淡避免压糊字面 */
    text-shadow:
        0 -0.5px 0 rgba(255, 250, 230, 0.6),
        0 1px 1px rgba(120, 80, 40, 0.35);
}

.logo-subtitle {
    font-size: 0.82rem;
    margin-top: 2px;
    /* 与主标题协调的高明度米金色 */
    background: linear-gradient(180deg, #fff7df 0%, #f7e6b2 60%, #edd693 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 1px rgba(120, 80, 40, 0.28);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.download-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a1a2e;
    border: none;
    padding: 0.65rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
}

.modal-close {
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.qrcode-section {
    text-align: center;
    margin-bottom: 2rem;
}

.qrcode {
    display: inline-block;
    background: #fff;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.qrcode img {
    width: 150px;
    height: 150px;
}

.qrcode-text {
    color: #c0c0c0;
    font-size: 1rem;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-option:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(5px);
}

.download-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.download-option.android .download-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.download-option.ios .download-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.download-option.pc .download-icon {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
}

.download-icon svg {
    width: 25px;
    height: 25px;
}

.download-info {
    flex: 1;
}

.download-platform {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.download-label {
    display: block;
    font-size: 0.85rem;
    color: #808080;
    margin-top: 0.2rem;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    /* 标语组与下载栏成组靠底:标语紧贴下载面板正上方 */
    justify-content: flex-end;
    align-items: center;
    /* 顶部给固定导航栏让位 */
    padding-top: 6rem;
    overflow: hidden;
    /* 注意:不要在 .hero 本身设 background,否则会盖住 z-index:-2 的背景视频。
       深色兜底改放到 ::after 伪元素(z-index:-3),始终垫在视频之下。 */
}

/* 深色兜底层:垫在背景视频(z-index:-2)之下,视频未就绪时显示深色,杜绝闪白 */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -3;
    background: radial-gradient(ellipse at center, #14141f 0%, #0a0a0f 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    /* 默认透明,视频可播放后由 JS 加 .is-loaded 平滑淡入,避免硬切跳变 */
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-bg.is-loaded {
    opacity: 1;
}

/* ============ PC / 移动端双背景显隐(消除移动端 PC 背景闪现) ============ */
/* 两套背景块同时进首屏 HTML,由 CSS @media 在解析阶段决定谁显示 ——
   早于首屏绘制,移动端从第一帧就只显移动背景,PC 视频永不可见,零 JS 依赖、零闪现。
   仅当 .hero 带 .has-mobile-bg(配了移动地址)时启用切换;否则移动块不渲染,PC 块全断点显示。 */
.hero-bg--mobile {
    display: none;
}
@media (max-width: 768px) {
    .has-mobile-bg .hero-bg--pc {
        display: none;
    }
    .has-mobile-bg .hero-bg--mobile {
        display: block;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(10, 10, 15, 0.95) 100%);
    z-index: -1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 首屏内容:标语区水平居中,紧贴下载面板正上方 */
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1500px;
    padding: 0 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 匹配下载面板的视觉上移量(-5.5rem - 20px),再上抬一段间距,
       使标语落在面板视觉正上方而非与其重叠 */
    transform: translateY(calc(-1.5rem - 20px - 4rem));
}

/* 品牌区(logo徽章 + 金色标语):居中 */
.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

/* 中央:播放按钮(由 .hero 的 space-between 居中分布) */
.hero-play {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    /* 与下载栏一同视觉上移,为底部「向下滑动」提示腾出空间(transform 不改变布局流,不会挤溢出) */
    transform: translateY(-3.5rem);
}

.hero-logo {
    margin-top: 0;
}

.hero-logo img {
    width: 300px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.4));
    transition: all 0.3s ease;
}

.hero-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.6));
}

.hero-slogan {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    font-weight: 900;
    line-height: 1.05;
}

/* 标语切图(SLO.png):替代原两行文字标语,金色描金字带阴影 */
.hero-slogan-img {
    display: block;
    width: 620px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
}

/* 标语切图(SLO.png)已替代原两行文字标语,旧的 .slogan-line 文字样式已移除 */

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8));
    }
}

.subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin: 0;
    letter-spacing: 0.5rem;
}

.hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.play-btn {
    position: relative;
    width: 88px;
    height: 88px;
    background: transparent;
    border: 3px solid rgba(255, 200, 90, 0.85);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 0 0 0 rgba(255, 170, 70, 0.4),
        0 0 40px rgba(255, 170, 70, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.play-btn::before {
    content: '';
    position: absolute;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border: 2px solid rgba(255, 200, 90, 0.3);
    border-radius: 50%;
    animation: ringPulse 2s ease-in-out infinite;
}

.play-btn::after {
    content: '';
    position: absolute;
    width: calc(100% + 28px);
    height: calc(100% + 28px);
    border: 2px solid rgba(235, 168, 95, 0.2);
    border-radius: 50%;
    animation: ringPulse 2s ease-in-out infinite 0.5s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 0 rgba(255, 170, 70, 0.4),
            0 0 40px rgba(255, 170, 70, 0.5);
    }
    50% {
        transform: scale(1.02);
        box-shadow:
            0 0 0 8px rgba(255, 170, 70, 0),
            0 0 50px rgba(255, 170, 70, 0.6);
    }
}

@keyframes ringPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.play-btn:hover {
    transform: scale(1.12);
    border-color: rgba(255, 215, 0, 1);
    box-shadow:
        0 0 0 0 rgba(255, 170, 70, 0.6),
        0 0 60px rgba(255, 170, 70, 0.7);
}

.play-btn:hover::before,
.play-btn:hover::after {
    animation-duration: 1.5s;
}

.play-btn svg {
    width: 46px;
    height: 46px;
    color: #ffce7a;
    margin-left: 7px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.play-btn:hover svg {
    transform: scale(1.1);
}

.play-hint {
    margin-top: 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.2rem;
    /* 暖橘色:与"多人协力"渐变下半部分一致 */
    background: linear-gradient(180deg, #eba85f 0%, #d9824a 55%, #c46a39 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow:
        0 -0.5px 0 rgba(255, 250, 230, 0.6),
        0 1px 1px rgba(120, 80, 40, 0.35);
}

/* 底部:切图化下载区(底框 685×195 + 四渠道 + 二维码) */
.hero-downloads {
    position: relative;
    z-index: 1;
    /* 视觉上移,为底部温馨提示/箭头(bottom:24px)腾出空间;再上移 20px */
    transform: translateY(calc(-5.5rem - 20px));
    /* 底框背景图,固定原始宽高比 685:195;整体缩小 */
    width: clamp(460px, 36vw, 560px);
    aspect-ratio: 685 / 195;
    background: url('/assets/images/首页/登录方式-底框.png') center / 100% 100% no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3%;
    /* 顶部避开金色花纹(约9%),内容撑满花纹下可用区 */
    padding: 1% 2%;
    box-sizing: border-box;
}

/* 左侧四渠道:2×2 网格;加大宽度占比让按钮更大 */
.dl-channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7% 4%;
    flex: 1 1 auto;
    max-width: 80%;
}

.dl-btn {
    display: block;
    text-decoration: none;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.dl-btn img {
    display: block;
    width: 100%;
    height: auto;
    /* 渠道按钮原始 207×54 */
}

.dl-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.12) drop-shadow(0 4px 10px rgba(255, 200, 90, 0.35));
}

/* 右侧二维码:切图 + 真实码叠在白块区 */
.dl-qrcode {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.dl-qr-frame {
    display: block;
    height: 92%;
    width: auto;
    /* 二维码切图原始 98×140 */
}

/* 真实二维码叠加:定位在切图白色方块区(初值,CDP 微调) */
.dl-qr-real {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.video-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.video-modal-overlay.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    /* 高度不超出视口:留出上下 padding,防止视频内在尺寸把弹窗撑爆 */
    max-height: calc(100vh - 40px);
    background: #0a0a0f;
    border-radius: 15px;
    /* 关闭按钮在 -20px 处需露出,故用可见溢出;内部改 flex 列约束高度 */
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.video-modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 3px 15px rgba(255, 215, 0, 0.5),
        inset 0 0 12px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: closePulse 2.5s ease-in-out infinite;
}

@keyframes closePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 4px 25px rgba(255, 215, 0, 0.4),
            inset 0 0 15px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 6px 35px rgba(255, 215, 0, 0.6),
            inset 0 0 20px rgba(255, 255, 255, 0.4);
    }
}

.video-modal-close:hover {
    transform: rotate(180deg) scale(1.1);
    background: linear-gradient(135deg, #ff8c00 0%, #ffd700 100%);
    box-shadow: 
        0 8px 40px rgba(255, 215, 0, 0.7),
        inset 0 0 25px rgba(255, 255, 255, 0.5);
    border-color: #fff;
}

/* 视频本体:此前误用 #videoPlayer(模板只有 ref 无 id)导致约束全失效、
   视频按内在尺寸撑爆弹窗。改用 .video-modal-video 命中,并在 flex 列中收缩。 */
.video-modal-video {
    width: 100%;
    /* 减去控制条高度后不超视口,object-fit 保证不变形 */
    min-height: 0;
    max-height: calc(100vh - 120px);
    display: block;
    background: #000;
    object-fit: contain;
    border-radius: 15px 15px 0 0;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 0 0 15px 15px;
}

.control-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 215, 0, 0.3);
}

.control-btn svg {
    width: 18px;
    height: 18px;
}

.volume-slider-container {
    width: 80px;
}

.volume-slider {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
}

.time-display {
    font-size: 0.85rem;
    color: #a0a0a0;
    min-width: 80px;
}

.progress-bar {
    flex: 1;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
}

.speed-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

.speed-select option {
    background: #1a1a2e;
}

.hero-tagline {
    font-size: 1.3rem;
    color: #c0c0c0;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-highlights {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.highlight-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.highlight-label {
    font-size: 1rem;
    color: #a0a0a0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: #ffd700;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.features {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: #808080;
    font-size: 1.2rem;
    margin-bottom: 5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.feature-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.feature-card-image {
    width: 100%;
    height: 250px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a0a0f;
}

.feature-card-content {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 2rem;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.feature-card:hover .feature-card-content {
    border-color: rgba(255, 215, 0, 0.5);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffd700;
}

.feature-desc {
    color: #a0a0a0;
    line-height: 1.8;
    font-size: 1rem;
}

.heroes {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0f 100%);
}

.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.hero-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.hero-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-10px);
}

.hero-card:hover img {
    transform: scale(1.1);
}

.hero-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.hero-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.hero-class {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.adventure {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
}

.adventure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.adventure-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 140, 0, 0.08) 100%);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden;
}

.adventure-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ff8c00, #ffd700);
}

.adventure-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.25);
}

.adventure-icon {
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
    display: inline-block;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.4));
    transition: all 0.4s ease;
}

.adventure-card:hover .adventure-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 35px rgba(255, 215, 0, 0.7));
}

.icon-random {
    background-image: url('../assets/随即关卡.png');
}

.icon-shop {
    background-image: url('../assets/商店刷新.png');
}

.icon-equip {
    background-image: url('../assets/装备掉落.png');
}

.icon-boss {
    background-image: url('../assets/精英Boss.png');
}

.adventure-desc {
    color: #c0c0c0;
    line-height: 1.8;
    font-size: 1.05rem;
}

.gameplay {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0f 100%);
}

.gameplay-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.gameplay-text {
    color: #c0c0c0;
    line-height: 2;
    font-size: 1.1rem;
}

.gameplay-text p {
    margin-bottom: 2rem;
}

.gameplay-visual {
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
    background-color: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gameplay-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timeline {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.timeline-step {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a1a2e;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: #a0a0a0;
    line-height: 1.8;
}

.stats {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #1a1a2e;
    font-weight: 500;
}

footer {
    background: #1a1a2e;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-icp {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #a0a0a0;
}

.footer-copyright {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #a0a0a0;
}

.footer-license {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #a0a0a0;
}

.footer-contact {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #a0a0a0;
}

.footer-age {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #a0a0a0;
}

.footer-warning {
    font-size: 0.9rem;
    color: #808080;
    line-height: 1.8;
}

.fixed-buttons {
    position: fixed;
    right: 60px;
    bottom: 40px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 999;
}

/* 右下角/左下角悬浮图标:直接裸露原始图标,不加圆形外圈。
   仅保留容器尺寸、居中、手型光标(原圆形光圈/边框/圆角/阴影/hover 动效已移除)。 */
.fixed-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fixed-btn img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.wechat-btn {
    position: relative;
}

.wechat-qrcode {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    bottom: 60px;
    background: #1a1a2e;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    will-change: opacity, transform;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.wechat-btn:hover .wechat-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.qrcode-title {
    font-size: 0.75rem;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.wechat-qrcode img {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
}

@media (max-width: 768px) {
    /* 移动端白色常驻顶栏(.m-header,fixed 52px)避让:
       body 顶部让出白条高,首屏及后续所有内容整体下移,白条填入让出的空间。
       hero 与各 .section 高度同步减去白条高(见下 .hero / sections.css .section),
       使每屏"可用高度 = 视口 - 白条",屏与屏顺排不溢出,任何页面顶部都不被白条遮挡。 */
    body {
        padding-top: var(--m-header-h);
    }

    /* 移动端:备案号一行放不下,拆成公安备案、ICP备案各独占一行 */
    .footer-icp-police,
    .footer-icp-number {
        display: block;
    }

    .navbar {
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(10px);
    }

    .navbar-container {
        padding: 0.8rem 20px;
    }

    .navbar-logo img {
        height: 80px;
        width: 80px;
        border-radius: 10px;
    }

    .logo-name {
        font-size: 1.05rem;
    }

    .logo-subtitle {
        font-size: 0.72rem;
    }

    .download-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }

    /* 移动端:logo 与大标题成组置于上方,背景人物头部下沉避让 */
    .hero-bg {
        object-position: center 78%;
    }

    /* 移动端恢复上下分布:标语靠上(margin-top)、下载面板沉底,
       不沿用 PC 的 flex-end 成组靠底 */
    .hero {
        justify-content: space-between;
        /* 首屏高度 = 视口 - 白条。必须用 svh(小视口高:地址栏显示时的高度,恒定不伸缩),
           不能用 dvh/vh:body 顶部让位是固定 52px,若 hero 用 dvh,部分移动浏览器初次加载
           (地址栏可见)会把 100dvh 按"地址栏收起后的最大视口"算,导致 52px + (最大视口-52)
           = 最大视口 > 当前可视高,首屏溢出可下滚。svh 恒 ≤ 真实视口,52 + (100svh-52)=100svh,
           永不超出一屏(地址栏收起后至多底部露出极小一条下一屏,属正常且不可见)。 */
        height: calc(100svh - var(--m-header-h));
        min-height: 0;
        /* 顶部导航让位已由 body padding + 收缩高度承担,取消 PC 的 6rem 顶部内边距 */
        padding-top: 0;
    }

    /* 移动端首屏隐藏标语区(含大标题切图);PC 端不受影响 */
    .hero-content {
        display: none;
    }

    .hero-play {
        grid-column: 1;
        /* 移动端不显示「向下滑动」提示,故播放按钮恢复原位,不做上移 */
        transform: none;
    }

    /* 移动端隐藏"观看游戏预告"提示 */
    .play-hint {
        display: none;
    }

    .play-btn {
        width: 70px;
        height: 70px;
    }

    .play-btn::before {
        width: calc(100% + 12px);
        height: calc(100% + 12px);
    }

    .play-btn::after {
        width: calc(100% + 22px);
        height: calc(100% + 22px);
    }

    .play-btn svg {
        width: 30px;
        height: 30px;
        margin-left: 6px;
    }

    /* 移动端首屏隐藏底部下载栏(含四渠道按钮 + 二维码);PC 端不受影响 */
    .hero-downloads {
        display: none;
    }

    .video-modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .video-controls {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 15px;
    }

    .volume-slider-container {
        width: 60px;
    }

    .time-display {
        min-width: 70px;
        font-size: 0.75rem;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 0.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gameplay-content {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-highlights {
        gap: 1.5rem;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .adventure-grid {
        grid-template-columns: 1fr;
    }

    .fixed-buttons {
        flex-direction: column;
        gap: 10px;
        right: 15px;
    }

    .fixed-buttons .fixed-btn {
        width: 42px;
        height: 42px;
    }

    .fixed-buttons .fixed-btn img {
        width: 28px;
        height: 28px;
    }

    .fixed-buttons .wechat-qrcode {
        left: auto;
        right: 52px;
        bottom: 70%;
        transform: translateY(60%);
    }

    .fixed-buttons .wechat-btn:hover .wechat-qrcode {
        transform: translateY(50%);
    }

    .fixed-buttons .wechat-qrcode img {
        width: 100px;
        height: 100px;
    }

    .footer-icp {
        font-size: 0.90rem;
    }
}
