/* =========================
   全局重置
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto; /* ⭐ 允许滚动 */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: Arial;
    position: relative;
    touch-action: pan-y; /* ⭐ 允许上下滑动 */
}

/* =========================
   页面背景（核心）
========================= */
.page {
    width: 100%;
    max-width: 500px;
    margin: auto;

    min-height: 100vh;
    min-height: 100dvh;

    padding: 12px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    /*background: url("/google/img/bg.webp");*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;

    /* ⭐ 修复刘海屏 */
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: calc(12px + env(safe-area-inset-bottom));

    /* ⭐ 关键：允许滚动 */
    overflow-y: auto;
}

/* 遮罩层 */
.page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(244, 248, 255, 0.75);
    z-index: 0;
}

/* 内容层 */
.page > * {
    position: relative;
    z-index: 1;
}

/* =========================
   静音按钮
========================= */
.mute-btn {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    z-index: 999;

    width: 40px;
    height: 40px;

    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);

    /* ⭐和平台按钮统一风格 */
    background: rgba(79, 79, 79, 0.25);

    backdrop-filter: blur(10px);

    color: #fff;
    font-size: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.2s ease;
}

/* =========================
   标题
========================= */
.header h1 {
    font-size: 22px;
    font-weight: 900;
}

.header span {
    color: #1e64ff;
}

/* =========================
   顶部按钮
========================= */
.platforms {
    display: flex;
    gap: 8px;
}

.platform {
    flex: 1;
    height: 70px;

    border-radius: 14px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

     background: rgba(79, 79, 79, 0.18);
    border: 1px solid #4F4F4F;

    backdrop-filter: blur(10px);

    transition: all 0.2s ease;
}

.platform img {
    width: 92%;
    height: 92%;
    object-fit: contain;

    transform: scale(1.4);  /* ⭐轻微放大（重点） */
    transition: transform 0.2s ease;
}

.platform.active img {
    transform: scale(1.18);
}

.platform.active {
    border: 2px solid #1e64ff;
    background: rgba(30, 100, 255, 0.18);
}

/* =========================
   CTA
========================= */
.cta {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    background: linear-gradient(135deg,#1e64ff,#0033cc);
    color: white;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

/* =========================
   视频（核心修复）
========================= */
.video-box {
    position: relative;

    height: 60vh;      /* ⭐ 从68vh降低避免顶爆 */
    max-height: 520px;

    border-radius: 20px;
    overflow: hidden;
    background: black;
}

.video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;
    transition: .4s;

    will-change: opacity;
}

.video.active {
    opacity: 1;
}

/* =========================
   视频信息
========================= */
.video-info {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: white;
}

/* =========================
   卡片
========================= */
.card {
    background: linear-gradient(135deg,#1e64ff,#001a66);
    color: white;
    padding: 14px;
    border-radius: 18px;
}

/* =========================
   滚动动画
========================= */
.track {
    display: flex;
    width: max-content;
    animation: scroll 10s linear infinite;
}

/* ===== 滚动 ===== */
.marquee {
    overflow: hidden;
}

.track {
    display: flex;
    width: max-content;
    animation: scroll 10s linear infinite;
}

.group {
    display: flex;
    gap: 26px;
    align-items: center;
}

.group img {
    height: 24px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================
   移动端优化
========================= */
@media (max-width: 480px) {
    .video-box {
        height: 58vh;
    }

    .header h1 {
        font-size: 20px;
    }
}