/* 下载页面特有样式 */

/* 主内容区 */
.DownloadApp {
    padding-top: 120px;
    padding-bottom: 80px;
}


/* 平台选择器 */
.platform {
    display: flex;
    align-items: center;
    width: fit-content;
    height: 48px;
    margin: 0 auto 10px;
    padding: 0 6px;
    background: #f5f5f7;
    border-radius: 57px;
}

.platform-item {
    width: 186px;
    height: 40px;
    border-radius: 57px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.platform-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.platform-item.selected {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.platform-item.selected span {
    color: #1a1a1a;
    font-weight: 600;
}

.platform-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-item.selected img {
    transform: scale(1.1);
}

.platform-item span {
    margin-left: 10px;
    color: #8e8e93;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 160px;
}

.download-img {
    font-size: 0;
    flex: 0 0 auto;
    width: 350px;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-img .android-img {
    width: 280px;
    height: 560px;
    object-fit: contain;
}

.download-img .iphone-img {
    width: 350px;
    height: 700px;
    object-fit: contain;
}


.download-mobile {
    font-size: 0;
    display: none;
}

.right {
    flex: 1;
    max-width: 550px;
}

.download-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    padding-left: 0;
    min-height: 50px;
    line-height: 1.4;
}

.download-title .hot-gradient {
    background: linear-gradient(90deg, #FF4444 0%, #FF6B6B 50%, #FF4444 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s linear infinite;
    font-weight: 500;
}

.download-title .cold-gradient {
    background: linear-gradient(90deg, #2240C4 0%, #4A90E2 50%, #2240C4 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s linear infinite;
    font-weight: 500;
}

@keyframes gradientFlow {
    0% {
        background-position: 200% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.download-text {
    margin: 8px 0 32px;
    font-size: 18px;
    font-weight: 400;
    color: #666;
    padding-left: 0;
    min-height: 75px;
    line-height: 1.6;
}

.download-app {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-left: 0;
    margin-top: 20px;
}

.download-wraps {
    position: relative;
    flex: 1;
    min-width: 140px;
}

.download-btn {
    padding: 10px 20px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2240C4;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.download-btn svg,
.download-btn img {
    flex-shrink: 0;
    object-fit: contain;
}

.download-btn:hover {
    background: #1a32a0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 64, 196, 0.3);
}

.android-btn {
    background: #2240C4;
    border: 2px solid #2240C4;
}

.android-btn:hover {
    background: #1a32a0;
    border-color: #1a32a0;
    box-shadow: 0 6px 20px rgba(34, 64, 196, 0.3);
}

.ios-btn {
    background: #000000;
    border: 2px solid #000000;
}

.ios-btn:hover {
    background: #333333;
    border-color: #333333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ios-btn.disabled {
    background: transparent;
    border: 1px dashed #999999;
    color: #666666;
    cursor: not-allowed;
}

.ios-btn.disabled:hover {
    background: rgba(102, 102, 102, 0.05);
    box-shadow: none;
    transform: none;
}

.ios-btn.disabled div span {
    color: #666666;
    font-weight: 300;
}

.ios-btn.disabled .not-supported {
    color: #999999;
    font-size: 0.85em;
    white-space: nowrap;
}


.download-btn span {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}


/* 安全提示区域 */
.description-content {
    position: relative;
    margin: 0;
    padding: 0;
}

.main-container {
    background: #fafafb;
    padding: 24px 20px;
    position: relative;
    border-radius: 10px;
    border: 1px solid #e8e8ed;
    margin-bottom: 0;
}

.text {
    font-size: 12px;
    font-weight: 400;
    text-align: left;
    color: #666;
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-left: 0;
}

.symbol {
    margin-right: 8px;
    color: #e55036;
    font-size: 16px;
    flex-shrink: 0;
}

.website-wrap {
    margin: 20px 0 26px;
    display: flex;
    align-items: center;
    padding-left: 0;
}

.website {
    position: relative;
    margin-left: 0;
    height: 32px;
    padding: 8px 16px 8px 32px;
    background: #e8f5e9;
    border-radius: 9px;
    display: flex;
    align-items: center;
}

.website img {
    height: 20px;
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
}

.website span {
    font-size: 12px;
    font-weight: 500;
    color: #16a57a;
}

.version-info {
    margin-top: 16px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 功能卡片区域 */
.features-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e8e8ed;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 底部区域 */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-decoration: none;
    color: #ffffff;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.footer-logo span {
    font-size: 24px;
    font-weight: 700;
}

.footer-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #999;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #2240C4;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-social a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2240C4;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 宽屏响应式 */
@media (min-width: 1920px) {
    .header {
        padding: 1.2rem 12%;
    }
    
    .DownloadApp {
        padding-left: 12%;
        padding-right: 12%;
    }
}

/* 移动端响应式 */
@media (max-width: 1200px) {
    .main-content .download-img {
        display: none;
    }

    .main-content .right .download-title,
    .main-content .right .download-text {
        text-align: center;
    }

    .main-content .right .download-app {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 1rem 5%;
    }

    .right-section {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .DownloadApp {
        background: #fafafb;
        padding-top: 100px;
    }

    .download-content {
        margin-top: 0;
        padding: 20px 0 0;
    }

    .platform {
        margin-bottom: 30px;
    }

    .platform-item {
        width: 140px;
        height: 36px;
        font-size: 14px;
    }

    .platform-item img {
        width: 18px;
        height: 18px;
    }

    .platform-item span {
        margin-left: 8px;
    }

    .main-content {
        background: #ffffff;
        padding: 0 0 60px;
        flex-direction: column;
    }

    .main-content .download-img {
        display: none;
    }

    .main-content .download-mobile {
        display: none;
    }

    .main-content .download-mobile img {
        width: 100%;
        height: auto;
    }

    .main-content .right {
        width: 100%;
    }

    .main-content .right .download-title {
        margin-top: 20px;
        font-size: 24px;
        text-align: center;
        min-height: 40px;
        line-height: 1.3;
    }

    .main-content .right .download-text {
        margin: 8px 0 24px;
        padding: 0 28px;
        font-size: 13px;
        text-align: center;
        color: #7a7a7a;
        min-height: 50px;
    }

    .main-content .right .download-app {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
        margin-top: 20px;
    }

    .main-content .right .download-app .download-wraps {
        width: 100%;
    }

    .main-content .right .download-app .download-wraps .download-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
        justify-content: center;
    }

    .main-content .right .download-app .download-wraps .download-btn img {
        width: 22px;
        height: 22px;
    }


    .description-content {
        margin: 20px 20px 0;
    }

    .main-container {
        padding: 16px 20px;
    }

    .text {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .website-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 15px 0;
    }

    .website {
        margin-left: 0;
        padding: 8px 14px 8px 30px;
        height: auto;
    }

    .website img {
        height: 20px;
        left: 2px;
        top: 50%;
        transform: translateY(-50%);
    }

    .website span {
        font-size: 12px;
    }

    .version-info {
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.6;
    }

    /* 隐藏功能卡片 */
    .features-section {
        display: none;
    }

    /* Footer移动端样式 */
    .footer {
        padding: 24px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 隐藏产品、支持、法律三个区块 */
    .footer-section {
        display: none;
    }

    /* 只保留品牌区域，居中显示 */
    .footer-brand {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 12px;
    }

    .footer-desc {
        text-align: center;
        margin-bottom: 16px;
        font-size: 13px;
    }

    .footer-social {
        justify-content: center;
        gap: 12px;
    }

    .footer-section-title {
        font-size: 15px;
    }
}

@media screen and (max-width: 370px) {
    .main-content .right .download-title {
        font-size: 20px;
    }

    .main-content .right .download-text {
        font-size: 12px;
        padding: 0 15px;
    }

    .description-content {
        margin: 15px 15px 0;
    }

    .text {
        font-size: 12px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .feature-title {
        font-size: 16px;
    }

    .feature-desc {
        font-size: 13px;
    }
}

/* 额外优化：按钮触控区域 */
button {
    border: none;
    outline: none;
}

button:focus, a:focus {
    outline: none;
}

/* 优化滚动体验 */
html {
    scroll-behavior: smooth;
}
