/* 全局样式重置和基础优化 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0a0a0a;
    color: #f5f5f5;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* 整体容器居中优化 - 增强版 */
.jyxappmarket {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

/* 主要内容区域优化 - 增强内边距和垂直间距 */
main .jyxappmarket {
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

/* 页面宽度容器优化 - 精确居中 */
.pagevdwith {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* 左侧内容区域优化 - 完全居中 */
.jyxappleft {
    width: 100%;
    margin: 0 auto;
    display: block;
}

/* 头部区域优化 */
header .jyxappmarket {
    padding: 20px 20px 0;
    text-align: center;
}

.jyxappmarketlogo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.jyxappmarketlogo img {
    max-width: 180px;
    height: auto;
    display: block;
}

/* 页脚区域优化 */
footer {
    margin-top: 60px;
    padding: 30px 0;
    background-color: rgba(0, 0, 0, 0.8);
}

.jyxappmarketlogofoot {
    text-align: center;
    margin-bottom: 20px;
}

.jyxappmarketlogofoot img {
    max-width: 120px;
    height: auto;
    margin: 0 auto 10px;
}

.jyxappmarketlogofoot p {
    font-size: 14px;
    color: #888;
    margin: 0;
    text-align: center;
}

.jyx-footer {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 内容区块优化 - 增强视觉层次和内边距 */
.step-section, .support-section {
    background-color: rgba(26, 26, 26, 0.95);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

/* 内容区块装饰效果 */
.step-section::before, .support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #bcff2f 0%, #8fff00 100%);
}

/* 标题样式优化 - 增强视觉效果 */
.step-title, .support-title {
    color: #bcff2f;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 15px 0 10px;
    position: relative;
}

/* 下载按钮优化 - 增强视觉吸引力和交互体验 */
.download-btn {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 30px auto;
    padding: 18px 35px;
    background: linear-gradient(135deg, #bcff2f 0%, #a3ff00 100%);
    color: #333;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(188, 255, 47, 0.4);
    position: relative;
    overflow: hidden;
    border: none;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #bcff2f 0%, #a3ff00 100%, #8fff00 100%);
    z-index: -1;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(188, 255, 47, 0.5);
}

.download-btn:hover::before {
    opacity: 1;
}

/* 段落样式优化 - 增强可读性和垂直间距 */
.step-section p, .support-section p {
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
}

/* 顶部介绍文本优化 */
.jyxappleft-1 p {
    text-align: center;
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 40px;
    padding: 0 15px;
    line-height: 1.8;
}

/* 列表样式优化 - 增强可读性和视觉层次 */
.support-section ol {
    padding-left: 30px;
    margin-bottom: 10px;
}

.support-section li {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
    position: relative;
    padding-left: 10px;
}

.support-section li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: #bcff2f;
    border-radius: 50%;
}

/* 苹果浏览器特殊优化 - 深度增强版 */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari 核心样式优化 */
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-overflow-scrolling: touch;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-font-smoothing: antialiased;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        touch-action: manipulation;
    }

    /* iOS容器居中优化 */
    .jyxappmarket {
        -webkit-overflow-scrolling: touch;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .pagevdwith {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* 标题优化 - 极致iOS文本渲染 */
    .step-title, .support-title {
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        letter-spacing: 0.5px;
        font-weight: 700;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
        text-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
    }

    /* 按钮优化 - iOS原生触摸体验 */
    .download-btn {
        -webkit-tap-highlight-color: transparent;
        -webkit-appearance: none;
        appearance: none;
        border: none;
        outline: none;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action: manipulation;
        /* iOS毛玻璃效果增强 */
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    /* 下载按钮按下效果 */
    .download-btn:active {
        transform: scale(0.98) translateY(-2px);
        box-shadow: 0 6px 16px rgba(188, 255, 47, 0.35);
    }

    /* 内容块优化 - iOS滚动性能增强 */
    .step-section, .support-section {
        -webkit-overflow-scrolling: touch;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        position: relative;
        z-index: 1;
        /* iOS深度感增强 */
        perspective: 1000px;
        -webkit-perspective: 1000px;
    }

    /* 账号密码区域优化 - iOS触摸交互增强 */
    .step-section div p {
        -webkit-overflow-scrolling: touch;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }

    /* 账号密码文本样式优化 */
    .step-section .qq-number {
        font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', monospace;
        letter-spacing: 1px;
        -webkit-font-smoothing: antialiased;
    }

    /* 视频容器优化 - iOS视频播放增强 */
    .step-section > div {
        -webkit-overflow-scrolling: touch;
        background-color: rgba(0, 0, 0, 0.6);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* iOS视频容器圆角增强 */
        border-radius: 8px;
        overflow: hidden;
    }

    /* iOS视频播放特殊优化 */
    video {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* 修复iOS视频播放问题 */
        -webkit-touch-callout: none;
        touch-action: manipulation;
    }

    /* 列表优化 - iOS列表样式增强 */
    .support-section ol {
        -webkit-margin-before: 0;
        -webkit-margin-after: 0;
        -webkit-margin-start: 0;
        -webkit-margin-end: 0;
        -webkit-padding-start: 30px;
        /* iOS列表样式 */
        list-style-type: none;
        counter-reset: item;
    }

    /* iOS自定义列表序号 */
    .support-section ol li {
        counter-increment: item;
        position: relative;
        padding-left: 30px;
        margin-bottom: 15px;
    }

    .support-section ol li::before {
        content: counter(item);
        position: absolute;
        left: 0;
        top: 0;
        width: 24px;
        height: 24px;
        background-color: rgba(188, 255, 47, 0.2);
        color: #bcff2f;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        -webkit-font-smoothing: antialiased;
    }

    /* 链接优化 - iOS点击反馈增强 */
    a {
        -webkit-tap-highlight-color: rgba(188, 255, 47, 0.3);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action: manipulation;
    }

    /* 复制按钮优化 - iOS原生按钮体验 */
    button {
        -webkit-tap-highlight-color: transparent;
        -webkit-appearance: none;
        appearance: none;
        border: none;
        outline: none;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action: manipulation;
        /* iOS按钮样式 */
        padding: 8px 16px;
        background-color: rgba(188, 255, 47, 0.15);
        color: #bcff2f;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    /* 复制按钮按下效果 */
    button:active {
        background-color: rgba(188, 255, 47, 0.3);
        transform: scale(0.96);
    }

    /* 输入选择优化 - iOS选中文本样式 */
    ::-webkit-selection {
        background-color: rgba(188, 255, 47, 0.3);
        color: #ffffff;
    }

    /* 滚动条优化 - iOS滚动条样式 */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(188, 255, 47, 0.6);
        border-radius: 4px;
        -webkit-transition: background 0.3s ease;
        transition: background 0.3s ease;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(188, 255, 47, 0.8);
    }

    /* iOS特定的动画优化 */
    * {
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }

    /* iOS毛玻璃效果增强 */
    .jyxappmarketlogo, .jyxappmarketlogofoot {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* iOS状态栏优化 */
    @media screen and (display-mode: browser) {
        html {
            padding-top: env(safe-area-inset-top, 0px);
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }
    }

    /* iOS横屏模式特殊优化 */
    @media screen and (orientation: landscape) {
        .jyxappmarket {
            padding: 0 env(safe-area-inset-left, 20px) 0 env(safe-area-inset-right, 20px);
        }
    }

    /* iOS底部安全区域优化 */
    footer {
        padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    }
}

/* 响应式设计优化 - 全面多设备适配方案 */
/* 大屏设备增强 */
@media screen and (min-width: 1200px) {
    .jyxappmarket {
        max-width: 1140px;
    }

    .pagevdwith {
        max-width: 900px;
    }

    .step-section, .support-section {
        padding: 35px;
    }

    .step-title, .support-title {
        font-size: 26px;
    }

    .download-btn {
        max-width: 360px;
        padding: 20px 40px;
        font-size: 22px;
    }
}

/* 平板设备适配 (768px - 1023px) */
@media screen and (max-width: 1023px) {
    .jyxappmarket {
        max-width: 960px;
    }

    .pagevdwith {
        max-width: 850px;
    }
}

@media screen and (max-width: 768px) {
    /* 平板设备完整适配 */
    main .jyxappmarket {
        padding: 30px 15px;
    }

    .pagevdwith {
        max-width: 100%;
        padding: 0 10px;
    }

    .step-section, .support-section {
        padding: 25px 20px;
        margin-bottom: 30px;
        border-radius: 14px;
    }

    .step-title, .support-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .download-btn {
        padding: 16px 30px;
        font-size: 18px;
        max-width: 300px;
    }

    .jyxappleft-1 p {
        font-size: 16px;
        margin-bottom: 35px;
    }

    .support-section li {
        font-size: 15px;
        margin-bottom: 12px;
    }

    /* 平板设备标题图片优化 */
    .jyxappmarketlogo img {
        max-width: 160px;
    }
}

/* 大屏手机适配 (481px - 767px) */
@media screen and (max-width: 640px) {
    main .jyxappmarket {
        padding: 25px 12px;
    }

    .step-section, .support-section {
        padding: 22px 18px;
        margin-bottom: 28px;
        border-radius: 13px;
    }

    .step-title, .support-title {
        font-size: 21px;
        margin-bottom: 16px;
    }

    .download-btn {
        padding: 15px 28px;
        font-size: 17.5px;
        max-width: 290px;
    }
}

@media screen and (max-width: 480px) {
    /* 中屏手机完整适配 */
    main .jyxappmarket {
        padding: 25px 10px;
    }

    .step-section, .support-section {
        padding: 20px 15px;
        margin-bottom: 25px;
        border-radius: 12px;
    }

    .step-title, .support-title {
        font-size: 20px;
        margin-bottom: 15px;
        padding-top: 12px;
    }

    .download-btn {
        padding: 14px 25px;
        font-size: 17px;
        max-width: 280px;
        margin: 25px auto;
    }

    .jyxappleft-1 p {
        font-size: 15px;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .step-section p, .support-section p {
        font-size: 15px;
        margin-bottom: 15px;
        line-height: 1.6;
    }

    .support-section li {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .jyxappmarketlogo img {
        max-width: 150px;
    }
}

@media screen and (max-width: 414px) {
    /* iPhone Plus/Max 设备适配 */
    main .jyxappmarket {
        padding: 22px 10px;
    }

    .step-section, .support-section {
        padding: 19px 14px;
        margin-bottom: 22px;
    }

    .step-title, .support-title {
        font-size: 19px;
        margin-bottom: 14px;
    }

    .download-btn {
        padding: 13px 24px;
        font-size: 16.5px;
        max-width: 270px;
    }
}

@media screen and (max-width: 375px) {
    /* 标准手机完整适配 */
    main .jyxappmarket {
        padding: 20px 8px;
    }

    .step-section, .support-section {
        padding: 18px 12px;
        margin-bottom: 20px;
    }

    .step-title, .support-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .download-btn {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 260px;
    }

    .jyxappleft-1 p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .support-section ol {
        padding-left: 25px;
    }

    .support-section li {
        font-size: 13px;
    }

    .jyxappmarketlogo img {
        max-width: 130px;
    }
}

@media screen and (max-width: 320px) {
    /* 小屏手机完整适配 */
    main .jyxappmarket {
        padding: 18px 6px;
    }

    .step-section, .support-section {
        padding: 16px 10px;
        margin-bottom: 18px;
        border-radius: 10px;
    }

    .step-title, .support-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .download-btn {
        padding: 11px 18px;
        font-size: 15px;
        max-width: 240px;
        margin: 20px auto;
    }

    .jyxappleft-1 p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .step-section p, .support-section p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .support-section li {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .jyxappmarketlogo img {
        max-width: 120px;
    }
}

/* 横屏模式适配 */
@media screen and (max-height: 568px) and (orientation: landscape) {
    /* 所有横屏设备的基础适配 */
    main .jyxappmarket {
        padding: 15px 10px;
        min-height: auto;
        display: block;
    }

    .step-section, .support-section {
        padding: 15px;
        margin-bottom: 15px;
        display: inline-block;
        width: 100%;
    }

    .download-btn {
        padding: 10px 20px;
        font-size: 15px;
        margin: 15px auto;
        max-width: 240px;
    }

    .step-title, .support-title {
        font-size: 17px;
        margin-bottom: 10px;
    }
}

@media screen and (max-height: 480px) and (orientation: landscape) {
    /* 小屏横屏设备增强适配 */
    main .jyxappmarket {
        padding: 10px 8px;
    }

    .step-section, .support-section {
        padding: 12px;
        margin-bottom: 12px;
    }

    .step-title, .support-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .download-btn {
        padding: 8px 16px;
        font-size: 14px;
        margin: 12px auto;
        max-width: 220px;
    }
}

/* 特殊设备适配 */
@media screen and (device-width: 375px) and (device-height: 812px) {
    /* iPhone X/XS/11 Pro 适配 */
    main .jyxappmarket {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    footer {
        padding-bottom: calc(40px + env(safe-area-inset-bottom, 20px));
    }
}

@media screen and (device-width: 414px) and (device-height: 896px) {
    /* iPhone XR/11 适配 */
    main .jyxappmarket {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    footer {
        padding-bottom: calc(45px + env(safe-area-inset-bottom, 20px));
    }
}

@media screen and (device-width: 428px) and (device-height: 926px) {
    /* iPhone 12/13/14 Plus 适配 */
    main .jyxappmarket {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}