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

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 添加淡雅网格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.container {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* 波浪装饰 */
.wave-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    line-height: 0;
}

.wave-decoration svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* 内容包装器 */
.content-wrapper {
    position: relative;
    padding: 0 20px 30px;
}

/* 应用头部 */
.app-header {
    padding-top: 60px;
    padding-bottom: 30px;
    text-align: center;
}

.app-icon {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 24px;
    /*padding: 6px;*/
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.app-icon img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    display: block;
    object-fit: cover;
}

.icon-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.app-title {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.app-subtitle {
    color: #666;
    font-size: 13px;
    letter-spacing: 2px;
}

/* 平台内容 */
.platform-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.download-card {
    width: 100%;
    max-width: 360px;
    background: #fff;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* 平台徽章 */
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.platform-badge.android {
    background: linear-gradient(135deg, #3ddc84, #2eb872);
    box-shadow: 0 4px 15px rgba(61, 220, 132, 0.3);
}

.platform-badge.ios {
    background: linear-gradient(135deg, #007aff, #0051d5);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.platform-icon {
    width: 18px;
    height: 18px;
}

/* 下载按钮 */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.download-btn:active {
    transform: scale(0.97);
}

.download-btn.android {
    background: linear-gradient(135deg, #3ddc84, #2eb872);
    box-shadow: 0 6px 20px rgba(61, 220, 132, 0.35);
}

.download-btn.ios {
    background: linear-gradient(135deg, #007aff, #0051d5);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.35);
}

.btn-icon-left {
    width: 20px;
    height: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.version-text {
    color: #999;
    font-size: 12px;
}

/* 安装步骤 */
.step-guide {
    width: 100%;
    margin-top: 20px;
}

.step-image {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.hidden {
    display: none !important;
}

/* 移动端响应式 */
@media screen and (max-width: 375px) {
    .app-icon {
        width: 90px;
        height: 90px;
    }

    .app-title {
        font-size: 22px;
    }

    .download-card {
        padding: 25px 18px;
    }
}

@media screen and (max-width: 360px) {
    .wave-decoration {
        height: 100px;
    }

    .app-header {
        padding-top: 50px;
        padding-bottom: 25px;
    }

    .app-icon {
        width: 85px;
        height: 85px;
    }

    .app-title {
        font-size: 20px;
    }

    .app-subtitle {
        font-size: 12px;
    }
}

/* 横屏模式 */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .app-header {
        padding-top: 40px;
        padding-bottom: 20px;
    }

    .app-icon {
        width: 70px;
        height: 70px;
    }

    .wave-decoration {
        height: 80px;
    }
}

/* 安全区域适配 */
@supports (padding: env(safe-area-inset-bottom)) {
    .content-wrapper {
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
}
