/* CSS Reset 和浏览器兼容性增强 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 币安App下载区域样式 */
.app-download-section {
    background-color: #000;
    padding: 100px 0;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.app-download-content {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 新增：左右布局容器 */
.download-left {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
}

.download-right {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
    max-width: 450px;
}

/* 手机预览样式 - 使用图片展示 */
.app-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.phone-frame {
    background: transparent;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: #1a1a1a;
    border-radius: 32px 32px 0 0;
    z-index: 2;
}

.app-screenshot {
    width: 320px;
    height: auto;
    border-radius: 26px;
    background: #1a1a1a;
    transition: transform 0.3s ease;
    display: block;
    z-index: 1;
    position: relative;
}

.app-screenshot:hover {
    transform: translateY(-5px);
}

/* 下载信息部分 */
.download-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 450px;
}

.download-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 40px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.5px;
}

/* 二维码容器 */
.qrcode-section {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
    text-align: center;
}

/* 代理商信息容器 */
.agent-info {
    width: 100%;
    background-color: #f8f9fa;
    padding: 20px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* 代理商文本样式 */
.agent-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
}

/* 客服电话链接样式 */
.agent-phone {
    color: #f3ba2f;
    font-weight: 500;
    text-decoration: none;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: inline-block;
}

.agent-phone:hover,
.agent-phone:focus {
    color: #f3ba2f;
    opacity: 0.8;
    text-decoration: none;
    outline: none;
}

/* 触摸设备上的电话链接样式 */
@media (hover: none) and (pointer: coarse) {
    .agent-phone:active {
        color: #0056b3;
        -webkit-transform: scale(0.98);
        -moz-transform: scale(0.98);
        -o-transform: scale(0.98);
        transform: scale(0.98);
    }
}

/* 响应式设计 - 适配移动设备 */
@media (max-width: 768px) {
    .agent-info {
        padding: 15px;
        -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
        -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    }
    
    .agent-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .qrcode-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .agent-info {
        padding: 12px;
    }
    
    .agent-text {
        font-size: 13px;
    }
    
    .agent-phone {
        word-break: break-all;
    }
}

.qrcode-container {
    position: relative;
    width: 180px;
    height: 180px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
}

.qrcode {
    width: 160px;
    height: 160px;
    display: block;
}

.qrcode-text {
    text-align: center;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    margin-top: 12px;
}

/* 系统下载选项 */
.system-options {
    display: -webkit-flex;
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.system-btn {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 110px;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.system-btn:hover {
    background-color: #262626;
    border-color: #555;
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* 桌面版选项卡 */
.desktop-tabs {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
}

.tab-label {
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

.tab-btn {
    background-color: transparent;
    border: none;
    color: #888;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.tab-btn:hover {
    color: #fff;
    background-color: #1a1a1a;
}

/* 更多下载选择 */
.more-options-container {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
}

.more-options {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    color: #f3ba2f;
    text-decoration: none;
    font-size: 14px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-weight: 500;
}

.more-options:hover {
    opacity: 0.8;
    -webkit-transform: translateX(5px);
    -moz-transform: translateX(5px);
    -o-transform: translateX(5px);
    transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .app-download-content {
        gap: 80px;
    }
    
    .download-title {
        font-size: 32px;
    }
    
    .qrcode-container {
        width: 160px;
        height: 160px;
    }
    
    .qrcode {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 1024px) {
    .app-download-content {
        gap: 60px;
    }
    
    .download-title {
        font-size: 28px;
    }
    
    .app-screenshot {
        width: 280px;
    }
    
    .system-options {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .app-download-section {
        padding: 80px 0;
        background-color: #000;
    }
    
    .app-download-content {
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 60px;
    }
    
    .download-left, .download-right {
        width: 100%;
        -webkit-align-items: center;
        align-items: center;
    }
    
    .app-screenshot {
        width: 250px;
    }
    
    .download-title {
        font-size: 28px;
        text-align: center;
    }
    
    .system-options {
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .app-download-section {
        padding: 60px 0 100px;
        background-color: #000;
    }
    
    .app-download-content {
        gap: 70px;
        padding: 0 15px;
    }
    
    .app-screenshot {
        width: 220px;
    }
    
    .download-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .qrcode-container {
        width: 150px;
        height: 150px;
    }
    
    .qrcode {
        width: 130px;
        height: 130px;
    }
    
    .qrcode-text {
        font-size: 13px;
    }
    
    .system-options {
        gap: 12px;
        margin-bottom: 25px;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    
    .system-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 90px;
        -webkit-flex-shrink: 0;
        flex-shrink: 0;
    }
    
    .desktop-tabs {
        gap: 12px;
        -webkit-align-items: center;
        align-items: center;
    }
    
    .tab-label, .tab-btn {
        font-size: 13px;
    }
    
    .tab-btn {
        padding: 6px 12px;
    }
}

/* 动画效果 */

.app-download-section {
    animation: fadeIn 0.8s ease-out;
}

/* 浏览器兼容性增强 */
/* 通用兼容性前缀 */
.app-screenshot, .qrcode-box, .phone-frame, .system-btn, .tab-btn {
    -webkit-border-radius: inherit;
    -moz-border-radius: inherit;
    border-radius: inherit;
}

.phone-frame, .qrcode-box {
    -webkit-box-shadow: inherit;
    -moz-box-shadow: inherit;
    box-shadow: inherit;
}

/* 动画兼容性 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; -webkit-transform: translateY(20px); }
    to { opacity: 1; -webkit-transform: translateY(0); }
}

@-moz-keyframes fadeIn {
    from { opacity: 0; -moz-transform: translateY(20px); }
    to { opacity: 1; -moz-transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@-webkit-keyframes pulse {
    0% { -webkit-transform: scale(1); }
    50% { -webkit-transform: scale(1.05); }
    100% { -webkit-transform: scale(1); }
}

@-moz-keyframes pulse {
    0% { -moz-transform: scale(1); }
    50% { -moz-transform: scale(1.05); }
    100% { -moz-transform: scale(1); }
}

/* 过渡效果兼容性 */
.app-screenshot, .system-btn, .tab-btn, .more-options {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* 变换兼容性 */
.app-screenshot:hover, .system-btn:hover, .more-options:hover {
    -webkit-transform: inherit;
    -moz-transform: inherit;
    -o-transform: inherit;
    transform: inherit;
}

/* Flexbox 兼容性 */
.app-download-content, .app-preview, .download-info, .qrcode-container,
.system-options, .desktop-tabs, .qrcode-box, .qrcode-overlay,
.system-btn, .more-options {
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

/* Flex 属性兼容性 */
.app-download-content {
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -moz-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.download-info {
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -moz-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

/* IE 特定修复 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE 10+ 修复 */
    .desktop-tabs {
        display: block;
        text-align: center;
    }
    
    .tab-btn {
        display: inline-block;
        margin-right: 1px;
    }
    
    .system-options {
        display: block;
    }
    
    .system-btn {
        display: inline-block;
        margin-right: 16px;
        margin-bottom: 10px;
    }
}

/* 确保SVG图标正确显示 */
.qrcode, .app-screenshot {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 下载按钮内的链接样式 */
.system-btn a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    width: 100%;
    height: 100%;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}