/* APP下载页专用样式 */
:root {
    --download-primary: #0056b3;
    --download-accent: #00c6ff;
    --download-gradient: linear-gradient(135deg, #0a192f 0%, #0056b3 50%, #00c6ff 100%);
    --download-glass: rgba(255, 255, 255, 0.08);
    --download-glass-border: rgba(255, 255, 255, 0.15);
    --download-card-bg: rgba(255, 255, 255, 0.95);
}

/* 下载页 Hero 区域 */
.download-hero {
    position: relative;
    min-height: 90vh;
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--download-gradient);
    color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.download-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.download-hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid var(--download-glass-border);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #00c6ff;
}

.download-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    line-height: 1.7;
    max-width: 540px;
}

/* 下载按钮组 */
.download-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-android {
    background: linear-gradient(135deg, #3ddc84 0%, #10b981 100%);
    color: #052e16;
}

.btn-ios {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    color: #ffffff;
    border: 1px solid var(--download-glass-border);
}

.btn-ios:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-download .btn-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
}

.btn-download .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-download .btn-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-download .btn-platform {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

/* 扫码与版本提示 */
.qr-preview-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: var(--download-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--download-glass-border);
    border-radius: 16px;
    max-width: 460px;
}

.qr-code-img {
    width: 80px;
    height: 80px;
    background: #ffffff;
    padding: 6px;
    border-radius: 10px;
}

.qr-code-img canvas,
.qr-code-img img {
    width: 100%;
    height: 100%;
}

.qr-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.qr-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.version-pills {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #00c6ff;
}

/* 手机壳模型展示区域 */
.phone-mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #1e293b;
    border-radius: 45px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 12px #0f172a,
        0 0 0 14px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 2;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #0f172a;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.screen-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.screen-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: scale(1.05);
}

.screen-slide.active {
    opacity: 1;
    transform: scale(1);
}

.screen-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 背景光晕装饰卡片 */
.mockup-bg-card {
    position: absolute;
    width: 240px;
    height: 480px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 35px;
    z-index: 1;
    transition: all 0.5s ease;
}

.mockup-bg-card.card-left {
    transform: translateX(-120px) rotate(-8deg) scale(0.9);
}

.mockup-bg-card.card-right {
    transform: translateX(120px) rotate(8deg) scale(0.9);
}

/* 截屏展示全景区块 */
.screenshots-section {
    padding: 90px 0;
    background: var(--bg-light);
    text-align: center;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.screenshot-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.screenshot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.screenshot-img-box {
    border-radius: 12px;
    overflow: hidden;
    height: 420px;
    background: #f1f5f9;
    margin-bottom: 20px;
}

.screenshot-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.screenshot-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 特色亮点区块 */
.app-features-section {
    padding: 90px 0;
    background: #ffffff;
}

.features-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 860px;
    margin: 50px auto 0;
}

.feature-box {
    padding: 35px 25px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: #ffffff;
    border-color: var(--download-primary);
    box-shadow: 0 12px 28px rgba(0, 86, 179, 0.1);
    transform: translateY(-5px);
}

.feature-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0056b3 0%, #00c6ff 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.feature-box h4 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-box p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 底部 CTA 下载全宽横幅 */
.cta-download-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #0056b3 100%);
    color: #ffffff;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* iOS 安装提示 Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
}

.modal-card h3 {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.modal-card ol {
    padding-left: 20px;
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .download-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-desc {
        margin: 0 auto 35px;
    }

    .download-action-group {
        justify-content: center;
    }

    .qr-preview-box {
        margin: 0 auto;
    }

    .phone-mockup-wrapper {
        margin-top: 40px;
    }

    .screenshots-grid,
    .features-list-grid {
        grid-template-columns: 1fr;
    }
}