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

html,
body {
    font-family: Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    color: #fff;
    font-size: 16px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #030817;
}

/*
  关键修复：
  - 不要在 #app 上使用 transform，否则某些移动浏览器里会让内部 fixed 元素“失效/跑偏”
*/
#app {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #06132b;
    isolation: isolate;
}

#app::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(2, 8, 23, 0.12) 0%, rgba(2, 8, 23, 0) 42%, rgba(2, 8, 23, 0.52) 72%, rgba(2, 8, 23, 0.88) 100%);
}

/* PC端也显示移动端样式，固定宽度为移动端尺寸 */
@media screen and (min-width: 520px) {
    #app {
        width: 100%;
        max-width: 520px;
        height: 100vh;
        margin: 0 auto;
        box-shadow: 0 24px 80px rgba(0, 29, 92, 0.38);
        border-radius: 24px;
    }
}

.hear-box {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(3, 10, 31, 0.9), rgba(3, 10, 31, 0));
}

.hear-box .header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    border: 1px solid rgba(126, 189, 255, 0.26);
    border-radius: 18px;
    background: rgba(6, 20, 54, 0.46);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(0, 28, 102, 0.22);
}

.footer-box {
    width: 100%;
    max-width: 520px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 100;
}

.footer-card {
    background: linear-gradient(145deg, rgba(8, 27, 68, 0.88), rgba(7, 14, 39, 0.94));
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-radius: 30px 30px 0 0;
    padding: 20px 20px 22px;
    border: 1px solid rgba(80, 175, 255, 0.32);
    border-bottom: none;
    box-shadow: 
        0 -18px 55px rgba(0, 30, 110, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.footer-title {
    text-align: center;
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-title .highlight {
    background: linear-gradient(135deg, #5bd7ff 0%, #8d7cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    filter: drop-shadow(0 0 12px rgba(55, 184, 255, 0.38));
}

.footer-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    color: rgba(203, 224, 255, 0.72);
    font-size: 11px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-info span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.hear-box img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px rgba(16, 138, 255, 0.38));
}

/* 官网网址 */
.footer-url {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 顶部文字：改为低调黄金色，无闪烁动画 */
.hear-box .header-title {
    color: #fff;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: 0.2px;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.hear-box .header-subtitle {
    margin-top: 2px;
    color: rgba(185, 218, 255, 0.72);
    font-size: 11px;
    letter-spacing: 0.8px;
}

/* 卡片内提示文字 - iOS风格 */
.footer-tips {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    text-align: center;
    margin-bottom: 14px;
    padding: 0 12px 12px;
    border-bottom: 1px solid rgba(120, 188, 255, 0.14);
}

.footer-tips p {
    color: rgba(204, 224, 255, 0.74);
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

.footer-tips p:first-child {
    color: #f5f9ff;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.hear-box .icon-list {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.hear-box .icon-list img {
    width: 48px;
}

.hear-box .icon-list .dian {
    height: 6px;
    width: 2px;
    margin: 0 20px;
}

/* ========== iOS风格下载按钮 ========== */
.footer-box .download-btn {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    flex: 1;
    min-width: 0;
    height: 48px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2px, 1.2vw, 6px);
    position: relative;
    overflow: hidden;
    padding: 0 clamp(6px, 3vw, 16px);
    transition: all 0.2s ease;
}

/* 安卓按钮 - iOS蓝色 */
.footer-box .download-btn.downc {
    background: linear-gradient(135deg, #087cff 0%, #4c5cff 100%);
    box-shadow: 0 8px 24px rgba(0, 105, 255, 0.38), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* iOS按钮 - 透明描边 */
.footer-box .download-btn.downd {
    background: rgba(115, 117, 255, 0.13);
    border: 1px solid rgba(155, 184, 255, 0.38);
}

/* 文字 */
.footer-box .download-btn .btn-text {
    display: block;
    min-width: 0;
    font-size: clamp(11px, 4vw, 16px);
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    color: #fff;
}

.platform-icon {
    font-size: 11px;
    color: #73f0ff;
    transform: rotate(45deg);
}

.platform-icon.apple {
    color: #fff;
    transform: none;
}

@media screen and (max-width: 320px) {
    .footer-card {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-buttons {
        gap: 6px;
    }

    .platform-icon {
        display: none;
    }
}

/* 热门标签 */
.footer-box .download-btn .btn-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #FF3B30;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: 0.2px;
}

/* 悬停效果 */
.footer-box .download-btn:hover {
    transform: scale(1.02);
}

.footer-box .download-btn.downc:hover {
    background: linear-gradient(135deg, #1594ff 0%, #695dff 100%);
    box-shadow: 0 10px 28px rgba(0, 122, 255, 0.46);
}

.footer-box .download-btn.downd:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 点击效果 */
.footer-box .download-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.footer-box .center-content {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%);
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-box .center-icon {
    font-size: 48px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    font-family: Arial, sans-serif;
}

.footer-box .center-text {
    text-align: center;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    letter-spacing: 1px;
    /* 霓虹灯效果 - 蓝色渐变 */
    text-shadow: 
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 15px #00ffff,
        0 0 20px #00bfff,
        0 0 30px #00bfff,
        0 0 40px #00bfff;
    animation: neon-glow 2s ease-in-out infinite alternate;
}

@keyframes neon-glow {
    from {
        text-shadow: 
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff,
            0 0 20px #00bfff,
            0 0 30px #00bfff,
            0 0 40px #00bfff;
    }
    to {
        text-shadow: 
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 30px #00ffff,
            0 0 40px #00bfff,
            0 0 50px #00bfff,
            0 0 60px #00bfff;
    }
}


.swiper {
    /* width: 100vw; */
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 0 !important;
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    flex-shrink: 0;
}

@media screen and (max-height: 720px) {
    .hear-box { padding-top: 10px; }
    .hear-box img { width: 40px; height: 40px; }
    .footer-card { padding-top: 14px; padding-bottom: 14px; }
    .footer-tips { margin-bottom: 10px; padding-bottom: 8px; }
    .footer-tips p { line-height: 1.45; }
    .footer-title { margin-bottom: 10px; font-size: 18px; }
    .footer-box .download-btn { height: 44px; }
}

.swiper {
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}
.swiper:active {
    cursor: grabbing;
}

.swiper-slide img {
    user-drag: none;
    user-select: none;
}

/* 下载提示 - iOS玻璃态风格 */
.download-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.download-loading .loading-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 24px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    min-width: 160px;
}

/* 加载文字 */
.download-loading .loading-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(0, 0, 0, 0.3);
    text-align: center;
}
