/* 平台自适应样式 */

/* 移动端下载区域 */
.mobile-download-section {
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin: 20px 0;
}

.mobile-download-card {
    text-align: center;
    color: white;
}

.mobile-download-icon {
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

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

.mobile-download-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.mobile-download-desc {
    font-size: 14px;
    opacity: 0.95;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.mobile-download-btn {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.mobile-download-btn.ios-btn {
    color: #667eea;
}

.mobile-download-btn.android-btn {
    color: #3ddc84;
}

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

.mobile-download-tips {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.mobile-download-tips p {
    font-size: 13px;
    opacity: 0.9;
    margin: 5px 0;
}

/* 移动端隐藏PC二维码区域 */
.platform-mobile .cinema-pc-qr,
.platform-mobile .cinema-pc-qr-card,
.platform-mobile .cinema-pc-qr-steps {
    display: none !important;
}

/* 微信浏览器提示 */
.wechat-browser-tip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #07c160 0%, #00b050 100%);
    color: white;
    z-index: 10001;
    padding: 12px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease-out;
}

.wechat-tip-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wechat-tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.wechat-tip-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.wechat-tip-text strong {
    font-size: 15px;
}

.wechat-tip-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.wechat-tip-close:hover {
    background: rgba(255,255,255,0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 平台特定样式 */

/* iOS平台优化 */
.platform-ios {
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    -webkit-touch-callout: none;
}

.platform-ios input,
.platform-ios textarea,
.platform-ios button {
    -webkit-appearance: none;
    border-radius: 8px;
}

/* Android平台优化 */
.platform-android {
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

/* PC平台 - 显示鼠标悬停效果 */
.platform-pc .app-card:hover {
    transform: translateY(-4px);
}

.platform-pc .category-title {
    cursor: default;
}

/* 移动端 - 优化触摸体验 */
.platform-mobile .app-card {
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
}

.platform-mobile .app-card:active {
    transform: scale(0.98);
}

/* 微信环境 - 调整布局避免遮挡 */
.platform-wechat {
    padding-top: 56px; /* 为微信提示预留空间 */
}

.platform-wechat .cinema-pc-hero {
    margin-top: -56px;
    padding-top: 56px;
}

/* 平台按钮优先显示 */
.platform-primary {
    order: -1;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

/* 二维码平台适配 */
.qr-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 移动端单个二维码 */
.platform-mobile .qr-container {
    justify-content: center;
}

.platform-mobile .qr-container .qr-card {
    max-width: 280px;
}

/* iOS设备隐藏Android相关内容 */
.platform-ios .qr-android,
.platform-ios .android-only,
.platform-ios [data-platform="android"]:not(.show-all) {
    display: none !important;
}

/* Android设备隐藏iOS相关内容 */
.platform-android .qr-ios,
.platform-android .ios-only,
.platform-android [data-platform="ios"]:not(.show-all) {
    display: none !important;
}

/* PC显示所有平台 */
.platform-pc .qr-ios,
.platform-pc .qr-android,
.platform-pc [data-platform="ios"],
.platform-pc [data-platform="android"] {
    display: block !important;
}

/* 平台标识样式 */
.platform-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-badge.ios {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    color: white;
}

.platform-badge.android {
    background: linear-gradient(135deg, #3ddc84 0%, #00c853 100%);
    color: white;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .wechat-browser-tip {
        padding: 10px 12px;
    }

    .wechat-tip-text {
        font-size: 13px;
    }

    .wechat-tip-text strong {
        font-size: 14px;
    }

    .wechat-tip-icon {
        font-size: 20px;
    }

    .wechat-tip-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .qr-container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .platform-wechat {
        padding-top: 60px;
    }

    .wechat-tip-content {
        gap: 8px;
    }
}

/* 平台检测加载状态 */
body:not([class*="platform-"]) .qr-ios,
body:not([class*="platform-"]) .qr-android {
    opacity: 0.3;
}

body[class*="platform-"] .qr-ios,
body[class*="platform-"] .qr-android {
    opacity: 1;
    transition: opacity 0.3s ease;
}
/* 移动端吸顶下载按钮（仿原网站） */
.mobile-hero-cta {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    padding: 12px 15px;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
    animation: slideDownCta 0.4s ease-out;
}

@keyframes slideDownCta {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-hero-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-hero-cta-text {
    flex: 1;
    color: white;
    min-width: 0;
}

.mobile-hero-cta-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-hero-cta-sub {
    font-size: 12px;
    opacity: 0.95;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-hero-cta-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: white;
    color: #ff6b00;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s;
    white-space: nowrap;
}

.mobile-hero-cta-btn:active {
    transform: scale(0.95);
}

/* 移动端下载区域（原有的卡片样式保留，作为备选方案） */
.mobile-download-section {
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin: 20px 15px;
}

.mobile-download-card {
    text-align: center;
    color: white;
}

.mobile-download-icon {
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

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

.mobile-download-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.mobile-download-desc {
    font-size: 14px;
    opacity: 0.95;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.mobile-download-btn {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.mobile-download-btn.ios-btn {
    color: #667eea;
}

.mobile-download-btn.android-btn {
    color: #3ddc84;
}

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

.mobile-download-tips {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.mobile-download-tips p {
    font-size: 13px;
    opacity: 0.9;
    margin: 5px 0;
}

/* 移动端隐藏PC二维码区域 */
.platform-mobile .cinema-pc-qr,
.platform-mobile .cinema-pc-qr-card,
.platform-mobile .cinema-pc-qr-steps {
    display: none !important;
}

/* 移动端优化container padding */
.platform-mobile .container {
    padding-top: 0;
}

.platform-mobile .cinema-pc-hero {
    margin-top: 0;
}
